Enum ComponentPhaseName

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

@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)", date="2025-11-20T23:37:34.443Z") @Stability(Experimental) public enum ComponentPhaseName extends Enum<ComponentPhaseName>
(experimental) The phases of a component document.

Example:

 Component component = Component.Builder.create(this, "JsonComponent")
         .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", "configure-app",
                                 "action", ComponentAction.CREATE_FILE,
                                 "inputs", Map.of(
                                         "path", "/etc/myapp/config.json",
                                         "content", "{\"env\": \"production\"}"))))))))
         .build();
 
  • Enum Constant Details

    • BUILD

      @Stability(Experimental) public static final ComponentPhaseName BUILD
      (experimental) Build phase of the component.

      This phase is run during the BUILDING phase of the image build.

    • CONTAINER_HOST_TEST

      @Stability(Experimental) public static final ComponentPhaseName CONTAINER_HOST_TEST
      (experimental) Test phase of the component, executed directly on the instance which is used to build the container image.

      This phase is run during the TESTING phase of the image build.

    • TEST

      @Stability(Experimental) public static final ComponentPhaseName TEST
      (experimental) Test phase of the component.

      This phase is run during the TESTING phase of the image build.

    • VALIDATE

      @Stability(Experimental) public static final ComponentPhaseName VALIDATE
      (experimental) Validate phase of the component.

      This phase is run during the BUILDING phase of the image build, after the build step of the component is executed.

  • Method Details

    • values

      public static ComponentPhaseName[] 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 ComponentPhaseName 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