# TopicAttributes

Represents an SNS topic defined outside of this stack.

- Source: [`aws-sns/lib/topic.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-sns/lib/topic.ts#L223)
- Type last changed: v2.182.0 · 5 Mar 2025

## 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

- `contentBasedDeduplication`: boolean = false — Whether content-based deduplication is enabled.

  Only applicable for FIFO topics.

- `keyArn`: string = None — KMS encryption key, if this topic is server-side encrypted by a KMS key.

- `topicArn`: string (required) — The ARN of the SNS topic.
