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.

Accepts a resource type and returns a list of resource identifiers for the resources of that type. A resource identifier includes the resource type, ID, and (if available) the custom resource name. The results consist of resources that AWS Config has discovered, including those that AWS Config is not currently recording. You can narrow the results to include only resources that have specific resource IDs or a resource name.

You can specify either resource IDs or a resource name, but not both, in the same request.

The response is paginated. By default, AWS Config lists 100 resource identifiers on each page. You can customize this number with the 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.


For .NET Core and PCL this operation is only available in asynchronous form. Please refer to ListDiscoveredResourcesAsync.

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


public virtual ListDiscoveredResourcesResponse ListDiscoveredResources(
         ListDiscoveredResourcesRequest request
Type: Amazon.ConfigService.Model.ListDiscoveredResourcesRequest

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

Return Value
The response from the ListDiscoveredResources service method, as returned by ConfigService.


InvalidLimitException The specified limit is outside the allowable range.
InvalidNextTokenException The specified next token is invalid. Specify the nextToken string that was returned in the previous response to get the next page of results.
NoAvailableConfigurationRecorderException There are no configuration recorders available to provide the role needed to describe your resources. Create a configuration recorder.
ValidationException The requested action is not valid.

Version Information

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also