UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

99 lines (98 loc) 3.34 kB
import * as pulumi from "@pulumi/pulumi"; /** * Activate Scaleway Messaging and queuing SQS for a project. * For further information please check * our [documentation](https://www.scaleway.com/en/docs/serverless/messaging/reference-content/sqs-overview/) * * ## Examples * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * * // For default project in default region * const main = new scaleway.MnqSqs("main", {}); * // For specific project in default region * const forProject = new scaleway.MnqSqs("forProject", {projectId: scaleway_account_project.main.id}); * ``` * * ## Import * * SQS status can be imported using the `{region}/{project_id}`, e.g. bash * * ```sh * $ pulumi import scaleway:index/mnqSqs:MnqSqs main fr-par/11111111111111111111111111111111 * ``` */ export declare class MnqSqs extends pulumi.CustomResource { /** * Get an existing MnqSqs 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?: MnqSqsState, opts?: pulumi.CustomResourceOptions): MnqSqs; /** * Returns true if the given object is an instance of MnqSqs. 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 MnqSqs; /** * The endpoint of the SQS service for this project. */ readonly endpoint: pulumi.Output<string>; /** * `projectId`) The ID of the project the sqs will be enabled for. */ readonly projectId: pulumi.Output<string>; /** * `region`). The region * in which sqs will be enabled. */ readonly region: pulumi.Output<string>; /** * Create a MnqSqs 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?: MnqSqsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MnqSqs resources. */ export interface MnqSqsState { /** * The endpoint of the SQS service for this project. */ endpoint?: pulumi.Input<string>; /** * `projectId`) The ID of the project the sqs will be enabled for. */ projectId?: pulumi.Input<string>; /** * `region`). The region * in which sqs will be enabled. */ region?: pulumi.Input<string>; } /** * The set of arguments for constructing a MnqSqs resource. */ export interface MnqSqsArgs { /** * `projectId`) The ID of the project the sqs will be enabled for. */ projectId?: pulumi.Input<string>; /** * `region`). The region * in which sqs will be enabled. */ region?: pulumi.Input<string>; }