Class S3EventSourceProps.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.eventsources.S3EventSourceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3EventSourceProps>
- Enclosing interface:
- S3EventSourceProps
@Stability(Stable)
public static final class S3EventSourceProps.Builder
extends Object
implements software.amazon.jsii.Builder<S3EventSourceProps>
A builder for
S3EventSourceProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofS3EventSourceProps.getEvents()
filters
(List<? extends NotificationKeyFilter> filters) Sets the value ofS3EventSourceProps.getFilters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
events
Sets the value ofS3EventSourceProps.getEvents()
- Parameters:
events
- The s3 event types that will trigger the notification. This parameter is required.- Returns:
this
-
filters
@Stability(Stable) public S3EventSourceProps.Builder filters(List<? extends NotificationKeyFilter> filters) Sets the value ofS3EventSourceProps.getFilters()
- Parameters:
filters
- S3 object key filter rules to determine which objects trigger this event. Each filter must include aprefix
and/orsuffix
that will be matched against the s3 object key. Refer to the S3 Developer Guide for details about allowed filter rules.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<S3EventSourceProps>
- Returns:
- a new instance of
S3EventSourceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-