libZSservicesZSamazonka-securityhubZSamazonka-securityhub
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.SecurityHub.Types.AwsEcsServicePlacementStrategiesDetails

Description

 
Synopsis

Documentation

data AwsEcsServicePlacementStrategiesDetails Source #

A placement strategy that determines how to place the tasks for the service.

See: newAwsEcsServicePlacementStrategiesDetails smart constructor.

Constructors

AwsEcsServicePlacementStrategiesDetails' 

Fields

  • field :: Maybe Text

    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.

  • type' :: Maybe Text

    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

Instances

Instances details
Eq AwsEcsServicePlacementStrategiesDetails Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsEcsServicePlacementStrategiesDetails

Read AwsEcsServicePlacementStrategiesDetails Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsEcsServicePlacementStrategiesDetails

Show AwsEcsServicePlacementStrategiesDetails Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsEcsServicePlacementStrategiesDetails

Generic AwsEcsServicePlacementStrategiesDetails Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsEcsServicePlacementStrategiesDetails

NFData AwsEcsServicePlacementStrategiesDetails Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsEcsServicePlacementStrategiesDetails

Hashable AwsEcsServicePlacementStrategiesDetails Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsEcsServicePlacementStrategiesDetails

ToJSON AwsEcsServicePlacementStrategiesDetails Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsEcsServicePlacementStrategiesDetails

FromJSON AwsEcsServicePlacementStrategiesDetails Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsEcsServicePlacementStrategiesDetails

type Rep AwsEcsServicePlacementStrategiesDetails Source # 
Instance details

Defined in Amazonka.SecurityHub.Types.AwsEcsServicePlacementStrategiesDetails

type Rep AwsEcsServicePlacementStrategiesDetails = D1 ('MetaData "AwsEcsServicePlacementStrategiesDetails" "Amazonka.SecurityHub.Types.AwsEcsServicePlacementStrategiesDetails" "libZSservicesZSamazonka-securityhubZSamazonka-securityhub" 'False) (C1 ('MetaCons "AwsEcsServicePlacementStrategiesDetails'" 'PrefixI 'True) (S1 ('MetaSel ('Just "field") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

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