Enum AcceleratorName

java.lang.Object
java.lang.Enum<AcceleratorName>
software.amazon.awscdk.services.ec2.AcceleratorName
All Implemented Interfaces:
Serializable, Comparable<AcceleratorName>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-10-01T17:46:51.783Z") @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:

 Role infrastructureRole;
 InstanceProfile instanceProfile;
 Vpc vpc;
 ManagedInstancesCapacityProvider miCapacityProvider = ManagedInstancesCapacityProvider.Builder.create(this, "MICapacityProvider")
         .infrastructureRole(infrastructureRole)
         .ec2InstanceProfile(instanceProfile)
         .subnets(vpc.getPrivateSubnets())
         .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();
 
  • Enum Constant Details

    • A100

      @Stability(Stable) public static final AcceleratorName A100
      NVIDIA A100 GPU.
    • K80

      @Stability(Stable) public static final AcceleratorName K80
      NVIDIA K80 GPU.
    • M60

      @Stability(Stable) public static final AcceleratorName M60
      NVIDIA M60 GPU.
    • RADEON_PRO_V520

      @Stability(Stable) public static final AcceleratorName RADEON_PRO_V520
      AMD Radeon Pro V520 GPU.
    • T4

      @Stability(Stable) public static final AcceleratorName T4
      NVIDIA T4 GPU.
    • V100

      @Stability(Stable) public static final AcceleratorName V100
      NVIDIA V100 GPU.
    • VU9P

      @Stability(Stable) public static final AcceleratorName VU9P
      Xilinx VU9P FPGA.
  • Method Details

    • values

      public static AcceleratorName[] 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 AcceleratorName 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