Skip to content

GetDiscoveredResourceCountsResponse

Source code in docs_src/capo_config_service/types/get_discovered_resource_counts_response.py
class GetDiscoveredResourceCountsResponse(TypedDict, closed=True):
    total_discovered_resources: "capo_config_service.types.long.Long"
    """<p>The total number of resources that Config is recording in the region for your account. If you specify resource types in the request, Config returns only the total number of resources for those resource types.</p> <p class="title"> <b>Example</b> </p> <ol> <li> <p>Config is recording three resource types in the US East (Ohio) Region for your account: 25 EC2 instances, 20 IAM users, and 15 S3 buckets, for a total of 60 resources.</p> </li> <li> <p>You make a call to the <code>GetDiscoveredResourceCounts</code> action and specify the resource type, <code>"AWS::EC2::Instances"</code>, in the request.</p> </li> <li> <p>Config returns 25 for <code>totalDiscoveredResources</code>.</p> </li> </ol>"""
    resource_counts: NotRequired[
        "capo_config_service.types.resource_counts.ResourceCounts"
    ]
    """<p>The list of <code>ResourceCount</code> objects. Each object is listed in descending order by the number of resources.</p>"""
    next_token: NotRequired["capo_config_service.types.next_token.NextToken"]
    """<p>The string that you use in a subsequent request to get the next page of results in a paginated response.</p>"""

next_token instance-attribute

next_token: NotRequired[NextToken]

The string that you use in a subsequent request to get the next page of results in a paginated response.

resource_counts instance-attribute

resource_counts: NotRequired[ResourceCounts]

The list of ResourceCount objects. Each object is listed in descending order by the number of resources.

total_discovered_resources instance-attribute

total_discovered_resources: Long

The total number of resources that Config is recording in the region for your account. If you specify resource types in the request, Config returns only the total number of resources for those resource types.

Example

  1. Config is recording three resource types in the US East (Ohio) Region for your account: 25 EC2 instances, 20 IAM users, and 15 S3 buckets, for a total of 60 resources.

  2. You make a call to the GetDiscoveredResourceCounts action and specify the resource type, "AWS::EC2::Instances", in the request.

  3. Config returns 25 for totalDiscoveredResources.