Enum ComponentSchemaVersion

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

@Generated(value="jsii-pacmak/1.125.0 (build fdbe357)", date="2026-01-09T10:20:30.333Z") @Stability(Experimental) public enum ComponentSchemaVersion extends Enum<ComponentSchemaVersion>
(experimental) The schema version of the component.

Example:

 Component customComponent = 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("yum install -y my-application")))))))))
         .build();
 ImageRecipe imageRecipe = ImageRecipe.Builder.create(this, "ComponentImageRecipe")
         .baseImage(BaseImage.fromSsmParameterName("/aws/service/ami-amazon-linux-latest/al2023-ami-minimal-kernel-default-x86_64"))
         .components(List.of(ComponentConfiguration.builder()
                 .component(customComponent)
                 .build()))
         .build();
 
  • Enum Constant Details

    • V1_0

      @Stability(Experimental) public static final ComponentSchemaVersion V1_0
      (experimental) Schema version 1.0 for the component document.
  • Method Details

    • values

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