Class Platform_
platform supported by docker.
Inheritance
Namespace: Amazon.CDK.AWS.Ecr.Assets
Assembly: Amazon.CDK.ECR.Assets.dll
Syntax (csharp)
public class Platform_ : DeputyBase
Syntax (vb)
Public Class Platform_
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Ecr.Assets;
var asset = new DockerImageAsset(this, "MyBuildImage", new DockerImageAssetProps {
Directory = Join(__dirname, "my-image"),
Platform = Platform.LINUX_ARM64
});
Synopsis
Constructors
Platform_(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Platform_(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
LINUX_AMD64 | Build for linux/amd64. |
LINUX_ARM64 | Build for linux/arm64. |
Platform | The platform to use for docker build. |
Methods
Custom(String) | Used to specify a custom platform Use this if the platform name is not yet supported by the CDK. |
Constructors
Platform_(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Platform_(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Platform_(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Platform_(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
LINUX_AMD64
LINUX_ARM64
Platform
The platform to use for docker build.
public virtual string Platform { get; }
Property Value
System.String
Methods
Custom(String)
Used to specify a custom platform Use this if the platform name is not yet supported by the CDK.
public static Platform_ Custom(string platform)
Parameters
- platform System.String
The platform to use for docker build.
Returns