PlacementConstraint class
An object representing a constraint on task placement. For more information, see Task Placement Constraints in the Amazon Elastic Container Service Developer Guide.
Constructors
- PlacementConstraint({String? expression, PlacementConstraintType? type})
-
PlacementConstraint.fromJson(Map<
String, dynamic> json) -
factory
Properties
- expression → String?
-
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 Elastic Container Service Developer Guide.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → PlacementConstraintType?
-
The type of constraint. Use
distinctInstanceto ensure that each task in a particular group is running on a different container instance. UsememberOfto restrict the selection to a group of valid candidates.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited