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

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

Overview

Note:

When making an API call, you may pass LaunchTemplateSpecification data as a 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*.

[1]: docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html

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)


2930
2931
2932
2933
2934
2935
# File 'lib/aws-sdk-autoscaling/types.rb', line 2930

class LaunchTemplateSpecification < Struct.new(
  :launch_template_id,
  :launch_template_name,
  :version)
  include Aws::Structure
end

#launch_template_nameString

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

Returns:

  • (String)


2930
2931
2932
2933
2934
2935
# File 'lib/aws-sdk-autoscaling/types.rb', line 2930

class LaunchTemplateSpecification < Struct.new(
  :launch_template_id,
  :launch_template_name,
  :version)
  include Aws::Structure
end

#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)


2930
2931
2932
2933
2934
2935
# File 'lib/aws-sdk-autoscaling/types.rb', line 2930

class LaunchTemplateSpecification < Struct.new(
  :launch_template_id,
  :launch_template_name,
  :version)
  include Aws::Structure
end