Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data TargetCapacitySpecification = TargetCapacitySpecification' {}
- newTargetCapacitySpecification :: TargetCapacitySpecification
- targetCapacitySpecification_defaultTargetCapacityType :: Lens' TargetCapacitySpecification (Maybe DefaultTargetCapacityType)
- targetCapacitySpecification_onDemandTargetCapacity :: Lens' TargetCapacitySpecification (Maybe Int)
- targetCapacitySpecification_spotTargetCapacity :: Lens' TargetCapacitySpecification (Maybe Int)
- targetCapacitySpecification_targetCapacityUnitType :: Lens' TargetCapacitySpecification (Maybe TargetCapacityUnitType)
- targetCapacitySpecification_totalTargetCapacity :: Lens' TargetCapacitySpecification (Maybe Int)
Documentation
data TargetCapacitySpecification Source #
The number of units to request. You can choose to set the target
capacity in terms of instances or a performance characteristic that is
important to your application workload, such as vCPUs, memory, or I/O.
If the request type is maintain
, you can specify a target capacity of
0 and add capacity later.
You can use the On-Demand Instance MaxTotalPrice
parameter, the Spot
Instance MaxTotalPrice
, or both 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, EC2 Fleet will
launch instances until it reaches the maximum amount that 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. The MaxTotalPrice
parameters are located in
OnDemandOptions
and
SpotOptions.
See: newTargetCapacitySpecification
smart constructor.
TargetCapacitySpecification' | |
|
Instances
newTargetCapacitySpecification :: TargetCapacitySpecification Source #
Create a value of TargetCapacitySpecification
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:defaultTargetCapacityType:TargetCapacitySpecification'
, targetCapacitySpecification_defaultTargetCapacityType
- The default TotalTargetCapacity
, which is either Spot
or
On-Demand
.
$sel:onDemandTargetCapacity:TargetCapacitySpecification'
, targetCapacitySpecification_onDemandTargetCapacity
- The number of On-Demand units to request. If you specify a target
capacity for Spot units, you cannot specify a target capacity for
On-Demand units.
$sel:spotTargetCapacity:TargetCapacitySpecification'
, targetCapacitySpecification_spotTargetCapacity
- The maximum number of Spot units to launch. If you specify a target
capacity for On-Demand units, you cannot specify a target capacity for
Spot units.
$sel:targetCapacityUnitType:TargetCapacitySpecification'
, targetCapacitySpecification_targetCapacityUnitType
- The unit for the target capacity.
Default: units
(translates to number of instances)
$sel:totalTargetCapacity:TargetCapacitySpecification'
, targetCapacitySpecification_totalTargetCapacity
- The number of units to request, filled using
DefaultTargetCapacityType
.
targetCapacitySpecification_defaultTargetCapacityType :: Lens' TargetCapacitySpecification (Maybe DefaultTargetCapacityType) Source #
The default TotalTargetCapacity
, which is either Spot
or
On-Demand
.
targetCapacitySpecification_onDemandTargetCapacity :: Lens' TargetCapacitySpecification (Maybe Int) Source #
The number of On-Demand units to request. If you specify a target capacity for Spot units, you cannot specify a target capacity for On-Demand units.
targetCapacitySpecification_spotTargetCapacity :: Lens' TargetCapacitySpecification (Maybe Int) Source #
The maximum number of Spot units to launch. If you specify a target capacity for On-Demand units, you cannot specify a target capacity for Spot units.
targetCapacitySpecification_targetCapacityUnitType :: Lens' TargetCapacitySpecification (Maybe TargetCapacityUnitType) Source #
The unit for the target capacity.
Default: units
(translates to number of instances)
targetCapacitySpecification_totalTargetCapacity :: Lens' TargetCapacitySpecification (Maybe Int) Source #
The number of units to request, filled using
DefaultTargetCapacityType
.