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.104.0 (build e79254c)", date="2024-11-22T02:24:00.863Z") @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
    Modifier and Type
    Field
    Description
    static final Platform
    Build for linux/amd64.
    static final Platform
    Build for linux/arm64.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Platform(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Platform(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Platform
    custom(String 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

      @Stability(Stable) public static final Platform LINUX_AMD64
      Build for linux/amd64.
    • LINUX_ARM64

      @Stability(Stable) public static final Platform 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

      @Stability(Stable) @NotNull public static Platform custom(@NotNull String platform)
      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

      @Stability(Stable) @NotNull public String getPlatform()
      The platform to use for docker build.