listLexicons method

Future<ListLexiconsOutput> listLexicons({
  1. String? nextToken,
})

Returns a list of pronunciation lexicons stored in an AWS Region. For more information, see Managing Lexicons.

May throw InvalidNextTokenException. May throw ServiceFailureException.

Parameter nextToken : An opaque pagination token returned from previous ListLexicons operation. If present, indicates where to continue the list of lexicons.

Implementation

Future<ListLexiconsOutput> listLexicons({
  String? nextToken,
}) async {
  _s.validateStringLength(
    'nextToken',
    nextToken,
    0,
    4096,
  );
  final $query = <String, List<String>>{
    if (nextToken != null) 'NextToken': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/lexicons',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListLexiconsOutput.fromJson(response);
}