getLexicon method
Returns the content of the specified pronunciation lexicon stored in an AWS Region. For more information, see Managing Lexicons.
May throw LexiconNotFoundException. May throw ServiceFailureException.
Parameter name
:
Name of the lexicon.
Implementation
Future<GetLexiconOutput> getLexicon({
required String name,
}) async {
ArgumentError.checkNotNull(name, 'name');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/v1/lexicons/${Uri.encodeComponent(name)}',
exceptionFnMap: _exceptionFns,
);
return GetLexiconOutput.fromJson(response);
}