class Architecture
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.Lambda.Architecture | 
|  Java | software.amazon.awscdk.services.lambda.Architecture | 
|  Python | aws_cdk.aws_lambda.Architecture | 
|  TypeScript (source) | @aws-cdk/aws-lambda»Architecture | 
Architectures supported by AWS Lambda.
Example
new lambda.Function(this, 'MyFunction', {
  runtime: lambda.Runtime.NODEJS_16_X,
  handler: 'index.handler',
  architecture: lambda.Architecture.ARM_64,
  code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),
  insightsVersion: lambda.LambdaInsightsVersion.VERSION_1_0_119_0,
});
Properties
| Name | Type | Description | 
|---|---|---|
| docker | string | The platform to use for this architecture when building with Docker. | 
| name | string | The name of the architecture as recognized by the AWS Lambda service APIs. | 
| static ARM_64 | Architecture | 64 bit architecture with the ARM instruction set. | 
| static X86_64 | Architecture | 64 bit architecture with x86 instruction set. | 
dockerPlatform
Type:
string
The platform to use for this architecture when building with Docker.
name
Type:
string
The name of the architecture as recognized by the AWS Lambda service APIs.
static ARM_64
Type:
Architecture
64 bit architecture with the ARM instruction set.
static X86_64
Type:
Architecture
64 bit architecture with x86 instruction set.
Methods
| Name | Description | 
|---|---|
| static custom(name, dockerPlatform?) | Used to specify a custom architecture name. | 
static custom(name, dockerPlatform?)
public static custom(name: string, dockerPlatform?: string): Architecture
Parameters
- name string— the architecture name as recognized by AWS Lambda.
- dockerPlatform string— the platform to use for this architecture when building with Docker.
Returns
Used to specify a custom architecture name.
Use this if the architecture name is not yet supported by the CDK.
