Interface CfnFleet.AcceleratorCapabilitiesProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFleet.AcceleratorCapabilitiesProperty.Jsii$Proxy
- Enclosing class:
CfnFleet
Accelerator capabilities cannot be used with wait-and-save fleets. If you specify accelerator capabilities, you must use either spot or on-demand instance market options. > Each accelerator type maps to specific EC2 instance families:
t4: Uses G4dn instance familya10g: Uses G5 instance familyl4: Uses G6 and Gr6 instance familiesl40s: Uses G6e instance family
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.deadline.*;
AcceleratorCapabilitiesProperty acceleratorCapabilitiesProperty = AcceleratorCapabilitiesProperty.builder()
.selections(List.of(AcceleratorSelectionProperty.builder()
.name("name")
// the properties below are optional
.runtime("runtime")
.build()))
// the properties below are optional
.count(AcceleratorCountRangeProperty.builder()
.min(123)
// the properties below are optional
.max(123)
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFleet.AcceleratorCapabilitiesPropertystatic final classAn implementation forCfnFleet.AcceleratorCapabilitiesProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSelections
A list of accelerator capabilities requested for this fleet.Only Amazon Elastic Compute Cloud instances that provide these capabilities will be used. For example, if you specify both L4 and T4 chips, AWS Deadline Cloud will use Amazon EC2 instances that have either the L4 or the T4 chip installed.
- You must specify at least one accelerator selection.
- You cannot specify the same accelerator name multiple times in the selections list.
- All accelerators in the selections must use the same runtime version.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnFleet.AcceleratorSelectionProperty>- See Also:
-
getCount
The number of GPU accelerators specified for worker hosts in this fleet.You must specify either
acceleratorCapabilities.count.maxorallowedInstanceTypeswhen using accelerator capabilities. If you don't specify a maximum count, AWS Deadline Cloud uses the instance types you specify inallowedInstanceTypesto determine the maximum number of accelerators.Returns union: either
IResolvableorCfnFleet.AcceleratorCountRangeProperty- See Also:
-
builder
-