Interface CfnTaskDefinition.ITaskDefinitionPlacementConstraintProperty
The constraint on task placement in the task definition.
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public interface ITaskDefinitionPlacementConstraintProperty
Syntax (vb)
Public Interface ITaskDefinitionPlacementConstraintProperty
Remarks
For more information, see Task placement constraints in the Amazon Elastic Container Service Developer Guide .
Task placement constraints aren't supported for tasks run on AWS Fargate .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var taskDefinitionPlacementConstraintProperty = new TaskDefinitionPlacementConstraintProperty {
Type = "type",
// the properties below are optional
Expression = "expression"
};
Synopsis
Properties
Expression | A cluster query language expression to apply to the constraint. |
Type | The type of constraint. |
Properties
Expression
A cluster query language expression to apply to the constraint.
virtual string Expression { get; }
Property Value
System.String
Remarks
For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide .
Type
The type of constraint.
string Type { get; }
Property Value
System.String
Remarks
The MemberOf
constraint restricts selection to be from a group of valid candidates.