Enum ImageArchitecture

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

@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)", date="2025-12-05T22:26:50.057Z") @Stability(Experimental) public enum ImageArchitecture extends Enum<ImageArchitecture>
(experimental) The architecture of the image.

Example:

 // Amazon Linux 2023 AMI for x86_64
 IImage amazonLinux2023Ami = AmazonManagedImage.amazonLinux2023(this, "AmazonLinux2023", AmazonManagedImageOptions.builder()
         .imageType(ImageType.AMI)
         .imageArchitecture(ImageArchitecture.X86_64)
         .build());
 // Ubuntu 22.04 AMI for ARM64
 IImage ubuntu2204Ami = AmazonManagedImage.ubuntuServer2204(this, "Ubuntu2204", AmazonManagedImageOptions.builder()
         .imageType(ImageType.AMI)
         .imageArchitecture(ImageArchitecture.ARM64)
         .build());
 // Windows Server 2022 Full AMI
 IImage windows2022Ami = AmazonManagedImage.windowsServer2022Full(this, "Windows2022", AmazonManagedImageOptions.builder()
         .imageType(ImageType.AMI)
         .imageArchitecture(ImageArchitecture.X86_64)
         .build());
 // Use as base image in recipe
 ImageRecipe managedImageRecipe = ImageRecipe.Builder.create(this, "ManagedImageRecipe")
         .baseImage(amazonLinux2023Ami.toBaseImage())
         .build();
 
  • Enum Constant Details

    • ARM64

      @Stability(Experimental) public static final ImageArchitecture ARM64
      (experimental) 64 bit architecture with the ARM instruction set.
    • X86_64

      @Stability(Experimental) public static final ImageArchitecture X86_64
      (experimental) 64 bit architecture with x86 instruction set.
  • Method Details

    • values

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