Module Values_4.PurchaseHostReservationResultSource

Purchase a reservation with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation. This action results in the specified reservation being purchased and charged to your account.

Sourcetype nonrec t = {
  1. clientToken : Values_0.String_.t option;
    (*

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.

    *)
  2. 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.

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

    Describes the details of the purchase.

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

    The total hourly price of the reservation calculated per hour.

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

    The total amount charged to your account when you purchase the reservation.

    *)
}
Sourcetype nonrec error = [
  1. | `Unknown_operation_error of string * string option
]
Sourceval make : ?clientToken:??? -> ?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