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.119.0 (build 1634eac)", date="2025-11-20T23:37:34.454Z") @Stability(Experimental) public enum ComponentSchemaVersion extends Enum<ComponentSchemaVersion>
(experimental) The schema version of the component.

Example:

 Component component = Component.Builder.create(this, "EncryptedComponent")
         .platform(Platform.LINUX)
         .kmsKey(new Key(this, "ComponentKey"))
         .data(ComponentData.fromJsonObject(Map.of(
                 "schemaVersion", ComponentSchemaVersion.V1_0,
                 "phases", List.of(Map.of(
                         "name", ComponentPhaseName.BUILD,
                         "steps", List.of(Map.of(
                                 "name", "secure-setup",
                                 "action", ComponentAction.EXECUTE_BASH,
                                 "inputs", Map.of(
                                         "commands", List.of("echo \"This component data is encrypted with KMS\"")))))))))
         .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