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

Describes a launch template and overrides.

The overrides are used to override the instance type specified by the launch template with multiple instance types that can be used to launch On-Demand Instances and Spot Instances.

When you update the launch template or overrides, existing Amazon EC2 instances continue to run. When scale out occurs, Amazon EC2 Auto Scaling launches instances to match the new settings. When scale in occurs, Amazon EC2 Auto Scaling terminates instances according to the group's termination policies.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#launch_template_specificationTypes::LaunchTemplateSpecification

The launch template to use. You must specify either the launch template ID or launch template name in the request.



3694
3695
3696
3697
3698
3699
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 3694

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

#overridesArray<Types::LaunchTemplateOverrides>

Any parameters that you specify override the same parameters in the launch template. Currently, the only supported override is instance type. You can specify between 1 and 20 instance types.

If not provided, Amazon EC2 Auto Scaling will use the instance type specified in the launch template to launch instances.

Returns:



3694
3695
3696
3697
3698
3699
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 3694

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