@Stability(value=Stable) public static final class CfnSpotFleet.InstanceRequirementsRequestProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnSpotFleet.InstanceRequirementsRequestProperty>
CfnSpotFleet.InstanceRequirementsRequestProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder acceleratorCount(CfnSpotFleet.AcceleratorCountRequestProperty acceleratorCount)
CfnSpotFleet.InstanceRequirementsRequestProperty.getAcceleratorCount()acceleratorCount - The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
To exclude accelerator-enabled instance types, set Max to 0 .
Default: No minimum or maximum limits
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder acceleratorCount(IResolvable acceleratorCount)
CfnSpotFleet.InstanceRequirementsRequestProperty.getAcceleratorCount()acceleratorCount - The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
To exclude accelerator-enabled instance types, set Max to 0 .
Default: No minimum or maximum limits
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder acceleratorManufacturers(List<String> acceleratorManufacturers)
acceleratorManufacturers - Indicates whether instance types must have accelerators by specific manufacturers.
nvidia .amd .amazon-web-services .xilinx .Default: Any manufacturer
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder acceleratorNames(List<String> acceleratorNames)
CfnSpotFleet.InstanceRequirementsRequestProperty.getAcceleratorNames()acceleratorNames - The accelerators that must be on the instance type.
a100 .v100 .k80 .t4 .m60 .radeon-pro-v520 .vu9p .Default: Any accelerator
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder acceleratorTotalMemoryMiB(CfnSpotFleet.AcceleratorTotalMemoryMiBRequestProperty acceleratorTotalMemoryMiB)
acceleratorTotalMemoryMiB - The minimum and maximum amount of total accelerator memory, in MiB.
Default: No minimum or maximum limitsthis@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder acceleratorTotalMemoryMiB(IResolvable acceleratorTotalMemoryMiB)
acceleratorTotalMemoryMiB - The minimum and maximum amount of total accelerator memory, in MiB.
Default: No minimum or maximum limitsthis@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder acceleratorTypes(List<String> acceleratorTypes)
CfnSpotFleet.InstanceRequirementsRequestProperty.getAcceleratorTypes()acceleratorTypes - The accelerator types that must be on the instance type.
gpu .fpga .inference .Default: Any accelerator type
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder bareMetal(String bareMetal)
CfnSpotFleet.InstanceRequirementsRequestProperty.getBareMetal()bareMetal - Indicates whether bare metal instance types must be included, excluded, or required.
included .required .excluded .
Default: excluded
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder baselineEbsBandwidthMbps(CfnSpotFleet.BaselineEbsBandwidthMbpsRequestProperty baselineEbsBandwidthMbps)
baselineEbsBandwidthMbps - The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps.
For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide .
Default: No minimum or maximum limits
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder baselineEbsBandwidthMbps(IResolvable baselineEbsBandwidthMbps)
baselineEbsBandwidthMbps - The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps.
For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide .
Default: No minimum or maximum limits
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder burstablePerformance(String burstablePerformance)
burstablePerformance - Indicates whether burstable performance T instance types are included, excluded, or required.
For more information, see Burstable performance instances .
included .required .excluded .
Default: excluded
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder cpuManufacturers(List<String> cpuManufacturers)
CfnSpotFleet.InstanceRequirementsRequestProperty.getCpuManufacturers()cpuManufacturers - The CPU manufacturers to include.
intel .amd .amazon-web-services .
Don't confuse the CPU manufacturer with the CPU architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
Default: Any manufacturer
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder excludedInstanceTypes(List<String> excludedInstanceTypes)
excludedInstanceTypes - The instance types to exclude.
You can use strings with one or more wild cards, represented by an asterisk ( * ), to exclude an instance family, type, size, or generation. The following are examples: m5.8xlarge , c5*.* , m5a.* , r* , *3* .
For example, if you specify c5* ,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.* , Amazon EC2 will exclude all the M5a instance types, but not the M5n instance types.
Default: No excluded instance types
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder instanceGenerations(List<String> instanceGenerations)
instanceGenerations - Indicates whether current or previous generation instance types are included.
The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see Instance types in the Amazon EC2 User Guide .
For current generation instance types, specify current .
For previous generation instance types, specify previous .
Default: Current and previous generation instance types
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder localStorage(String localStorage)
CfnSpotFleet.InstanceRequirementsRequestProperty.getLocalStorage()localStorage - Indicates whether instance types with instance store volumes are included, excluded, or required.
For more information, Amazon EC2 instance store in the Amazon EC2 User Guide .
included .required .excluded .
Default: included
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder localStorageTypes(List<String> localStorageTypes)
CfnSpotFleet.InstanceRequirementsRequestProperty.getLocalStorageTypes()localStorageTypes - The type of local storage that is required.
hdd .sdd .
Default: hdd and sdd
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder memoryGiBPerVCpu(CfnSpotFleet.MemoryGiBPerVCpuRequestProperty memoryGiBPerVCpu)
CfnSpotFleet.InstanceRequirementsRequestProperty.getMemoryGiBPerVCpu()memoryGiBPerVCpu - The minimum and maximum amount of memory per vCPU, in GiB.
Default: No minimum or maximum limitsthis@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder memoryGiBPerVCpu(IResolvable memoryGiBPerVCpu)
CfnSpotFleet.InstanceRequirementsRequestProperty.getMemoryGiBPerVCpu()memoryGiBPerVCpu - The minimum and maximum amount of memory per vCPU, in GiB.
Default: No minimum or maximum limitsthis@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder memoryMiB(CfnSpotFleet.MemoryMiBRequestProperty memoryMiB)
CfnSpotFleet.InstanceRequirementsRequestProperty.getMemoryMiB()memoryMiB - The minimum and maximum amount of memory, in MiB.this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder memoryMiB(IResolvable memoryMiB)
CfnSpotFleet.InstanceRequirementsRequestProperty.getMemoryMiB()memoryMiB - The minimum and maximum amount of memory, in MiB.this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder networkInterfaceCount(CfnSpotFleet.NetworkInterfaceCountRequestProperty networkInterfaceCount)
networkInterfaceCount - The minimum and maximum number of network interfaces.
Default: No minimum or maximum limitsthis@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder networkInterfaceCount(IResolvable networkInterfaceCount)
networkInterfaceCount - The minimum and maximum number of network interfaces.
Default: No minimum or maximum limitsthis@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder onDemandMaxPricePercentageOverLowestPrice(Number onDemandMaxPricePercentageOverLowestPrice)
CfnSpotFleet.InstanceRequirementsRequestProperty.getOnDemandMaxPricePercentageOverLowestPrice()onDemandMaxPricePercentageOverLowestPrice - The price protection threshold for On-Demand Instances.
This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage above the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
To turn off price protection, specify a high value, such as 999999 .
This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements .
If you set
TargetCapacityUnitTypetovcpuormemory-mib, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.
Default: 20
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder requireHibernateSupport(Boolean requireHibernateSupport)
requireHibernateSupport - Indicates whether instance types must support hibernation for On-Demand Instances.
This parameter is not supported for GetSpotPlacementScores .
Default: false
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder requireHibernateSupport(IResolvable requireHibernateSupport)
requireHibernateSupport - Indicates whether instance types must support hibernation for On-Demand Instances.
This parameter is not supported for GetSpotPlacementScores .
Default: false
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder spotMaxPricePercentageOverLowestPrice(Number spotMaxPricePercentageOverLowestPrice)
CfnSpotFleet.InstanceRequirementsRequestProperty.getSpotMaxPricePercentageOverLowestPrice()spotMaxPricePercentageOverLowestPrice - The price protection threshold for Spot Instance.
This is the maximum you’ll pay for an Spot Instance, expressed as a percentage above the cheapest M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.
The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
To turn off price protection, specify a high value, such as 999999 .
This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements .
If you set
TargetCapacityUnitTypetovcpuormemory-mib, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per-instance price.
Default: 100
this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder totalLocalStorageGb(CfnSpotFleet.TotalLocalStorageGBRequestProperty totalLocalStorageGb)
totalLocalStorageGb - The minimum and maximum amount of total local storage, in GB.
Default: No minimum or maximum limitsthis@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder totalLocalStorageGb(IResolvable totalLocalStorageGb)
totalLocalStorageGb - The minimum and maximum amount of total local storage, in GB.
Default: No minimum or maximum limitsthis@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder vCpuCount(CfnSpotFleet.VCpuCountRangeRequestProperty vCpuCount)
CfnSpotFleet.InstanceRequirementsRequestProperty.getVCpuCount()vCpuCount - The minimum and maximum number of vCPUs.this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty.Builder vCpuCount(IResolvable vCpuCount)
CfnSpotFleet.InstanceRequirementsRequestProperty.getVCpuCount()vCpuCount - The minimum and maximum number of vCPUs.this@Stability(value=Stable) public CfnSpotFleet.InstanceRequirementsRequestProperty build()
build in interface software.amazon.jsii.Builder<CfnSpotFleet.InstanceRequirementsRequestProperty>CfnSpotFleet.InstanceRequirementsRequestPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.