@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:19.792Z") @Stability(value=Stable) public class S3EventSource extends software.amazon.jsii.JsiiObject implements IEventSource
Example:
import software.amazon.awscdk.services.lambda.eventsources.*;
import software.amazon.awscdk.services.s3.*;
Function fn;
Bucket bucket = new Bucket(this, "Bucket");
fn.addEventSource(S3EventSource.Builder.create(bucket)
.events(List.of(EventType.OBJECT_CREATED, EventType.OBJECT_REMOVED))
.filters(List.of(NotificationKeyFilter.builder().prefix("subdir/").build()))
.build());
| Modifier and Type | Class and Description |
|---|---|
static class |
S3EventSource.Builder
A fluent builder for
S3EventSource. |
software.amazon.jsii.JsiiObject.InitializationModeIEventSource.Jsii$Default, IEventSource.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
S3EventSource(Bucket bucket,
S3EventSourceProps props) |
protected |
S3EventSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
S3EventSource(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(IFunction target)
Called by `lambda.addEventSource` to allow the event source to bind to this function.
|
Bucket |
getBucket() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected S3EventSource(software.amazon.jsii.JsiiObjectRef objRef)
protected S3EventSource(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public S3EventSource(@NotNull
Bucket bucket,
@NotNull
S3EventSourceProps props)
bucket - This parameter is required.props - This parameter is required.@Stability(value=Stable)
public void bind(@NotNull
IFunction target)
bind in interface IEventSourcetarget - This parameter is required.@Stability(value=Stable) @NotNull public Bucket getBucket()
Copyright © 2022. All rights reserved.