SnsTopic(topic, *, message=None)¶
Use an SNS topic as a target for AWS CloudWatch event rules.
// publish to an SNS topic every time code is committed // to a CodeCommit repository repository.onCommit(new targets.SnsTopic(topic));
__init__(topic, *, message=None)¶
Returns a RuleTarget that can be used to trigger this SNS topic as a result from a CloudWatch event.
- Return type