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 |
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.
Synopsis
- data GetHostReservationPurchasePreview = GetHostReservationPurchasePreview' {
- hostIdSet :: [Text]
- offeringId :: Text
- newGetHostReservationPurchasePreview :: Text -> GetHostReservationPurchasePreview
- getHostReservationPurchasePreview_hostIdSet :: Lens' GetHostReservationPurchasePreview [Text]
- getHostReservationPurchasePreview_offeringId :: Lens' GetHostReservationPurchasePreview Text
- data GetHostReservationPurchasePreviewResponse = GetHostReservationPurchasePreviewResponse' {}
- newGetHostReservationPurchasePreviewResponse :: Int -> GetHostReservationPurchasePreviewResponse
- getHostReservationPurchasePreviewResponse_currencyCode :: Lens' GetHostReservationPurchasePreviewResponse (Maybe CurrencyCodeValues)
- getHostReservationPurchasePreviewResponse_purchase :: Lens' GetHostReservationPurchasePreviewResponse (Maybe [Purchase])
- getHostReservationPurchasePreviewResponse_totalHourlyPrice :: Lens' GetHostReservationPurchasePreviewResponse (Maybe Text)
- getHostReservationPurchasePreviewResponse_totalUpfrontPrice :: Lens' GetHostReservationPurchasePreviewResponse (Maybe Text)
- getHostReservationPurchasePreviewResponse_httpStatus :: Lens' GetHostReservationPurchasePreviewResponse Int
Creating a Request
data GetHostReservationPurchasePreview Source #
See: newGetHostReservationPurchasePreview
smart constructor.
GetHostReservationPurchasePreview' | |
|
Instances
newGetHostReservationPurchasePreview Source #
Create a value of GetHostReservationPurchasePreview
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:
GetHostReservationPurchasePreview
, getHostReservationPurchasePreview_hostIdSet
- The IDs of the Dedicated Hosts with which the reservation is associated.
GetHostReservationPurchasePreview
, getHostReservationPurchasePreview_offeringId
- The offering ID of the reservation.
Request Lenses
getHostReservationPurchasePreview_hostIdSet :: Lens' GetHostReservationPurchasePreview [Text] Source #
The IDs of the Dedicated Hosts with which the reservation is associated.
getHostReservationPurchasePreview_offeringId :: Lens' GetHostReservationPurchasePreview Text Source #
The offering ID of the reservation.
Destructuring the Response
data GetHostReservationPurchasePreviewResponse Source #
See: newGetHostReservationPurchasePreviewResponse
smart constructor.
GetHostReservationPurchasePreviewResponse' | |
|
Instances
newGetHostReservationPurchasePreviewResponse Source #
Create a value of GetHostReservationPurchasePreviewResponse
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:
GetHostReservationPurchasePreviewResponse
, getHostReservationPurchasePreviewResponse_currencyCode
- The currency in which the totalUpfrontPrice
and totalHourlyPrice
amounts are specified. At this time, the only supported currency is
USD
.
$sel:purchase:GetHostReservationPurchasePreviewResponse'
, getHostReservationPurchasePreviewResponse_purchase
- The purchase information of the Dedicated Host reservation and the
Dedicated Hosts associated with it.
$sel:totalHourlyPrice:GetHostReservationPurchasePreviewResponse'
, getHostReservationPurchasePreviewResponse_totalHourlyPrice
- The potential total hourly price of the reservation per hour.
$sel:totalUpfrontPrice:GetHostReservationPurchasePreviewResponse'
, getHostReservationPurchasePreviewResponse_totalUpfrontPrice
- The potential total upfront price. This is billed immediately.
$sel:httpStatus:GetHostReservationPurchasePreviewResponse'
, getHostReservationPurchasePreviewResponse_httpStatus
- The response's http status code.
Response Lenses
getHostReservationPurchasePreviewResponse_currencyCode :: 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
.
getHostReservationPurchasePreviewResponse_purchase :: Lens' GetHostReservationPurchasePreviewResponse (Maybe [Purchase]) Source #
The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.
getHostReservationPurchasePreviewResponse_totalHourlyPrice :: Lens' GetHostReservationPurchasePreviewResponse (Maybe Text) Source #
The potential total hourly price of the reservation per hour.
getHostReservationPurchasePreviewResponse_totalUpfrontPrice :: Lens' GetHostReservationPurchasePreviewResponse (Maybe Text) Source #
The potential total upfront price. This is billed immediately.
getHostReservationPurchasePreviewResponse_httpStatus :: Lens' GetHostReservationPurchasePreviewResponse Int Source #
The response's http status code.