package awssns import ( "github.com/aws/aws-cdk-go/awscdk/v2/awskms" ) // Properties for a new SNS topic. // // Example: // topic := sns.NewTopic(this, jsii.String("Topic"), &TopicProps{ // DisplayName: jsii.String("Customer subscription topic"), // }) // type TopicProps struct { // Enables content-based deduplication for FIFO topics. ContentBasedDeduplication *bool `field:"optional" json:"contentBasedDeduplication" yaml:"contentBasedDeduplication"` // A developer-defined string that can be used to identify this SNS topic. DisplayName *string `field:"optional" json:"displayName" yaml:"displayName"` // Set to true to create a FIFO topic. Fifo *bool `field:"optional" json:"fifo" yaml:"fifo"` // A KMS Key, either managed by this CDK app, or imported. MasterKey awskms.IKey `field:"optional" json:"masterKey" yaml:"masterKey"` // 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. TopicName *string `field:"optional" json:"topicName" yaml:"topicName"` }