import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ## Example Usage * * ### S3 Route * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const mainIotHub = new scaleway.IotHub("mainIotHub", {productPlan: "plan_shared"}); * const mainObjectBucket = new scaleway.ObjectBucket("mainObjectBucket", {region: "fr-par"}); * const mainIotRoute = new scaleway.IotRoute("mainIotRoute", { * hubId: mainIotHub.id, * topic: "#", * s3: { * bucketRegion: mainObjectBucket.region, * bucketName: mainObjectBucket.name, * objectPrefix: "foo", * strategy: "per_topic", * }, * }); * ``` * * ### Rest Route * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const mainIotHub = new scaleway.IotHub("mainIotHub", {productPlan: "plan_shared"}); * const mainIotRoute = new scaleway.IotRoute("mainIotRoute", { * hubId: mainIotHub.id, * topic: "#", * rest: { * verb: "get", * uri: "http://scaleway.com", * headers: { * "X-awesome-header": "my-awesome-value", * }, * }, * }); * ``` * * ## Import * * IoT Routes can be imported using the `{region}/{id}`, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/iotRoute:IotRoute route01 fr-par/11111111-1111-1111-1111-111111111111 * ``` */ export declare class IotRoute extends pulumi.CustomResource { /** * Get an existing IotRoute resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: IotRouteState, opts?: pulumi.CustomResourceOptions): IotRoute; /** * Returns true if the given object is an instance of IotRoute. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is IotRoute; /** * The date and time the Route was created. */ readonly createdAt: pulumi.Output; /** * Configuration block for the database routes. See [product documentation](https://www.scaleway.com/en/docs/scaleway-iothub-route/#-Database-Route) for a better understanding of the parameters. */ readonly database: pulumi.Output; /** * The hub ID to which the Route will be attached to. */ readonly hubId: pulumi.Output; /** * The name of the IoT Route you want to create (e.g. `my-route`). */ readonly name: pulumi.Output; /** * (Defaults to provider `region`) The region in which the Route is attached to. */ readonly region: pulumi.Output; /** * Configuration block for the rest routes. See [product documentation](https://www.scaleway.com/en/docs/scaleway-iothub-route/#-REST-Route) for a better understanding of the parameters. */ readonly rest: pulumi.Output; /** * Configuration block for the S3 routes. See [product documentation](https://www.scaleway.com/en/docs/scaleway-iothub-route/#-Scaleway-Object-Storage-Route) for a better understanding of the parameters. */ readonly s3: pulumi.Output; /** * The topic the Route subscribes to, wildcards allowed (e.g. `thelab/+/temperature/#`). */ readonly topic: pulumi.Output; /** * Create a IotRoute resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: IotRouteArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering IotRoute resources. */ export interface IotRouteState { /** * The date and time the Route was created. */ createdAt?: pulumi.Input; /** * Configuration block for the database routes. See [product documentation](https://www.scaleway.com/en/docs/scaleway-iothub-route/#-Database-Route) for a better understanding of the parameters. */ database?: pulumi.Input; /** * The hub ID to which the Route will be attached to. */ hubId?: pulumi.Input; /** * The name of the IoT Route you want to create (e.g. `my-route`). */ name?: pulumi.Input; /** * (Defaults to provider `region`) The region in which the Route is attached to. */ region?: pulumi.Input; /** * Configuration block for the rest routes. See [product documentation](https://www.scaleway.com/en/docs/scaleway-iothub-route/#-REST-Route) for a better understanding of the parameters. */ rest?: pulumi.Input; /** * Configuration block for the S3 routes. See [product documentation](https://www.scaleway.com/en/docs/scaleway-iothub-route/#-Scaleway-Object-Storage-Route) for a better understanding of the parameters. */ s3?: pulumi.Input; /** * The topic the Route subscribes to, wildcards allowed (e.g. `thelab/+/temperature/#`). */ topic?: pulumi.Input; } /** * The set of arguments for constructing a IotRoute resource. */ export interface IotRouteArgs { /** * Configuration block for the database routes. See [product documentation](https://www.scaleway.com/en/docs/scaleway-iothub-route/#-Database-Route) for a better understanding of the parameters. */ database?: pulumi.Input; /** * The hub ID to which the Route will be attached to. */ hubId: pulumi.Input; /** * The name of the IoT Route you want to create (e.g. `my-route`). */ name?: pulumi.Input; /** * (Defaults to provider `region`) The region in which the Route is attached to. */ region?: pulumi.Input; /** * Configuration block for the rest routes. See [product documentation](https://www.scaleway.com/en/docs/scaleway-iothub-route/#-REST-Route) for a better understanding of the parameters. */ rest?: pulumi.Input; /** * Configuration block for the S3 routes. See [product documentation](https://www.scaleway.com/en/docs/scaleway-iothub-route/#-Scaleway-Object-Storage-Route) for a better understanding of the parameters. */ s3?: pulumi.Input; /** * The topic the Route subscribes to, wildcards allowed (e.g. `thelab/+/temperature/#`). */ topic: pulumi.Input; }