Class S3ToLambdaProps.Builder
java.lang.Object
software.amazon.awsconstructs.services.s3lambda.S3ToLambdaProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3ToLambdaProps>
- Enclosing interface:
S3ToLambdaProps
public static final class S3ToLambdaProps.Builder
extends Object
implements software.amazon.jsii.Builder<S3ToLambdaProps>
A builder for
S3ToLambdaProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucketProps(software.amazon.awscdk.services.s3.BucketProps bucketProps) Sets the value ofS3ToLambdaProps.getBucketProps()build()Builds the configured instance.existingBucketObj(software.amazon.awscdk.services.s3.Bucket existingBucketObj) Sets the value ofS3ToLambdaProps.getExistingBucketObj()existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofS3ToLambdaProps.getExistingLambdaObj()lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofS3ToLambdaProps.getLambdaFunctionProps()loggingBucketProps(software.amazon.awscdk.services.s3.BucketProps loggingBucketProps) Sets the value ofS3ToLambdaProps.getLoggingBucketProps()logS3AccessLogs(Boolean logS3AccessLogs) Sets the value ofS3ToLambdaProps.getLogS3AccessLogs()s3EventSourceProps(software.amazon.awscdk.services.lambda.eventsources.S3EventSourceProps s3EventSourceProps) Sets the value ofS3ToLambdaProps.getS3EventSourceProps()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketProps
public S3ToLambdaProps.Builder bucketProps(software.amazon.awscdk.services.s3.BucketProps bucketProps) Sets the value ofS3ToLambdaProps.getBucketProps()- Parameters:
bucketProps- Optional user provided props to override the default props for the S3 Bucket.- Returns:
this
-
existingBucketObj
public S3ToLambdaProps.Builder existingBucketObj(software.amazon.awscdk.services.s3.Bucket existingBucketObj) Sets the value ofS3ToLambdaProps.getExistingBucketObj()- Parameters:
existingBucketObj- Existing instance of S3 Bucket object, providing both this andbucketPropswill cause an error.- Returns:
this
-
existingLambdaObj
public S3ToLambdaProps.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Sets the value ofS3ToLambdaProps.getExistingLambdaObj()- Parameters:
existingLambdaObj- Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.- Returns:
this
-
lambdaFunctionProps
public S3ToLambdaProps.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Sets the value ofS3ToLambdaProps.getLambdaFunctionProps()- Parameters:
lambdaFunctionProps- Optional user provided props to override the default props for the Lambda function.- Returns:
this
-
loggingBucketProps
public S3ToLambdaProps.Builder loggingBucketProps(software.amazon.awscdk.services.s3.BucketProps loggingBucketProps) Sets the value ofS3ToLambdaProps.getLoggingBucketProps()- Parameters:
loggingBucketProps- Optional user provided props to override the default props for the S3 Logging Bucket.- Returns:
this
-
logS3AccessLogs
Sets the value ofS3ToLambdaProps.getLogS3AccessLogs()- Parameters:
logS3AccessLogs- Whether to turn on Access Logs for the S3 bucket with the associated storage costs. Enabling Access Logging is a best practice.- Returns:
this
-
s3EventSourceProps
public S3ToLambdaProps.Builder s3EventSourceProps(software.amazon.awscdk.services.lambda.eventsources.S3EventSourceProps s3EventSourceProps) Sets the value ofS3ToLambdaProps.getS3EventSourceProps()- Parameters:
s3EventSourceProps- Optional user provided props to override the default props.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<S3ToLambdaProps>- Returns:
- a new instance of
S3ToLambdaProps - Throws:
NullPointerException- if any required attribute was not provided
-