aws.config.get_aggregate_discovered_resource_counts
Example SQL Queries
SELECT * FROMaws.config.get_aggregate_discovered_resource_countsWHERE"configuration_aggregator_name" = 'VALUE';Description
Returns the resource counts across accounts and regions that are present in your Config aggregator. You can request the resource counts by providing filters and GroupByKey.
For example, if the input contains accountID 12345678910 and region us-east-1 in filters, the API returns the count of resources in account ID 12345678910 and region us-east-1. If the input contains ACCOUNT_ID as a GroupByKey, the API returns resource counts for all source accounts that are present in your aggregator.
Table Definition
| Column Name | Column Data Type |
|---|---|
| configuration_aggregator_name Required Input Column The name of the configuration aggregator. | VARCHAR |
| filters Input Column Filters the results based on the ResourceCountFilters object. | STRUCT( |
Show child fields
| |
| group_by_key Input Column The key passed into the request object. If GroupByKey is not provided, the result will be empty. | VARCHAR |
| limit Input Column The maximum number of GroupedResourceCount objects returned on each page. The default is 1000. You cannot specify a number greater than 1000. If you specify 0, Config uses the default. | BIGINT |
| next_token Input Column The nextToken string returned on a previous page that you use to get the next page of results in a paginated response. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| grouped_resource_counts Returns a list of GroupedResourceCount objects. | STRUCT( |
Show child fields
| |
| total_discovered_resources The total number of resources that are present in an aggregator with the filters that you provide. | BIGINT |