AWS::Lambda::Function DeadLetterConfig - AWS CloudFormation
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::Lambda::Function DeadLetterConfig

The dead-letter queue for failed asynchronous invocations.

Syntax

To declare this entity in your 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-eusc:sqs:us-east-2:123456789012:dlq