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 OnDemandOptions = OnDemandOptions' {}
- newOnDemandOptions :: OnDemandOptions
- onDemandOptions_allocationStrategy :: Lens' OnDemandOptions (Maybe FleetOnDemandAllocationStrategy)
- onDemandOptions_capacityReservationOptions :: Lens' OnDemandOptions (Maybe CapacityReservationOptions)
- onDemandOptions_maxTotalPrice :: Lens' OnDemandOptions (Maybe Text)
- onDemandOptions_minTargetCapacity :: Lens' OnDemandOptions (Maybe Int)
- onDemandOptions_singleAvailabilityZone :: Lens' OnDemandOptions (Maybe Bool)
- onDemandOptions_singleInstanceType :: Lens' OnDemandOptions (Maybe Bool)
Documentation
data OnDemandOptions Source #
Describes the configuration of On-Demand Instances in an EC2 Fleet.
See: newOnDemandOptions
smart constructor.
OnDemandOptions' | |
|
Instances
newOnDemandOptions :: OnDemandOptions Source #
Create a value of OnDemandOptions
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:allocationStrategy:OnDemandOptions'
, onDemandOptions_allocationStrategy
- The strategy that determines the order of the launch template overrides
to use in fulfilling On-Demand capacity.
lowest-price
- EC2 Fleet uses price to determine the order, launching
the lowest price first.
prioritized
- EC2 Fleet uses the priority that you assigned to each
launch template override, launching the highest priority first.
Default: lowest-price
$sel:capacityReservationOptions:OnDemandOptions'
, onDemandOptions_capacityReservationOptions
- The strategy for using unused Capacity Reservations for fulfilling
On-Demand capacity.
Supported only for fleets of type instant
.
$sel:maxTotalPrice:OnDemandOptions'
, onDemandOptions_maxTotalPrice
- The maximum amount per hour for On-Demand Instances that you're willing
to pay.
$sel:minTargetCapacity:OnDemandOptions'
, onDemandOptions_minTargetCapacity
- The minimum target capacity for On-Demand Instances in the fleet. If the
minimum target capacity is not reached, the fleet launches no instances.
Supported only for fleets of type instant
.
At least one of the following must be specified:
SingleAvailabilityZone
| SingleInstanceType
$sel:singleAvailabilityZone:OnDemandOptions'
, onDemandOptions_singleAvailabilityZone
- Indicates that the fleet launches all On-Demand Instances into a single
Availability Zone.
Supported only for fleets of type instant
.
$sel:singleInstanceType:OnDemandOptions'
, onDemandOptions_singleInstanceType
- Indicates that the fleet uses a single instance type to launch all
On-Demand Instances in the fleet.
Supported only for fleets of type instant
.
onDemandOptions_allocationStrategy :: Lens' OnDemandOptions (Maybe FleetOnDemandAllocationStrategy) Source #
The strategy that determines the order of the launch template overrides to use in fulfilling On-Demand capacity.
lowest-price
- EC2 Fleet uses price to determine the order, launching
the lowest price first.
prioritized
- EC2 Fleet uses the priority that you assigned to each
launch template override, launching the highest priority first.
Default: lowest-price
onDemandOptions_capacityReservationOptions :: Lens' OnDemandOptions (Maybe CapacityReservationOptions) Source #
The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.
Supported only for fleets of type instant
.
onDemandOptions_maxTotalPrice :: Lens' OnDemandOptions (Maybe Text) Source #
The maximum amount per hour for On-Demand Instances that you're willing to pay.
onDemandOptions_minTargetCapacity :: Lens' OnDemandOptions (Maybe Int) Source #
The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.
Supported only for fleets of type instant
.
At least one of the following must be specified:
SingleAvailabilityZone
| SingleInstanceType
onDemandOptions_singleAvailabilityZone :: Lens' OnDemandOptions (Maybe Bool) Source #
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.
Supported only for fleets of type instant
.
onDemandOptions_singleInstanceType :: Lens' OnDemandOptions (Maybe Bool) Source #
Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.
Supported only for fleets of type instant
.