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

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

Overview

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",
        },
        instance_requirements: {
          v_cpu_count: { # required
            min: 1, # required
            max: 1,
          },
          memory_mi_b: { # required
            min: 1, # required
            max: 1,
          },
          cpu_manufacturers: ["intel"], # accepts intel, amd, amazon-web-services
          memory_gi_b_per_v_cpu: {
            min: 1.0,
            max: 1.0,
          },
          excluded_instance_types: ["ExcludedInstance"],
          instance_generations: ["current"], # accepts current, previous
          spot_max_price_percentage_over_lowest_price: 1,
          on_demand_max_price_percentage_over_lowest_price: 1,
          bare_metal: "included", # accepts included, excluded, required
          burstable_performance: "included", # accepts included, excluded, required
          require_hibernate_support: false,
          network_interface_count: {
            min: 1,
            max: 1,
          },
          local_storage: "included", # accepts included, excluded, required
          local_storage_types: ["hdd"], # accepts hdd, ssd
          total_local_storage_gb: {
            min: 1.0,
            max: 1.0,
          },
          baseline_ebs_bandwidth_mbps: {
            min: 1,
            max: 1,
          },
          accelerator_types: ["gpu"], # accepts gpu, fpga, inference
          accelerator_count: {
            min: 1,
            max: 1,
          },
          accelerator_manufacturers: ["nvidia"], # accepts nvidia, amd, amazon-web-services, xilinx
          accelerator_names: ["a100"], # accepts a100, v100, k80, t4, m60, radeon-pro-v520, vu9p
          accelerator_total_memory_mi_b: {
            min: 1,
            max: 1,
          },
        },
      },
    ],
  },
  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",
  },
}

Describes a mixed instances policy. A mixed instances policy contains the instance types that Amazon EC2 Auto Scaling can launch and other 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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#instances_distributionTypes::InstancesDistribution

Specifies the instances distribution.



5779
5780
5781
5782
5783
5784
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 5779

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

#launch_templateTypes::LaunchTemplate

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



5779
5780
5781
5782
5783
5784
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 5779

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