Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Network.AWS.Polly.PutLexicon
Description
Stores a pronunciation lexicon in an AWS 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 .
- putLexicon :: Text -> Text -> PutLexicon
- data PutLexicon
- plName :: Lens' PutLexicon Text
- plContent :: Lens' PutLexicon Text
- putLexiconResponse :: Int -> PutLexiconResponse
- data PutLexiconResponse
- plrsResponseStatus :: Lens' PutLexiconResponse Int
Creating a Request
Arguments
:: Text | |
-> Text | |
-> PutLexicon |
Creates a value of PutLexicon
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Request Lenses
plName :: Lens' PutLexicon Text #
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.
plContent :: Lens' PutLexicon Text #
Content of the PLS lexicon as string data.
Destructuring the Response
Arguments
:: Int | |
-> PutLexiconResponse |
Creates a value of PutLexiconResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
plrsResponseStatus
- -- | The response status code.
data PutLexiconResponse #
See: putLexiconResponse
smart constructor.
Response Lenses
plrsResponseStatus :: Lens' PutLexiconResponse Int #
- - | The response status code.