A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/cdk/api/v1/python/aws_cdk.aws_lambda/Architecture.html below:

Website Navigation


Architecture — AWS Cloud Development Kit 1.204.0 documentation

Architecture
class aws_cdk.aws_lambda.Architecture(*args: Any, **kwargs)

Bases: object

Architectures supported by AWS Lambda.

ExampleMetadata:

infused

Example:

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
)

Attributes

ARM_64 = <aws_cdk.aws_lambda.Architecture object>
X86_64 = <aws_cdk.aws_lambda.Architecture object>
docker_platform

The platform to use for this architecture when building with Docker.

name

The name of the architecture as recognized by the AWS Lambda service APIs.

Static Methods

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.

Parameters:
  • name (str) – the architecture name as recognized by AWS Lambda.

  • docker_platform (Optional[str]) – the platform to use for this architecture when building with Docker.

Return type:

Architecture


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4