@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.376Z") @Stability(value=Stable) public class Architecture extends software.amazon.jsii.JsiiObject
Example:
Function.Builder.create(this, "MyFunction")
.runtime(Runtime.NODEJS_16_X)
.handler("index.handler")
.architecture(Architecture.ARM_64)
.code(Code.fromAsset(join(__dirname, "lambda-handler")))
.insightsVersion(LambdaInsightsVersion.VERSION_1_0_119_0)
.build();
| Modifier and Type | Field and Description |
|---|---|
static Architecture |
ARM_64
64 bit architecture with the ARM instruction set.
|
static Architecture |
X86_64
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)
Used to specify a custom architecture name.
|
static Architecture |
custom(String name,
String dockerPlatform)
Used to specify a custom architecture name.
|
String |
getDockerPlatform()
The platform to use for this architecture when building with Docker.
|
String |
getName()
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=Stable) public static final Architecture ARM_64
@Stability(value=Stable) public static final Architecture X86_64
protected Architecture(software.amazon.jsii.JsiiObjectRef objRef)
protected Architecture(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @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=Stable) @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=Stable) @NotNull public String getDockerPlatform()
@Stability(value=Stable) @NotNull public String getName()
Copyright © 2022. All rights reserved.