class Aws::AutoScaling::Types::LaunchTemplateSpecification

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

@note When making an API call, you may pass LaunchTemplateSpecification

data as a hash:

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

@!attribute [rw] launch_template_id

The ID of the launch template. To get the template ID, use the
Amazon EC2 [DescribeLaunchTemplates][1] 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]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLaunchTemplates.html
[2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateLaunchTemplate.html
@return [String]

@!attribute [rw] launch_template_name

The name of the launch template. To get the template name, use the
Amazon EC2 [DescribeLaunchTemplates][1] 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]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLaunchTemplates.html
[2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateLaunchTemplate.html
@return [String]

@!attribute [rw] version

The version number, `$Latest`, or `$Default`. To get the version
number, use the Amazon EC2 [DescribeLaunchTemplateVersions][1] API
operation. New launch template versions can be created using the
Amazon EC2 [CreateLaunchTemplateVersion][2] 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]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeLaunchTemplateVersions.html
[2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateLaunchTemplateVersion.html
@return [String]

@see docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/LaunchTemplateSpecification AWS API Documentation

Constants

SENSITIVE