public static interface TaskDefinitionPlacementConstraint.Builder extends CopyableBuilder<TaskDefinitionPlacementConstraint.Builder,TaskDefinitionPlacementConstraint>
| Modifier and Type | Method and Description |
|---|---|
TaskDefinitionPlacementConstraint.Builder |
expression(String expression)
A cluster query language expression to apply to the constraint.
|
TaskDefinitionPlacementConstraint.Builder |
type(String type)
The type of constraint.
|
TaskDefinitionPlacementConstraint.Builder |
type(TaskDefinitionPlacementConstraintType type)
The type of constraint.
|
copyapply, buildTaskDefinitionPlacementConstraint.Builder type(String type)
The type of constraint. The DistinctInstance constraint ensures that each task in a particular
group is running on a different container instance. The MemberOf constraint restricts selection
to be from a group of valid candidates.
type - The type of constraint. The DistinctInstance constraint ensures that each task in a
particular group is running on a different container instance. The MemberOf constraint
restricts selection to be from a group of valid candidates.TaskDefinitionPlacementConstraintType,
TaskDefinitionPlacementConstraintTypeTaskDefinitionPlacementConstraint.Builder type(TaskDefinitionPlacementConstraintType type)
The type of constraint. The DistinctInstance constraint ensures that each task in a particular
group is running on a different container instance. The MemberOf constraint restricts selection
to be from a group of valid candidates.
type - The type of constraint. The DistinctInstance constraint ensures that each task in a
particular group is running on a different container instance. The MemberOf constraint
restricts selection to be from a group of valid candidates.TaskDefinitionPlacementConstraintType,
TaskDefinitionPlacementConstraintTypeTaskDefinitionPlacementConstraint.Builder expression(String expression)
A cluster query language expression to apply to the constraint. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide.
expression - A cluster query language expression to apply to the constraint. For more information, see Cluster
Query Language in the Amazon EC2 Container Service Developer Guide.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.