Class CfnFleetPropsMixin.AcceleratorCapabilitiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleetPropsMixin.AcceleratorCapabilitiesProperty>
- Enclosing interface:
CfnFleetPropsMixin.AcceleratorCapabilitiesProperty
CfnFleetPropsMixin.AcceleratorCapabilitiesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnFleetPropsMixin.AcceleratorCapabilitiesProperty.getCount()count(IResolvable count) Sets the value ofCfnFleetPropsMixin.AcceleratorCapabilitiesProperty.getCount()selections(List<? extends Object> selections) Sets the value ofCfnFleetPropsMixin.AcceleratorCapabilitiesProperty.getSelections()selections(IResolvable selections) Sets the value ofCfnFleetPropsMixin.AcceleratorCapabilitiesProperty.getSelections()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
count
@Stability(Stable) public CfnFleetPropsMixin.AcceleratorCapabilitiesProperty.Builder count(IResolvable count) Sets the value ofCfnFleetPropsMixin.AcceleratorCapabilitiesProperty.getCount()- Parameters:
count- 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:
this
-
count
@Stability(Stable) public CfnFleetPropsMixin.AcceleratorCapabilitiesProperty.Builder count(CfnFleetPropsMixin.AcceleratorCountRangeProperty count) Sets the value ofCfnFleetPropsMixin.AcceleratorCapabilitiesProperty.getCount()- Parameters:
count- 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:
this
-
selections
@Stability(Stable) public CfnFleetPropsMixin.AcceleratorCapabilitiesProperty.Builder selections(IResolvable selections) Sets the value ofCfnFleetPropsMixin.AcceleratorCapabilitiesProperty.getSelections()- Parameters:
selections- 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:
this
-
selections
@Stability(Stable) public CfnFleetPropsMixin.AcceleratorCapabilitiesProperty.Builder selections(List<? extends Object> selections) Sets the value ofCfnFleetPropsMixin.AcceleratorCapabilitiesProperty.getSelections()- Parameters:
selections- 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:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFleetPropsMixin.AcceleratorCapabilitiesProperty>- Returns:
- a new instance of
CfnFleetPropsMixin.AcceleratorCapabilitiesProperty - Throws:
NullPointerException- if any required attribute was not provided
-