Skip to content

/AWS1/CL_ECSTASKDEFPLCCNS

The constraint on task placement in the task definition. 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 Fargate.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_type TYPE /AWS1/ECSTASKDEFPLCCNSTYPE /AWS1/ECSTASKDEFPLCCNSTYPE

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

iv_expression TYPE /AWS1/ECSSTRING /AWS1/ECSSTRING

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.


Queryable Attributes

type

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

Accessible with the following methods

Method Description
GET_TYPE() Getter for TYPE, with configurable default
ASK_TYPE() Getter for TYPE w/ exceptions if field has no value
HAS_TYPE() Determine if TYPE has a value

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.

Accessible with the following methods

Method Description
GET_EXPRESSION() Getter for EXPRESSION, with configurable default
ASK_EXPRESSION() Getter for EXPRESSION w/ exceptions if field has no value
HAS_EXPRESSION() Determine if EXPRESSION has a value

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_TASKDEFNPLACEMENTCNSTRNTS

TYPES TT_TASKDEFNPLACEMENTCNSTRNTS TYPE STANDARD TABLE OF REF TO /AWS1/CL_ECSTASKDEFPLCCNS WITH DEFAULT KEY
.