Skip to main content

Bucket Notifications API for AWS S3

Project description

S3 Bucket Notifications Destinations

Stability: Stable

This module includes integration classes for using Topics, Queues or Lambdas as S3 Notification Destinations.


The following example shows how to send a notification to an SNS topic when an object is created in an S3 bucket:

import s3n = require('@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));

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for, version 1.5.0
Filename, size & hash File type Python version Upload date
aws_cdk.aws_s3_notifications-1.5.0-py3-none-any.whl (38.8 kB) View hashes Wheel py3 (39.5 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page