UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

157 lines (156 loc) 5.27 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates and manages Scaleway Container Triggers. * For more information see [the documentation](https://www.scaleway.com/en/developers/api/serverless-containers/#path-triggers). * * ## Examples * * ### SQS * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * * const main = new scaleway.ContainerTrigger("main", { * containerId: scaleway_container.main.id, * sqs: { * projectId: scaleway_mnq_sqs.main.project_id, * queue: "MyQueue", * region: scaleway_mnq_sqs.main.region, * }, * }); * ``` * * ### Nats * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * * const main = new scaleway.ContainerTrigger("main", { * containerId: scaleway_container.main.id, * nats: { * accountId: scaleway_mnq_nats_account.main.id, * subject: "MySubject", * region: scaleway_mnq_nats_account.main.region, * }, * }); * ``` * * ## Import * * Container Triggers can be imported using the `{region}/{id}`, e.g. bash * * ```sh * $ pulumi import scaleway:index/containerTrigger:ContainerTrigger main fr-par/11111111-1111-1111-1111-111111111111 * ``` */ export declare class ContainerTrigger extends pulumi.CustomResource { /** * Get an existing ContainerTrigger 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<pulumi.ID>, state?: ContainerTriggerState, opts?: pulumi.CustomResourceOptions): ContainerTrigger; /** * Returns true if the given object is an instance of ContainerTrigger. 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 ContainerTrigger; /** * The ID of the container to create a trigger for */ readonly containerId: pulumi.Output<string>; /** * The description of the trigger. */ readonly description: pulumi.Output<string | undefined>; /** * The unique name of the trigger. Default to a generated name. */ readonly name: pulumi.Output<string>; /** * The configuration for the Scaleway's Nats used by the trigger */ readonly nats: pulumi.Output<outputs.ContainerTriggerNats | undefined>; /** * `region`). The region in which the namespace should be created. */ readonly region: pulumi.Output<string>; /** * The configuration of the Scaleway's SQS used by the trigger */ readonly sqs: pulumi.Output<outputs.ContainerTriggerSqs | undefined>; /** * Create a ContainerTrigger 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: ContainerTriggerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ContainerTrigger resources. */ export interface ContainerTriggerState { /** * The ID of the container to create a trigger for */ containerId?: pulumi.Input<string>; /** * The description of the trigger. */ description?: pulumi.Input<string>; /** * The unique name of the trigger. Default to a generated name. */ name?: pulumi.Input<string>; /** * The configuration for the Scaleway's Nats used by the trigger */ nats?: pulumi.Input<inputs.ContainerTriggerNats>; /** * `region`). The region in which the namespace should be created. */ region?: pulumi.Input<string>; /** * The configuration of the Scaleway's SQS used by the trigger */ sqs?: pulumi.Input<inputs.ContainerTriggerSqs>; } /** * The set of arguments for constructing a ContainerTrigger resource. */ export interface ContainerTriggerArgs { /** * The ID of the container to create a trigger for */ containerId: pulumi.Input<string>; /** * The description of the trigger. */ description?: pulumi.Input<string>; /** * The unique name of the trigger. Default to a generated name. */ name?: pulumi.Input<string>; /** * The configuration for the Scaleway's Nats used by the trigger */ nats?: pulumi.Input<inputs.ContainerTriggerNats>; /** * `region`). The region in which the namespace should be created. */ region?: pulumi.Input<string>; /** * The configuration of the Scaleway's SQS used by the trigger */ sqs?: pulumi.Input<inputs.ContainerTriggerSqs>; }