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

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

Overview

Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances. For more information about launch templates, see [Launch templates] in the *Amazon EC2 Auto Scaling User Guide*.

[1]: docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchTemplates.html

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][2

API.

Conditional: You must specify either a ‘LaunchTemplateId` or a `LaunchTemplateName`.

[1]: docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLaunchTemplates.html [2]: docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateLaunchTemplate.html

Returns:

  • (String)


4566
4567
4568
4569
4570
4571
4572
# File 'lib/aws-sdk-autoscaling/types.rb', line 4566

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][2

API.

Conditional: You must specify either a ‘LaunchTemplateId` or a `LaunchTemplateName`.

[1]: docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLaunchTemplates.html [2]: docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateLaunchTemplate.html

Returns:

  • (String)


4566
4567
4568
4569
4570
4571
4572
# File 'lib/aws-sdk-autoscaling/types.rb', line 4566

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`.

[1]: docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLaunchTemplateVersions.html [2]: docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateLaunchTemplateVersion.html

Returns:

  • (String)


4566
4567
4568
4569
4570
4571
4572
# File 'lib/aws-sdk-autoscaling/types.rb', line 4566

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