import * as pulumi from "@pulumi/pulumi"; /** * Creates and manages Scaleway Messaging and Queuing SQS queues. * For further information, see * our [main documentation](https://www.scaleway.com/en/docs/serverless/messaging/how-to/create-manage-queues/). * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const mainMnqSqs = new scaleway.MnqSqs("mainMnqSqs", {}); * const mainMnqSqsCredentials = new scaleway.MnqSqsCredentials("mainMnqSqsCredentials", { * projectId: mainMnqSqs.projectId, * permissions: { * canManage: true, * canReceive: false, * canPublish: false, * }, * }); * const mainMnqSqsQueue = new scaleway.MnqSqsQueue("mainMnqSqsQueue", { * projectId: mainMnqSqs.projectId, * sqsEndpoint: mainMnqSqs.endpoint, * accessKey: mainMnqSqsCredentials.accessKey, * secretKey: mainMnqSqsCredentials.secretKey, * }); * ``` */ export declare class MnqSqsQueue extends pulumi.CustomResource { /** * Get an existing MnqSqsQueue 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?: MnqSqsQueueState, opts?: pulumi.CustomResourceOptions): MnqSqsQueue; /** * Returns true if the given object is an instance of MnqSqsQueue. 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 MnqSqsQueue; /** * The access key of the SQS queue. */ readonly accessKey: pulumi.Output; /** * Specifies whether to enable content-based deduplication. Defaults to `false`. */ readonly contentBasedDeduplication: pulumi.Output; /** * Whether the queue is a FIFO queue. If true, the queue name must end with .fifo. Defaults to `false`. */ readonly fifoQueue: pulumi.Output; /** * The number of seconds the queue retains a message. Must be between 60 and 1_209_600. Defaults to 345_600. */ readonly messageMaxAge: pulumi.Output; /** * The maximum size of a message. Should be in bytes. Must be between 1024 and 262_144. Defaults to 262_144. */ readonly messageMaxSize: pulumi.Output; /** * The unique name of the SQS queue. Either `name` or `namePrefix` is required. Conflicts with `namePrefix`. */ readonly name: pulumi.Output; /** * Creates a unique name beginning with the specified prefix. Conflicts with `name`. */ readonly namePrefix: pulumi.Output; /** * `projectId`) The ID of the Project in which SQS is enabled. */ readonly projectId: pulumi.Output; /** * The number of seconds to wait for a message to arrive in the queue before returning. Must be between 0 and 20. Defaults to 0. */ readonly receiveWaitTimeSeconds: pulumi.Output; /** * `region`). The region in which SQS is enabled. */ readonly region: pulumi.Output; /** * The secret key of the SQS queue. */ readonly secretKey: pulumi.Output; /** * The endpoint of the SQS queue. Can contain a {region} placeholder. Defaults to `https://sqs.mnq.{region}.scaleway.com`. */ readonly sqsEndpoint: pulumi.Output; /** * The URL of the queue. */ readonly url: pulumi.Output; /** * The number of seconds a message is hidden from other consumers. Must be between 0 and 43_200. Defaults to 30. */ readonly visibilityTimeoutSeconds: pulumi.Output; /** * Create a MnqSqsQueue 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: MnqSqsQueueArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering MnqSqsQueue resources. */ export interface MnqSqsQueueState { /** * The access key of the SQS queue. */ accessKey?: pulumi.Input; /** * Specifies whether to enable content-based deduplication. Defaults to `false`. */ contentBasedDeduplication?: pulumi.Input; /** * Whether the queue is a FIFO queue. If true, the queue name must end with .fifo. Defaults to `false`. */ fifoQueue?: pulumi.Input; /** * The number of seconds the queue retains a message. Must be between 60 and 1_209_600. Defaults to 345_600. */ messageMaxAge?: pulumi.Input; /** * The maximum size of a message. Should be in bytes. Must be between 1024 and 262_144. Defaults to 262_144. */ messageMaxSize?: pulumi.Input; /** * The unique name of the SQS queue. Either `name` or `namePrefix` is required. Conflicts with `namePrefix`. */ name?: pulumi.Input; /** * Creates a unique name beginning with the specified prefix. Conflicts with `name`. */ namePrefix?: pulumi.Input; /** * `projectId`) The ID of the Project in which SQS is enabled. */ projectId?: pulumi.Input; /** * The number of seconds to wait for a message to arrive in the queue before returning. Must be between 0 and 20. Defaults to 0. */ receiveWaitTimeSeconds?: pulumi.Input; /** * `region`). The region in which SQS is enabled. */ region?: pulumi.Input; /** * The secret key of the SQS queue. */ secretKey?: pulumi.Input; /** * The endpoint of the SQS queue. Can contain a {region} placeholder. Defaults to `https://sqs.mnq.{region}.scaleway.com`. */ sqsEndpoint?: pulumi.Input; /** * The URL of the queue. */ url?: pulumi.Input; /** * The number of seconds a message is hidden from other consumers. Must be between 0 and 43_200. Defaults to 30. */ visibilityTimeoutSeconds?: pulumi.Input; } /** * The set of arguments for constructing a MnqSqsQueue resource. */ export interface MnqSqsQueueArgs { /** * The access key of the SQS queue. */ accessKey: pulumi.Input; /** * Specifies whether to enable content-based deduplication. Defaults to `false`. */ contentBasedDeduplication?: pulumi.Input; /** * Whether the queue is a FIFO queue. If true, the queue name must end with .fifo. Defaults to `false`. */ fifoQueue?: pulumi.Input; /** * The number of seconds the queue retains a message. Must be between 60 and 1_209_600. Defaults to 345_600. */ messageMaxAge?: pulumi.Input; /** * The maximum size of a message. Should be in bytes. Must be between 1024 and 262_144. Defaults to 262_144. */ messageMaxSize?: pulumi.Input; /** * The unique name of the SQS queue. Either `name` or `namePrefix` is required. Conflicts with `namePrefix`. */ name?: pulumi.Input; /** * Creates a unique name beginning with the specified prefix. Conflicts with `name`. */ namePrefix?: pulumi.Input; /** * `projectId`) The ID of the Project in which SQS is enabled. */ projectId?: pulumi.Input; /** * The number of seconds to wait for a message to arrive in the queue before returning. Must be between 0 and 20. Defaults to 0. */ receiveWaitTimeSeconds?: pulumi.Input; /** * `region`). The region in which SQS is enabled. */ region?: pulumi.Input; /** * The secret key of the SQS queue. */ secretKey: pulumi.Input; /** * The endpoint of the SQS queue. Can contain a {region} placeholder. Defaults to `https://sqs.mnq.{region}.scaleway.com`. */ sqsEndpoint?: pulumi.Input; /** * The number of seconds a message is hidden from other consumers. Must be between 0 and 43_200. Defaults to 30. */ visibilityTimeoutSeconds?: pulumi.Input; }