libZSservicesZSamazonka-ecsZSamazonka-ecs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ECS.Types.PlacementConstraint

Description

 
Synopsis

Documentation

data PlacementConstraint Source #

An object representing a constraint on task placement. For more information, see Task Placement Constraints in the Amazon Elastic Container Service Developer Guide.

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

See: newPlacementConstraint smart constructor.

Constructors

PlacementConstraint' 

Fields

  • expression :: Maybe Text

    A cluster query language expression to apply to the constraint. 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.

  • type' :: Maybe PlacementConstraintType

    The type of constraint. 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.

Instances

Instances details
Eq PlacementConstraint Source # 
Instance details

Defined in Amazonka.ECS.Types.PlacementConstraint

Read PlacementConstraint Source # 
Instance details

Defined in Amazonka.ECS.Types.PlacementConstraint

Show PlacementConstraint Source # 
Instance details

Defined in Amazonka.ECS.Types.PlacementConstraint

Generic PlacementConstraint Source # 
Instance details

Defined in Amazonka.ECS.Types.PlacementConstraint

Associated Types

type Rep PlacementConstraint :: Type -> Type #

NFData PlacementConstraint Source # 
Instance details

Defined in Amazonka.ECS.Types.PlacementConstraint

Methods

rnf :: PlacementConstraint -> () #

Hashable PlacementConstraint Source # 
Instance details

Defined in Amazonka.ECS.Types.PlacementConstraint

ToJSON PlacementConstraint Source # 
Instance details

Defined in Amazonka.ECS.Types.PlacementConstraint

FromJSON PlacementConstraint Source # 
Instance details

Defined in Amazonka.ECS.Types.PlacementConstraint

type Rep PlacementConstraint Source # 
Instance details

Defined in Amazonka.ECS.Types.PlacementConstraint

type Rep PlacementConstraint = D1 ('MetaData "PlacementConstraint" "Amazonka.ECS.Types.PlacementConstraint" "libZSservicesZSamazonka-ecsZSamazonka-ecs" 'False) (C1 ('MetaCons "PlacementConstraint'" 'PrefixI 'True) (S1 ('MetaSel ('Just "expression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PlacementConstraintType))))

newPlacementConstraint :: PlacementConstraint Source #

Create a value of PlacementConstraint with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:expression:PlacementConstraint', placementConstraint_expression - A cluster query language expression to apply to the constraint. 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.

$sel:type':PlacementConstraint', placementConstraint_type - The type of constraint. 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.

placementConstraint_expression :: Lens' PlacementConstraint (Maybe Text) Source #

A cluster query language expression to apply to the constraint. 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.

placementConstraint_type :: Lens' PlacementConstraint (Maybe PlacementConstraintType) Source #

The type of constraint. 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.