amazonka-polly-1.5.0: Amazon Polly SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Polly.PutLexicon

Contents

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 .

Synopsis

Creating a Request

putLexicon Source #

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:

  • plName - 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 - Content of the PLS lexicon as string data.

data PutLexicon Source #

See: putLexicon smart constructor.

Instances

Eq PutLexicon Source # 
Data PutLexicon Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutLexicon -> c PutLexicon #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutLexicon #

toConstr :: PutLexicon -> Constr #

dataTypeOf :: PutLexicon -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PutLexicon) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutLexicon) #

gmapT :: (forall b. Data b => b -> b) -> PutLexicon -> PutLexicon #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutLexicon -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutLexicon -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutLexicon -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutLexicon -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutLexicon -> m PutLexicon #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutLexicon -> m PutLexicon #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutLexicon -> m PutLexicon #

Show PutLexicon Source # 
Generic PutLexicon Source # 

Associated Types

type Rep PutLexicon :: * -> * #

Hashable PutLexicon Source # 
ToJSON PutLexicon Source # 
NFData PutLexicon Source # 

Methods

rnf :: PutLexicon -> () #

AWSRequest PutLexicon Source # 
ToQuery PutLexicon Source # 
ToPath PutLexicon Source # 
ToHeaders PutLexicon Source # 

Methods

toHeaders :: PutLexicon -> [Header] #

type Rep PutLexicon Source # 
type Rep PutLexicon = D1 (MetaData "PutLexicon" "Network.AWS.Polly.PutLexicon" "amazonka-polly-1.5.0-6GQgazTF7VkDmpcwDjBhon" False) (C1 (MetaCons "PutLexicon'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_plName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Sensitive Text))) (S1 (MetaSel (Just Symbol "_plContent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs PutLexicon Source # 

Request Lenses

plName :: 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.

plContent :: Lens' PutLexicon Text Source #

Content of the PLS lexicon as string data.

Destructuring the Response

putLexiconResponse Source #

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:

data PutLexiconResponse Source #

See: putLexiconResponse smart constructor.

Instances

Eq PutLexiconResponse Source # 
Data PutLexiconResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutLexiconResponse -> c PutLexiconResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutLexiconResponse #

toConstr :: PutLexiconResponse -> Constr #

dataTypeOf :: PutLexiconResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PutLexiconResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutLexiconResponse) #

gmapT :: (forall b. Data b => b -> b) -> PutLexiconResponse -> PutLexiconResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutLexiconResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutLexiconResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutLexiconResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutLexiconResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutLexiconResponse -> m PutLexiconResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutLexiconResponse -> m PutLexiconResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutLexiconResponse -> m PutLexiconResponse #

Read PutLexiconResponse Source # 
Show PutLexiconResponse Source # 
Generic PutLexiconResponse Source # 
NFData PutLexiconResponse Source # 

Methods

rnf :: PutLexiconResponse -> () #

type Rep PutLexiconResponse Source # 
type Rep PutLexiconResponse = D1 (MetaData "PutLexiconResponse" "Network.AWS.Polly.PutLexicon" "amazonka-polly-1.5.0-6GQgazTF7VkDmpcwDjBhon" True) (C1 (MetaCons "PutLexiconResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_plrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

plrsResponseStatus :: Lens' PutLexiconResponse Int Source #

  • - | The response status code.