Interface LayerVersionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,LayerVersionOptions
- All Known Implementing Classes:
LayerVersionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:08.564Z")
@Stability(Stable)
public interface LayerVersionProps
extends software.amazon.jsii.JsiiSerializable, LayerVersionOptions
Example:
LayerVersion.Builder.create(this, "MyLayer")
.removalPolicy(RemovalPolicy.RETAIN)
.code(Code.fromAsset(join(__dirname, "lambda-handler")))
.compatibleArchitectures(List.of(Architecture.X86_64, Architecture.ARM_64))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLayerVersionPropsstatic final classAn implementation forLayerVersionProps -
Method Summary
Modifier and TypeMethodDescriptionstatic LayerVersionProps.Builderbuilder()getCode()The content of this Layer.default List<Architecture> The system architectures compatible with this layer.The runtimes compatible with this Layer.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.lambda.LayerVersionOptions
getDescription, getLayerVersionName, getLicense, getRemovalPolicy
-
Method Details
-
getCode
The content of this Layer.Using
Code.fromInlineis not supported. -
getCompatibleArchitectures
The system architectures compatible with this layer.Default: [Architecture.X86_64]
-
getCompatibleRuntimes
The runtimes compatible with this Layer.Default: - All runtimes are supported.
-
builder
- Returns:
- a
LayerVersionProps.BuilderofLayerVersionProps
-