AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to GetAggregateDiscoveredResourceCountsAsync.

Namespace: Amazon.ConfigService
Assembly: AWSSDK.ConfigService.dll
Version: 3.x.y.z

Syntax

C#
public abstract GetAggregateDiscoveredResourceCountsResponse GetAggregateDiscoveredResourceCounts(
         GetAggregateDiscoveredResourceCountsRequest request
)

Parameters

request
Type: Amazon.ConfigService.Model.GetAggregateDiscoveredResourceCountsRequest

Container for the necessary parameters to execute the GetAggregateDiscoveredResourceCounts service method.

Return Value


The response from the GetAggregateDiscoveredResourceCounts service method, as returned by ConfigService.

Exceptions

ExceptionCondition
InvalidLimitException The specified limit is outside the allowable range.
InvalidNextTokenException The specified next token is not valid. Specify the nextToken string that was returned in the previous response to get the next page of results.
NoSuchConfigurationAggregatorException You have specified a configuration aggregator that does not exist.
ValidationException The requested action is not valid. For PutStoredQuery, you will see this exception if there are missing required fields or if the input value fails the validation, or if you are trying to create more than 300 queries. For GetStoredQuery, ListStoredQuery, and DeleteStoredQuery you will see this exception if there are missing required fields or if the input value fails the validation.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

See Also