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

Class: Aws::AutoScaling::Types::LaunchTemplateSpecification

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

Overview

Note:

When passing LaunchTemplateSpecification as input to an Aws::Client method, you can use a vanilla Hash:

{
  launch_template_id: "XmlStringMaxLen255",
  launch_template_name: "LaunchTemplateName",
  version: "XmlStringMaxLen255",
}

Describes a launch template and the launch template version.

The launch template that is specified must be configured for use with an Auto Scaling group. For more information, see Creating a Launch Template for an Auto Scaling Group in the Amazon EC2 Auto Scaling User Guide.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#launch_template_idString

The ID of the launch template. You must specify either a template ID or a template name.

Returns:

  • (String)

    The ID of the launch template.

#launch_template_nameString

The name of the launch template. You must specify either a template name or a template ID.

Returns:

  • (String)

    The name of the launch template.

#versionString

The version number, $Latest, or $Default. If the value is $Latest, Amazon EC2 Auto Scaling selects the latest version of the launch template when launching instances. If the value is $Default, Amazon EC2 Auto Scaling selects the default version of the launch template when launching instances. The default value is $Default.

Returns:

  • (String)

    The version number, $Latest, or $Default.