AWS::Lambda::EventSourceMapping DestinationConfig - 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::EventSourceMapping DestinationConfig

A configuration object that specifies the destination of an event after Lambda processes it. For more information, see Adding a destination.

Syntax

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

JSON

{ "OnFailure" : OnFailure }

Properties

OnFailure

The destination configuration for failed invocations.

Required: No

Type: OnFailure

Update requires: No interruption

Examples

On-Failure Destination Configuration

Configure a function to send a record of failed batches to an SQS queue.

YAML

DestinationConfig: OnFailure: Destination: arn:aws-eusc:sqs:us-east-2:123456789012:dlq