Enum NodegroupAmiType
- All Implemented Interfaces:
Serializable
,Comparable<NodegroupAmiType>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.92.0 (build db7f27d)",
date="2023-12-06T04:49:38.418Z")
@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_28) .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());
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAmazon Linux 2 (ARM-64).Amazon Linux 2 (x86-64).Amazon Linux 2 with GPU support.Bottlerocket Linux(ARM-64).Bottlerocket(x86-64).Windows Core 2019 (x86-64).Windows Core 2022 (x86-64).Windows Full 2019 (x86-64).Windows Full 2022 (x86-64). -
Method Summary
Modifier and TypeMethodDescriptionstatic NodegroupAmiType
Returns the enum constant of this type with the specified name.static NodegroupAmiType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AL2_X86_64
Amazon Linux 2 (x86-64). -
AL2_X86_64_GPU
Amazon Linux 2 with GPU support. -
AL2_ARM_64
Amazon Linux 2 (ARM-64). -
BOTTLEROCKET_ARM_64
Bottlerocket Linux(ARM-64). -
BOTTLEROCKET_X86_64
Bottlerocket(x86-64). -
WINDOWS_CORE_2019_X86_64
Windows Core 2019 (x86-64). -
WINDOWS_CORE_2022_X86_64
Windows Core 2022 (x86-64). -
WINDOWS_FULL_2019_X86_64
Windows Full 2019 (x86-64). -
WINDOWS_FULL_2022_X86_64
Windows Full 2022 (x86-64).
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-