Skip to main content

quota_utilization_reports

Creates, updates, deletes, gets or lists a quota_utilization_reports resource.

Overview

Namequota_utilization_reports
TypeResource
Idaws.service_quotas.quota_utilization_reports

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
error_codestringAn error code indicating the reason for failure when the report status is FAILED. This field is only present when the status is FAILED. (pattern: <code>[a-zA-Z][a-zA-Z0-9]*</code>)
error_messagestringA detailed error message describing the failure when the report status is FAILED. This field is only present when the status is FAILED. (pattern: <code>^.*$</code>)
generated_atstring (date-time)The timestamp when the report was generated, in ISO 8601 format.
next_tokenstringA token that indicates more results are available. Include this token in the next request to retrieve the next page of results. If this field is not present, you have retrieved all available results. (pattern: <code>^[a-zA-Z0-9/+]*={0,2}$</code>)
quotasarrayA list of quota utilization records, sorted by utilization percentage in descending order. Each record includes the quota code, service code, service name, quota name, namespace, utilization percentage, default value, applied value, and whether the quota is adjustable. Up to 1,000 records are returned per page.
report_idstringThe unique identifier for the quota utilization report. (pattern: <code>[0-9a-zA-Z][a-zA-Z0-9-]{1,128}</code>)
statusstringThe current status of the report generation. Possible values are: PENDING - The report generation is in progress. Retry this operation after a few seconds. IN_PROGRESS - The report is being processed. Continue polling until the status changes to COMPLETED. COMPLETED - The report is ready and quota utilization data is available in the response. FAILED - The report generation failed. Check the ErrorCode and ErrorMessage fields for details. (PENDING, IN_PROGRESS, COMPLETED, FAILED)
total_countintegerThe total number of quotas included in the report across all pages.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_quota_utilization_reportselectregionRetrieves the quota utilization report for your Amazon Web Services account. This operation returns paginated results showing your quota usage across all Amazon Web Services services, sorted by utilization percentage in descending order (highest utilization first). You must first initiate a report using the StartQuotaUtilizationReport operation. The report generation process is asynchronous and may take several seconds to complete. Poll this operation periodically to check the status and retrieve results when the report is ready. Each report contains up to 1,000 quota records per page. Use the NextToken parameter to retrieve additional pages of results. Reports are automatically deleted after 15 minutes.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the quota utilization report for your Amazon Web Services account. This operation returns paginated results showing your quota usage across all Amazon Web Services services, sorted by utilization percentage in descending order (highest utilization first). You must first initiate a report using the StartQuotaUtilizationReport operation. The report generation process is asynchronous and may take several seconds to complete. Poll this operation periodically to check the status and retrieve results when the report is ready. Each report contains up to 1,000 quota records per page. Use the NextToken parameter to retrieve additional pages of results. Reports are automatically deleted after 15 minutes.

SELECT
error_code,
error_message,
generated_at,
next_token,
quotas,
report_id,
status,
total_count
FROM aws.service_quotas.quota_utilization_reports
WHERE region = '{{ region }}' -- required
;