Interface TopicAttributes

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

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-17T05:10:18.274Z") @Stability(Stable) public interface TopicAttributes extends software.amazon.jsii.JsiiSerializable
Represents an SNS topic defined outside of this stack.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.sns.*;
 TopicAttributes topicAttributes = TopicAttributes.builder()
         .topicArn("topicArn")
         // the properties below are optional
         .contentBasedDeduplication(false)
         .build();
 
  • Method Details

    • getTopicArn

      @Stability(Stable) @NotNull String getTopicArn()
      The ARN of the SNS topic.
    • getContentBasedDeduplication

      @Stability(Stable) @Nullable default Boolean getContentBasedDeduplication()
      Whether content-based deduplication is enabled.

      Only applicable for FIFO topics.

      Default: false

    • builder

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