java.lang.Object
java.lang.Enum<Platform>
software.amazon.awscdk.services.imagebuilder.alpha.Platform
All Implemented Interfaces:
Serializable, Comparable<Platform>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)", date="2025-11-20T23:37:34.467Z") @Stability(Experimental) public enum Platform extends Enum<Platform>
(experimental) Represents a platform for an EC2 Image Builder image.

Example:

 Component component = Component.Builder.create(this, "MyComponent")
         .platform(Platform.LINUX)
         .data(ComponentData.fromJsonObject(Map.of(
                 "schemaVersion", ComponentSchemaVersion.V1_0,
                 "phases", List.of(Map.of(
                         "name", ComponentPhaseName.BUILD,
                         "steps", List.of(Map.of(
                                 "name", "install-app",
                                 "action", ComponentAction.EXECUTE_BASH,
                                 "inputs", Map.of(
                                         "commands", List.of("echo \"Installing my application...\"", "yum update -y")))))))))
         .build();
 
  • Enum Constant Details

    • LINUX

      @Stability(Experimental) public static final Platform LINUX
      (experimental) Platform for Linux.
    • WINDOWS

      @Stability(Experimental) public static final Platform WINDOWS
      (experimental) Platform for Windows.
    • MAC_OS

      @Stability(Experimental) public static final Platform MAC_OS
      (experimental) Platform for macOS.
  • Method Details

    • values

      public static Platform[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Platform valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null