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.84.0 (build 5404dcf)", date="2023-06-19T16:30:46.651Z") @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. Non-GPU instances should use the AL2_x86_64 AMI type, which uses the Amazon EKS-optimized Linux AMI.

Example:

 Cluster cluster = Cluster.Builder.create(this, "HelloEKS")
         .version(KubernetesVersion.V1_21)
         .defaultCapacity(0)
         .build();
 cluster.addNodegroupCapacity("custom-node-group", NodegroupOptions.builder()
         .instanceTypes(List.of(new InstanceType("m5.large")))
         .minSize(4)
         .diskSize(100)
         .amiType(NodegroupAmiType.AL2_X86_64_GPU)
         .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).
  • 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