Class S3ToLambda.Builder
java.lang.Object
software.amazon.awsconstructs.services.s3lambda.S3ToLambda.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<S3ToLambda>
- Enclosing class:
S3ToLambda
public static final class S3ToLambda.Builder
extends Object
implements software.amazon.jsii.Builder<S3ToLambda>
A fluent builder for
S3ToLambda.-
Method Summary
Modifier and TypeMethodDescriptionbucketProps(software.amazon.awscdk.services.s3.BucketProps bucketProps) Optional user provided props to override the default props for the S3 Bucket.build()static S3ToLambda.BuilderexistingBucketObj(software.amazon.awscdk.services.s3.Bucket existingBucketObj) Existing instance of S3 Bucket object, providing both this andbucketPropswill cause an error.existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Optional user provided props to override the default props for the Lambda function.loggingBucketProps(software.amazon.awscdk.services.s3.BucketProps loggingBucketProps) Optional user provided props to override the default props for the S3 Logging Bucket.logS3AccessLogs(Boolean logS3AccessLogs) Whether to turn on Access Logs for the S3 bucket with the associated storage costs.s3EventSourceProps(software.amazon.awscdk.services.lambda.eventsources.S3EventSourceProps s3EventSourceProps) Optional user provided props to override the default props.
-
Method Details
-
create
- Parameters:
scope-- represents the scope for all the resources.
id-- this is a a scope-unique id.
- Returns:
- a new instance of
S3ToLambda.Builder.
-
bucketProps
Optional user provided props to override the default props for the S3 Bucket.Default: - Default props are used
- Parameters:
bucketProps- Optional user provided props to override the default props for the S3 Bucket. This parameter is required.- Returns:
this
-
existingBucketObj
public S3ToLambda.Builder existingBucketObj(software.amazon.awscdk.services.s3.Bucket existingBucketObj) Existing instance of S3 Bucket object, providing both this andbucketPropswill cause an error.Default: - None
- Parameters:
existingBucketObj- Existing instance of S3 Bucket object, providing both this andbucketPropswill cause an error. This parameter is required.- Returns:
this
-
existingLambdaObj
public S3ToLambda.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj) Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error.Default: - None
- Parameters:
existingLambdaObj- Existing instance of Lambda Function object, providing both this andlambdaFunctionPropswill cause an error. This parameter is required.- Returns:
this
-
lambdaFunctionProps
public S3ToLambda.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) Optional user provided props to override the default props for the Lambda function.Default: - Default props are used
- Parameters:
lambdaFunctionProps- Optional user provided props to override the default props for the Lambda function. This parameter is required.- Returns:
this
-
loggingBucketProps
public S3ToLambda.Builder loggingBucketProps(software.amazon.awscdk.services.s3.BucketProps loggingBucketProps) Optional user provided props to override the default props for the S3 Logging Bucket.Default: - Default props are used
- Parameters:
loggingBucketProps- Optional user provided props to override the default props for the S3 Logging Bucket. This parameter is required.- Returns:
this
-
logS3AccessLogs
Whether to turn on Access Logs for the S3 bucket with the associated storage costs.Enabling Access Logging is a best practice.
Default: - true
- Parameters:
logS3AccessLogs- Whether to turn on Access Logs for the S3 bucket with the associated storage costs. This parameter is required.- Returns:
this
-
s3EventSourceProps
public S3ToLambda.Builder s3EventSourceProps(software.amazon.awscdk.services.lambda.eventsources.S3EventSourceProps s3EventSourceProps) Optional user provided props to override the default props.Default: - Default props are used
- Parameters:
s3EventSourceProps- Optional user provided props to override the default props. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<S3ToLambda>- Returns:
- a newly built instance of
S3ToLambda.
-