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