Platform

class aws_cdk.aws_ecr_assets.Platform(*args: Any, **kwargs)

Bases: object

platform supported by docker.

ExampleMetadata:

infused

Example:

from aws_cdk.aws_ecr_assets import DockerImageAsset, Platform


asset = DockerImageAsset(self, "MyBuildImage",
    directory=path.join(__dirname, "my-image"),
    platform=Platform.LINUX_ARM64
)

Attributes

LINUX_AMD64 = <aws_cdk.aws_ecr_assets.Platform object>
LINUX_ARM64 = <aws_cdk.aws_ecr_assets.Platform object>
platform

The platform to use for docker build.

Static Methods

classmethod custom(platform)

Used to specify a custom platform Use this if the platform name is not yet supported by the CDK.

Parameters:

platform (str) – The platform to use for docker build.

Return type:

Platform