interface TopicProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.SNS.TopicProps |
Java | software.amazon.awscdk.services.sns.TopicProps |
Python | aws_cdk.aws_sns.TopicProps |
TypeScript (source) | @aws-cdk/aws-sns » TopicProps |
Properties for a new SNS topic.
Example
const topic = new sns.Topic(this, 'Topic', {
displayName: 'Customer subscription topic',
});
Properties
Name | Type | Description |
---|---|---|
content | boolean | Enables content-based deduplication for FIFO topics. |
display | string | A developer-defined string that can be used to identify this SNS topic. |
fifo? | boolean | Set to true to create a FIFO topic. |
master | IKey | A KMS Key, either managed by this CDK app, or imported. |
topic | string | A 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.