Class: Aws::AutoScaling::Types::LaunchTemplate

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 LaunchTemplate data as a hash:

{
  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,
        },
      },
    },
  ],
}

Describes a launch template and overrides. You specify these properties as part of a mixed instances policy.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#launch_template_specificationTypes::LaunchTemplateSpecification

The launch template to use.



4799
4800
4801
4802
4803
4804
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 4799

class LaunchTemplate < Struct.new(
  :launch_template_specification,
  :overrides)
  SENSITIVE = []
  include Aws::Structure
end

#overridesArray<Types::LaunchTemplateOverrides>

Any properties that you specify override the same properties in the launch template. If not provided, Amazon EC2 Auto Scaling uses the instance type or instance type requirements specified in the launch template when it launches an instance.

The overrides can include either one or more instance types or a set of instance requirements, but not both.

Returns:



4799
4800
4801
4802
4803
4804
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 4799

class LaunchTemplate < Struct.new(
  :launch_template_specification,
  :overrides)
  SENSITIVE = []
  include Aws::Structure
end