A new SNS topic.
import { Topic } from 'aws-cdk-lib/aws-sns';Or use the module namespace:
import * as sns from 'aws-cdk-lib/aws-sns';
// sns.TopicConfiguration passed to the constructor as TopicProps.
contentBasedDeduplicationOptionalbooleanEnables content-based deduplication for FIFO topics.
Default: None
displayNameOptionalstringA developer-defined string that can be used to identify this SNS topic. The display name must be maximum 100 characters long, including hyphens (-), underscores (_), spaces, and tabs.
Default: None
enforceSSLOptionalbooleanAdds a statement to enforce encryption of data in transit when publishing to the topic.
Default: false
fifoOptionalbooleanSet to true to create a FIFO topic.
Default: None
fifoThroughputScopeOptionalFifoThroughputScopeSpecifies the throughput quota and deduplication behavior to apply for the FIFO topic. You can only set this property when `fifo` is `true`.
Default: undefined - SNS default setting is FifoThroughputScope.TOPIC
loggingConfigsOptionalLoggingConfig[]The list of delivery status logging configurations for the topic.
Default: None
masterKeyOptionalIKeyA KMS Key, either managed by this CDK app, or imported.
Default: None
messageRetentionPeriodInDaysOptionalnumberThe number of days Amazon SNS retains messages. It can only be set for FIFO topics.
Default: - do not archive messages
signatureVersionOptionalstringThe 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: 1
topicNameOptionalstringA 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.
Default: Generated name
tracingConfigOptionalTracingConfigTracing mode of an Amazon SNS topic.
Default: TracingConfig.PASS_THROUGH
Everything you need to know about Amazon SNS on one page. HD quality, print-friendly.
Download Free Infographicaws-sns