You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing LaunchTemplate as input to an Aws::Client method, you can use a vanilla 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",
      },
    },
  ],
}

Describes a launch template and overrides.

You specify these parameters as part of a mixed instances policy.

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.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#launch_template_specificationTypes::LaunchTemplateSpecification

The launch template to use.

Returns:

#overridesArray<Types::LaunchTemplateOverrides>

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

Returns: