Enum AcceleratorName
- All Implemented Interfaces:
Serializable,Comparable<AcceleratorName>,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)",
date="2026-02-09T14:39:09.177Z")
@Stability(Stable)
public enum AcceleratorName
extends Enum<AcceleratorName>
Specific hardware accelerator models supported by EC2.
Defines exact accelerator models that can be required or excluded when selecting instance types.
Example:
Vpc vpc;
SecurityGroup securityGroup = SecurityGroup.Builder.create(this, "SecurityGroup")
.vpc(vpc)
.description("Security group for managed instances")
.build();
ManagedInstancesCapacityProvider miCapacityProvider = ManagedInstancesCapacityProvider.Builder.create(this, "MICapacityProvider")
.subnets(vpc.getPrivateSubnets())
.securityGroups(List.of(securityGroup))
.instanceRequirements(InstanceRequirementsConfig.builder()
// Required: CPU and memory constraints
.vCpuCountMin(2)
.vCpuCountMax(8)
.memoryMin(Size.gibibytes(4))
.memoryMax(Size.gibibytes(32))
// CPU preferences
.cpuManufacturers(List.of(CpuManufacturer.INTEL, CpuManufacturer.AMD))
.instanceGenerations(List.of(InstanceGeneration.CURRENT))
// Instance type filtering
.allowedInstanceTypes(List.of("m5.*", "c5.*"))
// Performance characteristics
.burstablePerformance(BurstablePerformance.EXCLUDED)
.bareMetal(BareMetal.EXCLUDED)
// Accelerator requirements (for ML/AI workloads)
.acceleratorTypes(List.of(AcceleratorType.GPU))
.acceleratorManufacturers(List.of(AcceleratorManufacturer.NVIDIA))
.acceleratorNames(List.of(AcceleratorName.T4, AcceleratorName.V100))
.acceleratorCountMin(1)
// Storage requirements
.localStorage(LocalStorage.REQUIRED)
.localStorageTypes(List.of(LocalStorageType.SSD))
.totalLocalStorageGBMin(100)
// Network requirements
.networkInterfaceCountMin(2)
.networkBandwidthGbpsMin(10)
// Cost optimization
.onDemandMaxPricePercentageOverLowestPrice(10)
.build())
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNVIDIA A100 GPU.NVIDIA A10G GPU.Habana Gaudi HL-205 accelerator for deep learning training.NVIDIA H100 GPU.AWS Inferentia chips.AWS Inferentia2 chips for high-performance ML inference.NVIDIA GRID K520 GPU.NVIDIA K80 GPU.NVIDIA L4 GPU for AI inference and graphics workloads.NVIDIA L40S GPU for AI inference and graphics workloads.NVIDIA M60 GPU.AMD Radeon Pro V520 GPU.NVIDIA T4 GPU.NVIDIA T4G GPUs.AWS Trainium chips for high-performance ML training.AWS Trainium2 chips for high-performance ML training.Xilinx U30 media transcoding accelerator for video processing.NVIDIA V100 GPU.Xilinx VU9P FPGA. -
Method Summary
Modifier and TypeMethodDescriptionstatic AcceleratorNameReturns the enum constant of this type with the specified name.static AcceleratorName[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
A100
NVIDIA A100 GPU. -
K80
NVIDIA K80 GPU. -
M60
NVIDIA M60 GPU. -
RADEON_PRO_V520
AMD Radeon Pro V520 GPU. -
T4
NVIDIA T4 GPU. -
V100
NVIDIA V100 GPU. -
VU9P
Xilinx VU9P FPGA. -
A10G
NVIDIA A10G GPU. -
H100
NVIDIA H100 GPU. -
INFERENTIA
AWS Inferentia chips. -
K520
NVIDIA GRID K520 GPU. -
T4G
NVIDIA T4G GPUs. -
L40S
NVIDIA L40S GPU for AI inference and graphics workloads. -
L4
NVIDIA L4 GPU for AI inference and graphics workloads. -
GAUDI_HL_205
Habana Gaudi HL-205 accelerator for deep learning training. -
INFERENTIA2
AWS Inferentia2 chips for high-performance ML inference. -
TRAINIUM
AWS Trainium chips for high-performance ML training. -
TRAINIUM2
AWS Trainium2 chips for high-performance ML training. -
U30
Xilinx U30 media transcoding accelerator for video processing.
-
-
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
-