- class aws_cdk.aws_lambda.Architecture(*args: Any, **kwargs)
Architectures supported by AWS Lambda.
lambda_.Function(self, "MyFunction", runtime=lambda_.Runtime.NODEJS_16_X, handler="index.handler", architecture=lambda_.Architecture.ARM_64, code=lambda_.Code.from_asset(path.join(__dirname, "lambda-handler")), insights_version=lambda_.LambdaInsightsVersion.VERSION_1_0_119_0 )
- ARM_64 = <aws_cdk.aws_lambda.Architecture object>
- X86_64 = <aws_cdk.aws_lambda.Architecture object>
The platform to use for this architecture when building with Docker.
The name of the architecture as recognized by the AWS Lambda service APIs.
- classmethod custom(name, docker_platform=None)
Used to specify a custom architecture name.
Use this if the architecture name is not yet supported by the CDK.
str) – the architecture name as recognized by AWS Lambda.
str]) – the platform to use for this architecture when building with Docker.
- Return type: