CmdID / aws / aws resource-groups
aws resource-groups search-resources
Returns a list of Amazon Web Services resource identifiers that matches the specified query. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--max-resultsThe total number of results that you want included on each page of the response.--next-tokenThe parameter for receiving additional results if you receive a NextToken response in a previous request.--resource-queryThe search query, using the same formats that are supported for resource group definition.