| 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.LaunchTemplateCapacityReservationSpecificationRequest
Description
Synopsis
- data LaunchTemplateCapacityReservationSpecificationRequest = LaunchTemplateCapacityReservationSpecificationRequest' {}
- newLaunchTemplateCapacityReservationSpecificationRequest :: LaunchTemplateCapacityReservationSpecificationRequest
- launchTemplateCapacityReservationSpecificationRequest_capacityReservationPreference :: Lens' LaunchTemplateCapacityReservationSpecificationRequest (Maybe CapacityReservationPreference)
- launchTemplateCapacityReservationSpecificationRequest_capacityReservationTarget :: Lens' LaunchTemplateCapacityReservationSpecificationRequest (Maybe CapacityReservationTarget)
Documentation
data LaunchTemplateCapacityReservationSpecificationRequest Source #
Describes an instance's Capacity Reservation targeting option. You can
specify only one option at a time. Use the
CapacityReservationPreference parameter to configure the instance to
run in On-Demand capacity or to run in any open Capacity Reservation
that has matching attributes (instance type, platform, Availability
Zone). Use the CapacityReservationTarget parameter to explicitly
target a specific Capacity Reservation or a Capacity Reservation group.
See: newLaunchTemplateCapacityReservationSpecificationRequest smart constructor.
Constructors
| LaunchTemplateCapacityReservationSpecificationRequest' | |
Fields
| |
Instances
newLaunchTemplateCapacityReservationSpecificationRequest :: LaunchTemplateCapacityReservationSpecificationRequest Source #
Create a value of LaunchTemplateCapacityReservationSpecificationRequest 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:capacityReservationPreference:LaunchTemplateCapacityReservationSpecificationRequest', launchTemplateCapacityReservationSpecificationRequest_capacityReservationPreference - Indicates the instance's Capacity Reservation preferences. Possible
preferences include:
open- The instance can run in anyopenCapacity Reservation that has matching attributes (instance type, platform, Availability Zone).none- The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
$sel:capacityReservationTarget:LaunchTemplateCapacityReservationSpecificationRequest', launchTemplateCapacityReservationSpecificationRequest_capacityReservationTarget - Information about the target Capacity Reservation or Capacity
Reservation group.
launchTemplateCapacityReservationSpecificationRequest_capacityReservationPreference :: Lens' LaunchTemplateCapacityReservationSpecificationRequest (Maybe CapacityReservationPreference) Source #
Indicates the instance's Capacity Reservation preferences. Possible preferences include:
open- The instance can run in anyopenCapacity Reservation that has matching attributes (instance type, platform, Availability Zone).none- The instance avoids running in a Capacity Reservation even if one is available. The instance runs in On-Demand capacity.
launchTemplateCapacityReservationSpecificationRequest_capacityReservationTarget :: Lens' LaunchTemplateCapacityReservationSpecificationRequest (Maybe CapacityReservationTarget) Source #
Information about the target Capacity Reservation or Capacity Reservation group.