@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.513Z") @Stability(value=Stable) public interface S3EventSourceProps extends software.amazon.jsii.JsiiSerializable
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 | Interface and Description |
|---|---|
static class |
S3EventSourceProps.Builder
A builder for
S3EventSourceProps |
static class |
S3EventSourceProps.Jsii$Proxy
An implementation for
S3EventSourceProps |
| Modifier and Type | Method and Description |
|---|---|
static S3EventSourceProps.Builder |
builder() |
List<EventType> |
getEvents()
The s3 event types that will trigger the notification.
|
default List<NotificationKeyFilter> |
getFilters()
S3 object key filter rules to determine which objects trigger this event.
|
@Stability(value=Stable) @NotNull List<EventType> getEvents()
@Stability(value=Stable) @Nullable default List<NotificationKeyFilter> getFilters()
Each filter must include a prefix and/or suffix that will be matched
against the s3 object key. Refer to the S3 Developer Guide for details
about allowed filter rules.
@Stability(value=Stable) static S3EventSourceProps.Builder builder()
S3EventSourceProps.Builder of S3EventSourcePropsCopyright © 2022. All rights reserved.