Class CfnPipePropsMixin.EcsResourceRequirementProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.pipes.mixins.CfnPipePropsMixin.EcsResourceRequirementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipePropsMixin.EcsResourceRequirementProperty>
- Enclosing interface:
CfnPipePropsMixin.EcsResourceRequirementProperty
@Stability(Stable)
public static final class CfnPipePropsMixin.EcsResourceRequirementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipePropsMixin.EcsResourceRequirementProperty>
A builder for
CfnPipePropsMixin.EcsResourceRequirementProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPipePropsMixin.EcsResourceRequirementProperty.getType()Sets the value ofCfnPipePropsMixin.EcsResourceRequirementProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
@Stability(Stable) public CfnPipePropsMixin.EcsResourceRequirementProperty.Builder type(String type) Sets the value ofCfnPipePropsMixin.EcsResourceRequirementProperty.getType()- Parameters:
type- The type of resource to assign to a container. The supported values areGPUorInferenceAccelerator.- Returns:
this
-
value
@Stability(Stable) public CfnPipePropsMixin.EcsResourceRequirementProperty.Builder value(String value) Sets the value ofCfnPipePropsMixin.EcsResourceRequirementProperty.getValue()- Parameters:
value- The value for the specified resource type. If theGPUtype is used, the value is the number of physicalGPUsthe Amazon ECS container agent reserves for the container. The number of GPUs that's reserved for all containers in a task can't exceed the number of available GPUs on the container instance that the task is launched on.If the
InferenceAcceleratortype is used, thevaluematches thedeviceNamefor an InferenceAccelerator specified in a task definition.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPipePropsMixin.EcsResourceRequirementProperty>- Returns:
- a new instance of
CfnPipePropsMixin.EcsResourceRequirementProperty - Throws:
NullPointerException- if any required attribute was not provided
-