Skip to main content

search

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

Overview

Namesearch
TypeResource
Idaws.sagemaker.search

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_tokenstringIf the result of the previous Search request was truncated, the response includes a NextToken. To retrieve the next set of results, use the token in the next request. (pattern: <code>.*</code>)
resultsarrayA list of SearchRecord objects.
total_hitsobjectThe total number of matching results.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
searchselectregionFinds SageMaker resources that match a search query. Matching resources are returned as a list of SearchRecord objects in the response. You can sort the search results by any resource property in a ascending or descending order. You can query against the following value types: numeric, text, Boolean, and timestamp. The Search API may provide access to otherwise restricted data. See Amazon SageMaker API Permissions: Actions, Permissions, and Resources Reference for more information.

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

Finds SageMaker resources that match a search query. Matching resources are returned as a list of SearchRecord objects in the response. You can sort the search results by any resource property in a ascending or descending order. You can query against the following value types: numeric, text, Boolean, and timestamp. The Search API may provide access to otherwise restricted data. See Amazon SageMaker API Permissions: Actions, Permissions, and Resources Reference for more information.

SELECT
next_token,
results,
total_hits
FROM aws.sagemaker.search
WHERE region = '{{ region }}' -- required
;