@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:11.259Z") @Stability(value=Experimental) public class Architecture extends software.amazon.jsii.JsiiObject
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();
| Modifier and Type | Field and Description |
|---|---|
static Architecture |
ARM_64
(experimental) 64 bit architecture with the ARM instruction set.
|
static Architecture |
X86_64
(experimental) 64 bit architecture with x86 instruction set.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Architecture(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Architecture(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static Architecture |
custom(String name)
(experimental) Used to specify a custom architecture name.
|
static Architecture |
custom(String name,
String dockerPlatform)
(experimental) Used to specify a custom architecture name.
|
String |
getDockerPlatform()
(experimental) The platform to use for this architecture when building with Docker.
|
String |
getName()
(experimental) The name of the architecture as recognized by the AWS Lambda service APIs.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Experimental) public static final Architecture ARM_64
@Stability(value=Experimental) public static final Architecture X86_64
protected Architecture(software.amazon.jsii.JsiiObjectRef objRef)
protected Architecture(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static Architecture custom(@NotNull String name, @Nullable String dockerPlatform)
Use this if the architecture name is not yet supported by the CDK.
name - the architecture name as recognized by AWS Lambda. This parameter is required.dockerPlatform - the platform to use for this architecture when building with Docker.@Stability(value=Experimental) @NotNull public static Architecture custom(@NotNull String name)
Use this if the architecture name is not yet supported by the CDK.
name - the architecture name as recognized by AWS Lambda. This parameter is required.@Stability(value=Experimental) @NotNull public String getDockerPlatform()
@Stability(value=Experimental) @NotNull public String getName()
Copyright © 2022. All rights reserved.