@Stability(value=Stable) public static final class CfnTaskDefinition.ResourceRequirementProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnTaskDefinition.ResourceRequirementProperty>
CfnTaskDefinition.ResourceRequirementProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnTaskDefinition.ResourceRequirementProperty |
build()
Builds the configured instance.
|
CfnTaskDefinition.ResourceRequirementProperty.Builder |
type(String type)
Sets the value of
CfnTaskDefinition.ResourceRequirementProperty.getType() |
CfnTaskDefinition.ResourceRequirementProperty.Builder |
value(String value)
Sets the value of
CfnTaskDefinition.ResourceRequirementProperty.getValue() |
@Stability(value=Stable) public CfnTaskDefinition.ResourceRequirementProperty.Builder type(String type)
CfnTaskDefinition.ResourceRequirementProperty.getType()type - The type of resource to assign to a container. This parameter is required.
The supported values are GPU or InferenceAccelerator .this@Stability(value=Stable) public CfnTaskDefinition.ResourceRequirementProperty.Builder value(String value)
CfnTaskDefinition.ResourceRequirementProperty.getValue()value - The value for the specified resource type. This parameter is required.
If the GPU type is used, the value is the number of physical GPUs the Amazon ECS container agent will reserve for the container. The number of GPUs reserved for all containers in a task should not exceed the number of available GPUs on the container instance the task is launched on.
If the InferenceAccelerator type is used, the value should match the DeviceName for an InferenceAccelerator specified in a task definition.
this@Stability(value=Stable) public CfnTaskDefinition.ResourceRequirementProperty build()
build in interface software.amazon.jsii.Builder<CfnTaskDefinition.ResourceRequirementProperty>CfnTaskDefinition.ResourceRequirementPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.