@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:46.751Z") @Stability(value=Stable) public enum NodegroupAmiType extends Enum<NodegroupAmiType>
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 and Description |
|---|
AL2_ARM_64
Amazon Linux 2 (ARM-64).
|
AL2_X86_64
Amazon Linux 2 (x86-64).
|
AL2_X86_64_GPU
Amazon Linux 2 with GPU support.
|
BOTTLEROCKET_ARM_64
Bottlerocket Linux(ARM-64).
|
BOTTLEROCKET_X86_64
Bottlerocket(x86-64).
|
| Modifier and Type | Method and Description |
|---|---|
static NodegroupAmiType |
valueOf(String name)
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.
|
@Stability(value=Stable) public static final NodegroupAmiType AL2_X86_64
@Stability(value=Stable) public static final NodegroupAmiType AL2_X86_64_GPU
@Stability(value=Stable) public static final NodegroupAmiType AL2_ARM_64
@Stability(value=Stable) public static final NodegroupAmiType BOTTLEROCKET_ARM_64
@Stability(value=Stable) public static final NodegroupAmiType BOTTLEROCKET_X86_64
public static NodegroupAmiType[] values()
for (NodegroupAmiType c : NodegroupAmiType.values()) System.out.println(c);
public static NodegroupAmiType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.