AWS::Lambda::Function DeadLetterConfig - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::Lambda::Function DeadLetterConfig

The dead-letter queue for failed asynchronous invocations.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "TargetArn" : String }

YAML

TargetArn: String

Properties

TargetArn

The Amazon Resource Name (ARN) of an Amazon SQS queue or Amazon SNS topic.

Required: No

Type: String

Pattern: ^(arn:(aws[a-zA-Z-]*)?:[a-z0-9-.]+:.*)|()$

Update requires: No interruption

Examples

Dead-letter Queue

Add a dead-letter queue to a function.

YAML

DeadLetterConfig: TargetArn: arn:aws:sqs:us-east-2:123456789012:dlq