Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

Amazon SQS RedrivePolicy

The RedrivePolicy type is a property of the AWS::SQS::Queue resource. A redrive policy defines the parameters for the dead letter queue functionality of the source queue. For more information about the redrive policy and dead letter queues, see Using Amazon SQS Dead Letter Queues in the Amazon Simple Queue Service Developer Guide.

Syntax

JSON

Copy
{ "deadLetterTargetArn" : String, "maxReceiveCount" : Integer }

YAML

Copy
deadLetterTargetArn: String maxReceiveCount: Integer

Properties

deadLetterTargetArn

The Amazon Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves messages after the value of maxReceiveCount is exceeded.

Required: Yes

Type: String

maxReceiveCount

The number of times a message is delivered to the source queue before being moved to the dead-letter queue.

Required: Yes

Type: Integer

On this page: