How to use the @aws-cdk/aws-s3-notifications.LambdaDestination function in @aws-cdk/aws-s3-notifications

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 2 years ago

Package Health Score

65 / 100
Full package analysis

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