| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Polly.GetLexicon
Description
Returns the content of the specified pronunciation lexicon stored in an Amazon Web Services Region. For more information, see Managing Lexicons.
Synopsis
- data GetLexicon = GetLexicon' {}
- newGetLexicon :: Text -> GetLexicon
- getLexicon_name :: Lens' GetLexicon Text
- data GetLexiconResponse = GetLexiconResponse' {}
- newGetLexiconResponse :: Int -> GetLexiconResponse
- getLexiconResponse_lexicon :: Lens' GetLexiconResponse (Maybe Lexicon)
- getLexiconResponse_lexiconAttributes :: Lens' GetLexiconResponse (Maybe LexiconAttributes)
- getLexiconResponse_httpStatus :: Lens' GetLexiconResponse Int
Creating a Request
data GetLexicon Source #
See: newGetLexicon smart constructor.
Constructors
| GetLexicon' | |
Instances
Arguments
| :: Text | |
| -> GetLexicon |
Create a value of GetLexicon with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetLexicon, getLexicon_name - Name of the lexicon.
Request Lenses
getLexicon_name :: Lens' GetLexicon Text Source #
Name of the lexicon.
Destructuring the Response
data GetLexiconResponse Source #
See: newGetLexiconResponse smart constructor.
Constructors
| GetLexiconResponse' | |
Fields
| |
Instances
newGetLexiconResponse Source #
Arguments
| :: Int | |
| -> GetLexiconResponse |
Create a value of GetLexiconResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:lexicon:GetLexiconResponse', getLexiconResponse_lexicon - Lexicon object that provides name and the string content of the lexicon.
$sel:lexiconAttributes:GetLexiconResponse', getLexiconResponse_lexiconAttributes - Metadata of the lexicon, including phonetic alphabetic used, language
code, lexicon ARN, number of lexemes defined in the lexicon, and size of
lexicon in bytes.
$sel:httpStatus:GetLexiconResponse', getLexiconResponse_httpStatus - The response's http status code.
Response Lenses
getLexiconResponse_lexicon :: Lens' GetLexiconResponse (Maybe Lexicon) Source #
Lexicon object that provides name and the string content of the lexicon.
getLexiconResponse_lexiconAttributes :: Lens' GetLexiconResponse (Maybe LexiconAttributes) Source #
Metadata of the lexicon, including phonetic alphabetic used, language code, lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in bytes.
getLexiconResponse_httpStatus :: Lens' GetLexiconResponse Int Source #
The response's http status code.