Class S3CodeV2.Builder

java.lang.Object
software.amazon.awscdk.services.lambda.S3CodeV2.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<S3CodeV2>
Enclosing class:
S3CodeV2

@Stability(Stable) public static final class S3CodeV2.Builder extends Object implements software.amazon.jsii.Builder<S3CodeV2>
A fluent builder for S3CodeV2.
  • Method Details

    • create

      @Stability(Stable) public static S3CodeV2.Builder create(IBucket bucket, String key)
      Parameters:
      bucket - This parameter is required.
      key - This parameter is required.
      Returns:
      a new instance of S3CodeV2.Builder.
    • objectVersion

      @Stability(Stable) public S3CodeV2.Builder objectVersion(String objectVersion)
      Optional S3 object version.

      Parameters:
      objectVersion - Optional S3 object version. This parameter is required.
      Returns:
      this
    • sourceKmsKey

      @Stability(Stable) public S3CodeV2.Builder sourceKmsKey(IKey sourceKmsKey)
      The ARN of the KMS key used to encrypt the handler code.

      Default: - the default server-side encryption with Amazon S3 managed keys(SSE-S3) key will be used.

      Parameters:
      sourceKmsKey - The ARN of the KMS key used to encrypt the handler code. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public S3CodeV2 build()
      Specified by:
      build in interface software.amazon.jsii.Builder<S3CodeV2>
      Returns:
      a newly built instance of S3CodeV2.