Interface BucketOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
BucketOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:08.401Z")
@Stability(Stable)
public interface BucketOptions
extends software.amazon.jsii.JsiiSerializable
Optional parameters for creating code using bucket.
Example:
import software.amazon.awscdk.services.kms.Key;
import software.amazon.awscdk.services.s3.*;
Key key;
Bucket bucket = new Bucket(this, "Bucket");
Map<String, Key> options = Map.of(
"sourceKMSKey", key);
Function fnBucket = Function.Builder.create(this, "myFunction2")
.runtime(Runtime.NODEJS_LATEST)
.handler("index.handler")
.code(Code.fromBucketV2(bucket, "python-lambda-handler.zip", options))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forBucketOptionsstatic final classAn implementation forBucketOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic BucketOptions.Builderbuilder()default StringOptional S3 object version.default IKeyRefThe ARN of the KMS key used to encrypt the handler code.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getObjectVersion
Optional S3 object version. -
getSourceKMSKey
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.
-
builder
- Returns:
- a
BucketOptions.BuilderofBucketOptions
-