Module Values.GetCostAndUsageResponseSource

Retrieves cost and usage metrics for your account. You can specify which cost and usage-related metric that you want the request to return. For example, you can specify BlendedCosts or UsageQuantity. You can also filter and group your data by various dimensions, such as SERVICE or AZ, in a specific time range. For a complete list of valid dimensions, see the GetDimensionValues operation. Management account in an organization in Organizations have access to all member accounts. For information about filter limitations, see Quotas and restrictions in the Billing and Cost Management User Guide.

Sourcetype nonrec t = {
  1. nextPageToken : NextPageToken.t option;
    (*

    The token for the next set of retrievable results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

    *)
  2. groupDefinitions : GroupDefinitions.t option;
    (*

    The groups that are specified by the Filter or GroupBy parameters in the request.

    *)
  3. resultsByTime : ResultsByTime.t option;
    (*

    The time period that's covered by the results in the response.

    *)
  4. dimensionValueAttributes : DimensionValuesWithAttributesList.t option;
    (*

    The attributes that apply to a specific dimension value. For example, if the value is a linked account, the attribute is that account name.

    *)
}
Sourcetype nonrec error = [
  1. | `BillExpirationException of BillExpirationException.t
  2. | `BillingViewHealthStatusException of BillingViewHealthStatusException.t
  3. | `DataUnavailableException of DataUnavailableException.t
  4. | `InvalidNextTokenException of InvalidNextTokenException.t
  5. | `LimitExceededException of LimitExceededException.t
  6. | `RequestChangedException of RequestChangedException.t
  7. | `ResourceNotFoundException of ResourceNotFoundException.t
  8. | `Unknown_operation_error of string * string option
]
Sourceval make : ?nextPageToken:??? -> ?groupDefinitions:??? -> ?resultsByTime:??? -> ?dimensionValueAttributes:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `BillExpirationException of BillExpirationException.t | `BillingViewHealthStatusException of BillingViewHealthStatusException.t | `DataUnavailableException of DataUnavailableException.t | `InvalidNextTokenException of InvalidNextTokenException.t | `LimitExceededException of LimitExceededException.t | `RequestChangedException of RequestChangedException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `BillExpirationException of BillExpirationException.t | `BillingViewHealthStatusException of BillingViewHealthStatusException.t | `DataUnavailableException of DataUnavailableException.t | `InvalidNextTokenException of InvalidNextTokenException.t | `LimitExceededException of LimitExceededException.t | `RequestChangedException of RequestChangedException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Boolean of Estimated.t | `Enum of string | `List of [> `Structure of (string * [> `List of [> `String of Key.t ] list | `Map of ([> `String of MetricName.t ] * [> `Structure of (string * [> `String of MetricAmount.t ]) list ]) list ]) list ] list | `Map of ([> `String of MetricName.t ] * [> `String of AttributeValue.t | `Structure of (string * [> `String of MetricAmount.t ]) list ]) list | `String of GroupDefinitionKey.t | `Structure of (string * [> `String of YearMonthDay.t ]) list ]) list ] list | `String of NextPageToken.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