Interface CfnTopicProps

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

@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-07-24T11:33:23.500Z") @Stability(Stable) public interface CfnTopicProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnTopic.

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.*;
 Object archivePolicy;
 Object dataProtectionPolicy;
 CfnTopicProps cfnTopicProps = CfnTopicProps.builder()
         .archivePolicy(archivePolicy)
         .contentBasedDeduplication(false)
         .dataProtectionPolicy(dataProtectionPolicy)
         .deliveryStatusLogging(List.of(LoggingConfigProperty.builder()
                 .protocol("protocol")
                 // the properties below are optional
                 .failureFeedbackRoleArn("failureFeedbackRoleArn")
                 .successFeedbackRoleArn("successFeedbackRoleArn")
                 .successFeedbackSampleRate("successFeedbackSampleRate")
                 .build()))
         .displayName("displayName")
         .fifoThroughputScope("fifoThroughputScope")
         .fifoTopic(false)
         .kmsMasterKeyId("kmsMasterKeyId")
         .signatureVersion("signatureVersion")
         .subscription(List.of(SubscriptionProperty.builder()
                 .endpoint("endpoint")
                 .protocol("protocol")
                 .build()))
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .topicName("topicName")
         .tracingConfig("tracingConfig")
         .build();
 

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for CfnTopicProps
    static final class 
    An implementation for CfnTopicProps
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default Object
    The ArchivePolicy determines the number of days Amazon SNS retains messages in FIFO topics.
    default Object
    ContentBasedDeduplication enables deduplication of messages based on their content for FIFO topics.
    default Object
    The body of the policy document you want to use for this topic.
    default Object
    The DeliveryStatusLogging configuration enables you to log the delivery status of messages sent from your Amazon SNS topic to subscribed endpoints with the following supported delivery protocols:.
    default String
    The display name to use for an Amazon SNS topic with SMS subscriptions.
    default String
    Specifies the throughput quota and deduplication behavior to apply for the FIFO topic.
    default Object
    Set to true to create a FIFO topic.
    default String
    The ID of an AWS managed customer master key (CMK) for Amazon SNS or a custom CMK.
    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 Object
    The Amazon SNS subscriptions (endpoints) for this topic.
    default List<CfnTag>
    The list of tags to add to a new topic.
    default String
    The name of the topic you want to create.
    default String
    Tracing mode of an Amazon SNS topic.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson