@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
236 lines (235 loc) • 8.98 kB
TypeScript
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/messaging/how-to/create-manage-queues/).
*
* ## Example Usage
*
* ### Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const main = new scaleway.mnq.Sqs("main", {});
* const mainSqsCredentials = new scaleway.mnq.SqsCredentials("main", {
* projectId: main.projectId,
* name: "sqs-credentials",
* permissions: {
* canManage: true,
* canReceive: false,
* canPublish: false,
* },
* });
* const mainSqsQueue = new scaleway.mnq.SqsQueue("main", {
* projectId: main.projectId,
* name: "my-queue",
* sqsEndpoint: main.endpoint,
* accessKey: mainSqsCredentials.accessKey,
* secretKey: mainSqsCredentials.secretKey,
* });
* ```
*
* @deprecated scaleway.index/mnqsqsqueue.MnqSqsQueue has been deprecated in favor of scaleway.mnq/sqsqueue.SqsQueue
*/
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<pulumi.ID>, 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<string>;
/**
* Specifies whether to enable content-based deduplication. Defaults to `false`.
*/
readonly contentBasedDeduplication: pulumi.Output<boolean>;
/**
* Whether the queue is a FIFO queue. If true, the queue name must end with .fifo. Defaults to `false`.
*/
readonly fifoQueue: pulumi.Output<boolean>;
/**
* 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<number | undefined>;
/**
* 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<number | undefined>;
/**
* The unique name of the SQS queue. Either `name` or `namePrefix` is required. Conflicts with `namePrefix`.
*/
readonly name: pulumi.Output<string>;
/**
* Creates a unique name beginning with the specified prefix. Conflicts with `name`.
*/
readonly namePrefix: pulumi.Output<string>;
/**
* `projectId`) The ID of the Project in which SQS is enabled.
*/
readonly projectId: pulumi.Output<string>;
/**
* 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<number | undefined>;
/**
* `region`). The region in which SQS is enabled.
*/
readonly region: pulumi.Output<string>;
/**
* The secret key of the SQS queue.
*/
readonly secretKey: pulumi.Output<string>;
/**
* The endpoint of the SQS queue. Can contain a {region} placeholder. Defaults to `https://sqs.mnq.{region}.scaleway.com`.
*/
readonly sqsEndpoint: pulumi.Output<string | undefined>;
/**
* The URL of the queue.
*/
readonly url: pulumi.Output<string>;
/**
* 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<number | undefined>;
/**
* 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.
*/
/** @deprecated scaleway.index/mnqsqsqueue.MnqSqsQueue has been deprecated in favor of scaleway.mnq/sqsqueue.SqsQueue */
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<string>;
/**
* Specifies whether to enable content-based deduplication. Defaults to `false`.
*/
contentBasedDeduplication?: pulumi.Input<boolean>;
/**
* Whether the queue is a FIFO queue. If true, the queue name must end with .fifo. Defaults to `false`.
*/
fifoQueue?: pulumi.Input<boolean>;
/**
* The number of seconds the queue retains a message. Must be between 60 and 1_209_600. Defaults to 345_600.
*/
messageMaxAge?: pulumi.Input<number>;
/**
* The maximum size of a message. Should be in bytes. Must be between 1024 and 262_144. Defaults to 262_144.
*/
messageMaxSize?: pulumi.Input<number>;
/**
* The unique name of the SQS queue. Either `name` or `namePrefix` is required. Conflicts with `namePrefix`.
*/
name?: pulumi.Input<string>;
/**
* Creates a unique name beginning with the specified prefix. Conflicts with `name`.
*/
namePrefix?: pulumi.Input<string>;
/**
* `projectId`) The ID of the Project in which SQS is enabled.
*/
projectId?: pulumi.Input<string>;
/**
* 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<number>;
/**
* `region`). The region in which SQS is enabled.
*/
region?: pulumi.Input<string>;
/**
* The secret key of the SQS queue.
*/
secretKey?: pulumi.Input<string>;
/**
* The endpoint of the SQS queue. Can contain a {region} placeholder. Defaults to `https://sqs.mnq.{region}.scaleway.com`.
*/
sqsEndpoint?: pulumi.Input<string>;
/**
* The URL of the queue.
*/
url?: pulumi.Input<string>;
/**
* The number of seconds a message is hidden from other consumers. Must be between 0 and 43_200. Defaults to 30.
*/
visibilityTimeoutSeconds?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a MnqSqsQueue resource.
*/
export interface MnqSqsQueueArgs {
/**
* The access key of the SQS queue.
*/
accessKey: pulumi.Input<string>;
/**
* Specifies whether to enable content-based deduplication. Defaults to `false`.
*/
contentBasedDeduplication?: pulumi.Input<boolean>;
/**
* Whether the queue is a FIFO queue. If true, the queue name must end with .fifo. Defaults to `false`.
*/
fifoQueue?: pulumi.Input<boolean>;
/**
* The number of seconds the queue retains a message. Must be between 60 and 1_209_600. Defaults to 345_600.
*/
messageMaxAge?: pulumi.Input<number>;
/**
* The maximum size of a message. Should be in bytes. Must be between 1024 and 262_144. Defaults to 262_144.
*/
messageMaxSize?: pulumi.Input<number>;
/**
* The unique name of the SQS queue. Either `name` or `namePrefix` is required. Conflicts with `namePrefix`.
*/
name?: pulumi.Input<string>;
/**
* Creates a unique name beginning with the specified prefix. Conflicts with `name`.
*/
namePrefix?: pulumi.Input<string>;
/**
* `projectId`) The ID of the Project in which SQS is enabled.
*/
projectId?: pulumi.Input<string>;
/**
* 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<number>;
/**
* `region`). The region in which SQS is enabled.
*/
region?: pulumi.Input<string>;
/**
* The secret key of the SQS queue.
*/
secretKey: pulumi.Input<string>;
/**
* The endpoint of the SQS queue. Can contain a {region} placeholder. Defaults to `https://sqs.mnq.{region}.scaleway.com`.
*/
sqsEndpoint?: pulumi.Input<string>;
/**
* The number of seconds a message is hidden from other consumers. Must be between 0 and 43_200. Defaults to 30.
*/
visibilityTimeoutSeconds?: pulumi.Input<number>;
}