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

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

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

Describes the Amazon EC2 launch template and the launch template version that can be used by an Auto Scaling group to configure Amazon EC2 instances.

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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#launch_template_idString

The ID of the launch template. To get the template ID, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2 CreateLaunchTemplate API.

You must specify either a template ID or a template name.

Returns:

  • (String)


3731
3732
3733
3734
3735
3736
3737
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 3731

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

#launch_template_nameString

The name of the launch template. To get the template name, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2 CreateLaunchTemplate API.

You must specify either a template ID or a template name.

Returns:

  • (String)


3731
3732
3733
3734
3735
3736
3737
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 3731

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

#versionString

The version number, $Latest, or $Default. To get the version number, use the Amazon EC2 DescribeLaunchTemplateVersions API operation. New launch template versions can be created using the Amazon EC2 CreateLaunchTemplateVersion API.

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)


3731
3732
3733
3734
3735
3736
3737
# File 'gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/types.rb', line 3731

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