@Stability(value=Stable) public static final class CfnRule.PlacementConstraintProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnRule.PlacementConstraintProperty>
CfnRule.PlacementConstraintProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnRule.PlacementConstraintProperty |
build()
Builds the configured instance.
|
CfnRule.PlacementConstraintProperty.Builder |
expression(String expression)
Sets the value of
CfnRule.PlacementConstraintProperty.getExpression() |
CfnRule.PlacementConstraintProperty.Builder |
type(String type)
Sets the value of
CfnRule.PlacementConstraintProperty.getType() |
@Stability(value=Stable) public CfnRule.PlacementConstraintProperty.Builder expression(String expression)
CfnRule.PlacementConstraintProperty.getExpression()expression - A cluster query language expression to apply to the constraint.
You cannot specify an expression if the constraint type is distinctInstance . To learn more, see Cluster Query Language in the Amazon Elastic Container Service Developer Guide.this@Stability(value=Stable) public CfnRule.PlacementConstraintProperty.Builder type(String type)
CfnRule.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 CfnRule.PlacementConstraintProperty build()
build in interface software.amazon.jsii.Builder<CfnRule.PlacementConstraintProperty>CfnRule.PlacementConstraintPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.