class
Amazonite::EventBridge::PlacementConstraint
- Amazonite::EventBridge::PlacementConstraint
- Reference
- Object
Overview
An object representing a constraint on task placement. To learn more, see Task Placement Constraints in the Amazon Elastic Container Service Developer Guide.
Included Modules
- JSON::Serializable
Defined in:
eventbridge/placement_constraint.crConstructors
- .new(pull : JSON::PullParser)
- .new(type : PlacementConstraintType | Nil = nil, expression : String | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#expression : String | Nil
A cluster query language expression to apply to the constraint.
-
#expression=(expression : String | Nil)
A cluster query language expression to apply to the constraint.
-
#hash(hasher)
See
Object#hash(hasher) -
#type : PlacementConstraintType | Nil
The type of constraint.
-
#type=(type : PlacementConstraintType | Nil)
The type of constraint.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
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.
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.
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.
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.