EventRuleAddTargetSNS
Description
Add the specified SNS topic target to the specified rule, or update the SNS topic target if it is already associated with the rule. Targets are the resources that are invoked when a rule is triggered.
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.
snsTopic
Logical ID of AWS::SNS::Topic
resource to publish a message to when the rule is triggered.