software.amazon.awscdk.services.s3.notifications.package-info Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of s3-notifications Show documentation
Show all versions of s3-notifications Show documentation
Bucket Notifications API for AWS S3
/**
* 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:
*
*
* // Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
* import software.amazon.awscdk.services.s3.notifications.*;
*
* var bucket = new Bucket(stack, "Bucket");
* var topic = new Topic(stack, "Topic");
*
* bucket.addEventNotification(s3.EventType.getOBJECT_CREATED_PUT(), new SnsDestination(topic));
*
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
package software.amazon.awscdk.services.s3.notifications;