Interface TopicProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TopicProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-27T17:02:10.462Z")
@Stability(Stable)
public interface TopicProps
extends software.amazon.jsii.JsiiSerializable
Properties for a new SNS topic.
Example:
Topic topic = Topic.Builder.create(this, "MyTopic") .tracingConfig(TracingConfig.ACTIVE) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forTopicProps
static final class
An implementation forTopicProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic TopicProps.Builder
builder()
default Boolean
Enables content-based deduplication for FIFO topics.default String
A developer-defined string that can be used to identify this SNS topic.default Boolean
Adds a statement to enforce encryption of data in transit when publishing to the topic.default Boolean
getFifo()
Set to true to create a FIFO topic.default List<LoggingConfig>
The list of delivery status logging configurations for the topic.default IKey
A KMS Key, either managed by this CDK app, or imported.default Number
The number of days Amazon SNS retains messages.default String
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 String
A name for the topic.default TracingConfig
Tracing 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
-
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.Builder
ofTopicProps
-