Interface CfnSpotFleet.LaunchTemplateConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnSpotFleet.LaunchTemplateConfigProperty.Jsii$Proxy
- Enclosing class:
CfnSpotFleet
@Stability(Stable)
public static interface CfnSpotFleet.LaunchTemplateConfigProperty
extends software.amazon.jsii.JsiiSerializable
Specifies a launch template and overrides.
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.*; LaunchTemplateConfigProperty launchTemplateConfigProperty = LaunchTemplateConfigProperty.builder() .launchTemplateSpecification(FleetLaunchTemplateSpecificationProperty.builder() .version("version") // the properties below are optional .launchTemplateId("launchTemplateId") .launchTemplateName("launchTemplateName") .build()) .overrides(List.of(LaunchTemplateOverridesProperty.builder() .availabilityZone("availabilityZone") .instanceRequirements(InstanceRequirementsRequestProperty.builder() .acceleratorCount(AcceleratorCountRequestProperty.builder() .max(123) .min(123) .build()) .acceleratorManufacturers(List.of("acceleratorManufacturers")) .acceleratorNames(List.of("acceleratorNames")) .acceleratorTotalMemoryMiB(AcceleratorTotalMemoryMiBRequestProperty.builder() .max(123) .min(123) .build()) .acceleratorTypes(List.of("acceleratorTypes")) .allowedInstanceTypes(List.of("allowedInstanceTypes")) .bareMetal("bareMetal") .baselineEbsBandwidthMbps(BaselineEbsBandwidthMbpsRequestProperty.builder() .max(123) .min(123) .build()) .burstablePerformance("burstablePerformance") .cpuManufacturers(List.of("cpuManufacturers")) .excludedInstanceTypes(List.of("excludedInstanceTypes")) .instanceGenerations(List.of("instanceGenerations")) .localStorage("localStorage") .localStorageTypes(List.of("localStorageTypes")) .memoryGiBPerVCpu(MemoryGiBPerVCpuRequestProperty.builder() .max(123) .min(123) .build()) .memoryMiB(MemoryMiBRequestProperty.builder() .max(123) .min(123) .build()) .networkBandwidthGbps(NetworkBandwidthGbpsRequestProperty.builder() .max(123) .min(123) .build()) .networkInterfaceCount(NetworkInterfaceCountRequestProperty.builder() .max(123) .min(123) .build()) .onDemandMaxPricePercentageOverLowestPrice(123) .requireHibernateSupport(false) .spotMaxPricePercentageOverLowestPrice(123) .totalLocalStorageGb(TotalLocalStorageGBRequestProperty.builder() .max(123) .min(123) .build()) .vCpuCount(VCpuCountRangeRequestProperty.builder() .max(123) .min(123) .build()) .build()) .instanceType("instanceType") .priority(123) .spotPrice("spotPrice") .subnetId("subnetId") .weightedCapacity(123) .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnSpotFleet.LaunchTemplateConfigProperty
static final class
An implementation forCfnSpotFleet.LaunchTemplateConfigProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLaunchTemplateSpecification
The launch template to use.Make sure that the launch template does not contain the
NetworkInterfaceId
parameter because you can't specify a network interface ID in a Spot Fleet. -
getOverrides
Any parameters that you specify override the same parameters in the launch template. -
builder
-