libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling
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.AutoScaling.Types.MixedInstancesPolicy

Description

 
Synopsis

Documentation

data MixedInstancesPolicy Source #

Describes a mixed instances policy. A mixed instances policy contains the instance types Amazon EC2 Auto Scaling can launch, and other information Amazon EC2 Auto Scaling can use to launch instances to help you 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

  • launchTemplate :: Maybe LaunchTemplate

    Specifies the launch template to use and the instance types (overrides) that are used to provision EC2 instances to fulfill On-Demand and Spot capacities. Required when creating a mixed instances policy.

  • instancesDistribution :: Maybe InstancesDistribution

    Specifies the instances distribution. If not provided, the value for each property in InstancesDistribution uses a default value.

Instances

Instances details
Eq MixedInstancesPolicy Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.MixedInstancesPolicy

Read MixedInstancesPolicy Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.MixedInstancesPolicy

Show 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 #

NFData MixedInstancesPolicy Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.MixedInstancesPolicy

Methods

rnf :: MixedInstancesPolicy -> () #

Hashable MixedInstancesPolicy Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.MixedInstancesPolicy

ToQuery MixedInstancesPolicy Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.MixedInstancesPolicy

FromXML 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" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "MixedInstancesPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "launchTemplate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LaunchTemplate)) :*: S1 ('MetaSel ('Just "instancesDistribution") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstancesDistribution))))

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:launchTemplate:MixedInstancesPolicy', mixedInstancesPolicy_launchTemplate - Specifies the launch template to use and the instance types (overrides) that are used to provision EC2 instances to fulfill On-Demand and Spot capacities. Required when creating a mixed instances policy.

$sel:instancesDistribution:MixedInstancesPolicy', mixedInstancesPolicy_instancesDistribution - Specifies the instances distribution. If not provided, the value for each property in InstancesDistribution uses a default value.

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

Specifies the launch template to use and the instance types (overrides) that are used to provision EC2 instances to fulfill On-Demand and Spot capacities. Required when creating a mixed instances policy.

mixedInstancesPolicy_instancesDistribution :: Lens' MixedInstancesPolicy (Maybe InstancesDistribution) Source #

Specifies the instances distribution. If not provided, the value for each property in InstancesDistribution uses a default value.