A configuration object that specifies the destination of an event after Lambda processes it.
To declare this entity in your AWS SAM template, use the following syntax:
[OnFailure](#sam-function-eventinvokedestinationconfiguration-onfailure): [OnFailure](sam-property-function-onfailure.md)
[OnSuccess](#sam-function-eventinvokedestinationconfiguration-onsuccess): [OnSuccess](sam-property-function-onsuccess.md)
OnFailure
A destination for events that failed processing.
Type: OnFailure
Required: No
AWS CloudFormation Compatibility: This property is similar to the [OnFailure](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig-onfailure.html)
property of an AWS::Lambda::EventInvokeConfig
. Requires Type
, an additional SAM-only property.
OnSuccess
A destination for events that were processed successfully.
Type: OnSuccess
Required: No
AWS CloudFormation Compatibility: This property is similar to the [OnSuccess](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-destinationconfig-onsuccess.html)
property of an AWS::Lambda::EventInvokeConfig
. Requires Type
, an additional SAM-only property.
OnSuccess example
EventInvokeConfig:
DestinationConfig:
OnSuccess:
Type: SQS
Destination: arn:aws:sqs:us-west-2:012345678901:my-queue
OnFailure:
Type: Lambda
Destination: !GetAtt DestinationLambda.Arn