@Stability(value=Stable)
public static interface CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty
extends software.amazon.jsii.JsiiSerializable
FleetLaunchTemplateConfigRequest is a property of the AWS::EC2::EC2Fleet resource.
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.*;
FleetLaunchTemplateConfigRequestProperty fleetLaunchTemplateConfigRequestProperty = FleetLaunchTemplateConfigRequestProperty.builder()
.launchTemplateSpecification(FleetLaunchTemplateSpecificationRequestProperty.builder()
.launchTemplateId("launchTemplateId")
.launchTemplateName("launchTemplateName")
.version("version")
.build())
.overrides(List.of(FleetLaunchTemplateOverridesRequestProperty.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"))
.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())
.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")
.maxPrice("maxPrice")
.placement(PlacementProperty.builder()
.affinity("affinity")
.availabilityZone("availabilityZone")
.groupName("groupName")
.hostId("hostId")
.hostResourceGroupArn("hostResourceGroupArn")
.partitionNumber(123)
.spreadDomain("spreadDomain")
.tenancy("tenancy")
.build())
.priority(123)
.subnetId("subnetId")
.weightedCapacity(123)
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.Builder
A builder for
CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty |
static class |
CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.Jsii$Proxy
An implementation for
CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.Builder |
builder() |
default Object |
getLaunchTemplateSpecification()
The launch template to use.
|
default Object |
getOverrides()
Any parameters that you specify override the same parameters in the launch template.
|
@Stability(value=Stable) @Nullable default Object getLaunchTemplateSpecification()
You must specify either the launch template ID or launch template name in the request.
@Stability(value=Stable) @Nullable default Object getOverrides()
For fleets of type request and maintain , a maximum of 300 items is allowed across all launch templates.
@Stability(value=Stable) static CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.Builder builder()
Copyright © 2022. All rights reserved.