aws-cdk-lib.aws_sns.TopicProps

interface TopicProps

LanguageType name
.NETAmazon.CDK.AWS.SNS.TopicProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssns#TopicProps
Javasoftware.amazon.awscdk.services.sns.TopicProps
Pythonaws_cdk.aws_sns.TopicProps
TypeScript (source)aws-cdk-lib » aws_sns » TopicProps

Properties for a new SNS topic.

Example

const topic = new sns.Topic(this, 'Topic', {
  displayName: 'Customer subscription topic',
});

Properties

NameTypeDescription
contentBasedDeduplication?booleanEnables content-based deduplication for FIFO topics.
displayName?stringA developer-defined string that can be used to identify this SNS topic.
fifo?booleanSet to true to create a FIFO topic.
masterKey?IKeyA KMS Key, either managed by this CDK app, or imported.
topicName?stringA name for the topic.

contentBasedDeduplication?

Type: boolean (optional, default: None)

Enables content-based deduplication for FIFO topics.


displayName?

Type: string (optional, default: None)

A developer-defined string that can be used to identify this SNS topic.


fifo?

Type: boolean (optional, default: None)

Set to true to create a FIFO topic.


masterKey?

Type: IKey (optional, default: None)

A KMS Key, either managed by this CDK app, or imported.


topicName?

Type: string (optional, default: Generated name)

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.