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 Details

    • Builder

      public Builder()
  • Method Details

    • bucketProps

      public S3ToLambdaProps.Builder bucketProps(software.amazon.awscdk.services.s3.BucketProps bucketProps)
      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)
      Parameters:
      existingBucketObj - Existing instance of S3 Bucket object, providing both this and bucketProps will cause an error.
      Returns:
      this
    • existingLambdaObj

      public S3ToLambdaProps.Builder existingLambdaObj(software.amazon.awscdk.services.lambda.Function existingLambdaObj)
      Parameters:
      existingLambdaObj - Existing instance of Lambda Function object, providing both this and lambdaFunctionProps will cause an error.
      Returns:
      this
    • lambdaFunctionProps

      public S3ToLambdaProps.Builder lambdaFunctionProps(software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps)
      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)
      Parameters:
      loggingBucketProps - Optional user provided props to override the default props for the S3 Logging Bucket.
      Returns:
      this
    • logS3AccessLogs

      public S3ToLambdaProps.Builder logS3AccessLogs(Boolean logS3AccessLogs)
      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)
      Parameters:
      s3EventSourceProps - Optional user provided props to override the default props.
      Returns:
      this
    • build

      public S3ToLambdaProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<S3ToLambdaProps>
      Returns:
      a new instance of S3ToLambdaProps
      Throws:
      NullPointerException - if any required attribute was not provided