Class: Aws::AutoScaling::Types::MixedInstancesPolicy

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb

Overview

Use this structure to launch multiple instance types and configure how capacity is distributed across On-Demand, Spot, and supported Capacity Reservation types within a single Auto Scaling group.

A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch instances, prioritize capacity types, 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. To learn how to prioritize multiple capacity types, see Use Distribution Segments to target multiple capacity types in the Amazon EC2 Auto Scaling User Guide.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#instances_distribution ⇒ Types::InstancesDistribution

The instances distribution.



6213
6214
6215
6216
6217
6218
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 6213

class MixedInstancesPolicy < Struct.new(
  :launch_template,
  :instances_distribution)
  SENSITIVE = []
  include Aws::Structure
end

#launch_template ⇒ Types::LaunchTemplate

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



6213
6214
6215
6216
6217
6218
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 6213

class MixedInstancesPolicy < Struct.new(
  :launch_template,
  :instances_distribution)
  SENSITIVE = []
  include Aws::Structure
end