amazonka-polly-1.4.5: Amazon Polly SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 #

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 #

See: putLexicon smart constructor.

Instances

Eq PutLexicon # 
Data PutLexicon # 

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 #

Read PutLexicon # 
Show PutLexicon # 
Generic PutLexicon # 

Associated Types

type Rep PutLexicon :: * -> * #

Hashable PutLexicon # 
ToJSON PutLexicon # 
NFData PutLexicon # 

Methods

rnf :: PutLexicon -> () #

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

Methods

toHeaders :: PutLexicon -> [Header] #

type Rep PutLexicon # 
type Rep PutLexicon = D1 (MetaData "PutLexicon" "Network.AWS.Polly.PutLexicon" "amazonka-polly-1.4.5-3YfKeYS4XLXGLJOiC47xgO" 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 # 

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

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:

data PutLexiconResponse #

See: putLexiconResponse smart constructor.

Instances

Eq PutLexiconResponse # 
Data PutLexiconResponse # 

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 # 
Show PutLexiconResponse # 
Generic PutLexiconResponse # 
NFData PutLexiconResponse # 

Methods

rnf :: PutLexiconResponse -> () #

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

Response Lenses

plrsResponseStatus :: Lens' PutLexiconResponse Int #

  • - | The response status code.