# SnsDestination

Use an SNS topic as a bucket notification destination.

Extends: SnsDestination
Implements: IBucketNotificationDestination

- Source: [`aws-s3-notifications/lib/sns.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-s3-notifications/lib/sns.ts#L11)
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

```ts
const bucket = new s3.Bucket(this, 'MyBucket');
const topic = new sns.Topic(this, 'MyTopic');
bucket.addEventNotification(s3.EventType.OBJECT_CREATED, new s3n.SnsDestination(topic));
```

## Initializer

```ts
new SnsDestination(topic: ITopic)
```

## Methods

- `bind(scope: Construct, bucket: IBucketRef): BucketNotificationDestinationConfig` — Registers this resource to receive notifications for the specified bucket.

  This method will only be called once for each destination/bucket
  pair and the result will be cached, so there is no need to implement
  idempotency in each destination.
