Class S3Code
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lambda.Code
software.amazon.awscdk.services.lambda.S3Code
- All Implemented Interfaces:
- software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
           date="2025-10-29T11:15:42.719Z")
@Stability(Stable)
public class S3Code
extends Code
Lambda code from an S3 archive.
 
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.lambda.*; import software.amazon.awscdk.services.s3.*; Bucket bucket; S3Code s3Code = new S3Code(bucket, "key", "objectVersion");
- 
Nested Class SummaryNested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationMode
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.CodebindToResource, bindToResource, fromAsset, fromAsset, fromAssetImage, fromAssetImage, fromBucket, fromBucket, fromBucketV2, fromBucketV2, fromCfnParameters, fromCfnParameters, fromCustomCommand, fromCustomCommand, fromDockerBuild, fromDockerBuild, fromEcrImage, fromEcrImage, fromInlineMethods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Constructor Details- 
S3Codeprotected S3Code(software.amazon.jsii.JsiiObjectRef objRef) 
- 
S3Codeprotected S3Code(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) 
- 
S3Code@Stability(Stable) public S3Code(@NotNull IBucket bucket, @NotNull String key, @Nullable String objectVersion) - Parameters:
- bucket- This parameter is required.
- key- This parameter is required.
- objectVersion-
 
- 
S3Code- Parameters:
- bucket- This parameter is required.
- key- This parameter is required.
 
 
- 
- 
Method Details