DeadLetterConfig
The object used to specify the Amazon Simple Queue Service (Amazon SQS) queue where EventBridge sends events after a failed target invocation. Invocation can fail, for example, when sending an event to a state machine that doesn’t exist, or insufficient permissions to invoke the state machine. For more information, see Event retry policy and using dead-letter queues in the Amazon EventBridge User Guide.
Syntax
To declare this entity in your Amazon Serverless Application Model (Amazon SAM) template, use the following syntax.
YAML
Arn:StringQueueLogicalId:StringType:String
Properties
-
Arn -
The Amazon Resource Name (ARN) of the Amazon SQS queue specified as the target for the dead-letter queue.
Note
Specify either the
Typeproperty orArnproperty, but not both.Type: String
Required: No
Amazon CloudFormation compatibility: This property is passed directly to the
Arnproperty of theAWS::Events::RuleDeadLetterConfigdata type. -
QueueLogicalId -
The custom name of the dead letter queue that Amazon SAM creates if
Typeis specified.Note
If the
Typeproperty is not set, this property is ignored.Type: String
Required: No
Amazon CloudFormation compatibility: This property is unique to Amazon SAM and doesn't have an Amazon CloudFormation equivalent.
-
Type -
The type of the queue. When this property is set, Amazon SAM automatically creates a dead-letter queue and attaches necessary resource-based policy to grant permission to rule resource to send events to the queue.
Note
Specify either the
Typeproperty orArnproperty, but not both.Valid values:
SQSType: String
Required: No
Amazon CloudFormation compatibility: This property is unique to Amazon SAM and doesn't have an Amazon CloudFormation equivalent.
Examples
DeadLetterConfig
DeadLetterConfig
YAML
DeadLetterConfig: Type: SQS QueueLogicalId: MyDLQ