aws.config.list_discovered_resources
Example SQL Queries
SELECT * FROMaws.config.list_discovered_resourcesWHERE"resource_type" = 'VALUE';Description
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 Config has discovered, including those that 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, 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.
Table Definition
| Column Name | Column Data Type |
|---|---|
| resource_type Required Input Column The type of resource. | VARCHAR |
| include_deleted_resources Input Column Specifies whether Config includes deleted resources in the results. By default, deleted resources are not included. | BOOLEAN |
| resource_ids Input Column The IDs of only those resources that you want Config to list in the response. If you do not specify this parameter, Config lists all resources of the specified type that it has discovered. You can list a minimum of 1 resourceID and a maximum of 20 resourceIds. | VARCHAR[] |
Show child fields
| |
| resource_name Input Column The custom name of the resource (if available). | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| resource_deletion_time The time that the resource was deleted. | TIMESTAMP_S |
| resource_id The ID of the resource (for example, sg-xxxxxx). | VARCHAR |