| 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 |
Amazonka.SecurityHub.Types.AwsEcsServicePlacementStrategiesDetails
Description
Synopsis
- data AwsEcsServicePlacementStrategiesDetails = AwsEcsServicePlacementStrategiesDetails' {}
- newAwsEcsServicePlacementStrategiesDetails :: AwsEcsServicePlacementStrategiesDetails
- awsEcsServicePlacementStrategiesDetails_field :: Lens' AwsEcsServicePlacementStrategiesDetails (Maybe Text)
- awsEcsServicePlacementStrategiesDetails_type :: Lens' AwsEcsServicePlacementStrategiesDetails (Maybe Text)
Documentation
data AwsEcsServicePlacementStrategiesDetails Source #
A placement strategy that determines how to place the tasks for the service.
See: newAwsEcsServicePlacementStrategiesDetails smart constructor.
Constructors
| AwsEcsServicePlacementStrategiesDetails' | |
Fields
| |
Instances
newAwsEcsServicePlacementStrategiesDetails :: AwsEcsServicePlacementStrategiesDetails Source #
Create a value of AwsEcsServicePlacementStrategiesDetails 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:field:AwsEcsServicePlacementStrategiesDetails', awsEcsServicePlacementStrategiesDetails_field - The field to apply the placement strategy against.
For the spread placement strategy, valid values are instanceId (or
host, which has the same effect), or any platform or custom attribute
that is applied to a container instance, such as
attribute:ecs.availability-zone.
For the binpack placement strategy, valid values are cpu and
memory.
For the random placement strategy, this attribute is not used.
$sel:type':AwsEcsServicePlacementStrategiesDetails', awsEcsServicePlacementStrategiesDetails_type - The type of placement strategy.
The random placement strategy randomly places tasks on available
candidates.
The spread placement strategy spreads placement across available
candidates evenly based on the value of Field.
The binpack strategy places tasks on available candidates that have
the least available amount of the resource that is specified in Field.
Valid values: random | spread | binpack
awsEcsServicePlacementStrategiesDetails_field :: Lens' AwsEcsServicePlacementStrategiesDetails (Maybe Text) Source #
The field to apply the placement strategy against.
For the spread placement strategy, valid values are instanceId (or
host, which has the same effect), or any platform or custom attribute
that is applied to a container instance, such as
attribute:ecs.availability-zone.
For the binpack placement strategy, valid values are cpu and
memory.
For the random placement strategy, this attribute is not used.
awsEcsServicePlacementStrategiesDetails_type :: Lens' AwsEcsServicePlacementStrategiesDetails (Maybe Text) Source #
The type of placement strategy.
The random placement strategy randomly places tasks on available
candidates.
The spread placement strategy spreads placement across available
candidates evenly based on the value of Field.
The binpack strategy places tasks on available candidates that have
the least available amount of the resource that is specified in Field.
Valid values: random | spread | binpack