AWS::Lambda::EventInvokeConfig DestinationConfig - 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).

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

AWS::Lambda::EventInvokeConfig 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 Amazon CloudFormation template, use the following syntax:

Properties

OnFailure

The destination configuration for failed invocations.

Note

When using an Amazon SQS queue as a destination, FIFO queues cannot be used.

Required: No

Type: OnFailure

Update requires: No interruption

OnSuccess

The destination configuration for successful invocations.

Note

When using an Amazon SQS queue as a destination, FIFO queues cannot be used.

Required: No

Type: OnSuccess

Update requires: No interruption

Examples

On-Failure Destination Configuration

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

YAML

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