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