AWS::ECS::TaskDefinition TaskDefinitionPlacementConstraint - AWS CloudFormation

AWS::ECS::TaskDefinition TaskDefinitionPlacementConstraint

The TaskDefinitionPlacementConstraint property specifies an object representing a constraint on task placement in the task definition.

If you are using the Fargate launch type, task placement constraints are not supported.

For more information, see Task Placement Constraints in the Amazon Elastic Container Service Developer Guide.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Expression" : String, "Type" : String }

YAML

Expression: String Type: String

Properties

Expression

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.

Required: No

Type: String

Update requires: Replacement

Type

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

Required: Yes

Type: String

Allowed Values: memberOf

Update requires: Replacement