Interface TopicAttributes

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

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-25T14:21:24.049Z") @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