listDetectorModels method
Lists the detector models you have created. Only the metadata associated with each detector model is returned.
May throw InternalFailureException.
May throw InvalidRequestException.
May throw ServiceUnavailableException.
May throw ThrottlingException.
Parameter maxResults :
The maximum number of results to be returned per request.
Parameter nextToken :
The token that you can use to return the next set of results.
Implementation
Future<ListDetectorModelsResponse> listDetectorModels({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
250,
);
final $query = <String, List<String>>{
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/detector-models',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListDetectorModelsResponse.fromJson(response);
}