We recommend new projects start with resources from the AWS provider.
aws-native.sqs.getQueue
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::SQS::Queue resource creates an SQS standard or FIFO queue.
Keep the following caveats in mind:
- If you don’t specify the FifoQueueproperty, 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.
Using getQueue
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getQueue(args: GetQueueArgs, opts?: InvokeOptions): Promise<GetQueueResult>
function getQueueOutput(args: GetQueueOutputArgs, opts?: InvokeOptions): Output<GetQueueResult>def get_queue(queue_url: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetQueueResult
def get_queue_output(queue_url: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetQueueResult]func LookupQueue(ctx *Context, args *LookupQueueArgs, opts ...InvokeOption) (*LookupQueueResult, error)
func LookupQueueOutput(ctx *Context, args *LookupQueueOutputArgs, opts ...InvokeOption) LookupQueueResultOutput> Note: This function is named LookupQueue in the Go SDK.
public static class GetQueue 
{
    public static Task<GetQueueResult> InvokeAsync(GetQueueArgs args, InvokeOptions? opts = null)
    public static Output<GetQueueResult> Invoke(GetQueueInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetQueueResult> getQueue(GetQueueArgs args, InvokeOptions options)
public static Output<GetQueueResult> getQueue(GetQueueArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:sqs:getQueue
  arguments:
    # arguments dictionaryThe following arguments are supported:
- QueueUrl string
- Returns the URLs of the queues from the policy.
- QueueUrl string
- Returns the URLs of the queues from the policy.
- queueUrl String
- Returns the URLs of the queues from the policy.
- queueUrl string
- Returns the URLs of the queues from the policy.
- queue_url str
- Returns the URLs of the queues from the policy.
- queueUrl String
- Returns the URLs of the queues from the policy.
getQueue Result
The following output properties are available:
- Arn string
- Returns the Amazon Resource Name (ARN) of the queue. For example: arn:aws:sqs:us-east-2:123456789012:mystack-myqueue-15PG5C2FC1CW8.
- ContentBased boolDeduplication 
- 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 ContentBasedDeduplicationattribute for theCreateQueueaction in the API Reference.
- DeduplicationScope string
- For high throughput for FIFO queues, specifies whether message deduplication occurs at the message group or queue level. Valid values are messageGroupandqueue. To enable high throughput for a FIFO queue, set this attribute tomessageGroupand set theFifoThroughputLimitattribute toperMessageGroupId. 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.
- DelaySeconds int
- The time in seconds for which the delivery of all messages in the queue is delayed. You can specify an integer value of 0to900(15 minutes). The default value is0.
- FifoThroughput stringLimit 
- 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 perQueueandperMessageGroupId. To enable high throughput for a FIFO queue, set this attribute toperMessageGroupIdand set theDeduplicationScopeattribute tomessageGroup. 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.
- KmsData intKey Reuse Period Seconds 
- 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.
- KmsMaster stringKey Id 
- 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 (for example alias/aws/sqs), key ARN, or key ID. For more information, see the following:- Encryption at rest in the Developer Guide
- CreateQueue in the API Reference
- Request Parameters in the Key Management Service API Reference
- The Key Management Service (KMS) section of the Security best practices for Key Management Service in the Key Management Service Developer Guide
 
- MaximumMessage intSize 
- The limit of how many bytes that a message can contain before SQS rejects it. You can specify an integer value from 1,024bytes (1 KiB) to262,144bytes (256 KiB). The default value is262,144(256 KiB).
- MessageRetention intPeriod 
- The number of seconds that SQS retains a message. You can specify an integer value from 60seconds (1 minute) to1,209,600seconds (14 days). The default value is345,600seconds (4 days).
- QueueUrl string
- Returns the URLs of the queues from the policy.
- ReceiveMessage intWait Time Seconds 
- 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.
- RedriveAllow objectPolicy 
- 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: - redrivePermission: The permission type that defines which source queues can specify the current queue as the dead-letter queue. Valid values are:
- allowAll: (Default) Any source queues in this AWS account in the same Region can specify this queue as the dead-letter queue.
- denyAll: No source queues can specify this queue as the dead-letter queue.
- byQueue: Only queues specified by the- sourceQueueArnsparameter can specify this queue as the dead-letter queue.
- sourceQueueArns: The Amazon Resource Names (ARN)s of the source queues that can specify this queue as the dead-letter queue and redrive messages. You can specify this parameter only when the- redrivePermissionparameter is set to- byQueue. You can specify up to 10 source queue ARNs. To allow more than 10 source queues to specify dead-letter queues, set the- redrivePermissionparameter to- allowAll.
 - Search the CloudFormation User Guide for - AWS::SQS::Queuefor more information about the expected schema for this property.
- RedrivePolicy object
- 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: - deadLetterTargetArn: The Amazon Resource Name (ARN) of the dead-letter queue to which SQS moves messages after the value of- maxReceiveCountis exceeded.
- maxReceiveCount: The number of times a message is received by a consumer of the source queue before being moved to the dead-letter queue. When the- ReceiveCountfor a message exceeds the- maxReceiveCountfor a queue, SQS moves the message to the dead-letter-queue.
 - The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter queue of a standard queue must also be a standard queue. JSON - { "deadLetterTargetArn" : String, "maxReceiveCount" : Integer }YAML- deadLetterTargetArn : String- maxReceiveCount : Integer- Search the CloudFormation User Guide for - AWS::SQS::Queuefor more information about the expected schema for this property.
- SqsManaged boolSse Enabled 
- 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 SqsManagedSseEnabledis not defined,SSE-SQSencryption is enabled by default.
- 
List<Pulumi.Aws Native. Outputs. Tag> 
- The tags that you attach to this queue. For more information, see Resource tag in the User Guide.
- VisibilityTimeout int
- 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.
- Arn string
- Returns the Amazon Resource Name (ARN) of the queue. For example: arn:aws:sqs:us-east-2:123456789012:mystack-myqueue-15PG5C2FC1CW8.
- ContentBased boolDeduplication 
- 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 ContentBasedDeduplicationattribute for theCreateQueueaction in the API Reference.
- DeduplicationScope string
- For high throughput for FIFO queues, specifies whether message deduplication occurs at the message group or queue level. Valid values are messageGroupandqueue. To enable high throughput for a FIFO queue, set this attribute tomessageGroupand set theFifoThroughputLimitattribute toperMessageGroupId. 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.
- DelaySeconds int
- The time in seconds for which the delivery of all messages in the queue is delayed. You can specify an integer value of 0to900(15 minutes). The default value is0.
- FifoThroughput stringLimit 
- 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 perQueueandperMessageGroupId. To enable high throughput for a FIFO queue, set this attribute toperMessageGroupIdand set theDeduplicationScopeattribute tomessageGroup. 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.
- KmsData intKey Reuse Period Seconds 
- 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.
- KmsMaster stringKey Id 
- 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 (for example alias/aws/sqs), key ARN, or key ID. For more information, see the following:- Encryption at rest in the Developer Guide
- CreateQueue in the API Reference
- Request Parameters in the Key Management Service API Reference
- The Key Management Service (KMS) section of the Security best practices for Key Management Service in the Key Management Service Developer Guide
 
- MaximumMessage intSize 
- The limit of how many bytes that a message can contain before SQS rejects it. You can specify an integer value from 1,024bytes (1 KiB) to262,144bytes (256 KiB). The default value is262,144(256 KiB).
- MessageRetention intPeriod 
- The number of seconds that SQS retains a message. You can specify an integer value from 60seconds (1 minute) to1,209,600seconds (14 days). The default value is345,600seconds (4 days).
- QueueUrl string
- Returns the URLs of the queues from the policy.
- ReceiveMessage intWait Time Seconds 
- 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.
- RedriveAllow interface{}Policy 
- 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: - redrivePermission: The permission type that defines which source queues can specify the current queue as the dead-letter queue. Valid values are:
- allowAll: (Default) Any source queues in this AWS account in the same Region can specify this queue as the dead-letter queue.
- denyAll: No source queues can specify this queue as the dead-letter queue.
- byQueue: Only queues specified by the- sourceQueueArnsparameter can specify this queue as the dead-letter queue.
- sourceQueueArns: The Amazon Resource Names (ARN)s of the source queues that can specify this queue as the dead-letter queue and redrive messages. You can specify this parameter only when the- redrivePermissionparameter is set to- byQueue. You can specify up to 10 source queue ARNs. To allow more than 10 source queues to specify dead-letter queues, set the- redrivePermissionparameter to- allowAll.
 - Search the CloudFormation User Guide for - AWS::SQS::Queuefor more information about the expected schema for this property.
- RedrivePolicy interface{}
- 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: - deadLetterTargetArn: The Amazon Resource Name (ARN) of the dead-letter queue to which SQS moves messages after the value of- maxReceiveCountis exceeded.
- maxReceiveCount: The number of times a message is received by a consumer of the source queue before being moved to the dead-letter queue. When the- ReceiveCountfor a message exceeds the- maxReceiveCountfor a queue, SQS moves the message to the dead-letter-queue.
 - The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter queue of a standard queue must also be a standard queue. JSON - { "deadLetterTargetArn" : String, "maxReceiveCount" : Integer }YAML- deadLetterTargetArn : String- maxReceiveCount : Integer- Search the CloudFormation User Guide for - AWS::SQS::Queuefor more information about the expected schema for this property.
- SqsManaged boolSse Enabled 
- 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 SqsManagedSseEnabledis not defined,SSE-SQSencryption is enabled by default.
- Tag
- The tags that you attach to this queue. For more information, see Resource tag in the User Guide.
- VisibilityTimeout int
- 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.
- arn String
- Returns the Amazon Resource Name (ARN) of the queue. For example: arn:aws:sqs:us-east-2:123456789012:mystack-myqueue-15PG5C2FC1CW8.
- contentBased BooleanDeduplication 
- 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 ContentBasedDeduplicationattribute for theCreateQueueaction in the API Reference.
- deduplicationScope String
- For high throughput for FIFO queues, specifies whether message deduplication occurs at the message group or queue level. Valid values are messageGroupandqueue. To enable high throughput for a FIFO queue, set this attribute tomessageGroupand set theFifoThroughputLimitattribute toperMessageGroupId. 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.
- delaySeconds Integer
- The time in seconds for which the delivery of all messages in the queue is delayed. You can specify an integer value of 0to900(15 minutes). The default value is0.
- fifoThroughput StringLimit 
- 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 perQueueandperMessageGroupId. To enable high throughput for a FIFO queue, set this attribute toperMessageGroupIdand set theDeduplicationScopeattribute tomessageGroup. 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.
- kmsData IntegerKey Reuse Period Seconds 
- 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.
- kmsMaster StringKey Id 
- 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 (for example alias/aws/sqs), key ARN, or key ID. For more information, see the following:- Encryption at rest in the Developer Guide
- CreateQueue in the API Reference
- Request Parameters in the Key Management Service API Reference
- The Key Management Service (KMS) section of the Security best practices for Key Management Service in the Key Management Service Developer Guide
 
- maximumMessage IntegerSize 
- The limit of how many bytes that a message can contain before SQS rejects it. You can specify an integer value from 1,024bytes (1 KiB) to262,144bytes (256 KiB). The default value is262,144(256 KiB).
- messageRetention IntegerPeriod 
- The number of seconds that SQS retains a message. You can specify an integer value from 60seconds (1 minute) to1,209,600seconds (14 days). The default value is345,600seconds (4 days).
- queueUrl String
- Returns the URLs of the queues from the policy.
- receiveMessage IntegerWait Time Seconds 
- 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.
- redriveAllow ObjectPolicy 
- 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: - redrivePermission: The permission type that defines which source queues can specify the current queue as the dead-letter queue. Valid values are:
- allowAll: (Default) Any source queues in this AWS account in the same Region can specify this queue as the dead-letter queue.
- denyAll: No source queues can specify this queue as the dead-letter queue.
- byQueue: Only queues specified by the- sourceQueueArnsparameter can specify this queue as the dead-letter queue.
- sourceQueueArns: The Amazon Resource Names (ARN)s of the source queues that can specify this queue as the dead-letter queue and redrive messages. You can specify this parameter only when the- redrivePermissionparameter is set to- byQueue. You can specify up to 10 source queue ARNs. To allow more than 10 source queues to specify dead-letter queues, set the- redrivePermissionparameter to- allowAll.
 - Search the CloudFormation User Guide for - AWS::SQS::Queuefor more information about the expected schema for this property.
- redrivePolicy Object
- 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: - deadLetterTargetArn: The Amazon Resource Name (ARN) of the dead-letter queue to which SQS moves messages after the value of- maxReceiveCountis exceeded.
- maxReceiveCount: The number of times a message is received by a consumer of the source queue before being moved to the dead-letter queue. When the- ReceiveCountfor a message exceeds the- maxReceiveCountfor a queue, SQS moves the message to the dead-letter-queue.
 - The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter queue of a standard queue must also be a standard queue. JSON - { "deadLetterTargetArn" : String, "maxReceiveCount" : Integer }YAML- deadLetterTargetArn : String- maxReceiveCount : Integer- Search the CloudFormation User Guide for - AWS::SQS::Queuefor more information about the expected schema for this property.
- sqsManaged BooleanSse Enabled 
- 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 SqsManagedSseEnabledis not defined,SSE-SQSencryption is enabled by default.
- List<Tag>
- The tags that you attach to this queue. For more information, see Resource tag in the User Guide.
- visibilityTimeout Integer
- 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.
- arn string
- Returns the Amazon Resource Name (ARN) of the queue. For example: arn:aws:sqs:us-east-2:123456789012:mystack-myqueue-15PG5C2FC1CW8.
- contentBased booleanDeduplication 
- 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 ContentBasedDeduplicationattribute for theCreateQueueaction in the API Reference.
- deduplicationScope string
- For high throughput for FIFO queues, specifies whether message deduplication occurs at the message group or queue level. Valid values are messageGroupandqueue. To enable high throughput for a FIFO queue, set this attribute tomessageGroupand set theFifoThroughputLimitattribute toperMessageGroupId. 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.
- delaySeconds number
- The time in seconds for which the delivery of all messages in the queue is delayed. You can specify an integer value of 0to900(15 minutes). The default value is0.
- fifoThroughput stringLimit 
- 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 perQueueandperMessageGroupId. To enable high throughput for a FIFO queue, set this attribute toperMessageGroupIdand set theDeduplicationScopeattribute tomessageGroup. 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.
- kmsData numberKey Reuse Period Seconds 
- 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.
- kmsMaster stringKey Id 
- 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 (for example alias/aws/sqs), key ARN, or key ID. For more information, see the following:- Encryption at rest in the Developer Guide
- CreateQueue in the API Reference
- Request Parameters in the Key Management Service API Reference
- The Key Management Service (KMS) section of the Security best practices for Key Management Service in the Key Management Service Developer Guide
 
- maximumMessage numberSize 
- The limit of how many bytes that a message can contain before SQS rejects it. You can specify an integer value from 1,024bytes (1 KiB) to262,144bytes (256 KiB). The default value is262,144(256 KiB).
- messageRetention numberPeriod 
- The number of seconds that SQS retains a message. You can specify an integer value from 60seconds (1 minute) to1,209,600seconds (14 days). The default value is345,600seconds (4 days).
- queueUrl string
- Returns the URLs of the queues from the policy.
- receiveMessage numberWait Time Seconds 
- 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.
- redriveAllow anyPolicy 
- 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: - redrivePermission: The permission type that defines which source queues can specify the current queue as the dead-letter queue. Valid values are:
- allowAll: (Default) Any source queues in this AWS account in the same Region can specify this queue as the dead-letter queue.
- denyAll: No source queues can specify this queue as the dead-letter queue.
- byQueue: Only queues specified by the- sourceQueueArnsparameter can specify this queue as the dead-letter queue.
- sourceQueueArns: The Amazon Resource Names (ARN)s of the source queues that can specify this queue as the dead-letter queue and redrive messages. You can specify this parameter only when the- redrivePermissionparameter is set to- byQueue. You can specify up to 10 source queue ARNs. To allow more than 10 source queues to specify dead-letter queues, set the- redrivePermissionparameter to- allowAll.
 - Search the CloudFormation User Guide for - AWS::SQS::Queuefor more information about the expected schema for this property.
- redrivePolicy any
- 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: - deadLetterTargetArn: The Amazon Resource Name (ARN) of the dead-letter queue to which SQS moves messages after the value of- maxReceiveCountis exceeded.
- maxReceiveCount: The number of times a message is received by a consumer of the source queue before being moved to the dead-letter queue. When the- ReceiveCountfor a message exceeds the- maxReceiveCountfor a queue, SQS moves the message to the dead-letter-queue.
 - The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter queue of a standard queue must also be a standard queue. JSON - { "deadLetterTargetArn" : String, "maxReceiveCount" : Integer }YAML- deadLetterTargetArn : String- maxReceiveCount : Integer- Search the CloudFormation User Guide for - AWS::SQS::Queuefor more information about the expected schema for this property.
- sqsManaged booleanSse Enabled 
- 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 SqsManagedSseEnabledis not defined,SSE-SQSencryption is enabled by default.
- Tag[]
- The tags that you attach to this queue. For more information, see Resource tag in the User Guide.
- visibilityTimeout number
- 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.
- arn str
- Returns the Amazon Resource Name (ARN) of the queue. For example: arn:aws:sqs:us-east-2:123456789012:mystack-myqueue-15PG5C2FC1CW8.
- content_based_ booldeduplication 
- 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 ContentBasedDeduplicationattribute for theCreateQueueaction in the API Reference.
- deduplication_scope str
- For high throughput for FIFO queues, specifies whether message deduplication occurs at the message group or queue level. Valid values are messageGroupandqueue. To enable high throughput for a FIFO queue, set this attribute tomessageGroupand set theFifoThroughputLimitattribute toperMessageGroupId. 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.
- delay_seconds int
- The time in seconds for which the delivery of all messages in the queue is delayed. You can specify an integer value of 0to900(15 minutes). The default value is0.
- fifo_throughput_ strlimit 
- 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 perQueueandperMessageGroupId. To enable high throughput for a FIFO queue, set this attribute toperMessageGroupIdand set theDeduplicationScopeattribute tomessageGroup. 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.
- kms_data_ intkey_ reuse_ period_ seconds 
- 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.
- kms_master_ strkey_ id 
- 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 (for example alias/aws/sqs), key ARN, or key ID. For more information, see the following:- Encryption at rest in the Developer Guide
- CreateQueue in the API Reference
- Request Parameters in the Key Management Service API Reference
- The Key Management Service (KMS) section of the Security best practices for Key Management Service in the Key Management Service Developer Guide
 
- maximum_message_ intsize 
- The limit of how many bytes that a message can contain before SQS rejects it. You can specify an integer value from 1,024bytes (1 KiB) to262,144bytes (256 KiB). The default value is262,144(256 KiB).
- message_retention_ intperiod 
- The number of seconds that SQS retains a message. You can specify an integer value from 60seconds (1 minute) to1,209,600seconds (14 days). The default value is345,600seconds (4 days).
- queue_url str
- Returns the URLs of the queues from the policy.
- receive_message_ intwait_ time_ seconds 
- 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.
- redrive_allow_ Anypolicy 
- 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: - redrivePermission: The permission type that defines which source queues can specify the current queue as the dead-letter queue. Valid values are:
- allowAll: (Default) Any source queues in this AWS account in the same Region can specify this queue as the dead-letter queue.
- denyAll: No source queues can specify this queue as the dead-letter queue.
- byQueue: Only queues specified by the- sourceQueueArnsparameter can specify this queue as the dead-letter queue.
- sourceQueueArns: The Amazon Resource Names (ARN)s of the source queues that can specify this queue as the dead-letter queue and redrive messages. You can specify this parameter only when the- redrivePermissionparameter is set to- byQueue. You can specify up to 10 source queue ARNs. To allow more than 10 source queues to specify dead-letter queues, set the- redrivePermissionparameter to- allowAll.
 - Search the CloudFormation User Guide for - AWS::SQS::Queuefor more information about the expected schema for this property.
- redrive_policy Any
- 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: - deadLetterTargetArn: The Amazon Resource Name (ARN) of the dead-letter queue to which SQS moves messages after the value of- maxReceiveCountis exceeded.
- maxReceiveCount: The number of times a message is received by a consumer of the source queue before being moved to the dead-letter queue. When the- ReceiveCountfor a message exceeds the- maxReceiveCountfor a queue, SQS moves the message to the dead-letter-queue.
 - The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter queue of a standard queue must also be a standard queue. JSON - { "deadLetterTargetArn" : String, "maxReceiveCount" : Integer }YAML- deadLetterTargetArn : String- maxReceiveCount : Integer- Search the CloudFormation User Guide for - AWS::SQS::Queuefor more information about the expected schema for this property.
- sqs_managed_ boolsse_ enabled 
- 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 SqsManagedSseEnabledis not defined,SSE-SQSencryption is enabled by default.
- Sequence[root_Tag]
- The tags that you attach to this queue. For more information, see Resource tag in the User Guide.
- visibility_timeout int
- 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.
- arn String
- Returns the Amazon Resource Name (ARN) of the queue. For example: arn:aws:sqs:us-east-2:123456789012:mystack-myqueue-15PG5C2FC1CW8.
- contentBased BooleanDeduplication 
- 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 ContentBasedDeduplicationattribute for theCreateQueueaction in the API Reference.
- deduplicationScope String
- For high throughput for FIFO queues, specifies whether message deduplication occurs at the message group or queue level. Valid values are messageGroupandqueue. To enable high throughput for a FIFO queue, set this attribute tomessageGroupand set theFifoThroughputLimitattribute toperMessageGroupId. 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.
- delaySeconds Number
- The time in seconds for which the delivery of all messages in the queue is delayed. You can specify an integer value of 0to900(15 minutes). The default value is0.
- fifoThroughput StringLimit 
- 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 perQueueandperMessageGroupId. To enable high throughput for a FIFO queue, set this attribute toperMessageGroupIdand set theDeduplicationScopeattribute tomessageGroup. 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.
- kmsData NumberKey Reuse Period Seconds 
- 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.
- kmsMaster StringKey Id 
- 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 (for example alias/aws/sqs), key ARN, or key ID. For more information, see the following:- Encryption at rest in the Developer Guide
- CreateQueue in the API Reference
- Request Parameters in the Key Management Service API Reference
- The Key Management Service (KMS) section of the Security best practices for Key Management Service in the Key Management Service Developer Guide
 
- maximumMessage NumberSize 
- The limit of how many bytes that a message can contain before SQS rejects it. You can specify an integer value from 1,024bytes (1 KiB) to262,144bytes (256 KiB). The default value is262,144(256 KiB).
- messageRetention NumberPeriod 
- The number of seconds that SQS retains a message. You can specify an integer value from 60seconds (1 minute) to1,209,600seconds (14 days). The default value is345,600seconds (4 days).
- queueUrl String
- Returns the URLs of the queues from the policy.
- receiveMessage NumberWait Time Seconds 
- 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.
- redriveAllow AnyPolicy 
- 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: - redrivePermission: The permission type that defines which source queues can specify the current queue as the dead-letter queue. Valid values are:
- allowAll: (Default) Any source queues in this AWS account in the same Region can specify this queue as the dead-letter queue.
- denyAll: No source queues can specify this queue as the dead-letter queue.
- byQueue: Only queues specified by the- sourceQueueArnsparameter can specify this queue as the dead-letter queue.
- sourceQueueArns: The Amazon Resource Names (ARN)s of the source queues that can specify this queue as the dead-letter queue and redrive messages. You can specify this parameter only when the- redrivePermissionparameter is set to- byQueue. You can specify up to 10 source queue ARNs. To allow more than 10 source queues to specify dead-letter queues, set the- redrivePermissionparameter to- allowAll.
 - Search the CloudFormation User Guide for - AWS::SQS::Queuefor more information about the expected schema for this property.
- redrivePolicy Any
- 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: - deadLetterTargetArn: The Amazon Resource Name (ARN) of the dead-letter queue to which SQS moves messages after the value of- maxReceiveCountis exceeded.
- maxReceiveCount: The number of times a message is received by a consumer of the source queue before being moved to the dead-letter queue. When the- ReceiveCountfor a message exceeds the- maxReceiveCountfor a queue, SQS moves the message to the dead-letter-queue.
 - The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter queue of a standard queue must also be a standard queue. JSON - { "deadLetterTargetArn" : String, "maxReceiveCount" : Integer }YAML- deadLetterTargetArn : String- maxReceiveCount : Integer- Search the CloudFormation User Guide for - AWS::SQS::Queuefor more information about the expected schema for this property.
- sqsManaged BooleanSse Enabled 
- 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 SqsManagedSseEnabledis not defined,SSE-SQSencryption is enabled by default.
- List<Property Map>
- The tags that you attach to this queue. For more information, see Resource tag in the User Guide.
- visibilityTimeout Number
- 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.
Supporting Types
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.