class Platform
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.Ecr.Assets.Platform | 
|  Java | software.amazon.awscdk.services.ecr.assets.Platform | 
|  Python | aws_cdk.aws_ecr_assets.Platform | 
|  TypeScript (source) | @aws-cdk/aws-ecr-assets»Platform | 
platform supported by docker.
Example
import { DockerImageAsset, Platform } from '@aws-cdk/aws-ecr-assets';
const asset = new DockerImageAsset(this, 'MyBuildImage', {
  directory: path.join(__dirname, 'my-image'),
  platform: Platform.LINUX_ARM64,
})
Properties
| Name | Type | Description | 
|---|---|---|
| platform | string | The platform to use for docker build. | 
| static LINUX_AMD64 | Platform | Build for linux/amd64. | 
| static LINUX_ARM64 | Platform | Build for linux/arm64. | 
platform
Type:
string
The platform to use for docker build.
static LINUX_AMD64
Type:
Platform
Build for linux/amd64.
static LINUX_ARM64
Type:
Platform
Build for linux/arm64.
Methods
| Name | Description | 
|---|---|
| static custom(platform) | Used to specify a custom platform Use this if the platform name is not yet supported by the CDK. | 
static custom(platform)
public static custom(platform: string): Platform
Parameters
- platform string— The platform to use for docker build.
Returns
Used to specify a custom platform Use this if the platform name is not yet supported by the CDK.
