Show / Hide Table of Contents

Class CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty

The constraint on task placement in the task definition.

Inheritance
object
CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty
Implements
CfnTaskDefinition.ITaskDefinitionPlacementConstraintProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty : CfnTaskDefinition.ITaskDefinitionPlacementConstraintProperty
Syntax (vb)
Public Class CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty Implements CfnTaskDefinition.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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-taskdefinitionplacementconstraint.html

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

Constructors

TaskDefinitionPlacementConstraintProperty()

The constraint on task placement in the task definition.

Properties

Expression

A cluster query language expression to apply to the constraint.

Type

The type of constraint.

Constructors

TaskDefinitionPlacementConstraintProperty()

The constraint on task placement in the task definition.

public TaskDefinitionPlacementConstraintProperty()
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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-taskdefinitionplacementconstraint.html

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"
             };

Properties

Expression

A cluster query language expression to apply to the constraint.

public string? Expression { get; set; }
Property Value

string

Remarks

For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-taskdefinitionplacementconstraint.html#cfn-ecs-taskdefinition-taskdefinitionplacementconstraint-expression

Type

The type of constraint.

public string Type { get; set; }
Property Value

string

Remarks

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-taskdefinitionplacementconstraint.html#cfn-ecs-taskdefinition-taskdefinitionplacementconstraint-type

Implements

CfnTaskDefinition.ITaskDefinitionPlacementConstraintProperty
Back to top Generated by DocFX