Skip to content
v2.274.0

TopicAttributes Struct ​

Represents an SNS topic defined outside of this stack.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sns as sns } from 'aws-cdk-lib';
const topicAttributes: sns.TopicAttributes = {
  topicArn: 'topicArn',

  // the properties below are optional
  contentBasedDeduplication: false,
  keyArn: 'keyArn',
};

Properties ​

contentBasedDeduplicationoptionalbooleancontent_based_deduplicationoptionalboolcontentBasedDeduplicationoptionalBooleanContentBasedDeduplicationoptionalboolContentBasedDeduplicationoptional*bool= false#
Whether content-based deduplication is enabled.

Only applicable for FIFO topics.

keyArnoptionalstringkey_arnoptionalstrkeyArnoptionalStringKeyArnoptionalstringKeyArnoptional*string= None#
KMS encryption key, if this topic is server-side encrypted by a KMS key.
topicArnstringtopic_arnstrtopicArnStringTopicArnstringTopicArn*stringrequired#
The ARN of the SNS topic.