SnsTopic(topic, *, message=None)¶
Use an SNS topic as a target for AWS CloudWatch event rules.
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 # publish to an SNS topic every time code is committed # to a CodeCommit repository repository.on_commit(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