Skip to main content

aggregate_discovered_resource_counts

Creates, updates, deletes, gets or lists an aggregate_discovered_resource_counts resource.

Overview

Nameaggregate_discovered_resource_counts
TypeResource
Idaws.config.aggregate_discovered_resource_counts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
group_by_keystringThe key passed into the request object. If GroupByKey is not provided, the result will be empty.
grouped_resource_countsarrayReturns a list of GroupedResourceCount objects.
next_tokenstringThe nextToken string returned on a previous page that you use to get the next page of results in a paginated response.
total_discovered_resourcesinteger (int64)The total number of resources that are present in an aggregator with the filters that you provide.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_aggregate_discovered_resource_countsselectregionReturns 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.

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

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.

SELECT
group_by_key,
grouped_resource_counts,
next_token,
total_discovered_resources
FROM aws.config.aggregate_discovered_resource_counts
WHERE region = '{{ region }}' -- required
;