Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Preview a reservation purchase with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation.
This is a preview of the PurchaseHostReservation action and does not result in the offering being purchased.
- getHostReservationPurchasePreview :: Text -> GetHostReservationPurchasePreview
- data GetHostReservationPurchasePreview
- ghrppOfferingId :: Lens' GetHostReservationPurchasePreview Text
- ghrppHostIdSet :: Lens' GetHostReservationPurchasePreview [Text]
- getHostReservationPurchasePreviewResponse :: Int -> GetHostReservationPurchasePreviewResponse
- data GetHostReservationPurchasePreviewResponse
- ghrpprsCurrencyCode :: Lens' GetHostReservationPurchasePreviewResponse (Maybe CurrencyCodeValues)
- ghrpprsTotalHourlyPrice :: Lens' GetHostReservationPurchasePreviewResponse (Maybe Text)
- ghrpprsTotalUpfrontPrice :: Lens' GetHostReservationPurchasePreviewResponse (Maybe Text)
- ghrpprsPurchase :: Lens' GetHostReservationPurchasePreviewResponse [Purchase]
- ghrpprsResponseStatus :: Lens' GetHostReservationPurchasePreviewResponse Int
Creating a Request
getHostReservationPurchasePreview Source #
Creates a value of GetHostReservationPurchasePreview
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetHostReservationPurchasePreview Source #
See: getHostReservationPurchasePreview
smart constructor.
Request Lenses
ghrppOfferingId :: Lens' GetHostReservationPurchasePreview Text Source #
The offering ID of the reservation.
ghrppHostIdSet :: Lens' GetHostReservationPurchasePreview [Text] Source #
The ID/s of the Dedicated Host/s that the reservation will be associated with.
Destructuring the Response
getHostReservationPurchasePreviewResponse Source #
Creates a value of GetHostReservationPurchasePreviewResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetHostReservationPurchasePreviewResponse Source #
See: getHostReservationPurchasePreviewResponse
smart constructor.
Response Lenses
ghrpprsCurrencyCode :: Lens' GetHostReservationPurchasePreviewResponse (Maybe CurrencyCodeValues) Source #
The currency in which the totalUpfrontPrice
and totalHourlyPrice
amounts are specified. At this time, the only supported currency is USD
.
ghrpprsTotalHourlyPrice :: Lens' GetHostReservationPurchasePreviewResponse (Maybe Text) Source #
The potential total hourly price of the reservation per hour.
ghrpprsTotalUpfrontPrice :: Lens' GetHostReservationPurchasePreviewResponse (Maybe Text) Source #
The potential total upfront price. This is billed immediately.
ghrpprsPurchase :: Lens' GetHostReservationPurchasePreviewResponse [Purchase] Source #
The purchase information of the Dedicated Host Reservation and the Dedicated Hosts associated with it.
ghrpprsResponseStatus :: Lens' GetHostReservationPurchasePreviewResponse Int Source #
The response status code.