Skip to main content

search

Creates, updates, deletes, gets or lists a search resource.

Overview

Namesearch
TypeResource
Idaws.resource_explorer_2.search

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
countobjectThe number of resources that match the query.
next_tokenstringIf present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. The pagination tokens expire after 24 hours.
resourcesarrayThe list of structures that describe the resources that match the query.
view_arnstringThe Amazon resource name (ARN) of the view that this operation used to perform the search.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
searchselectregionSearches for resources and displays details about all resources that match the specified criteria. You must specify a query string. All search queries must use a view. If you don't explicitly specify a view, then Amazon Web Services Resource Explorer uses the default view for the Amazon Web Services Region in which you call this operation. The results are the logical intersection of the results that match both the QueryString parameter supplied to this operation and the SearchFilter parameter attached to the view. For the complete syntax supported by the QueryString parameter, see Search query syntax reference for Resource Explorer. If your search results are empty, or are missing results that you think should be there, see Troubleshooting Resource Explorer search.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Searches for resources and displays details about all resources that match the specified criteria. You must specify a query string. All search queries must use a view. If you don't explicitly specify a view, then Amazon Web Services Resource Explorer uses the default view for the Amazon Web Services Region in which you call this operation. The results are the logical intersection of the results that match both the QueryString parameter supplied to this operation and the SearchFilter parameter attached to the view. For the complete syntax supported by the QueryString parameter, see Search query syntax reference for Resource Explorer. If your search results are empty, or are missing results that you think should be there, see Troubleshooting Resource Explorer search.

SELECT
count,
next_token,
resources,
view_arn
FROM aws.resource_explorer_2.search
WHERE region = '{{ region }}' -- required
;