LambdaDestinationEventBridge

Description

Specifies EventBridge event bus as lambda destination target. An event will be sent to a specified event bus depending on the return status of a lambda function whose IAM role is passed to this pattern.

Resources

AWS::IAM::Policy

An IAM policy that grant EventBridge PutEvents 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.

EventBus

Logical ID of AWS::Events::EventBus to receive an event.

Output

eventBridgeDestination

CloudFormation syntax that resolves to an ARN of a specified event bus resource.

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