| 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 |
Amazonka.EC2.Types.OnDemandOptionsRequest
Description
Synopsis
- data OnDemandOptionsRequest = OnDemandOptionsRequest' {}
- newOnDemandOptionsRequest :: OnDemandOptionsRequest
- onDemandOptionsRequest_allocationStrategy :: Lens' OnDemandOptionsRequest (Maybe FleetOnDemandAllocationStrategy)
- onDemandOptionsRequest_capacityReservationOptions :: Lens' OnDemandOptionsRequest (Maybe CapacityReservationOptionsRequest)
- onDemandOptionsRequest_maxTotalPrice :: Lens' OnDemandOptionsRequest (Maybe Text)
- onDemandOptionsRequest_minTargetCapacity :: Lens' OnDemandOptionsRequest (Maybe Int)
- onDemandOptionsRequest_singleAvailabilityZone :: Lens' OnDemandOptionsRequest (Maybe Bool)
- onDemandOptionsRequest_singleInstanceType :: Lens' OnDemandOptionsRequest (Maybe Bool)
Documentation
data OnDemandOptionsRequest Source #
Describes the configuration of On-Demand Instances in an EC2 Fleet.
See: newOnDemandOptionsRequest smart constructor.
Constructors
| OnDemandOptionsRequest' | |
Fields
| |
Instances
newOnDemandOptionsRequest :: OnDemandOptionsRequest Source #
Create a value of OnDemandOptionsRequest 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:OnDemandOptionsRequest', onDemandOptionsRequest_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:OnDemandOptionsRequest', onDemandOptionsRequest_capacityReservationOptions - The strategy for using unused Capacity Reservations for fulfilling
On-Demand capacity.
Supported only for fleets of type instant.
$sel:maxTotalPrice:OnDemandOptionsRequest', onDemandOptionsRequest_maxTotalPrice - The maximum amount per hour for On-Demand Instances that you're willing
to pay.
$sel:minTargetCapacity:OnDemandOptionsRequest', onDemandOptionsRequest_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:OnDemandOptionsRequest', onDemandOptionsRequest_singleAvailabilityZone - Indicates that the fleet launches all On-Demand Instances into a single
Availability Zone.
Supported only for fleets of type instant.
$sel:singleInstanceType:OnDemandOptionsRequest', onDemandOptionsRequest_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.
onDemandOptionsRequest_allocationStrategy :: Lens' OnDemandOptionsRequest (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
onDemandOptionsRequest_capacityReservationOptions :: Lens' OnDemandOptionsRequest (Maybe CapacityReservationOptionsRequest) Source #
The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.
Supported only for fleets of type instant.
onDemandOptionsRequest_maxTotalPrice :: Lens' OnDemandOptionsRequest (Maybe Text) Source #
The maximum amount per hour for On-Demand Instances that you're willing to pay.
onDemandOptionsRequest_minTargetCapacity :: Lens' OnDemandOptionsRequest (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
onDemandOptionsRequest_singleAvailabilityZone :: Lens' OnDemandOptionsRequest (Maybe Bool) Source #
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.
Supported only for fleets of type instant.
onDemandOptionsRequest_singleInstanceType :: Lens' OnDemandOptionsRequest (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.