@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-31T18:36:54.376Z")
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(java.lang.String name)
Used to specify a custom architecture name.
|
static Architecture |
custom(java.lang.String name,
java.lang.String dockerPlatform)
Used to specify a custom architecture name.
|
java.lang.String |
getDockerPlatform()
The platform to use for this architecture when building with Docker.
|
java.lang.String |
getName()
The name of the architecture as recognized by the AWS Lambda service APIs.
|
public static final Architecture ARM_64
public static final Architecture X86_64
protected Architecture(software.amazon.jsii.JsiiObjectRef objRef)
protected Architecture(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public static Architecture custom(java.lang.String name, java.lang.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.public static Architecture custom(java.lang.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.public java.lang.String getDockerPlatform()
public java.lang.String getName()