Module Values_2.PurchaseSource

Describes the result of the purchase.

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

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

    *)
  2. duration : Values_0.Integer.t option;
    (*

    The duration of the reservation's term in seconds.

    *)
  3. hostIdSet : Values_1.ResponseHostIdSet.t option;
    (*

    The IDs of the Dedicated Hosts associated with the reservation.

    *)
  4. hostReservationId : Values_1.HostReservationId.t option;
    (*

    The ID of the reservation.

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

    The hourly price of the reservation per hour.

    *)
  6. instanceFamily : Values_0.String_.t option;
    (*

    The instance family on the Dedicated Host that the reservation can be associated with.

    *)
  7. paymentOption : Values_1.PaymentOption.t option;
    (*

    The payment option for the reservation.

    *)
  8. upfrontPrice : Values_0.String_.t option;
    (*

    The upfront price of the reservation.

    *)
}
Sourceval make : ?currencyCode:Values_0.CurrencyCodeValues.t -> ?duration:Values_0.Integer.t -> ?hostIdSet:Values_1.ResponseHostIdSet.t -> ?hostReservationId:Values_1.HostReservationId.t -> ?hourlyPrice:Values_0.String_.t -> ?instanceFamily:Values_0.String_.t -> ?paymentOption:Values_1.PaymentOption.t -> ?upfrontPrice:Values_0.String_.t -> unit -> t
Sourceval to_value : t -> [> `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 ]
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