Interface TopicProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TopicProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:18.293Z")
@Stability(Stable)
public interface TopicProps
extends software.amazon.jsii.JsiiSerializable
Properties for a new SNS topic.
Example:
Topic topic = Topic.Builder.create(this, "MyTopic")
.fifo(true)
.fifoThroughputScope(FifoThroughputScope.TOPIC)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forTopicPropsstatic final classAn implementation forTopicProps -
Method Summary
Modifier and TypeMethodDescriptionstatic TopicProps.Builderbuilder()default BooleanEnables content-based deduplication for FIFO topics.default StringA developer-defined string that can be used to identify this SNS topic.default BooleanAdds a statement to enforce encryption of data in transit when publishing to the topic.default BooleangetFifo()Set to true to create a FIFO topic.default FifoThroughputScopeSpecifies the throughput quota and deduplication behavior to apply for the FIFO topic.default List<LoggingConfig> The list of delivery status logging configurations for the topic.default IKeyA KMS Key, either managed by this CDK app, or imported.default NumberThe number of days Amazon SNS retains messages.default StringThe signature version corresponds to the hashing algorithm used while creating the signature of the notifications, subscription confirmations, or unsubscribe confirmation messages sent by Amazon SNS.default StringA name for the topic.default TracingConfigTracing mode of an Amazon SNS topic.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContentBasedDeduplication
Enables content-based deduplication for FIFO topics.Default: None
-
getDisplayName
A developer-defined string that can be used to identify this SNS topic.The display name must be maximum 100 characters long, including hyphens (-), underscores (_), spaces, and tabs.
Default: None
-
getEnforceSSL
Adds a statement to enforce encryption of data in transit when publishing to the topic.Default: false
- See Also:
-
getFifo
Set to true to create a FIFO topic.Default: None
-
getFifoThroughputScope
Specifies the throughput quota and deduplication behavior to apply for the FIFO topic.You can only set this property when
fifoistrue.Default: undefined - SNS default setting is FifoThroughputScope.TOPIC
-
getLoggingConfigs
The list of delivery status logging configurations for the topic.Default: None
- See Also:
-
getMasterKey
A KMS Key, either managed by this CDK app, or imported.Default: None
-
getMessageRetentionPeriodInDays
The number of days Amazon SNS retains messages.It can only be set for FIFO topics.
Default: - do not archive messages
- See Also:
-
getSignatureVersion
The signature version corresponds to the hashing algorithm used while creating the signature of the notifications, subscription confirmations, or unsubscribe confirmation messages sent by Amazon SNS.Default: 1
- See Also:
-
getTopicName
A name for the topic.If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the topic name. For more information, see Name Type.
Default: Generated name
-
getTracingConfig
Tracing mode of an Amazon SNS topic.Default: TracingConfig.PASS_THROUGH
- See Also:
-
builder
- Returns:
- a
TopicProps.BuilderofTopicProps
-