Package Exports
- @aws-cdk/aws-s3-notifications
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aws-cdk/aws-s3-notifications) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
S3 Bucket Notifications Destinations
This module includes integration classes for using Topics, Queues or Lambdas as S3 Notification Destinations.
Example
The following example shows how to send a notification to an SNS topic when an object is created in an S3 bucket:
import * as s3n from '@aws-cdk/aws-s3-notifications';
const bucket = new s3.Bucket(stack, 'Bucket');
const topic = new sns.Topic(stack, 'Topic');
bucket.addEventNotification(s3.EventType.OBJECT_CREATED_PUT, new s3n.SnsDestination(topic));