LambdaDestinationLambda

Description

Specifies Lambda function as lambda destination target. A specified lambda function will be invoked depending on the return status of a source lambda function whose IAM role is passed to this pattern.

Resources

AWS::IAM::Policy

An IAM policy that grants Lambda InvokeFunction permission to a specified IAM role.

Input

LambdaRole

Logical ID of AWS::IAM::Role corresponding to a lambda function whose return status will be used to decide whether to send an event to a specified event bus.

LambdaFunction

Logical ID of AWS::Lambda::Function to be invoked. This is different from a source lambda function corresponding to the LambdaRole parameter above.

Output

lambdaDestination

CloudFormation syntax that resolves to an ARN of specified target lambda function resource.

This output is normally used as onSuccessDestination and/or onFailureDestination input to the LambdaAddDestinationConfig pattern.