TaskDefinitionPlacementConstraint constructor

const TaskDefinitionPlacementConstraint({
  1. Input<String?>? expression,
  2. required Input<String> type,
})

Creates a new TaskDefinitionPlacementConstraint. expression Cluster Query Language expression to apply to the constraint. For more information, see Cluster Query Language in the Amazon EC2 Container Service Developer Guide. type Type of constraint. Use memberOf to restrict selection to a group of valid candidates. Note that distinctInstance is not supported in task definitions.

Implementation

const TaskDefinitionPlacementConstraint({
  this.expression,
  required this.type,
});