AWS::Lambda::EventInvokeConfig DestinationConfig - AWS CloudFormation

AWS::Lambda::EventInvokeConfig DestinationConfig

A configuration object that specifies the destination of an event after Lambda processes it.

Syntax

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

Properties

OnFailure

The destination configuration for failed invocations.

Required: No

Type: OnFailure

Update requires: No interruption

OnSuccess

The destination configuration for successful invocations.

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:sqs:us-east-2:123456789012:dlq