Enum CpuManufacturer

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

@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)", date="2026-02-23T18:58:17.900Z") @Stability(Stable) public enum CpuManufacturer extends Enum<CpuManufacturer>
CPU manufacturers supported by EC2 instances.

Restricts the acceptable CPU vendor for selected 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();
 
  • Enum Constant Details

    • INTEL

      @Stability(Stable) public static final CpuManufacturer INTEL
      Intel CPUs (e.g., Xeon families).
    • AMD

      @Stability(Stable) public static final CpuManufacturer AMD
      AMD CPUs (e.g., EPYC families).
    • AWS

      @Stability(Stable) public static final CpuManufacturer AWS
      AWS-designed CPUs (e.g., Graviton families).
    • APPLE

      @Stability(Stable) public static final CpuManufacturer APPLE
      Apple CPUs (e.g., M1, M2).
  • Method Details

    • values

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