Interface SnsTopicProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,TargetBaseProps
- All Known Implementing Classes:
SnsTopicProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:10.357Z")
@Stability(Stable)
public interface SnsTopicProps
extends software.amazon.jsii.JsiiSerializable, TargetBaseProps
Customize the SNS Topic Event Target.
Example:
Rule onCommitRule;
Topic topic;
onCommitRule.addTarget(SnsTopic.Builder.create(topic)
.message(RuleTargetInput.fromText(String.format("A commit was pushed to the repository %s on branch %s", ReferenceEvent.getRepositoryName(), ReferenceEvent.getReferenceName())))
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forSnsTopicPropsstatic final classAn implementation forSnsTopicProps -
Method Summary
Modifier and TypeMethodDescriptionstatic SnsTopicProps.Builderbuilder()default RuleTargetInputThe message to send to the topic.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.events.targets.TargetBaseProps
getDeadLetterQueue, getMaxEventAge, getRetryAttempts
-
Method Details
-
getMessage
The message to send to the topic.Default: the entire EventBridge event
-
builder
- Returns:
- a
SnsTopicProps.BuilderofSnsTopicProps
-