Enum NodegroupAmiType

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

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-17T05:10:10.827Z") @Stability(Stable) public enum NodegroupAmiType extends Enum<NodegroupAmiType>
The AMI type for your node group.

GPU instance types should use the AL2_x86_64_GPU AMI type, which uses the Amazon EKS-optimized Linux AMI with GPU support or the BOTTLEROCKET_ARM_64_NVIDIA or BOTTLEROCKET_X86_64_NVIDIA AMI types, which uses the Amazon EKS-optimized Linux AMI with Nvidia-GPU support.

Non-GPU instances should use the AL2_x86_64 AMI type, which uses the Amazon EKS-optimized Linux AMI.

Example:

 Cluster cluster;
 cluster.addNodegroupCapacity("BottlerocketNvidiaNG", NodegroupOptions.builder()
         .amiType(NodegroupAmiType.BOTTLEROCKET_X86_64_NVIDIA)
         .instanceTypes(List.of(new InstanceType("g4dn.xlarge")))
         .build());
 
  • Enum Constant Details

    • AL2_X86_64

      @Stability(Stable) public static final NodegroupAmiType AL2_X86_64
      Amazon Linux 2 (x86-64).
    • AL2_X86_64_GPU

      @Stability(Stable) public static final NodegroupAmiType AL2_X86_64_GPU
      Amazon Linux 2 with GPU support.
    • AL2_ARM_64

      @Stability(Stable) public static final NodegroupAmiType AL2_ARM_64
      Amazon Linux 2 (ARM-64).
    • BOTTLEROCKET_ARM_64

      @Stability(Stable) public static final NodegroupAmiType BOTTLEROCKET_ARM_64
      Bottlerocket Linux (ARM-64).
    • BOTTLEROCKET_X86_64

      @Stability(Stable) public static final NodegroupAmiType BOTTLEROCKET_X86_64
      Bottlerocket (x86-64).
    • BOTTLEROCKET_ARM_64_NVIDIA

      @Stability(Stable) public static final NodegroupAmiType BOTTLEROCKET_ARM_64_NVIDIA
      Bottlerocket Linux with Nvidia-GPU support (ARM-64).
    • BOTTLEROCKET_X86_64_NVIDIA

      @Stability(Stable) public static final NodegroupAmiType BOTTLEROCKET_X86_64_NVIDIA
      Bottlerocket with Nvidia-GPU support (x86-64).
    • WINDOWS_CORE_2019_X86_64

      @Stability(Stable) public static final NodegroupAmiType WINDOWS_CORE_2019_X86_64
      Windows Core 2019 (x86-64).
    • WINDOWS_CORE_2022_X86_64

      @Stability(Stable) public static final NodegroupAmiType WINDOWS_CORE_2022_X86_64
      Windows Core 2022 (x86-64).
    • WINDOWS_FULL_2019_X86_64

      @Stability(Stable) public static final NodegroupAmiType WINDOWS_FULL_2019_X86_64
      Windows Full 2019 (x86-64).
    • WINDOWS_FULL_2022_X86_64

      @Stability(Stable) public static final NodegroupAmiType WINDOWS_FULL_2022_X86_64
      Windows Full 2022 (x86-64).
    • AL2023_X86_64_STANDARD

      @Stability(Stable) public static final NodegroupAmiType AL2023_X86_64_STANDARD
      Amazon Linux 2023 (x86-64).
    • AL2023_ARM_64_STANDARD

      @Stability(Stable) public static final NodegroupAmiType AL2023_ARM_64_STANDARD
      Amazon Linux 2023 (ARM-64).
  • Method Details

    • values

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