onDemandMaxTotalPrice

@JvmName(name = "tyhthwpcjnbtgrgc")
suspend fun onDemandMaxTotalPrice(value: Output<String>)
@JvmName(name = "jsflnqkoqojtnyli")
suspend fun onDemandMaxTotalPrice(value: String?)

Parameters

value

The maximum amount per hour for On-Demand Instances that you're willing to pay. You can use the onDemandMaxTotalPrice parameter, the spotMaxTotalPrice parameter, or both parameters to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, Spot Fleet will launch instances until it reaches the maximum amount you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity.

If your fleet includes T instances that are configured as unlimited , and if their average CPU usage exceeds the baseline utilization, you will incur a charge for surplus credits. The onDemandMaxTotalPrice does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified for onDemandMaxTotalPrice . For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide .