libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events
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.CloudWatchEvents.Types.PlacementConstraint

Description

 
Synopsis

Documentation

data PlacementConstraint Source #

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

See: newPlacementConstraint smart constructor.

Constructors

PlacementConstraint' 

Fields

  • expression :: Maybe Text

    A cluster query language expression to apply to the constraint. You cannot specify an expression if the constraint type is distinctInstance. To learn more, 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.CloudWatchEvents.Types.PlacementConstraint

Read PlacementConstraint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.PlacementConstraint

Show PlacementConstraint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.PlacementConstraint

Generic PlacementConstraint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.PlacementConstraint

Associated Types

type Rep PlacementConstraint :: Type -> Type #

NFData PlacementConstraint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.PlacementConstraint

Methods

rnf :: PlacementConstraint -> () #

Hashable PlacementConstraint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.PlacementConstraint

ToJSON PlacementConstraint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.PlacementConstraint

FromJSON PlacementConstraint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.PlacementConstraint

type Rep PlacementConstraint Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.PlacementConstraint

type Rep PlacementConstraint = D1 ('MetaData "PlacementConstraint" "Amazonka.CloudWatchEvents.Types.PlacementConstraint" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" '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. You cannot specify an expression if the constraint type is distinctInstance. To learn more, 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. You cannot specify an expression if the constraint type is distinctInstance. To learn more, 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.