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 |
Stores a pronunciation lexicon in an Amazon Web Services Region. If a lexicon with the same name already exists in the region, it is overwritten by the new lexicon. Lexicon operations have eventual consistency, therefore, it might take some time before the lexicon is available to the SynthesizeSpeech operation.
For more information, see Managing Lexicons.
Synopsis
- data PutLexicon = PutLexicon' {}
- newPutLexicon :: Text -> Text -> PutLexicon
- putLexicon_name :: Lens' PutLexicon Text
- putLexicon_content :: Lens' PutLexicon Text
- data PutLexiconResponse = PutLexiconResponse' {
- httpStatus :: Int
- newPutLexiconResponse :: Int -> PutLexiconResponse
- putLexiconResponse_httpStatus :: Lens' PutLexiconResponse Int
Creating a Request
data PutLexicon Source #
See: newPutLexicon
smart constructor.
Instances
Create a value of PutLexicon
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:PutLexicon'
, putLexicon_name
- Name of the lexicon. The name must follow the regular express format
[0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric
string up to 20 characters long.
$sel:content:PutLexicon'
, putLexicon_content
- Content of the PLS lexicon as string data.
Request Lenses
putLexicon_name :: Lens' PutLexicon Text Source #
Name of the lexicon. The name must follow the regular express format [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up to 20 characters long.
putLexicon_content :: Lens' PutLexicon Text Source #
Content of the PLS lexicon as string data.
Destructuring the Response
data PutLexiconResponse Source #
See: newPutLexiconResponse
smart constructor.
PutLexiconResponse' | |
|
Instances
newPutLexiconResponse Source #
Create a value of PutLexiconResponse
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:httpStatus:PutLexiconResponse'
, putLexiconResponse_httpStatus
- The response's http status code.
Response Lenses
putLexiconResponse_httpStatus :: Lens' PutLexiconResponse Int Source #
The response's http status code.