Smaws_Client_CostExplorer.GetCostAndUsageComparisonsRetrieves cost and usage comparisons for your account between two periods within the last 13 months. If you have enabled multi-year data at monthly granularity, you can go back up to 38 months.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `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
| `ResourceNotFoundException of Types.resource_not_found_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.get_cost_and_usage_comparisons_request ->
(Types.get_cost_and_usage_comparisons_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `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
| `ResourceNotFoundException of Types.resource_not_found_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.get_cost_and_usage_comparisons_request ->
(Types.get_cost_and_usage_comparisons_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `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
| `ResourceNotFoundException of Types.resource_not_found_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result