amazonka-autoscaling-2.0: Amazon Auto Scaling SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AutoScaling.Types.MixedInstancesPolicy

Description

 
Synopsis

Documentation

data MixedInstancesPolicy Source #

Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a single Auto Scaling group.

A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch instances and help optimize your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.

See: newMixedInstancesPolicy smart constructor.

Constructors

MixedInstancesPolicy' 

Fields

Instances

Instances details
ToQuery MixedInstancesPolicy Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.MixedInstancesPolicy

FromXML MixedInstancesPolicy Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.MixedInstancesPolicy

Generic MixedInstancesPolicy Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.MixedInstancesPolicy

Associated Types

type Rep MixedInstancesPolicy :: Type -> Type #

Read MixedInstancesPolicy Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.MixedInstancesPolicy

Show MixedInstancesPolicy Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.MixedInstancesPolicy

NFData MixedInstancesPolicy Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.MixedInstancesPolicy

Methods

rnf :: MixedInstancesPolicy -> () #

Eq MixedInstancesPolicy Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.MixedInstancesPolicy

Hashable MixedInstancesPolicy Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.MixedInstancesPolicy

type Rep MixedInstancesPolicy Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.MixedInstancesPolicy

type Rep MixedInstancesPolicy = D1 ('MetaData "MixedInstancesPolicy" "Amazonka.AutoScaling.Types.MixedInstancesPolicy" "amazonka-autoscaling-2.0-IerpHfP4BA3Ir4ZL2IR1De" 'False) (C1 ('MetaCons "MixedInstancesPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instancesDistribution") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstancesDistribution)) :*: S1 ('MetaSel ('Just "launchTemplate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LaunchTemplate))))

newMixedInstancesPolicy :: MixedInstancesPolicy Source #

Create a value of MixedInstancesPolicy 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:instancesDistribution:MixedInstancesPolicy', mixedInstancesPolicy_instancesDistribution - The instances distribution.

$sel:launchTemplate:MixedInstancesPolicy', mixedInstancesPolicy_launchTemplate - One or more launch templates and the instance types (overrides) that are used to launch EC2 instances to fulfill On-Demand and Spot capacities.

mixedInstancesPolicy_launchTemplate :: Lens' MixedInstancesPolicy (Maybe LaunchTemplate) Source #

One or more launch templates and the instance types (overrides) that are used to launch EC2 instances to fulfill On-Demand and Spot capacities.