Class: Aws::AutoScaling::Types::LaunchTemplateSpecification
- Inherits:
-
Struct
- Object
- Struct
- Aws::AutoScaling::Types::LaunchTemplateSpecification
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-autoscaling/types.rb
Overview
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
-
#launch_template_id ⇒ String
The ID of the launch template.
-
#launch_template_name ⇒ String
The name of the launch template.
-
#version ⇒ String
The version number, ‘$Latest`, or `$Default`.
Instance Attribute Details
#launch_template_id ⇒ String
The ID of the launch template. You must specify either a template ID or a template name.
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_name ⇒ String
The name of the launch template. You must specify either a template name or a template ID.
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 |
#version ⇒ String
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`.
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 |