Class S3CodeV2
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lambda.Code
software.amazon.awscdk.services.lambda.S3CodeV2
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-02-06T22:15:56.814Z")
@Stability(Stable)
public class S3CodeV2
extends Code
Lambda code from an S3 archive.
With option to set KMSKey for encryption.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.kms.*; import software.amazon.awscdk.services.lambda.*; import software.amazon.awscdk.services.s3.*; Bucket bucket; Key key; S3CodeV2 s3CodeV2 = S3CodeV2.Builder.create(bucket, "key") .objectVersion("objectVersion") .sourceKMSKey(key) .build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbind
(software.constructs.Construct _scope) Called when the lambda or layer is initialized to allow this object to bind to the stack, add resources and have fun.Determines whether this Code is inline code or not.Methods inherited from class software.amazon.awscdk.services.lambda.Code
bindToResource, bindToResource, fromAsset, fromAsset, fromAssetImage, fromAssetImage, fromBucket, fromBucket, fromBucketV2, fromBucketV2, fromCfnParameters, fromCfnParameters, fromCustomCommand, fromCustomCommand, fromDockerBuild, fromDockerBuild, fromEcrImage, fromEcrImage, fromInline
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
S3CodeV2
protected S3CodeV2(software.amazon.jsii.JsiiObjectRef objRef) -
S3CodeV2
protected S3CodeV2(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
S3CodeV2
@Stability(Stable) public S3CodeV2(@NotNull IBucket bucket, @NotNull String key, @Nullable BucketOptions options) - Parameters:
bucket
- This parameter is required.key
- This parameter is required.options
-
-
S3CodeV2
- Parameters:
bucket
- This parameter is required.key
- This parameter is required.
-
-
Method Details