get_approximate_usage_records
async
¶
get_approximate_usage_records(
granularity: Granularity,
approximation_dimension: ApproximationDimension,
*,
config_overrides: Optional[AsyncCostExplorerClientConfig] = None,
services: Optional[UsageServices] = None,
) -> GetApproximateUsageRecordsResponse
Retrieves estimated usage records for hourly granularity or resource-level data at daily granularity.
Parameters:
-
granularity(Granularity) –How granular you want the data to be. You can enable data at hourly or daily granularity.
-
services(Optional[UsageServices], default:None) –The service metadata for the service or services you want to query. If not specified, all elements are returned.
-
approximation_dimension(ApproximationDimension) –The service to evaluate for the usage records. You can choose resource-level data at daily granularity, or hourly granularity with or without resource-level data.
Raises:
-
DataUnavailableException–The requested data is unavailable.
-
LimitExceededException–You made too many calls in a short period of time. Try again later.
-
UnknownServiceError–The service returned an error code this client does not model.