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

Description

 
Synopsis

Documentation

data CapacityProviderStrategyItem Source #

The details of a capacity provider strategy. To learn more, see CapacityProviderStrategyItem in the Amazon ECS API Reference.

See: newCapacityProviderStrategyItem smart constructor.

Constructors

CapacityProviderStrategyItem' 

Fields

  • base :: Maybe Natural

    The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0 is used.

  • weight :: Maybe Natural

    The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied.

  • capacityProvider :: Text

    The short name of the capacity provider.

Instances

Instances details
Eq CapacityProviderStrategyItem Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.CapacityProviderStrategyItem

Read CapacityProviderStrategyItem Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.CapacityProviderStrategyItem

Show CapacityProviderStrategyItem Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.CapacityProviderStrategyItem

Generic CapacityProviderStrategyItem Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.CapacityProviderStrategyItem

Associated Types

type Rep CapacityProviderStrategyItem :: Type -> Type #

NFData CapacityProviderStrategyItem Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.CapacityProviderStrategyItem

Hashable CapacityProviderStrategyItem Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.CapacityProviderStrategyItem

ToJSON CapacityProviderStrategyItem Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.CapacityProviderStrategyItem

FromJSON CapacityProviderStrategyItem Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.CapacityProviderStrategyItem

type Rep CapacityProviderStrategyItem Source # 
Instance details

Defined in Amazonka.CloudWatchEvents.Types.CapacityProviderStrategyItem

type Rep CapacityProviderStrategyItem = D1 ('MetaData "CapacityProviderStrategyItem" "Amazonka.CloudWatchEvents.Types.CapacityProviderStrategyItem" "libZSservicesZSamazonka-cloudwatch-eventsZSamazonka-cloudwatch-events" 'False) (C1 ('MetaCons "CapacityProviderStrategyItem'" 'PrefixI 'True) (S1 ('MetaSel ('Just "base") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "weight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "capacityProvider") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCapacityProviderStrategyItem Source #

Create a value of CapacityProviderStrategyItem 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:base:CapacityProviderStrategyItem', capacityProviderStrategyItem_base - The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0 is used.

$sel:weight:CapacityProviderStrategyItem', capacityProviderStrategyItem_weight - The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied.

$sel:capacityProvider:CapacityProviderStrategyItem', capacityProviderStrategyItem_capacityProvider - The short name of the capacity provider.

capacityProviderStrategyItem_base :: Lens' CapacityProviderStrategyItem (Maybe Natural) Source #

The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0 is used.

capacityProviderStrategyItem_weight :: Lens' CapacityProviderStrategyItem (Maybe Natural) Source #

The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied.