CreateRouteRequest: {
    dbConfig?: CreateRouteRequestDatabaseConfig;
    hubId: string;
    name?: string;
    region?: Region;
    restConfig?: CreateRouteRequestRestConfig;
    s3Config?: CreateRouteRequestS3Config;
    topic: string;
}

Type declaration

  • OptionaldbConfig?: CreateRouteRequestDatabaseConfig

    If creating Database Route, DB-specific configuration fields.

    One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig' could be set.

  • hubId: string

    Hub ID of the route.

  • Optionalname?: string

    Route name.

  • Optionalregion?: Region

    Region to target. If none is passed will use default region from the config.

  • OptionalrestConfig?: CreateRouteRequestRestConfig

    If creating Rest Route, Rest-specific configuration fields.

    One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig' could be set.

  • Optionals3Config?: CreateRouteRequestS3Config

    If creating Amazon S3 Routes, Amazon S3-specific configuration fields.

    One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig' could be set.

  • topic: string

    Topic the route subscribes to. It must be a valid MQTT topic and up to 65535 characters.