Interface SnsTopicProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,TargetBaseProps
- All Known Implementing Classes:
SnsTopicProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:55:59.283Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forSnsTopicProps
static final class
An implementation forSnsTopicProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic SnsTopicProps.Builder
builder()
default RuleTargetInput
The message to send to the topic.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods 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.Builder
ofSnsTopicProps
-