Class BucketOptions.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • objectVersion

      @Stability(Stable) public BucketOptions.Builder objectVersion(String objectVersion)
      Parameters:
      objectVersion - Optional S3 object version.
      Returns:
      this
    • sourceKmsKey

      @Stability(Stable) public BucketOptions.Builder sourceKmsKey(IKey sourceKmsKey)
      Sets the value of
      invalid @link
      BucketOptions#getSourceKmsKey
      Parameters:
      sourceKmsKey - The ARN of the KMS key used to encrypt the handler code.
      Returns:
      this
    • build

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