How to use @aws-cdk/aws-s3-notifications - 1 common examples

To help you get started, we’ve selected a few @aws-cdk/aws-s3-notifications examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws / aws-cdk / packages / @aws-cdk / aws-lambda-event-sources / lib / s3.ts View on Github external
public bind(target: lambda.IFunction) {
    const filters = this.props.filters || [];
    for (const event of this.props.events) {
      this.bucket.addEventNotification(event, new notifs.LambdaDestination(target), ...filters);
    }
  }
}

@aws-cdk/aws-s3-notifications

Bucket Notifications API for AWS S3

Apache-2.0
Latest version published 1 year ago

Package Health Score

67 / 100
Full package analysis

Popular @aws-cdk/aws-s3-notifications functions