We recommend new projects start with resources from the AWS provider.
aws-native.sqs.Queue
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.
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 * 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;
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=[{
    "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=[{
        "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)
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 * 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;
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=[{
    "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=[{
        "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)
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 * 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;
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)
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 * 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;
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)
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Queue resource accepts the following input properties:
- 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.
- FifoQueue 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 Amazon SQS FIFO queues in the Developer Guide.
- 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).
- QueueName string
- A name for the queue. To create a FIFO queue, the name of your FIFO queue must end with the .fifosuffix. For more information, see Amazon SQS 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.
- 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. Inputs. 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.
- 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.
- FifoQueue 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 Amazon SQS FIFO queues in the Developer Guide.
- 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).
- QueueName string
- A name for the queue. To create a FIFO queue, the name of your FIFO queue must end with the .fifosuffix. For more information, see Amazon SQS 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.
- 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.
- 
TagArgs 
- 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.
- 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.
- fifoQueue 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 Amazon SQS FIFO queues in the Developer Guide.
- 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).
- queueName String
- A name for the queue. To create a FIFO queue, the name of your FIFO queue must end with the .fifosuffix. For more information, see Amazon SQS 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.
- 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.
- 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.
- fifoQueue 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 Amazon SQS FIFO queues in the Developer Guide.
- 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).
- queueName string
- A name for the queue. To create a FIFO queue, the name of your FIFO queue must end with the .fifosuffix. For more information, see Amazon SQS 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.
- 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.
- 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_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 Amazon SQS 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 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_name str
- A name for the queue. To create a FIFO queue, the name of your FIFO queue must end with the .fifosuffix. For more information, see Amazon SQS 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 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[TagArgs] 
- 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.
- 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.
- fifoQueue 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 Amazon SQS FIFO queues in the Developer Guide.
- 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).
- queueName String
- A name for the queue. To create a FIFO queue, the name of your FIFO queue must end with the .fifosuffix. For more information, see Amazon SQS 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.
- 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.
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
We recommend new projects start with resources from the AWS provider.