@Stability(value=Stable)
public static interface CfnSpotFleet.FleetLaunchTemplateSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
For information about launch templates, see Launching an instance from a launch template in the Amazon EC2 User Guide for Linux Instances .
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.*;
FleetLaunchTemplateSpecificationProperty fleetLaunchTemplateSpecificationProperty = FleetLaunchTemplateSpecificationProperty.builder()
.version("version")
// the properties below are optional
.launchTemplateId("launchTemplateId")
.launchTemplateName("launchTemplateName")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnSpotFleet.FleetLaunchTemplateSpecificationProperty.Builder
A builder for
CfnSpotFleet.FleetLaunchTemplateSpecificationProperty |
static class |
CfnSpotFleet.FleetLaunchTemplateSpecificationProperty.Jsii$Proxy
An implementation for
CfnSpotFleet.FleetLaunchTemplateSpecificationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnSpotFleet.FleetLaunchTemplateSpecificationProperty.Builder |
builder() |
default String |
getLaunchTemplateId()
The ID of the launch template.
|
default String |
getLaunchTemplateName()
The name of the launch template.
|
String |
getVersion()
The version number of the launch template.
|
@Stability(value=Stable) @NotNull String getVersion()
Minimum length of 1. Maximum length of 255. Versions must fit the following pattern: [\ u0020-\ uD7FF\ uE000-\ uFFFD\ uD800\ uDC00-\ uDBFF\ uDFFF\r\n\t]*
@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()
Minimum length of 3. Maximum length of 128. Names must match the following pattern: [a-zA-Z0-9\(\)\.-/_]+
@Stability(value=Stable) static CfnSpotFleet.FleetLaunchTemplateSpecificationProperty.Builder builder()
Copyright © 2022. All rights reserved.