Class CfnBucketPropsMixin.LambdaConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3.CfnBucketPropsMixin.LambdaConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPropsMixin.LambdaConfigurationProperty>
- Enclosing interface:
CfnBucketPropsMixin.LambdaConfigurationProperty
@Stability(Stable)
public static final class CfnBucketPropsMixin.LambdaConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucketPropsMixin.LambdaConfigurationProperty>
A builder for
CfnBucketPropsMixin.LambdaConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBucketPropsMixin.LambdaConfigurationProperty.getEvent()Sets the value ofCfnBucketPropsMixin.LambdaConfigurationProperty.getFilter()filter(IResolvable filter) Sets the value ofCfnBucketPropsMixin.LambdaConfigurationProperty.getFilter()Sets the value ofCfnBucketPropsMixin.LambdaConfigurationProperty.getFunction()function(IFunctionRef function) Sets the value ofCfnBucketPropsMixin.LambdaConfigurationProperty.getFunction()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
event
@Stability(Stable) public CfnBucketPropsMixin.LambdaConfigurationProperty.Builder event(String event) Sets the value ofCfnBucketPropsMixin.LambdaConfigurationProperty.getEvent()- Parameters:
event- The Amazon S3 bucket event for which to invoke the AWS Lambda function. For more information, see Supported Event Types in the Amazon S3 User Guide .- Returns:
this
-
filter
@Stability(Stable) public CfnBucketPropsMixin.LambdaConfigurationProperty.Builder filter(IResolvable filter) Sets the value ofCfnBucketPropsMixin.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.jpgextension invoke the function when they are added to the Amazon S3 bucket.- Returns:
this
-
filter
@Stability(Stable) public CfnBucketPropsMixin.LambdaConfigurationProperty.Builder filter(CfnBucketPropsMixin.NotificationFilterProperty filter) Sets the value ofCfnBucketPropsMixin.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.jpgextension invoke the function when they are added to the Amazon S3 bucket.- Returns:
this
-
function
@Stability(Stable) public CfnBucketPropsMixin.LambdaConfigurationProperty.Builder function(String function) Sets the value ofCfnBucketPropsMixin.LambdaConfigurationProperty.getFunction()- Parameters:
function- The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon S3 invokes when the specified event type occurs.- Returns:
this
-
function
@Stability(Stable) public CfnBucketPropsMixin.LambdaConfigurationProperty.Builder function(IFunctionRef function) Sets the value ofCfnBucketPropsMixin.LambdaConfigurationProperty.getFunction()- Parameters:
function- The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon S3 invokes when the specified event type occurs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucketPropsMixin.LambdaConfigurationProperty>- Returns:
- a new instance of
CfnBucketPropsMixin.LambdaConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-