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 TargetCapacitySpecificationRequest = TargetCapacitySpecificationRequest' {}
- newTargetCapacitySpecificationRequest :: Int -> TargetCapacitySpecificationRequest
- targetCapacitySpecificationRequest_defaultTargetCapacityType :: Lens' TargetCapacitySpecificationRequest (Maybe DefaultTargetCapacityType)
- targetCapacitySpecificationRequest_onDemandTargetCapacity :: Lens' TargetCapacitySpecificationRequest (Maybe Int)
- targetCapacitySpecificationRequest_spotTargetCapacity :: Lens' TargetCapacitySpecificationRequest (Maybe Int)
- targetCapacitySpecificationRequest_targetCapacityUnitType :: Lens' TargetCapacitySpecificationRequest (Maybe TargetCapacityUnitType)
- targetCapacitySpecificationRequest_totalTargetCapacity :: Lens' TargetCapacitySpecificationRequest Int
Documentation
data TargetCapacitySpecificationRequest Source #
The number of units to request. You can choose to set the target
capacity as the number of instances. Or you can set the target capacity
to 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
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,
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
OnDemandOptionsRequest
and
SpotOptionsRequest.
See: newTargetCapacitySpecificationRequest
smart constructor.
TargetCapacitySpecificationRequest' | |
|
Instances
newTargetCapacitySpecificationRequest Source #
:: Int |
|
-> TargetCapacitySpecificationRequest |
Create a value of TargetCapacitySpecificationRequest
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:TargetCapacitySpecificationRequest'
, targetCapacitySpecificationRequest_defaultTargetCapacityType
- The default TotalTargetCapacity
, which is either Spot
or
On-Demand
.
$sel:onDemandTargetCapacity:TargetCapacitySpecificationRequest'
, targetCapacitySpecificationRequest_onDemandTargetCapacity
- The number of On-Demand units to request.
$sel:spotTargetCapacity:TargetCapacitySpecificationRequest'
, targetCapacitySpecificationRequest_spotTargetCapacity
- The number of Spot units to request.
$sel:targetCapacityUnitType:TargetCapacitySpecificationRequest'
, targetCapacitySpecificationRequest_targetCapacityUnitType
- The unit for the target capacity.
Default: units
(translates to number of instances)
$sel:totalTargetCapacity:TargetCapacitySpecificationRequest'
, targetCapacitySpecificationRequest_totalTargetCapacity
- The number of units to request, filled using
DefaultTargetCapacityType
.
targetCapacitySpecificationRequest_defaultTargetCapacityType :: Lens' TargetCapacitySpecificationRequest (Maybe DefaultTargetCapacityType) Source #
The default TotalTargetCapacity
, which is either Spot
or
On-Demand
.
targetCapacitySpecificationRequest_onDemandTargetCapacity :: Lens' TargetCapacitySpecificationRequest (Maybe Int) Source #
The number of On-Demand units to request.
targetCapacitySpecificationRequest_spotTargetCapacity :: Lens' TargetCapacitySpecificationRequest (Maybe Int) Source #
The number of Spot units to request.
targetCapacitySpecificationRequest_targetCapacityUnitType :: Lens' TargetCapacitySpecificationRequest (Maybe TargetCapacityUnitType) Source #
The unit for the target capacity.
Default: units
(translates to number of instances)
targetCapacitySpecificationRequest_totalTargetCapacity :: Lens' TargetCapacitySpecificationRequest Int Source #
The number of units to request, filled using
DefaultTargetCapacityType
.