Optional
requestFactory: UsageMeteringApiRequestFactoryOptional
responseProcessor: UsageMeteringApiResponseProcessorPrivate
configurationPrivate
requestPrivate
responseOptional
options: ConfigurationGet a mapping of billing dimensions to the corresponding keys for the supported usage metering public API endpoints. Mapping data is updated on a monthly cadence.
This endpoint is only accessible to parent-level organizations.
The request object
Optional
options: ConfigurationGet cost across multi-org account.
Cost by org data for a given month becomes available no later than the 16th of the following month.
Note: This endpoint has been deprecated. Please use the new endpoint
/historical_cost
instead.
This endpoint is only accessible for parent-level organizations.
The request object
Optional
options: ConfigurationGet estimated cost across multi-org and single root-org accounts.
Estimated cost data is only available for the current month and previous month
and is delayed by up to 72 hours from when it was incurred.
To access historical costs prior to this, use the /historical_cost
endpoint.
This endpoint is only accessible for parent-level organizations.
The request object
Optional
options: ConfigurationGet historical cost across multi-org and single root-org accounts. Cost data for a given month becomes available no later than the 16th of the following month.
This endpoint is only accessible for parent-level organizations.
The request object
Optional
options: ConfigurationGet hourly usage by product family.
The request object
Optional
options: ConfigurationGet monthly cost attribution by tag across multi-org and single root-org accounts.
Cost Attribution data for a given month becomes available no later than the 19th of the following month.
This API endpoint is paginated. To make sure you receive all records, check if the value of next_record_id
is
set in the response. If it is, make another request and pass next_record_id
as a parameter.
Pseudo code example:
response := GetMonthlyCostAttribution(start_month, end_month)
cursor := response.metadata.pagination.next_record_id
WHILE cursor != null BEGIN
sleep(5 seconds) # Avoid running into rate limit
response := GetMonthlyCostAttribution(start_month, end_month, next_record_id=cursor)
cursor := response.metadata.pagination.next_record_id
END
This endpoint is only accessible for parent-level organizations. This endpoint is not available in the Government (US1-FED) site.
The request object
Optional
options: ConfigurationGet projected cost across multi-org and single root-org accounts. Projected cost data is only available for the current month and becomes available around the 12th of the month.
This endpoint is only accessible for parent-level organizations.
The request object
Optional
options: ConfigurationGet hourly usage for application security . Note: This endpoint has been deprecated. Hourly usage data for all products is now available in the Get hourly usage by product family API
The request object
Optional
options: ConfigurationGet hourly usage for Lambda traced invocations. Note: This endpoint has been deprecated.. Hourly usage data for all products is now available in the Get hourly usage by product family API
The request object
Optional
options: ConfigurationGet hourly usage for observability pipelines. Note: This endpoint has been deprecated. Hourly usage data for all products is now available in the Get hourly usage by product family API
The request object
Optional
options: ConfigurationGenerated using TypeDoc
Get active billing dimensions for cost attribution. Cost data for a given month becomes available no later than the 19th of the following month.