class Aws::AutoScaling::Types::DesiredConfiguration

Describes the desired configuration for an instance refresh.

If you specify a desired configuration, you must specify either a `LaunchTemplate` or a `MixedInstancesPolicy`.

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

data as a hash:

    {
      launch_template: {
        launch_template_id: "XmlStringMaxLen255",
        launch_template_name: "LaunchTemplateName",
        version: "XmlStringMaxLen255",
      },
      mixed_instances_policy: {
        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

Describes the launch template and the version of the launch template
that Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances.
For more information about launch templates, see [Launch
templates][1] in the *Amazon EC2 Auto Scaling User Guide*.

[1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchTemplates.html
@return [Types::LaunchTemplateSpecification]

@!attribute [rw] mixed_instances_policy

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][1] in the *Amazon EC2 Auto Scaling User Guide*.

[1]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html
@return [Types::MixedInstancesPolicy]

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

Constants

SENSITIVE