Class Architecture
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lambda.Architecture
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-20T14:04:26.862Z")
@Stability(Stable)
public class Architecture
extends software.amazon.jsii.JsiiObject
Architectures supported by AWS Lambda.
Example:
Function.Builder.create(this, "MyFunction") .runtime(Runtime.NODEJS_18_X) .handler("index.handler") .architecture(Architecture.ARM_64) .code(Code.fromAsset(join(__dirname, "lambda-handler"))) .insightsVersion(LambdaInsightsVersion.VERSION_1_0_119_0) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Architecture
64 bit architecture with the ARM instruction set.static final Architecture
64 bit architecture with x86 instruction set. -
Constructor Summary
ModifierConstructorDescriptionprotected
Architecture
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
Architecture
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic Architecture
Used to specify a custom architecture name.static Architecture
Used to specify a custom architecture name.The platform to use for this architecture when building with Docker.getName()
The name of the architecture as recognized by the AWS Lambda service APIs.toString()
Returns a string representation of the architecture using the name.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
ARM_64
64 bit architecture with the ARM instruction set. -
X86_64
64 bit architecture with x86 instruction set.
-
-
Constructor Details
-
Architecture
protected Architecture(software.amazon.jsii.JsiiObjectRef objRef) -
Architecture
protected Architecture(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
custom
@Stability(Stable) @NotNull public static Architecture custom(@NotNull String name, @Nullable String dockerPlatform) Used to specify a custom architecture name.Use this if the architecture name is not yet supported by the CDK.
- Parameters:
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.
-
custom
Used to specify a custom architecture name.Use this if the architecture name is not yet supported by the CDK.
- Parameters:
name
- the architecture name as recognized by AWS Lambda. This parameter is required.
-
toString
Returns a string representation of the architecture using the name. -
getDockerPlatform
The platform to use for this architecture when building with Docker. -
getName
The name of the architecture as recognized by the AWS Lambda service APIs.
-