Skip to content

TaskDefinitionPlacementConstraint

Source code in docs_src/capo_ecs/types/task_definition_placement_constraint.py
class TaskDefinitionPlacementConstraint(TypedDict, closed=True):
    type: NotRequired[
        "capo_ecs.types.task_definition_placement_constraint_type.TaskDefinitionPlacementConstraintType"
    ]
    """<p>The type of constraint. The <code>MemberOf</code> constraint restricts selection to be from a group of valid candidates.</p>"""
    expression: NotRequired["capo_ecs.types.string.String"]
    """<p>A cluster query language expression to apply to the constraint. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html">Cluster query language</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>"""

expression instance-attribute

expression: NotRequired[String]

A cluster query language expression to apply to the constraint. For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide.

type instance-attribute

The type of constraint. The MemberOf constraint restricts selection to be from a group of valid candidates.