@Generated(value="software.amazon.awssdk:codegen") public final class LaunchTemplateSpecification extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LaunchTemplateSpecification.Builder,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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
LaunchTemplateSpecification.Builder |
| Modifier and Type | Method and Description |
|---|---|
static LaunchTemplateSpecification.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
launchTemplateId()
The ID of the launch template.
|
String |
launchTemplateName()
The name of the launch template.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends LaunchTemplateSpecification.Builder> |
serializableBuilderClass() |
LaunchTemplateSpecification.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
version()
The version number,
$Latest, or $Default. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String 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.
Conditional: You must specify either a LaunchTemplateId or a LaunchTemplateName.
public final String 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.
Conditional: You must specify either a LaunchTemplateId or a LaunchTemplateName.
public final String 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.
$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.public LaunchTemplateSpecification.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<LaunchTemplateSpecification.Builder,LaunchTemplateSpecification>public static LaunchTemplateSpecification.Builder builder()
public static Class<? extends LaunchTemplateSpecification.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.