Class S3EventSourceV2
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lambda.eventsources.S3EventSourceV2
- All Implemented Interfaces:
IEventSource,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-12T17:54:16.464Z")
@Stability(Stable)
public class S3EventSourceV2
extends software.amazon.jsii.JsiiObject
implements IEventSource
S3EventSourceV2 Use S3 bucket notifications as an event source for AWS Lambda.
Example:
import software.amazon.awscdk.services.s3.*;
import software.amazon.awscdk.services.lambda.eventsources.S3EventSourceV2;
Function fn;
IBucket bucket = Bucket.fromBucketName(this, "Bucket", "amzn-s3-demo-bucket");
fn.addEventSource(S3EventSourceV2.Builder.create(bucket)
.events(List.of(EventType.OBJECT_CREATED, EventType.OBJECT_REMOVED))
.filters(List.of(NotificationKeyFilter.builder().prefix("subdir/").build()))
.build());
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.lambda.IEventSource
IEventSource.Jsii$Default, IEventSource.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionS3EventSourceV2(IBucket bucket, S3EventSourceProps props) protectedS3EventSourceV2(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedS3EventSourceV2(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
S3EventSourceV2
protected S3EventSourceV2(software.amazon.jsii.JsiiObjectRef objRef) -
S3EventSourceV2
protected S3EventSourceV2(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
S3EventSourceV2
@Stability(Stable) public S3EventSourceV2(@NotNull IBucket bucket, @NotNull S3EventSourceProps props) - Parameters:
bucket- This parameter is required.props- This parameter is required.
-
-
Method Details
-
bind
Called bylambda.addEventSourceto allow the event source to bind to this function.- Specified by:
bindin interfaceIEventSource- Parameters:
target- This parameter is required.
-