Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data LaunchTemplateSpecification = LaunchTemplateSpecification' {}
- newLaunchTemplateSpecification :: LaunchTemplateSpecification
- launchTemplateSpecification_launchTemplateName :: Lens' LaunchTemplateSpecification (Maybe Text)
- launchTemplateSpecification_launchTemplateId :: Lens' LaunchTemplateSpecification (Maybe Text)
- launchTemplateSpecification_version :: Lens' LaunchTemplateSpecification (Maybe Text)
Documentation
data LaunchTemplateSpecification Source #
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.
See: newLaunchTemplateSpecification
smart constructor.
LaunchTemplateSpecification' | |
|
Instances
newLaunchTemplateSpecification :: LaunchTemplateSpecification Source #
Create a value of LaunchTemplateSpecification
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:launchTemplateName:LaunchTemplateSpecification'
, launchTemplateSpecification_launchTemplateName
- 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.
Conditional: You must specify either a LaunchTemplateId
or a
LaunchTemplateName
.
$sel:launchTemplateId:LaunchTemplateSpecification'
, launchTemplateSpecification_launchTemplateId
- 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.
Conditional: You must specify either a LaunchTemplateId
or a
LaunchTemplateName
.
$sel:version:LaunchTemplateSpecification'
, launchTemplateSpecification_version
- 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
.
launchTemplateSpecification_launchTemplateName :: Lens' LaunchTemplateSpecification (Maybe Text) Source #
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.
Conditional: You must specify either a LaunchTemplateId
or a
LaunchTemplateName
.
launchTemplateSpecification_launchTemplateId :: Lens' LaunchTemplateSpecification (Maybe Text) Source #
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.
Conditional: You must specify either a LaunchTemplateId
or a
LaunchTemplateName
.
launchTemplateSpecification_version :: Lens' LaunchTemplateSpecification (Maybe Text) Source #
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
.