See: Description
Class | Description |
---|---|
LambdaDestination |
(experimental) Use a Lambda function as a bucket notification destination.
|
SnsDestination |
(experimental) Use an SNS topic as a bucket notification destination.
|
SqsDestination |
(experimental) Use an SQS queue as a bucket notification destination.
|
---
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:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 import software.amazon.awscdk.aws_s3_notifications; Bucket bucket = new Bucket(stack, "Bucket"); Topic topic = new Topic(stack, "Topic"); bucket.addEventNotification(s3.EventType.getOBJECT_CREATED_PUT(), new SnsDestination(topic));
Copyright © 2021. All rights reserved.