AWS::Lambda::Function DeadLetterConfig - AWS CloudFormation

AWS::Lambda::Function DeadLetterConfig

The dead-letter queue for failed asynchronous invocations.

Syntax

To declare this entity in your AWS 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