Module Values_5.GetCapacityReservationUsageResultSource

Gets usage information about a Capacity Reservation. If the Capacity Reservation is shared, it shows usage information for the Capacity Reservation owner and each Amazon Web Services account that is currently using the shared capacity. If the Capacity Reservation is not shared, it shows only the Capacity Reservation owner's usage.

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

    The token to use to retrieve the next page of results. This value is null when there are no more results to return.

    *)
  2. capacityReservationId : Values_0.String_.t option;
    (*

    The ID of the Capacity Reservation.

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

    The type of instance for which the Capacity Reservation reserves capacity.

    *)
  4. totalInstanceCount : Values_0.Integer.t option;
    (*

    The number of instances for which the Capacity Reservation reserves capacity.

    *)
  5. availableInstanceCount : Values_0.Integer.t option;
    (*

    The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.

    *)
  6. state : Values_1.CapacityReservationState.t option;
    (*

    The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states: active - The capacity is available for use. expired - The Capacity Reservation expired automatically at the date and time specified in your reservation request. The reserved capacity is no longer available for your use. cancelled - The Capacity Reservation was canceled. The reserved capacity is no longer available for your use. pending - The Capacity Reservation request was successful but the capacity provisioning is still pending. failed - The Capacity Reservation request has failed. A request can fail due to request parameters that are not valid, capacity constraints, or instance limit constraints. You can view a failed request for 60 minutes. scheduled - (Future-dated Capacity Reservations) The future-dated Capacity Reservation request was approved and the Capacity Reservation is scheduled for delivery on the requested start date. payment-pending - (Capacity Blocks) The upfront payment has not been processed yet. payment-failed - (Capacity Blocks) The upfront payment was not processed in the 12-hour time frame. Your Capacity Block was released. assessing - (Future-dated Capacity Reservations) Amazon EC2 is assessing your request for a future-dated Capacity Reservation. delayed - (Future-dated Capacity Reservations) Amazon EC2 encountered a delay in provisioning the requested future-dated Capacity Reservation. Amazon EC2 is unable to deliver the requested capacity by the requested start date and time. unsupported - (Future-dated Capacity Reservations) Amazon EC2 can't support the future-dated Capacity Reservation request due to capacity constraints. You can view unsupported requests for 30 days. The Capacity Reservation will not be delivered.

    *)
  7. instanceUsages : Values_3.InstanceUsageSet.t option;
    (*

    Information about the Capacity Reservation usage.

    *)
  8. interruptible : Values_1.BoxedBoolean.t option;
    (*

    Indicates whether the Capacity Reservation is interruptible, meaning instances may be terminated when the owner reclaims capacity.

    *)
  9. interruptibleCapacityAllocation : Values_1.InterruptibleCapacityAllocation.t option;
    (*

    Information about the capacity allocated to the interruptible Capacity Reservation, including instance counts and allocation status.

    *)
  10. interruptionInfo : Values_1.InterruptionInfo.t option;
    (*

    Details about the interruption configuration and source reservation for interruptible Capacity Reservations.

    *)
}
Sourcetype nonrec error = [
  1. | `Unknown_operation_error of string * string option
]
Sourceval make : ?nextToken:??? -> ?capacityReservationId:??? -> ?instanceType:??? -> ?totalInstanceCount:??? -> ?availableInstanceCount:??? -> ?state:??? -> ?instanceUsages:??? -> ?interruptible:??? -> ?interruptibleCapacityAllocation:??? -> ?interruptionInfo:??? -> 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 * [> `Boolean of Values_1.BoxedBoolean.t | `Enum of string | `Integer of Values_0.Integer.t | `List of [> `Structure of (string * [> `Integer of Values_0.Integer.t | `String of Values_0.String_.t ]) list ] list | `String of Values_0.String_.t | `Structure of (string * [> `Enum of string | `Integer of Values_0.Integer.t | `String of Values_0.String_.t ]) list ]) 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