Enum AcceleratorManufacturer
- All Implemented Interfaces:
Serializable
,Comparable<AcceleratorManufacturer>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-01T17:46:51.783Z")
@Stability(Stable)
public enum AcceleratorManufacturer
extends Enum<AcceleratorManufacturer>
Supported hardware accelerator manufacturers.
Restricts instance selection to accelerators from a particular vendor. Useful for choosing specific ecosystems (e.g., NVIDIA CUDA, AWS chips).
Example:
Vpc vpc; Role infrastructureRole; InstanceProfile instanceProfile; Cluster cluster = Cluster.Builder.create(this, "Cluster").vpc(vpc).build(); // Create a Managed Instances Capacity Provider ManagedInstancesCapacityProvider miCapacityProvider = ManagedInstancesCapacityProvider.Builder.create(this, "MICapacityProvider") .infrastructureRole(infrastructureRole) .ec2InstanceProfile(instanceProfile) .subnets(vpc.getPrivateSubnets()) .securityGroups(List.of(SecurityGroup.Builder.create(this, "MISecurityGroup").vpc(vpc).build())) .instanceRequirements(InstanceRequirementsConfig.builder() .vCpuCountMin(1) .memoryMin(Size.gibibytes(2)) .cpuManufacturers(List.of(CpuManufacturer.INTEL)) .acceleratorManufacturers(List.of(AcceleratorManufacturer.NVIDIA)) .build()) .propagateTags(PropagateManagedInstancesTags.CAPACITY_PROVIDER) .build(); // Add the capacity provider to the cluster cluster.addManagedInstancesCapacityProvider(miCapacityProvider); Ec2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, "TaskDef"); taskDefinition.addContainer("web", ContainerDefinitionOptions.builder() .image(ContainerImage.fromRegistry("amazon/amazon-ecs-sample")) .memoryReservationMiB(256) .build()); Ec2Service.Builder.create(this, "EC2Service") .cluster(cluster) .taskDefinition(taskDefinition) .minHealthyPercent(100) .capacityProviderStrategies(List.of(CapacityProviderStrategy.builder() .capacityProvider(miCapacityProvider.getCapacityProviderName()) .weight(1) .build())) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic AcceleratorManufacturer
Returns the enum constant of this type with the specified name.static AcceleratorManufacturer[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AWS
Amazon Web Services (e.g., Inferentia, Trainium accelerators). -
AMD
AMD (e.g., Radeon Pro V520 GPU). -
NVIDIA
NVIDIA (e.g., A100, V100, T4, K80, M60 GPUs). -
XILINX
Xilinx (e.g., VU9P FPGA).
-
-
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
-