Interface TopicProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
TopicProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.93.0 (build 1706ca5)", date="2024-01-03T18:29:32.953Z") @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();
 
  • Method Details

    • getContentBasedDeduplication

      @Stability(Stable) @Nullable default Boolean getContentBasedDeduplication()
      Enables content-based deduplication for FIFO topics.

      Default: None

    • getDisplayName

      @Stability(Stable) @Nullable default String getDisplayName()
      A developer-defined string that can be used to identify this SNS topic.

      Default: None

    • getFifo

      @Stability(Stable) @Nullable default Boolean getFifo()
      Set to true to create a FIFO topic.

      Default: None

    • getLoggingConfigs

      @Stability(Stable) @Nullable default List<LoggingConfig> 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

      @Stability(Stable) @Nullable default IKey getMasterKey()
      A KMS Key, either managed by this CDK app, or imported.

      Default: None

    • getTopicName

      @Stability(Stable) @Nullable default String 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

      @Stability(Stable) static TopicProps.Builder builder()
      Returns:
      a TopicProps.Builder of TopicProps