QueueArgs

data class QueueArgs(val contentBasedDeduplication: Output<Boolean>? = null, val deduplicationScope: Output<String>? = null, val delaySeconds: Output<Int>? = null, val fifoQueue: Output<Boolean>? = null, val fifoThroughputLimit: Output<String>? = null, val kmsDataKeyReusePeriodSeconds: Output<Int>? = null, val kmsMasterKeyId: Output<String>? = null, val maximumMessageSize: Output<Int>? = null, val messageRetentionPeriod: Output<Int>? = null, val queueName: Output<String>? = null, val receiveMessageWaitTimeSeconds: Output<Int>? = null, val redriveAllowPolicy: Output<Any>? = null, val redrivePolicy: Output<Any>? = null, val sqsManagedSseEnabled: Output<Boolean>? = null, val tags: Output<List<TagArgs>>? = null, val visibilityTimeout: Output<Int>? = null) : ConvertibleToJava<QueueArgs>

The `AWS::SQS::Queue` resource creates an SQS standard or FIFO queue. Keep the following caveats in mind:

  • If you don't specify the `FifoQueue` property, SQS creates a standard queue. You can't change the queue type after you create it and you can't convert an existing standard queue into a FIFO queue. You must either create a new FIFO queue for your application or delete your existing standard queue and recreate it as a FIFO queue. For more information, see Moving from a standard queue to a FIFO queue in the Developer Guide.

    • If you don't provide a value for a property, the queue is created with the default value for the property.

  • If you delete a queue, you must wait at least 60 seconds before creating a queue with the same name.

  • To successfully create a new queue, you must provide a queue name that adheres to the limits related to queues and is unique within the scope of your queues. For more information about creating FIFO (first-in-first-out) queues, see Creating an queue () in the Developer Guide.

Example Usage

Example

No Java example available.

Example

No Java example available.

Example

No Java example available.

Example

No Java example available.

Constructors

Link copied to clipboard
constructor(contentBasedDeduplication: Output<Boolean>? = null, deduplicationScope: Output<String>? = null, delaySeconds: Output<Int>? = null, fifoQueue: Output<Boolean>? = null, fifoThroughputLimit: Output<String>? = null, kmsDataKeyReusePeriodSeconds: Output<Int>? = null, kmsMasterKeyId: Output<String>? = null, maximumMessageSize: Output<Int>? = null, messageRetentionPeriod: Output<Int>? = null, queueName: Output<String>? = null, receiveMessageWaitTimeSeconds: Output<Int>? = null, redriveAllowPolicy: Output<Any>? = null, redrivePolicy: Output<Any>? = null, sqsManagedSseEnabled: Output<Boolean>? = null, tags: Output<List<TagArgs>>? = null, visibilityTimeout: Output<Int>? = null)

Properties

Link copied to clipboard
val contentBasedDeduplication: Output<Boolean>? = null

For first-in-first-out (FIFO) queues, specifies whether to enable content-based deduplication. During the deduplication interval, SQS treats messages that are sent with identical content as duplicates and delivers only one copy of the message. For more information, see the `ContentBasedDeduplication` attribute for the `CreateQueue` action in the API Reference.

Link copied to clipboard
val deduplicationScope: Output<String>? = null

For high throughput for FIFO queues, specifies whether message deduplication occurs at the message group or queue level. Valid values are `messageGroup` and `queue`. To enable high throughput for a FIFO queue, set this attribute to `messageGroup` and set the `FifoThroughputLimit` attribute to `perMessageGroupId`. If you set these attributes to anything other than these values, normal throughput is in effect and deduplication occurs as specified. For more information, see High throughput for FIFO queues and Quotas related to messages in the Developer Guide.

Link copied to clipboard
val delaySeconds: Output<Int>? = null

The time in seconds for which the delivery of all messages in the queue is delayed. You can specify an integer value of `0` to `900` (15 minutes). The default value is `0`.

Link copied to clipboard
val fifoQueue: Output<Boolean>? = null

If set to true, creates a FIFO queue. If you don't specify this property, SQS creates a standard queue. For more information, see FIFO queues in the Developer Guide.

