Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@aws-cdk/aws-s3-notifications

1.63.0 • Public • Published

S3 Bucket Notifications Destinations

cdk-constructs: Stable


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));

Install

npm i @aws-cdk/aws-s3-notifications

DownloadsWeekly Downloads

46,023

Version

1.63.0

License

Apache-2.0

Unpacked Size

197 kB

Total Files

33

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar