ListLexicons
Source:
src/AWS/Polly/ListLexicons.ts
Runtime binding for polly:ListLexicons — list the pronunciation
lexicons stored in the region (name plus attributes; use the names as
LexiconNames in synthesis requests).
The binding takes no arguments and grants the function
polly:ListLexicons. Provide the implementation with
Effect.provide(AWS.Polly.ListLexiconsHttp).
Managing Lexicons
Section titled “Managing Lexicons”// initconst listLexicons = yield* AWS.Polly.ListLexicons();
// runtimeconst result = yield* listLexicons();const names = (result.Lexicons ?? []).map((lexicon) => lexicon.Name);