Show / Hide Table of Contents

Class CfnService.PlacementConstraintProperty

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

Inheritance
System.Object
CfnService.PlacementConstraintProperty
Implements
CfnService.IPlacementConstraintProperty
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class PlacementConstraintProperty : Object, CfnService.IPlacementConstraintProperty
Syntax (vb)
Public Class PlacementConstraintProperty
    Inherits Object
    Implements CfnService.IPlacementConstraintProperty
Remarks

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

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementconstraint.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 placementConstraintProperty = new PlacementConstraintProperty {
    Type = "type",

    // the properties below are optional
    Expression = "expression"
};

Synopsis

Constructors

PlacementConstraintProperty()

Properties

Expression

A cluster query language expression to apply to the constraint.

Type

The type of constraint.

Constructors

PlacementConstraintProperty()

public PlacementConstraintProperty()

Properties

Expression

A cluster query language expression to apply to the constraint.

public string Expression { get; set; }
Property Value

System.String

Remarks

The expression can have a maximum length of 2000 characters. You can't specify an expression if the constraint type is distinctInstance . For more information, see Cluster query language in the Amazon Elastic Container Service Developer Guide .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementconstraint.html#cfn-ecs-service-placementconstraint-expression

Type

The type of constraint.

public string Type { get; set; }
Property Value

System.String

Remarks

Use distinctInstance to ensure that each task in a particular group is running on a different container instance. Use memberOf to restrict the selection to a group of valid candidates.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementconstraint.html#cfn-ecs-service-placementconstraint-type

Implements

CfnService.IPlacementConstraintProperty
Back to top Generated by DocFX