@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.568Z") @Stability(value=Stable) public enum AmiHardwareType extends Enum<AmiHardwareType>
For more information, see Amazon ECS-optimized AMIs.
Example:
Cluster cluster;
cluster.addCapacity("graviton-cluster", AddCapacityOptions.builder()
.minCapacity(2)
.instanceType(new InstanceType("c6g.large"))
.machineImage(EcsOptimizedImage.amazonLinux2(AmiHardwareType.ARM))
.build());
| Enum Constant and Description |
|---|
ARM
Use the Amazon ECS-optimized Amazon Linux 2 (arm64) AMI.
|
GPU
Use the Amazon ECS GPU-optimized AMI.
|
STANDARD
Use the standard Amazon ECS-optimized AMI.
|
| Modifier and Type | Method and Description |
|---|---|
static AmiHardwareType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AmiHardwareType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final AmiHardwareType STANDARD
@Stability(value=Stable) public static final AmiHardwareType GPU
@Stability(value=Stable) public static final AmiHardwareType ARM
public static AmiHardwareType[] values()
for (AmiHardwareType c : AmiHardwareType.values()) System.out.println(c);
public static AmiHardwareType 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.