SnsDestination

class aws_cdk.aws_s3_notifications.SnsDestination(topic)

Bases: object

Use an SNS topic as a bucket notification destination.

Parameters

topic (ITopic) –

Methods

bind(_scope, bucket)

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.

Parameters
Return type

BucketNotificationDestinationConfig