S3 Bucket Notifications API¶
This module includes the API that constructs should implement in order to be able to be used as destinations for bucket notifications.
To implement the
IBucketNotificationDestination, a construct should implement
asBucketNotificationDestination(bucketArn, bucketId) which registers
this resource as a destination for bucket notifications for the specified
bucket and returns the ARN of the destination and it’s type.
Represents the properties of a notification destination.
The ARN of the destination (i.e. Lambda, SNS, SQS).
Implemented by constructs that can be used as bucket notification destinations.
asBucketNotificationDestination(bucketArn, bucketId) → @aws-cdk/aws-s3-notifications.BucketNotificationDestinationProps¶
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.
- bucketArn (string) – The ARN of the bucket
- bucketId (string) – A unique ID of this bucket in the stack
Return type: Abstract: