Module Smaws_Client_CostExplorer.GetCostAndUsage

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.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `BillExpirationException of Types.bill_expiration_exception | `BillingViewHealthStatusException of Types.billing_view_health_status_exception | `DataUnavailableException of Types.data_unavailable_exception | `InvalidNextTokenException of Types.invalid_next_token_exception | `LimitExceededException of Types.limit_exceeded_exception | `RequestChangedException of Types.request_changed_exception | `ResourceNotFoundException of Types.resource_not_found_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.get_cost_and_usage_request -> (Types.get_cost_and_usage_response, [> Smaws_Lib.Protocols.AwsJson.error | `BillExpirationException of Types.bill_expiration_exception | `BillingViewHealthStatusException of Types.billing_view_health_status_exception | `DataUnavailableException of Types.data_unavailable_exception | `InvalidNextTokenException of Types.invalid_next_token_exception | `LimitExceededException of Types.limit_exceeded_exception | `RequestChangedException of Types.request_changed_exception | `ResourceNotFoundException of Types.resource_not_found_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.get_cost_and_usage_request -> (Types.get_cost_and_usage_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `BillExpirationException of Types.bill_expiration_exception | `BillingViewHealthStatusException of Types.billing_view_health_status_exception | `DataUnavailableException of Types.data_unavailable_exception | `InvalidNextTokenException of Types.invalid_next_token_exception | `LimitExceededException of Types.limit_exceeded_exception | `RequestChangedException of Types.request_changed_exception | `ResourceNotFoundException of Types.resource_not_found_exception ] * Smaws_Lib.Response.metadata) Stdlib.result