getSearchSuggestions method
Future<GetSearchSuggestionsResponse>
getSearchSuggestions({
- required ResourceType resource,
- SuggestionQuery? suggestionQuery,
An auto-complete API for the search functionality in the Amazon SageMaker
console. It returns suggestions of possible matches for the property name
to use in Search
queries. Provides suggestions for
HyperParameters
, Tags
, and Metrics
.
Parameter resource
:
The name of the Amazon SageMaker resource to search for.
Parameter suggestionQuery
:
Limits the property names that are included in the response.
Implementation
Future<GetSearchSuggestionsResponse> getSearchSuggestions({
required ResourceType resource,
SuggestionQuery? suggestionQuery,
}) async {
ArgumentError.checkNotNull(resource, 'resource');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.GetSearchSuggestions'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Resource': resource.toValue(),
if (suggestionQuery != null) 'SuggestionQuery': suggestionQuery,
},
);
return GetSearchSuggestionsResponse.fromJson(jsonResponse.body);
}