AWS Native is in preview. AWS Classic is fully supported.
aws-native.sqs.Queue
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
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
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var alarmEmail = config.Get("alarmEmail") ?? "jane.doe@example.com";
var myQueue = new AwsNative.Sqs.Queue("myQueue", new()
{
QueueName = "SampleQueue",
});
var alarmTopic = new AwsNative.Sns.Topic("alarmTopic", new()
{
Subscription = new[]
{
new AwsNative.Sns.Inputs.TopicSubscriptionArgs
{
Endpoint = alarmEmail,
Protocol = "email",
},
},
});
var queueDepthAlarm = new AwsNative.CloudWatch.Alarm("queueDepthAlarm", new()
{
AlarmDescription = "Alarm if queue depth increases to more than 10 messages",
Namespace = "AWS/SQS",
MetricName = "ApproximateNumberOfMessagesVisible",
Dimensions = new[]
{
new AwsNative.CloudWatch.Inputs.AlarmDimensionArgs
{
Name = "QueueName",
Value = myQueue.QueueName,
},
},
Statistic = "Sum",
Period = 300,
EvaluationPeriods = 1,
Threshold = 10,
ComparisonOperator = "GreaterThanThreshold",
AlarmActions = new[]
{
alarmTopic.Id,
},
InsufficientDataActions = new[]
{
alarmTopic.Id,
},
});
return new Dictionary<string, object?>
{
["queueURL"] = myQueue.Id,
["queueARN"] = myQueue.Arn,
["queueName"] = myQueue.QueueName,
};
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/cloudwatch"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/sns"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/sqs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
alarmEmail := "jane.doe@example.com"
if param := cfg.Get("alarmEmail"); param != "" {
alarmEmail = param
}
myQueue, err := sqs.NewQueue(ctx, "myQueue", &sqs.QueueArgs{
QueueName: pulumi.String("SampleQueue"),
})
if err != nil {
return err
}
alarmTopic, err := sns.NewTopic(ctx, "alarmTopic", &sns.TopicArgs{
Subscription: sns.TopicSubscriptionArray{
&sns.TopicSubscriptionArgs{
Endpoint: pulumi.String(alarmEmail),
Protocol: pulumi.String("email"),
},
},
})
if err != nil {
return err
}
_, err = cloudwatch.NewAlarm(ctx, "queueDepthAlarm", &cloudwatch.AlarmArgs{
AlarmDescription: pulumi.String("Alarm if queue depth increases to more than 10 messages"),
Namespace: pulumi.String("AWS/SQS"),
MetricName: pulumi.String("ApproximateNumberOfMessagesVisible"),
Dimensions: cloudwatch.AlarmDimensionArray{
&cloudwatch.AlarmDimensionArgs{
Name: pulumi.String("QueueName"),
Value: myQueue.QueueName,
},
},
Statistic: pulumi.String("Sum"),
Period: pulumi.Int(300),
EvaluationPeriods: pulumi.Int(1),
Threshold: pulumi.Float64(10),
ComparisonOperator: pulumi.String("GreaterThanThreshold"),
AlarmActions: pulumi.StringArray{
alarmTopic.ID(),
},
InsufficientDataActions: pulumi.StringArray{
alarmTopic.ID(),
},
})
if err != nil {
return err
}
ctx.Export("queueURL", myQueue.ID())
ctx.Export("queueARN", myQueue.Arn)
ctx.Export("queueName", myQueue.QueueName)
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
config = pulumi.Config()
alarm_email = config.get("alarmEmail")
if alarm_email is None:
alarm_email = "jane.doe@example.com"
my_queue = aws_native.sqs.Queue("myQueue", queue_name="SampleQueue")
alarm_topic = aws_native.sns.Topic("alarmTopic", subscription=[aws_native.sns.TopicSubscriptionArgs(
endpoint=alarm_email,
protocol="email",
)])
queue_depth_alarm = aws_native.cloudwatch.Alarm("queueDepthAlarm",
alarm_description="Alarm if queue depth increases to more than 10 messages",
namespace="AWS/SQS",
metric_name="ApproximateNumberOfMessagesVisible",
dimensions=[aws_native.cloudwatch.AlarmDimensionArgs(
name="QueueName",
value=my_queue.queue_name,
)],
statistic="Sum",
period=300,
evaluation_periods=1,
threshold=10,
comparison_operator="GreaterThanThreshold",
alarm_actions=[alarm_topic.id],
insufficient_data_actions=[alarm_topic.id])
pulumi.export("queueURL", my_queue.id)
pulumi.export("queueARN", my_queue.arn)
pulumi.export("queueName", my_queue.queue_name)
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const config = new pulumi.Config();
const alarmEmail = config.get("alarmEmail") || "jane.doe@example.com";
const myQueue = new aws_native.sqs.Queue("myQueue", {queueName: "SampleQueue"});
const alarmTopic = new aws_native.sns.Topic("alarmTopic", {subscription: [{
endpoint: alarmEmail,
protocol: "email",
}]});
const queueDepthAlarm = new aws_native.cloudwatch.Alarm("queueDepthAlarm", {
alarmDescription: "Alarm if queue depth increases to more than 10 messages",
namespace: "AWS/SQS",
metricName: "ApproximateNumberOfMessagesVisible",
dimensions: [{
name: "QueueName",
value: myQueue.queueName,
}],
statistic: "Sum",
period: 300,
evaluationPeriods: 1,
threshold: 10,
comparisonOperator: "GreaterThanThreshold",
alarmActions: [alarmTopic.id],
insufficientDataActions: [alarmTopic.id],
});
export const queueURL = myQueue.id;
export const queueARN = myQueue.arn;
export const queueName = myQueue.queueName;
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var alarmEmail = config.Get("alarmEmail") ?? "jane.doe@example.com";
var myQueue = new AwsNative.Sqs.Queue("myQueue", new()
{
QueueName = "SampleQueue",
});
var alarmTopic = new AwsNative.Sns.Topic("alarmTopic", new()
{
Subscription = new[]
{
new AwsNative.Sns.Inputs.TopicSubscriptionArgs
{
Endpoint = alarmEmail,
Protocol = "email",
},
},
});
var queueDepthAlarm = new AwsNative.CloudWatch.Alarm("queueDepthAlarm", new()
{
AlarmDescription = "Alarm if queue depth increases to more than 10 messages",
Namespace = "AWS/SQS",
MetricName = "ApproximateNumberOfMessagesVisible",
Dimensions = new[]
{
new AwsNative.CloudWatch.Inputs.AlarmDimensionArgs
{
Name = "QueueName",
Value = myQueue.QueueName,
},
},
Statistic = "Sum",
Period = 300,
EvaluationPeriods = 1,
Threshold = 10,
ComparisonOperator = "GreaterThanThreshold",
AlarmActions = new[]
{
alarmTopic.Id,
},
InsufficientDataActions = new[]
{
alarmTopic.Id,
},
});
return new Dictionary<string, object?>
{
["queueURL"] = myQueue.Id,
["queueARN"] = myQueue.Arn,
["queueName"] = myQueue.QueueName,
};
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/cloudwatch"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/sns"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/sqs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
alarmEmail := "jane.doe@example.com"
if param := cfg.Get("alarmEmail"); param != "" {
alarmEmail = param
}
myQueue, err := sqs.NewQueue(ctx, "myQueue", &sqs.QueueArgs{
QueueName: pulumi.String("SampleQueue"),
})
if err != nil {
return err
}
alarmTopic, err := sns.NewTopic(ctx, "alarmTopic", &sns.TopicArgs{
Subscription: sns.TopicSubscriptionArray{
&sns.TopicSubscriptionArgs{
Endpoint: pulumi.String(alarmEmail),
Protocol: pulumi.String("email"),
},
},
})
if err != nil {
return err
}
_, err = cloudwatch.NewAlarm(ctx, "queueDepthAlarm", &cloudwatch.AlarmArgs{
AlarmDescription: pulumi.String("Alarm if queue depth increases to more than 10 messages"),
Namespace: pulumi.String("AWS/SQS"),
MetricName: pulumi.String("ApproximateNumberOfMessagesVisible"),
Dimensions: cloudwatch.AlarmDimensionArray{
&cloudwatch.AlarmDimensionArgs{
Name: pulumi.String("QueueName"),
Value: myQueue.QueueName,
},
},
Statistic: pulumi.String("Sum"),
Period: pulumi.Int(300),
EvaluationPeriods: pulumi.Int(1),
Threshold: pulumi.Float64(10),
ComparisonOperator: pulumi.String("GreaterThanThreshold"),
AlarmActions: pulumi.StringArray{
alarmTopic.ID(),
},
InsufficientDataActions: pulumi.StringArray{
alarmTopic.ID(),
},
})
if err != nil {
return err
}
ctx.Export("queueURL", myQueue.ID())
ctx.Export("queueARN", myQueue.Arn)
ctx.Export("queueName", myQueue.QueueName)
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
config = pulumi.Config()
alarm_email = config.get("alarmEmail")
if alarm_email is None:
alarm_email = "jane.doe@example.com"
my_queue = aws_native.sqs.Queue("myQueue", queue_name="SampleQueue")
alarm_topic = aws_native.sns.Topic("alarmTopic", subscription=[aws_native.sns.TopicSubscriptionArgs(
endpoint=alarm_email,
protocol="email",
)])
queue_depth_alarm = aws_native.cloudwatch.Alarm("queueDepthAlarm",
alarm_description="Alarm if queue depth increases to more than 10 messages",
namespace="AWS/SQS",
metric_name="ApproximateNumberOfMessagesVisible",
dimensions=[aws_native.cloudwatch.AlarmDimensionArgs(
name="QueueName",
value=my_queue.queue_name,
)],
statistic="Sum",
period=300,
evaluation_periods=1,
threshold=10,
comparison_operator="GreaterThanThreshold",
alarm_actions=[alarm_topic.id],
insufficient_data_actions=[alarm_topic.id])
pulumi.export("queueURL", my_queue.id)
pulumi.export("queueARN", my_queue.arn)
pulumi.export("queueName", my_queue.queue_name)
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const config = new pulumi.Config();
const alarmEmail = config.get("alarmEmail") || "jane.doe@example.com";
const myQueue = new aws_native.sqs.Queue("myQueue", {queueName: "SampleQueue"});
const alarmTopic = new aws_native.sns.Topic("alarmTopic", {subscription: [{
endpoint: alarmEmail,
protocol: "email",
}]});
const queueDepthAlarm = new aws_native.cloudwatch.Alarm("queueDepthAlarm", {
alarmDescription: "Alarm if queue depth increases to more than 10 messages",
namespace: "AWS/SQS",
metricName: "ApproximateNumberOfMessagesVisible",
dimensions: [{
name: "QueueName",
value: myQueue.queueName,
}],
statistic: "Sum",
period: 300,
evaluationPeriods: 1,
threshold: 10,
comparisonOperator: "GreaterThanThreshold",
alarmActions: [alarmTopic.id],
insufficientDataActions: [alarmTopic.id],
});
export const queueURL = myQueue.id;
export const queueARN = myQueue.arn;
export const queueName = myQueue.queueName;
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var myDeadLetterQueue = new AwsNative.Sqs.Queue("myDeadLetterQueue");
var mySourceQueue = new AwsNative.Sqs.Queue("mySourceQueue", new()
{
RedrivePolicy = new Dictionary<string, object?>
{
["deadLetterTargetArn"] = myDeadLetterQueue.Arn,
["maxReceiveCount"] = 5,
},
});
return new Dictionary<string, object?>
{
["sourceQueueURL"] = mySourceQueue.Id,
["sourceQueueARN"] = mySourceQueue.Arn,
["deadLetterQueueURL"] = myDeadLetterQueue.Id,
["deadLetterQueueARN"] = myDeadLetterQueue.Arn,
};
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/sqs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
myDeadLetterQueue, err := sqs.NewQueue(ctx, "myDeadLetterQueue", nil)
if err != nil {
return err
}
mySourceQueue, err := sqs.NewQueue(ctx, "mySourceQueue", &sqs.QueueArgs{
RedrivePolicy: pulumi.Any(map[string]interface{}{
"deadLetterTargetArn": myDeadLetterQueue.Arn,
"maxReceiveCount": 5,
}),
})
if err != nil {
return err
}
ctx.Export("sourceQueueURL", mySourceQueue.ID())
ctx.Export("sourceQueueARN", mySourceQueue.Arn)
ctx.Export("deadLetterQueueURL", myDeadLetterQueue.ID())
ctx.Export("deadLetterQueueARN", myDeadLetterQueue.Arn)
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
my_dead_letter_queue = aws_native.sqs.Queue("myDeadLetterQueue")
my_source_queue = aws_native.sqs.Queue("mySourceQueue", redrive_policy={
"deadLetterTargetArn": my_dead_letter_queue.arn,
"maxReceiveCount": 5,
})
pulumi.export("sourceQueueURL", my_source_queue.id)
pulumi.export("sourceQueueARN", my_source_queue.arn)
pulumi.export("deadLetterQueueURL", my_dead_letter_queue.id)
pulumi.export("deadLetterQueueARN", my_dead_letter_queue.arn)
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const myDeadLetterQueue = new aws_native.sqs.Queue("myDeadLetterQueue", {});
const mySourceQueue = new aws_native.sqs.Queue("mySourceQueue", {redrivePolicy: {
deadLetterTargetArn: myDeadLetterQueue.arn,
maxReceiveCount: 5,
}});
export const sourceQueueURL = mySourceQueue.id;
export const sourceQueueARN = mySourceQueue.arn;
export const deadLetterQueueURL = myDeadLetterQueue.id;
export const deadLetterQueueARN = myDeadLetterQueue.arn;
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var myDeadLetterQueue = new AwsNative.Sqs.Queue("myDeadLetterQueue");
var mySourceQueue = new AwsNative.Sqs.Queue("mySourceQueue", new()
{
RedrivePolicy = new Dictionary<string, object?>
{
["deadLetterTargetArn"] = myDeadLetterQueue.Arn,
["maxReceiveCount"] = 5,
},
});
return new Dictionary<string, object?>
{
["sourceQueueURL"] = mySourceQueue.Id,
["sourceQueueARN"] = mySourceQueue.Arn,
["deadLetterQueueURL"] = myDeadLetterQueue.Id,
["deadLetterQueueARN"] = myDeadLetterQueue.Arn,
};
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/sqs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
myDeadLetterQueue, err := sqs.NewQueue(ctx, "myDeadLetterQueue", nil)
if err != nil {
return err
}
mySourceQueue, err := sqs.NewQueue(ctx, "mySourceQueue", &sqs.QueueArgs{
RedrivePolicy: pulumi.Any(map[string]interface{}{
"deadLetterTargetArn": myDeadLetterQueue.Arn,
"maxReceiveCount": 5,
}),
})
if err != nil {
return err
}
ctx.Export("sourceQueueURL", mySourceQueue.ID())
ctx.Export("sourceQueueARN", mySourceQueue.Arn)
ctx.Export("deadLetterQueueURL", myDeadLetterQueue.ID())
ctx.Export("deadLetterQueueARN", myDeadLetterQueue.Arn)
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
my_dead_letter_queue = aws_native.sqs.Queue("myDeadLetterQueue")
my_source_queue = aws_native.sqs.Queue("mySourceQueue", redrive_policy={
"deadLetterTargetArn": my_dead_letter_queue.arn,
"maxReceiveCount": 5,
})
pulumi.export("sourceQueueURL", my_source_queue.id)
pulumi.export("sourceQueueARN", my_source_queue.arn)
pulumi.export("deadLetterQueueURL", my_dead_letter_queue.id)
pulumi.export("deadLetterQueueARN", my_dead_letter_queue.arn)
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const myDeadLetterQueue = new aws_native.sqs.Queue("myDeadLetterQueue", {});
const mySourceQueue = new aws_native.sqs.Queue("mySourceQueue", {redrivePolicy: {
deadLetterTargetArn: myDeadLetterQueue.arn,
maxReceiveCount: 5,
}});
export const sourceQueueURL = mySourceQueue.id;
export const sourceQueueARN = mySourceQueue.arn;
export const deadLetterQueueURL = myDeadLetterQueue.id;
export const deadLetterQueueARN = myDeadLetterQueue.arn;
Coming soon!
Create Queue Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Queue(name: string, args?: QueueArgs, opts?: CustomResourceOptions);
@overload
def Queue(resource_name: str,
args: Optional[QueueArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Queue(resource_name: str,
opts: Optional[ResourceOptions] = None,
content_based_deduplication: Optional[bool] = None,
deduplication_scope: Optional[str] = None,
delay_seconds: Optional[int] = None,
fifo_queue: Optional[bool] = None,
fifo_throughput_limit: Optional[str] = None,
kms_data_key_reuse_period_seconds: Optional[int] = None,
kms_master_key_id: Optional[str] = None,
maximum_message_size: Optional[int] = None,
message_retention_period: Optional[int] = None,
queue_name: Optional[str] = None,
receive_message_wait_time_seconds: Optional[int] = None,
redrive_allow_policy: Optional[Any] = None,
redrive_policy: Optional[Any] = None,
sqs_managed_sse_enabled: Optional[bool] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
visibility_timeout: 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)
type: aws-native:sqs:Queue
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- args QueueArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control 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.
- name String
- The unique name of the resource.
- args QueueArgs
- The arguments to resource properties.
- options 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 Architecture and Concepts docs.
Inputs
The Queue resource accepts the following input properties:
- 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
ContentBasedDeduplication
attribute for theCreateQueue
action in the API Reference. - Deduplication
Scope string - For high throughput for FIFO queues, specifies whether message deduplication occurs at the message group or queue level. Valid values are
messageGroup
andqueue
. To enable high throughput for a FIFO queue, set this attribute tomessageGroup
and set theFifoThroughputLimit
attribute 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
0
to900
(15 minutes). The default value is0
. - Fifo
Queue bool - 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.
- Fifo
Throughput 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
perQueue
andperMessageGroupId
. To enable high throughput for a FIFO queue, set this attribute toperMessageGroupId
and set theDeduplicationScope
attribute 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 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 (e.g.
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 Best Practices whitepaper
- 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,024
bytes (1 KiB) to262,144
bytes (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
60
seconds (1 minute) to1,209,600
seconds (14 days). The default value is345,600
seconds (4 days). - Queue
Name string - 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. - 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 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 thesourceQueueArns
parameter 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 theredrivePermission
parameter is set tobyQueue
. You can specify up to 10 source queue ARNs. To allow more than 10 source queues to specify dead-letter queues, set theredrivePermission
parameter toallowAll
.
Search the CloudFormation User Guide for
AWS::SQS::Queue
for more information about the expected schema for this property.- Redrive
Policy 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 ofmaxReceiveCount
is exceeded.maxReceiveCount
: The number of times a message is delivered to the source queue before being moved to the dead-letter queue. When theReceiveCount
for a message exceeds themaxReceiveCount
for 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 }
YAMLdeadLetterTargetArn : String
maxReceiveCount : Integer
Search the CloudFormation User Guide for
AWS::SQS::Queue
for 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
SqsManagedSseEnabled
is not defined,SSE-SQS
encryption is enabled by default. - List<Pulumi.
Aws Native. Inputs. 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.
- 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
ContentBasedDeduplication
attribute for theCreateQueue
action in the API Reference. - Deduplication
Scope string - For high throughput for FIFO queues, specifies whether message deduplication occurs at the message group or queue level. Valid values are
messageGroup
andqueue
. To enable high throughput for a FIFO queue, set this attribute tomessageGroup
and set theFifoThroughputLimit
attribute 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
0
to900
(15 minutes). The default value is0
. - Fifo
Queue bool - 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.
- Fifo
Throughput 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
perQueue
andperMessageGroupId
. To enable high throughput for a FIFO queue, set this attribute toperMessageGroupId
and set theDeduplicationScope
attribute 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 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 (e.g.
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 Best Practices whitepaper
- 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,024
bytes (1 KiB) to262,144
bytes (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
60
seconds (1 minute) to1,209,600
seconds (14 days). The default value is345,600
seconds (4 days). - Queue
Name string - 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. - 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 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 thesourceQueueArns
parameter 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 theredrivePermission
parameter is set tobyQueue
. You can specify up to 10 source queue ARNs. To allow more than 10 source queues to specify dead-letter queues, set theredrivePermission
parameter toallowAll
.
Search the CloudFormation User Guide for
AWS::SQS::Queue
for more information about the expected schema for this property.- Redrive
Policy 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 ofmaxReceiveCount
is exceeded.maxReceiveCount
: The number of times a message is delivered to the source queue before being moved to the dead-letter queue. When theReceiveCount
for a message exceeds themaxReceiveCount
for 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 }
YAMLdeadLetterTargetArn : String
maxReceiveCount : Integer
Search the CloudFormation User Guide for
AWS::SQS::Queue
for 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
SqsManagedSseEnabled
is not defined,SSE-SQS
encryption is enabled by default. - Tag
Args - 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.
- content
Based 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
ContentBasedDeduplication
attribute for theCreateQueue
action in the API Reference. - deduplication
Scope String - For high throughput for FIFO queues, specifies whether message deduplication occurs at the message group or queue level. Valid values are
messageGroup
andqueue
. To enable high throughput for a FIFO queue, set this attribute tomessageGroup
and set theFifoThroughputLimit
attribute 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 Integer - The time in seconds for which the delivery of all messages in the queue is delayed. You can specify an integer value of
0
to900
(15 minutes). The default value is0
. - fifo
Queue Boolean - 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.
- fifo
Throughput 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
perQueue
andperMessageGroupId
. To enable high throughput for a FIFO queue, set this attribute toperMessageGroupId
and set theDeduplicationScope
attribute 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 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.
- kms
Master 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 (e.g.
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 Best Practices whitepaper
- maximum
Message IntegerSize - 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) to262,144
bytes (256 KiB). The default value is262,144
(256 KiB). - message
Retention IntegerPeriod - The number of seconds that SQS retains a message. You can specify an integer value from
60
seconds (1 minute) to1,209,600
seconds (14 days). The default value is345,600
seconds (4 days). - queue
Name String - 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. - receive
Message 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.
- redrive
Allow 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 thesourceQueueArns
parameter 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 theredrivePermission
parameter is set tobyQueue
. You can specify up to 10 source queue ARNs. To allow more than 10 source queues to specify dead-letter queues, set theredrivePermission
parameter toallowAll
.
Search the CloudFormation User Guide for
AWS::SQS::Queue
for more information about the expected schema for this property.- redrive
Policy 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 ofmaxReceiveCount
is exceeded.maxReceiveCount
: The number of times a message is delivered to the source queue before being moved to the dead-letter queue. When theReceiveCount
for a message exceeds themaxReceiveCount
for 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 }
YAMLdeadLetterTargetArn : String
maxReceiveCount : Integer
Search the CloudFormation User Guide for
AWS::SQS::Queue
for more information about the expected schema for this property.- sqs
Managed 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
SqsManagedSseEnabled
is not defined,SSE-SQS
encryption is enabled by default. - List<Tag>
- The tags that you attach to this queue. For more information, see Resource tag in the User Guide.
- visibility
Timeout 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.
- content
Based 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
ContentBasedDeduplication
attribute for theCreateQueue
action in the API Reference. - deduplication
Scope string - For high throughput for FIFO queues, specifies whether message deduplication occurs at the message group or queue level. Valid values are
messageGroup
andqueue
. To enable high throughput for a FIFO queue, set this attribute tomessageGroup
and set theFifoThroughputLimit
attribute 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 number - The time in seconds for which the delivery of all messages in the queue is delayed. You can specify an integer value of
0
to900
(15 minutes). The default value is0
. - fifo
Queue boolean - 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.
- fifo
Throughput 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
perQueue
andperMessageGroupId
. To enable high throughput for a FIFO queue, set this attribute toperMessageGroupId
and set theDeduplicationScope
attribute 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 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.
- kms
Master 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 (e.g.
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 Best Practices whitepaper
- maximum
Message numberSize - 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) to262,144
bytes (256 KiB). The default value is262,144
(256 KiB). - message
Retention numberPeriod - The number of seconds that SQS retains a message. You can specify an integer value from
60
seconds (1 minute) to1,209,600
seconds (14 days). The default value is345,600
seconds (4 days). - queue
Name string - 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. - receive
Message 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.
- 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 thesourceQueueArns
parameter 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 theredrivePermission
parameter is set tobyQueue
. You can specify up to 10 source queue ARNs. To allow more than 10 source queues to specify dead-letter queues, set theredrivePermission
parameter toallowAll
.
Search the CloudFormation User Guide for
AWS::SQS::Queue
for 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 ofmaxReceiveCount
is exceeded.maxReceiveCount
: The number of times a message is delivered to the source queue before being moved to the dead-letter queue. When theReceiveCount
for a message exceeds themaxReceiveCount
for 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 }
YAMLdeadLetterTargetArn : String
maxReceiveCount : Integer
Search the CloudFormation User Guide for
AWS::SQS::Queue
for more information about the expected schema for this property.- sqs
Managed 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
SqsManagedSseEnabled
is not defined,SSE-SQS
encryption is enabled by default. - Tag[]
- The tags that you attach to this queue. For more information, see Resource tag in the User Guide.
- visibility
Timeout 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.
- 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
ContentBasedDeduplication
attribute for theCreateQueue
action 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
messageGroup
andqueue
. To enable high throughput for a FIFO queue, set this attribute tomessageGroup
and set theFifoThroughputLimit
attribute 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
0
to900
(15 minutes). The default value is0
. - fifo_
queue bool - 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.
- 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
perQueue
andperMessageGroupId
. To enable high throughput for a FIFO queue, set this attribute toperMessageGroupId
and set theDeduplicationScope
attribute 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 (e.g.
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 Best Practices whitepaper
- 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,024
bytes (1 KiB) to262,144
bytes (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
60
seconds (1 minute) to1,209,600
seconds (14 days). The default value is345,600
seconds (4 days). - queue_
name str - 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. - 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 thesourceQueueArns
parameter 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 theredrivePermission
parameter is set tobyQueue
. You can specify up to 10 source queue ARNs. To allow more than 10 source queues to specify dead-letter queues, set theredrivePermission
parameter toallowAll
.
Search the CloudFormation User Guide for
AWS::SQS::Queue
for 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 ofmaxReceiveCount
is exceeded.maxReceiveCount
: The number of times a message is delivered to the source queue before being moved to the dead-letter queue. When theReceiveCount
for a message exceeds themaxReceiveCount
for 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 }
YAMLdeadLetterTargetArn : String
maxReceiveCount : Integer
Search the CloudFormation User Guide for
AWS::SQS::Queue
for 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
SqsManagedSseEnabled
is not defined,SSE-SQS
encryption is enabled by default. - Sequence[Tag
Args] - 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.
- content
Based 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
ContentBasedDeduplication
attribute for theCreateQueue
action in the API Reference. - deduplication
Scope String - For high throughput for FIFO queues, specifies whether message deduplication occurs at the message group or queue level. Valid values are
messageGroup
andqueue
. To enable high throughput for a FIFO queue, set this attribute tomessageGroup
and set theFifoThroughputLimit
attribute 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 Number - The time in seconds for which the delivery of all messages in the queue is delayed. You can specify an integer value of
0
to900
(15 minutes). The default value is0
. - fifo
Queue Boolean - 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.
- fifo
Throughput 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
perQueue
andperMessageGroupId
. To enable high throughput for a FIFO queue, set this attribute toperMessageGroupId
and set theDeduplicationScope
attribute 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 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.
- kms
Master 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 (e.g.
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 Best Practices whitepaper
- maximum
Message NumberSize - 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) to262,144
bytes (256 KiB). The default value is262,144
(256 KiB). - message
Retention NumberPeriod - The number of seconds that SQS retains a message. You can specify an integer value from
60
seconds (1 minute) to1,209,600
seconds (14 days). The default value is345,600
seconds (4 days). - queue
Name String - 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. - receive
Message 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.
- 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 thesourceQueueArns
parameter 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 theredrivePermission
parameter is set tobyQueue
. You can specify up to 10 source queue ARNs. To allow more than 10 source queues to specify dead-letter queues, set theredrivePermission
parameter toallowAll
.
Search the CloudFormation User Guide for
AWS::SQS::Queue
for 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 ofmaxReceiveCount
is exceeded.maxReceiveCount
: The number of times a message is delivered to the source queue before being moved to the dead-letter queue. When theReceiveCount
for a message exceeds themaxReceiveCount
for 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 }
YAMLdeadLetterTargetArn : String
maxReceiveCount : Integer
Search the CloudFormation User Guide for
AWS::SQS::Queue
for more information about the expected schema for this property.- sqs
Managed 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
SqsManagedSseEnabled
is not defined,SSE-SQS
encryption 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.
- visibility
Timeout 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the Queue resource produces the following output properties:
Supporting Types
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.