Interface LaunchTemplateSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LaunchTemplateSpecification.Builder,
,LaunchTemplateSpecification> SdkBuilder<LaunchTemplateSpecification.Builder,
,LaunchTemplateSpecification> SdkPojo
- Enclosing class:
LaunchTemplateSpecification
-
Method Summary
Modifier and TypeMethodDescriptionlaunchTemplateId
(String launchTemplateId) The ID of the launch template.launchTemplateName
(String launchTemplateName) The name of the launch template.The version number,$Latest
, or$Default
.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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 aLaunchTemplateName
.- Parameters:
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 aLaunchTemplateName
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 aLaunchTemplateName
.- Parameters:
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 aLaunchTemplateName
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
.- Parameters:
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
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-