JSPM

@aws-cdk/aws-s3-notifications

1.105.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 16855
  • Score
    100M100P100Q25733F
  • License Apache-2.0

Bucket Notifications API for AWS S3

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


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