class Aws::AutoScaling::Types::MixedInstancesPolicy

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

[1]: docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html

@note When making an API call, you may pass MixedInstancesPolicy

data as a hash:

    {
      launch_template: {
        launch_template_specification: {
          launch_template_id: "XmlStringMaxLen255",
          launch_template_name: "LaunchTemplateName",
          version: "XmlStringMaxLen255",
        },
        overrides: [
          {
            instance_type: "XmlStringMaxLen255",
            weighted_capacity: "XmlStringMaxLen32",
            launch_template_specification: {
              launch_template_id: "XmlStringMaxLen255",
              launch_template_name: "LaunchTemplateName",
              version: "XmlStringMaxLen255",
            },
          },
        ],
      },
      instances_distribution: {
        on_demand_allocation_strategy: "XmlString",
        on_demand_base_capacity: 1,
        on_demand_percentage_above_base_capacity: 1,
        spot_allocation_strategy: "XmlString",
        spot_instance_pools: 1,
        spot_max_price: "MixedInstanceSpotPrice",
      },
    }

@!attribute [rw] launch_template

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.
@return [Types::LaunchTemplate]

@!attribute [rw] instances_distribution

Specifies the instances distribution. If not provided, the value for
each property in `InstancesDistribution` uses a default value.
@return [Types::InstancesDistribution]

@see docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/MixedInstancesPolicy AWS API Documentation

Constants

SENSITIVE