Class CfnBucket.LambdaConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.LambdaConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.LambdaConfigurationProperty>
- Enclosing interface:
CfnBucket.LambdaConfigurationProperty
@Stability(Stable)
public static final class CfnBucket.LambdaConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.LambdaConfigurationProperty>
A builder for
CfnBucket.LambdaConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBucket.LambdaConfigurationProperty.getEvent()
filter
(IResolvable filter) Sets the value ofCfnBucket.LambdaConfigurationProperty.getFilter()
Sets the value ofCfnBucket.LambdaConfigurationProperty.getFilter()
Sets the value ofCfnBucket.LambdaConfigurationProperty.getFunction()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
event
Sets the value ofCfnBucket.LambdaConfigurationProperty.getEvent()
- Parameters:
event
- The Amazon S3 bucket event for which to invoke the AWS Lambda function. This parameter is required. For more information, see Supported Event Types in the Amazon S3 User Guide .- Returns:
this
-
function
Sets the value ofCfnBucket.LambdaConfigurationProperty.getFunction()
- Parameters:
function
- The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon S3 invokes when the specified event type occurs. This parameter is required.- Returns:
this
-
filter
Sets the value ofCfnBucket.LambdaConfigurationProperty.getFilter()
- Parameters:
filter
- The filtering rules that determine which objects invoke the AWS Lambda function. For example, you can create a filter so that only image files with a.jpg
extension invoke the function when they are added to the Amazon S3 bucket.- Returns:
this
-
filter
@Stability(Stable) public CfnBucket.LambdaConfigurationProperty.Builder filter(CfnBucket.NotificationFilterProperty filter) Sets the value ofCfnBucket.LambdaConfigurationProperty.getFilter()
- Parameters:
filter
- The filtering rules that determine which objects invoke the AWS Lambda function. For example, you can create a filter so that only image files with a.jpg
extension invoke the function when they are added to the Amazon S3 bucket.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.LambdaConfigurationProperty>
- Returns:
- a new instance of
CfnBucket.LambdaConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-