@Stability(value=Stable)
public static interface CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty
extends software.amazon.jsii.JsiiSerializable
You must specify either the launch template ID or launch template name in the request.
FleetLaunchTemplateSpecificationRequest is a property of the FleetLaunchTemplateConfigRequest property type.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
FleetLaunchTemplateSpecificationRequestProperty fleetLaunchTemplateSpecificationRequestProperty = FleetLaunchTemplateSpecificationRequestProperty.builder()
.launchTemplateId("launchTemplateId")
.launchTemplateName("launchTemplateName")
.version("version")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.Builder
|
static class |
CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.Jsii$Proxy
An implementation for
CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.Builder |
builder() |
default String |
getLaunchTemplateId()
The ID of the launch template.
|
default String |
getLaunchTemplateName()
The name of the launch template.
|
default String |
getVersion()
The launch template version number, `$Latest` , or `$Default` .
|
@Stability(value=Stable) @Nullable default String getLaunchTemplateId()
If you specify the template ID, you can't specify the template name.
@Stability(value=Stable) @Nullable default String getLaunchTemplateName()
If you specify the template name, you can't specify the template ID.
@Stability(value=Stable) @Nullable default String getVersion()
If the value is $Latest , Amazon EC2 uses the latest version of the launch template.
If the value is $Default , Amazon EC2 uses the default version of the launch template.
@Stability(value=Stable) static CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.Builder builder()
Copyright © 2022. All rights reserved.