interface TopicAttributes
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.SNS.TopicAttributes |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssns#TopicAttributes |
Java | software.amazon.awscdk.services.sns.TopicAttributes |
Python | aws_cdk.aws_sns.TopicAttributes |
TypeScript (source) | aws-cdk-lib » aws_sns » TopicAttributes |
Represents an SNS topic defined outside of this stack.
Example
// 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,
};
Properties
Name | Type | Description |
---|---|---|
topic | string | The ARN of the SNS topic. |
content | boolean | Whether content-based deduplication is enabled. |
topicArn
Type:
string
The ARN of the SNS topic.
contentBasedDeduplication?
Type:
boolean
(optional, default: false)
Whether content-based deduplication is enabled.
Only applicable for FIFO topics.