Class CfnPipe.EcsResourceRequirementProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pipes.CfnPipe.EcsResourceRequirementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipe.EcsResourceRequirementProperty>
- Enclosing interface:
CfnPipe.EcsResourceRequirementProperty
@Stability(Stable)
public static final class CfnPipe.EcsResourceRequirementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipe.EcsResourceRequirementProperty>
A builder for
CfnPipe.EcsResourceRequirementProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnPipe.EcsResourceRequirementProperty.getType()
Sets the value ofCfnPipe.EcsResourceRequirementProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnPipe.EcsResourceRequirementProperty.getType()
- Parameters:
type
- The type of resource to assign to a container. This parameter is required. The supported values areGPU
orInferenceAccelerator
.- Returns:
this
-
value
Sets the value ofCfnPipe.EcsResourceRequirementProperty.getValue()
- Parameters:
value
- The value for the specified resource type. This parameter is required. If theGPU
type is used, the value is the number of physicalGPUs
the 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
InferenceAccelerator
type is used, thevalue
matches thedeviceName
for an InferenceAccelerator specified in a task definition.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPipe.EcsResourceRequirementProperty>
- Returns:
- a new instance of
CfnPipe.EcsResourceRequirementProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-