@Stability(value=Stable) public static final class CfnSchedule.PlacementConstraintProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnSchedule.PlacementConstraintProperty>
CfnSchedule.PlacementConstraintProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnSchedule.PlacementConstraintProperty |
build()
Builds the configured instance.
|
CfnSchedule.PlacementConstraintProperty.Builder |
expression(String expression)
Sets the value of
CfnSchedule.PlacementConstraintProperty.getExpression() |
CfnSchedule.PlacementConstraintProperty.Builder |
type(String type)
Sets the value of
CfnSchedule.PlacementConstraintProperty.getType() |
@Stability(value=Stable) public CfnSchedule.PlacementConstraintProperty.Builder expression(String expression)
CfnSchedule.PlacementConstraintProperty.getExpression()expression - A cluster query language expression to apply to the constraint.
You cannot specify an expression if the constraint type is distinctInstance . For more information, see Cluster query language in the Amazon ECS Developer Guide .this@Stability(value=Stable) public CfnSchedule.PlacementConstraintProperty.Builder type(String type)
CfnSchedule.PlacementConstraintProperty.getType()type - The type of constraint.
Use distinctInstance to ensure that each task in a particular group is running on a different container instance. Use memberOf to restrict the selection to a group of valid candidates.this@Stability(value=Stable) public CfnSchedule.PlacementConstraintProperty build()
build in interface software.amazon.jsii.Builder<CfnSchedule.PlacementConstraintProperty>CfnSchedule.PlacementConstraintPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.