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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.objectVersion(String objectVersion) Sets the value ofBucketOptions.getObjectVersion()s3ObjectStorageMode(S3ObjectStorageMode s3ObjectStorageMode) Sets the value ofBucketOptions.getS3ObjectStorageMode()sourceKmsKey(IKeyRef sourceKmsKey) Sets the value ofinvalid reference
BucketOptions#getSourceKmsKey
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
objectVersion
Sets the value ofBucketOptions.getObjectVersion()- Parameters:
objectVersion- Optional S3 object version. Required whens3ObjectStorageModeis set toS3ObjectStorageMode.REFERENCE.- Returns:
this
-
s3ObjectStorageMode
@Stability(Stable) public BucketOptions.Builder s3ObjectStorageMode(S3ObjectStorageMode s3ObjectStorageMode) Sets the value ofBucketOptions.getS3ObjectStorageMode()- Parameters:
s3ObjectStorageMode- How Lambda manages the storage of your code package.- Returns:
this
-
sourceKmsKey
Sets the value ofinvalid reference
BucketOptions#getSourceKmsKey- Parameters:
sourceKmsKey- The KMS key that Lambda uses to encrypt the deployment package in Lambda-managed storage. This is not the key used to encrypt the source object in Amazon S3.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BucketOptions>- Returns:
- a new instance of
BucketOptions - Throws:
NullPointerException- if any required attribute was not provided
-