| 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.Purchase
Description
Synopsis
- data Purchase = Purchase' {}
- newPurchase :: Purchase
- purchase_currencyCode :: Lens' Purchase (Maybe CurrencyCodeValues)
- purchase_duration :: Lens' Purchase (Maybe Int)
- purchase_hostIdSet :: Lens' Purchase (Maybe [Text])
- purchase_hostReservationId :: Lens' Purchase (Maybe Text)
- purchase_hourlyPrice :: Lens' Purchase (Maybe Text)
- purchase_instanceFamily :: Lens' Purchase (Maybe Text)
- purchase_paymentOption :: Lens' Purchase (Maybe PaymentOption)
- purchase_upfrontPrice :: Lens' Purchase (Maybe Text)
Documentation
Describes the result of the purchase.
See: newPurchase smart constructor.
Constructors
| Purchase' | |
Fields
| |
Instances
newPurchase :: Purchase Source #
Create a value of Purchase 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:currencyCode:Purchase', purchase_currencyCode - The currency in which the UpfrontPrice and HourlyPrice amounts are
specified. At this time, the only supported currency is USD.
$sel:duration:Purchase', purchase_duration - The duration of the reservation's term in seconds.
$sel:hostIdSet:Purchase', purchase_hostIdSet - The IDs of the Dedicated Hosts associated with the reservation.
$sel:hostReservationId:Purchase', purchase_hostReservationId - The ID of the reservation.
$sel:hourlyPrice:Purchase', purchase_hourlyPrice - The hourly price of the reservation per hour.
$sel:instanceFamily:Purchase', purchase_instanceFamily - The instance family on the Dedicated Host that the reservation can be
associated with.
$sel:paymentOption:Purchase', purchase_paymentOption - The payment option for the reservation.
$sel:upfrontPrice:Purchase', purchase_upfrontPrice - The upfront price of the reservation.
purchase_currencyCode :: Lens' Purchase (Maybe CurrencyCodeValues) Source #
The currency in which the UpfrontPrice and HourlyPrice amounts are
specified. At this time, the only supported currency is USD.
purchase_duration :: Lens' Purchase (Maybe Int) Source #
The duration of the reservation's term in seconds.
purchase_hostIdSet :: Lens' Purchase (Maybe [Text]) Source #
The IDs of the Dedicated Hosts associated with the reservation.
purchase_hourlyPrice :: Lens' Purchase (Maybe Text) Source #
The hourly price of the reservation per hour.
purchase_instanceFamily :: Lens' Purchase (Maybe Text) Source #
The instance family on the Dedicated Host that the reservation can be associated with.
purchase_paymentOption :: Lens' Purchase (Maybe PaymentOption) Source #
The payment option for the reservation.