Module Values_5.GetHostReservationPurchasePreviewResultSource

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.

Sourcetype nonrec t = {
  1. currencyCode : Values_0.CurrencyCodeValues.t option;
    (*

    The currency in which the totalUpfrontPrice and totalHourlyPrice amounts are specified. At this time, the only supported currency is USD.

    *)
  2. purchase : Values_3.PurchaseSet.t option;
    (*

    The purchase information of the Dedicated Host reservation and the Dedicated Hosts associated with it.

    *)
  3. totalHourlyPrice : Values_0.String_.t option;
    (*

    The potential total hourly price of the reservation per hour.

    *)
  4. totalUpfrontPrice : Values_0.String_.t option;
    (*

    The potential total upfront price. This is billed immediately.

    *)
}
Sourcetype nonrec error = [
  1. | `Unknown_operation_error of string * string option
]
Sourceval make : ?currencyCode:??? -> ?purchase:??? -> ?totalHourlyPrice:??? -> ?totalUpfrontPrice:??? -> unit -> t
Sourceval error_of_json : 'a -> Yojson.Safe.t -> [> `Unknown_operation_error of 'a * string option ]
Sourceval error_of_xml : 'a -> Awso.Xml.t -> [> `Unknown_operation_error of 'a * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Enum of string | `Integer of Values_0.Integer.t | `List of [> `String of Values_0.String_.t ] list | `String of Values_1.HostReservationId.t ]) list ] list | `String of Values_0.String_.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t