Interface TopicProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TopicProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.94.0 (build b380f01)",
date="2024-03-14T22:22:02.072Z")
@Stability(Stable)
public interface TopicProps
extends software.amazon.jsii.JsiiSerializable
Properties for a new SNS topic.
Example:
Topic topic = Topic.Builder.create(this, "Topic")
.contentBasedDeduplication(true)
.displayName("Customer subscription topic")
.fifo(true)
.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 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 StringA name for the 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.Default: None
-
getEnforceSSL
Adds a statement to enforce encryption of data in transit when publishing to the topic.For more information, see https://docs.aws.amazon.com/sns/latest/dg/sns-security-best-practices.html#enforce-encryption-data-in-transit.
Default: false
-
getFifo
Set to true to create a FIFO topic.Default: None
-
getLoggingConfigs
The list of delivery status logging configurations for the topic.For more information, see https://docs.aws.amazon.com/sns/latest/dg/sns-topic-attributes.html.
Default: None
-
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:
-
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
-
builder
- Returns:
- a
TopicProps.BuilderofTopicProps
-