Class Platform
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecr.assets.Platform
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.102.0 (build e354887)",
date="2024-09-10T01:10:08.616Z")
@Stability(Stable)
public class Platform
extends software.amazon.jsii.JsiiObject
platform supported by docker.
Example:
import software.amazon.awscdk.services.ecr.assets.DockerImageAsset; import software.amazon.awscdk.services.ecr.assets.Platform; DockerImageAsset asset = DockerImageAsset.Builder.create(this, "MyBuildImage") .directory(join(__dirname, "my-image")) .platform(Platform.LINUX_ARM64) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Platform
Used to specify a custom platform Use this if the platform name is not yet supported by the CDK.The platform to use for docker build.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
LINUX_AMD64
Build for linux/amd64. -
LINUX_ARM64
Build for linux/arm64.
-
-
Constructor Details
-
Platform
protected Platform(software.amazon.jsii.JsiiObjectRef objRef) -
Platform
protected Platform(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
custom
Used to specify a custom platform Use this if the platform name is not yet supported by the CDK.- Parameters:
platform
- The platform to use for docker build. This parameter is required.
-
getPlatform
The platform to use for docker build.
-