Link copied to clipboard
val fifoThroughputLimit: Output<String>? = null

For high throughput for FIFO queues, specifies whether the FIFO queue throughput quota applies to the entire queue or per message group. Valid values are `perQueue` and `perMessageGroupId`. To enable high throughput for a FIFO queue, set this attribute to `perMessageGroupId` and set the `DeduplicationScope` attribute to `messageGroup`. If you set these attributes to anything other than these values, normal throughput is in effect and deduplication occurs as specified. For more information, see High throughput for FIFO queues and Quotas related to messages in the Developer Guide.

Link copied to clipboard
val kmsDataKeyReusePeriodSeconds: Output<Int>? = null

The length of time in seconds for which SQS can reuse a data key to encrypt or decrypt messages before calling KMS again. The value must be an integer between 60 (1 minute) and 86,400 (24 hours). The default is 300 (5 minutes). A shorter time period provides better security, but results in more calls to KMS, which might incur charges after Free Tier. For more information, see Encryption at rest in the Developer Guide.

Link copied to clipboard
val kmsMasterKeyId: Output<String>? = null

The ID of an AWS Key Management Service (KMS) for SQS, or a custom KMS. To use the AWS managed KMS for SQS, specify a (default) alias ARN, alias name (e.g. `alias/aws/sqs`), key ARN, or key ID. For more information, see the following:

Link copied to clipboard
val maximumMessageSize: Output<Int>? = null

The limit of how many bytes that a message can contain before SQS rejects it. You can specify an integer value from `1,024` bytes (1 KiB) to `262,144` bytes (256 KiB). The default value is `262,144` (256 KiB).

Link copied to clipboard
val messageRetentionPeriod: Output<Int>? = null

The number of seconds that SQS retains a message. You can specify an integer value from `60` seconds (1 minute) to `1,209,600` seconds (14 days). The default value is `345,600` seconds (4 days).

Link copied to clipboard
val queueName: Output<String>? = null

A name for the queue. To create a FIFO queue, the name of your FIFO queue must end with the `.fifo` suffix. For more information, see FIFO queues in the Developer Guide. If you don't specify a name, CFN generates a unique physical ID and uses that ID for the queue name. For more information, see Name type in the User Guide. If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.

Link copied to clipboard
val receiveMessageWaitTimeSeconds: Output<Int>? = null

Specifies the duration, in seconds, that the ReceiveMessage action call waits until a message is in the queue in order to include it in the response, rather than returning an empty response if a message isn't yet available. You can specify an integer from 1 to 20. Short polling is used as the default or when you specify 0 for this property. For more information, see Consuming messages using long polling in the Developer Guide.

Link copied to clipboard
val redriveAllowPolicy: Output<Any>? = null

The string that includes the parameters for the permissions for the dead-letter queue redrive permission and which source queues can specify dead-letter queues as a JSON object. The parameters are as follows:

Link copied to clipboard
val redrivePolicy: Output<Any>? = null

The string that includes the parameters for the dead-letter queue functionality of the source queue as a JSON object. The parameters are as follows:

Link copied to clipboard
val sqsManagedSseEnabled: Output<Boolean>? = null

Enables server-side queue encryption using SQS owned encryption keys. Only one server-side encryption option is supported per queue (for example, SSE-KMS or SSE-SQS). When `SqsManagedSseEnabled` is not defined, `SSE-SQS` encryption is enabled by default.

Link copied to clipboard
val tags: Output<List<TagArgs>>? = null

The tags that you attach to this queue. For more information, see Resource tag in the User Guide.

Link copied to clipboard
val visibilityTimeout: Output<Int>? = null

The length of time during which a message will be unavailable after a message is delivered from the queue. This blocks other components from receiving the same message and gives the initial component time to process and delete the message from the queue. Values must be from 0 to 43,200 seconds (12 hours). If you don't specify a value, AWS CloudFormation uses the default value of 30 seconds. For more information about SQS queue visibility timeouts, see Visibility timeout in the Developer Guide.

Functions

Link copied to clipboard
open override fun toJava(): QueueArgs