Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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_lexiconAttributes :: Lens' GetLexiconResponse (Maybe LexiconAttributes)
- getLexiconResponse_lexicon :: Lens' GetLexiconResponse (Maybe Lexicon)
- getLexiconResponse_httpStatus :: Lens' GetLexiconResponse Int
Creating a Request
data GetLexicon Source #
See: newGetLexicon
smart constructor.
Instances
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:
$sel:name: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.
GetLexiconResponse' | |
|
Instances
newGetLexiconResponse Source #
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: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:lexicon:GetLexiconResponse'
, getLexiconResponse_lexicon
- Lexicon object that provides name and the string content of the lexicon.
$sel:httpStatus:GetLexiconResponse'
, getLexiconResponse_httpStatus
- The response's http status code.
Response Lenses
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_lexicon :: Lens' GetLexiconResponse (Maybe Lexicon) Source #
Lexicon object that provides name and the string content of the lexicon.
getLexiconResponse_httpStatus :: Lens' GetLexiconResponse Int Source #
The response's http status code.