listIndices method
Lists the search indices.
May throw InvalidRequestException. May throw ThrottlingException. May throw UnauthorizedException. May throw ServiceUnavailableException. May throw InternalFailureException.
Parameter maxResults
:
The maximum number of results to return at one time.
Parameter nextToken
:
The token used to get the next set of results, or null
if
there are no additional results.
Implementation
Future<ListIndicesResponse> listIndices({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
500,
);
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: '/indices',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListIndicesResponse.fromJson(response);
}