Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data TaskDefinitionPlacementConstraint = TaskDefinitionPlacementConstraint' {}
- newTaskDefinitionPlacementConstraint :: TaskDefinitionPlacementConstraint
- taskDefinitionPlacementConstraint_expression :: Lens' TaskDefinitionPlacementConstraint (Maybe Text)
- taskDefinitionPlacementConstraint_type :: Lens' TaskDefinitionPlacementConstraint (Maybe TaskDefinitionPlacementConstraintType)
Documentation
data TaskDefinitionPlacementConstraint Source #
An object representing a 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 are not supported for tasks run on Fargate.
See: newTaskDefinitionPlacementConstraint
smart constructor.
TaskDefinitionPlacementConstraint' | |
|
Instances
newTaskDefinitionPlacementConstraint :: TaskDefinitionPlacementConstraint Source #
Create a value of TaskDefinitionPlacementConstraint
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:TaskDefinitionPlacementConstraint'
, taskDefinitionPlacementConstraint_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.
$sel:type':TaskDefinitionPlacementConstraint'
, taskDefinitionPlacementConstraint_type
- The type of constraint. The MemberOf
constraint restricts selection to
be from a group of valid candidates.
taskDefinitionPlacementConstraint_expression :: Lens' TaskDefinitionPlacementConstraint (Maybe Text) Source #
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.
taskDefinitionPlacementConstraint_type :: Lens' TaskDefinitionPlacementConstraint (Maybe TaskDefinitionPlacementConstraintType) Source #
The type of constraint. The MemberOf
constraint restricts selection to
be from a group of valid candidates.