EventRuleAddTargetLambda
https://editor.coreograph.com/project?example=AWS /Patterns/EventBridge/EventRuleAddTargetLambda[Open in Coreograph Editor,window=_blank]
Description
Add the specified lambda target to the specified rule, or update the lambda target if it is already associated with the rule. Targets are the resources that are invoked when a rule is triggered.
Resources
AWS::Lambda::Permission
Lambda permission to allow EventBridge rule to invoke the lambda function.
Input
eventRule
Logical ID of AWS::Events::Rule
resource that invoke a lambda function when it is triggered.
targetId
The ID of the target within the specified rule. Must be a valid Cloudformation syntax that resolves to a string.
lambdaFunction
Logical ID of AWS::Lambda::Function
resource to invoke when the rule is triggered.