GetDiscoveredResourceCounts
action and specify that you want all resource types. limit
parameter. The response includes a nextToken
string. To get the next page of results, run the request again and specify the string for the nextToken
parameter.curl --location --request POST '/' \
--header 'X-Amz-Target;' \
--header 'Content-Type: application/json' \
--data-raw '{
"resourceTypes": [],
"limit": 0,
"nextToken": "string"
}'
{
"totalDiscoveredResources": 0,
"resourceCounts": [],
"nextToken": "string"
}
"AWS::EC2::Instance"
, "AWS::IAM::User"
).resourceTypes
is not specified, Config returns all resource types that Config is recording in the region for your account.nextToken
string returned on a previous page that you use to get the next page of results in a paginated response.GetDiscoveredResourceCounts
action and specify the resource type, "AWS::EC2::Instances"
, in the request.totalDiscoveredResources
.ResourceCount
objects. Each object is listed in descending order by the number of resources."AWS::EC2::Instance"
).