Queue
FIFO queue
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const queue = new aws.sqs.Queue("queue", {
contentBasedDeduplication: true,
fifoQueue: true,
});
import pulumi
import pulumi_aws as aws
queue = aws.sqs.Queue("queue",
content_based_deduplication=True,
fifo_queue=True)
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var queue = new Aws.Sqs.Queue("queue", new Aws.Sqs.QueueArgs
{
ContentBasedDeduplication = true,
FifoQueue = true,
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/sqs"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sqs.NewQueue(ctx, "queue", &sqs.QueueArgs{
ContentBasedDeduplication: pulumi.Bool(true),
FifoQueue: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
Server-side encryption (SSE)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const queue = new aws.sqs.Queue("queue", {
kmsDataKeyReusePeriodSeconds: 300,
kmsMasterKeyId: "alias/aws/sqs",
});
import pulumi
import pulumi_aws as aws
queue = aws.sqs.Queue("queue",
kms_data_key_reuse_period_seconds=300,
kms_master_key_id="alias/aws/sqs")
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var queue = new Aws.Sqs.Queue("queue", new Aws.Sqs.QueueArgs
{
KmsDataKeyReusePeriodSeconds = 300,
KmsMasterKeyId = "alias/aws/sqs",
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/sqs"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sqs.NewQueue(ctx, "queue", &sqs.QueueArgs{
KmsDataKeyReusePeriodSeconds: pulumi.Int(300),
KmsMasterKeyId: pulumi.String("alias/aws/sqs"),
})
if err != nil {
return err
}
return nil
})
}
Example Usage
using System.Collections.Generic;
using System.Text.Json;
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var queue = new Aws.Sqs.Queue("queue", new Aws.Sqs.QueueArgs
{
DelaySeconds = 90,
MaxMessageSize = 2048,
MessageRetentionSeconds = 86400,
ReceiveWaitTimeSeconds = 10,
RedrivePolicy = JsonSerializer.Serialize(new Dictionary<string, object?>
{
{ "deadLetterTargetArn", aws_sqs_queue.Queue_deadletter.Arn },
{ "maxReceiveCount", 4 },
}),
Tags =
{
{ "Environment", "production" },
},
});
}
}
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/sqs"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tmpJSON0, err := json.Marshal(map[string]interface{}{
"deadLetterTargetArn": aws_sqs_queue.Queue_deadletter.Arn,
"maxReceiveCount": 4,
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
_, err := sqs.NewQueue(ctx, "queue", &sqs.QueueArgs{
DelaySeconds: pulumi.Int(90),
MaxMessageSize: pulumi.Int(2048),
MessageRetentionSeconds: pulumi.Int(86400),
ReceiveWaitTimeSeconds: pulumi.Int(10),
RedrivePolicy: pulumi.String(json0),
Tags: pulumi.StringMap{
"Environment": pulumi.String("production"),
},
})
if err != nil {
return err
}
return nil
})
}
import pulumi
import json
import pulumi_aws as aws
queue = aws.sqs.Queue("queue",
delay_seconds=90,
max_message_size=2048,
message_retention_seconds=86400,
receive_wait_time_seconds=10,
redrive_policy=json.dumps({
"deadLetterTargetArn": aws_sqs_queue["queue_deadletter"]["arn"],
"maxReceiveCount": 4,
}),
tags={
"Environment": "production",
})
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const queue = new aws.sqs.Queue("queue", {
delaySeconds: 90,
maxMessageSize: 2048,
messageRetentionSeconds: 86400,
receiveWaitTimeSeconds: 10,
redrivePolicy: JSON.stringify({
deadLetterTargetArn: aws_sqs_queue.queue_deadletter.arn,
maxReceiveCount: 4,
}),
tags: {
Environment: "production",
},
});
Create a Queue Resource
new Queue(name: string, args?: QueueArgs, opts?: CustomResourceOptions);
def Queue(resource_name: str, opts: Optional[ResourceOptions] = None, content_based_deduplication: Optional[bool] = None, delay_seconds: Optional[int] = None, fifo_queue: Optional[bool] = None, kms_data_key_reuse_period_seconds: Optional[int] = None, kms_master_key_id: Optional[str] = None, max_message_size: Optional[int] = None, message_retention_seconds: Optional[int] = None, name: Optional[str] = None, name_prefix: Optional[str] = None, policy: Optional[str] = None, receive_wait_time_seconds: Optional[int] = None, redrive_policy: Optional[str] = None, tags: Optional[Mapping[str, str]] = None, visibility_timeout_seconds: Optional[int] = None)
func NewQueue(ctx *Context, name string, args *QueueArgs, opts ...ResourceOption) (*Queue, error)
public Queue(string name, QueueArgs? args = null, CustomResourceOptions? opts = null)
- name string
- The unique name of the resource.
- args QueueArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args QueueArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args QueueArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Queue Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Queue resource accepts the following input properties:
- Content
Based boolDeduplication Enables content-based deduplication for FIFO queues. For more information, see the related documentation
- Delay
Seconds int The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 seconds.
- Fifo
Queue bool Boolean designating a FIFO queue. If not set, it defaults to
false
making it standard.- Kms
Data intKey Reuse Period Seconds The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes).
- Kms
Master stringKey Id The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms.
- Max
Message intSize The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB).
- Message
Retention intSeconds The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).
- Name string
This is the human-readable name of the queue. If omitted, this provider will assign a random name.
- Name
Prefix string Creates a unique name beginning with the specified prefix. Conflicts with
name
.- Policy string
The JSON policy for the SQS queue.
- Receive
Wait intTime Seconds The time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds). The default for this attribute is 0, meaning that the call will return immediately.
- Redrive
Policy string The JSON policy to set up the Dead Letter Queue, see AWS docs. Note: when specifying
maxReceiveCount
, you must specify it as an integer (5
), and not a string ("5"
).- Dictionary<string, string>
A map of tags to assign to the queue.
- Visibility
Timeout intSeconds The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see AWS docs.
- Content
Based boolDeduplication Enables content-based deduplication for FIFO queues. For more information, see the related documentation
- Delay
Seconds int The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 seconds.
- Fifo
Queue bool Boolean designating a FIFO queue. If not set, it defaults to
false
making it standard.- Kms
Data intKey Reuse Period Seconds The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes).
- Kms
Master stringKey Id The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms.
- Max
Message intSize The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB).
- Message
Retention intSeconds The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).
- Name string
This is the human-readable name of the queue. If omitted, this provider will assign a random name.
- Name
Prefix string Creates a unique name beginning with the specified prefix. Conflicts with
name
.- Policy string
The JSON policy for the SQS queue.
- Receive
Wait intTime Seconds The time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds). The default for this attribute is 0, meaning that the call will return immediately.
- Redrive
Policy string The JSON policy to set up the Dead Letter Queue, see AWS docs. Note: when specifying
maxReceiveCount
, you must specify it as an integer (5
), and not a string ("5"
).- map[string]string
A map of tags to assign to the queue.
- Visibility
Timeout intSeconds The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see AWS docs.
- content
Based booleanDeduplication Enables content-based deduplication for FIFO queues. For more information, see the related documentation
- delay
Seconds number The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 seconds.
- fifo
Queue boolean Boolean designating a FIFO queue. If not set, it defaults to
false
making it standard.- kms
Data numberKey Reuse Period Seconds The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes).
- kms
Master stringKey Id The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms.
- max
Message numberSize The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB).
- message
Retention numberSeconds The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).
- name string
This is the human-readable name of the queue. If omitted, this provider will assign a random name.
- name
Prefix string Creates a unique name beginning with the specified prefix. Conflicts with
name
.- policy string
The JSON policy for the SQS queue.
- receive
Wait numberTime Seconds The time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds). The default for this attribute is 0, meaning that the call will return immediately.
- redrive
Policy string The JSON policy to set up the Dead Letter Queue, see AWS docs. Note: when specifying
maxReceiveCount
, you must specify it as an integer (5
), and not a string ("5"
).- {[key: string]: string}
A map of tags to assign to the queue.
- visibility
Timeout numberSeconds The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see AWS docs.
- content_
based_ booldeduplication Enables content-based deduplication for FIFO queues. For more information, see the related documentation
- delay_
seconds int The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 seconds.
- fifo_
queue bool Boolean designating a FIFO queue. If not set, it defaults to
false
making it standard.- kms_
data_ intkey_ reuse_ period_ seconds The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes).
- kms_
master_ strkey_ id The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms.
- max_
message_ intsize The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB).
- message_
retention_ intseconds The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).
- name str
This is the human-readable name of the queue. If omitted, this provider will assign a random name.
- name_
prefix str Creates a unique name beginning with the specified prefix. Conflicts with
name
.- policy str
The JSON policy for the SQS queue.
- receive_
wait_ inttime_ seconds The time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds). The default for this attribute is 0, meaning that the call will return immediately.
- redrive_
policy str The JSON policy to set up the Dead Letter Queue, see AWS docs. Note: when specifying
maxReceiveCount
, you must specify it as an integer (5
), and not a string ("5"
).- Mapping[str, str]
A map of tags to assign to the queue.
- visibility_
timeout_ intseconds The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see AWS docs.
Outputs
All input properties are implicitly available as output properties. Additionally, the Queue resource produces the following output properties:
Look up an Existing Queue Resource
Get an existing Queue resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: QueueState, opts?: CustomResourceOptions): Queue
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, arn: Optional[str] = None, content_based_deduplication: Optional[bool] = None, delay_seconds: Optional[int] = None, fifo_queue: Optional[bool] = None, kms_data_key_reuse_period_seconds: Optional[int] = None, kms_master_key_id: Optional[str] = None, max_message_size: Optional[int] = None, message_retention_seconds: Optional[int] = None, name: Optional[str] = None, name_prefix: Optional[str] = None, policy: Optional[str] = None, receive_wait_time_seconds: Optional[int] = None, redrive_policy: Optional[str] = None, tags: Optional[Mapping[str, str]] = None, visibility_timeout_seconds: Optional[int] = None) -> Queue
func GetQueue(ctx *Context, name string, id IDInput, state *QueueState, opts ...ResourceOption) (*Queue, error)
public static Queue Get(string name, Input<string> id, QueueState? state, CustomResourceOptions? opts = null)
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Arn string
The ARN of the SQS queue
- Content
Based boolDeduplication Enables content-based deduplication for FIFO queues. For more information, see the related documentation
- Delay
Seconds int The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 seconds.
- Fifo
Queue bool Boolean designating a FIFO queue. If not set, it defaults to
false
making it standard.- Kms
Data intKey Reuse Period Seconds The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes).
- Kms
Master stringKey Id The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms.
- Max
Message intSize The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB).
- Message
Retention intSeconds The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).
- Name string
This is the human-readable name of the queue. If omitted, this provider will assign a random name.
- Name
Prefix string Creates a unique name beginning with the specified prefix. Conflicts with
name
.- Policy string
The JSON policy for the SQS queue.
- Receive
Wait intTime Seconds The time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds). The default for this attribute is 0, meaning that the call will return immediately.
- Redrive
Policy string The JSON policy to set up the Dead Letter Queue, see AWS docs. Note: when specifying
maxReceiveCount
, you must specify it as an integer (5
), and not a string ("5"
).- Dictionary<string, string>
A map of tags to assign to the queue.
- Visibility
Timeout intSeconds The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see AWS docs.
- Arn string
The ARN of the SQS queue
- Content
Based boolDeduplication Enables content-based deduplication for FIFO queues. For more information, see the related documentation
- Delay
Seconds int The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 seconds.
- Fifo
Queue bool Boolean designating a FIFO queue. If not set, it defaults to
false
making it standard.- Kms
Data intKey Reuse Period Seconds The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes).
- Kms
Master stringKey Id The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms.
- Max
Message intSize The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB).
- Message
Retention intSeconds The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).
- Name string
This is the human-readable name of the queue. If omitted, this provider will assign a random name.
- Name
Prefix string Creates a unique name beginning with the specified prefix. Conflicts with
name
.- Policy string
The JSON policy for the SQS queue.
- Receive
Wait intTime Seconds The time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds). The default for this attribute is 0, meaning that the call will return immediately.
- Redrive
Policy string The JSON policy to set up the Dead Letter Queue, see AWS docs. Note: when specifying
maxReceiveCount
, you must specify it as an integer (5
), and not a string ("5"
).- map[string]string
A map of tags to assign to the queue.
- Visibility
Timeout intSeconds The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see AWS docs.
- arn string
The ARN of the SQS queue
- content
Based booleanDeduplication Enables content-based deduplication for FIFO queues. For more information, see the related documentation
- delay
Seconds number The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 seconds.
- fifo
Queue boolean Boolean designating a FIFO queue. If not set, it defaults to
false
making it standard.- kms
Data numberKey Reuse Period Seconds The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes).
- kms
Master stringKey Id The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms.
- max
Message numberSize The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB).
- message
Retention numberSeconds The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).
- name string
This is the human-readable name of the queue. If omitted, this provider will assign a random name.
- name
Prefix string Creates a unique name beginning with the specified prefix. Conflicts with
name
.- policy string
The JSON policy for the SQS queue.
- receive
Wait numberTime Seconds The time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds). The default for this attribute is 0, meaning that the call will return immediately.
- redrive
Policy string The JSON policy to set up the Dead Letter Queue, see AWS docs. Note: when specifying
maxReceiveCount
, you must specify it as an integer (5
), and not a string ("5"
).- {[key: string]: string}
A map of tags to assign to the queue.
- visibility
Timeout numberSeconds The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see AWS docs.
- arn str
The ARN of the SQS queue
- content_
based_ booldeduplication Enables content-based deduplication for FIFO queues. For more information, see the related documentation
- delay_
seconds int The time in seconds that the delivery of all messages in the queue will be delayed. An integer from 0 to 900 (15 minutes). The default for this attribute is 0 seconds.
- fifo_
queue bool Boolean designating a FIFO queue. If not set, it defaults to
false
making it standard.- kms_
data_ intkey_ reuse_ period_ seconds The length of time, in seconds, for which Amazon SQS can reuse a data key to encrypt or decrypt messages before calling AWS KMS again. An integer representing seconds, between 60 seconds (1 minute) and 86,400 seconds (24 hours). The default is 300 (5 minutes).
- kms_
master_ strkey_ id The ID of an AWS-managed customer master key (CMK) for Amazon SQS or a custom CMK. For more information, see Key Terms.
- max_
message_ intsize The limit of how many bytes a message can contain before Amazon SQS rejects it. An integer from 1024 bytes (1 KiB) up to 262144 bytes (256 KiB). The default for this attribute is 262144 (256 KiB).
- message_
retention_ intseconds The number of seconds Amazon SQS retains a message. Integer representing seconds, from 60 (1 minute) to 1209600 (14 days). The default for this attribute is 345600 (4 days).
- name str
This is the human-readable name of the queue. If omitted, this provider will assign a random name.
- name_
prefix str Creates a unique name beginning with the specified prefix. Conflicts with
name
.- policy str
The JSON policy for the SQS queue.
- receive_
wait_ inttime_ seconds The time for which a ReceiveMessage call will wait for a message to arrive (long polling) before returning. An integer from 0 to 20 (seconds). The default for this attribute is 0, meaning that the call will return immediately.
- redrive_
policy str The JSON policy to set up the Dead Letter Queue, see AWS docs. Note: when specifying
maxReceiveCount
, you must specify it as an integer (5
), and not a string ("5"
).- Mapping[str, str]
A map of tags to assign to the queue.
- visibility_
timeout_ intseconds The visibility timeout for the queue. An integer from 0 to 43200 (12 hours). The default for this attribute is 30. For more information about visibility timeout, see AWS docs.
Import
SQS Queues can be imported using the queue url
, e.g.
$ pulumi import aws:sqs/queue:Queue public_queue https://queue.amazonaws.com/80398EXAMPLE/MyQueue
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.