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.Scale

Description

 
Synopsis

Documentation

data Scale Source #

A floating-point percentage of the desired number of tasks to place and keep running in the task set.

See: newScale smart constructor.

Constructors

Scale' 

Fields

  • value :: Maybe Double

    The value, specified as a percent total of a service's desiredCount, to scale the task set. Accepted values are numbers between 0 and 100.

  • unit :: Maybe ScaleUnit

    The unit of measure for the scale value.

Instances

Instances details
Eq Scale Source # 
Instance details

Defined in Amazonka.ECS.Types.Scale

Methods

(==) :: Scale -> Scale -> Bool #

(/=) :: Scale -> Scale -> Bool #

Read Scale Source # 
Instance details

Defined in Amazonka.ECS.Types.Scale

Show Scale Source # 
Instance details

Defined in Amazonka.ECS.Types.Scale

Methods

showsPrec :: Int -> Scale -> ShowS #

show :: Scale -> String #

showList :: [Scale] -> ShowS #

Generic Scale Source # 
Instance details

Defined in Amazonka.ECS.Types.Scale

Associated Types

type Rep Scale :: Type -> Type #

Methods

from :: Scale -> Rep Scale x #

to :: Rep Scale x -> Scale #

NFData Scale Source # 
Instance details

Defined in Amazonka.ECS.Types.Scale

Methods

rnf :: Scale -> () #

Hashable Scale Source # 
Instance details

Defined in Amazonka.ECS.Types.Scale

Methods

hashWithSalt :: Int -> Scale -> Int #

hash :: Scale -> Int #

ToJSON Scale Source # 
Instance details

Defined in Amazonka.ECS.Types.Scale

FromJSON Scale Source # 
Instance details

Defined in Amazonka.ECS.Types.Scale

type Rep Scale Source # 
Instance details

Defined in Amazonka.ECS.Types.Scale

type Rep Scale = D1 ('MetaData "Scale" "Amazonka.ECS.Types.Scale" "libZSservicesZSamazonka-ecsZSamazonka-ecs" 'False) (C1 ('MetaCons "Scale'" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "unit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ScaleUnit))))

newScale :: Scale Source #

Create a value of Scale 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:value:Scale', scale_value - The value, specified as a percent total of a service's desiredCount, to scale the task set. Accepted values are numbers between 0 and 100.

$sel:unit:Scale', scale_unit - The unit of measure for the scale value.

scale_value :: Lens' Scale (Maybe Double) Source #

The value, specified as a percent total of a service's desiredCount, to scale the task set. Accepted values are numbers between 0 and 100.

scale_unit :: Lens' Scale (Maybe ScaleUnit) Source #

The unit of measure for the scale value.