amazonka-polly-1.6.1: Amazon Polly SDK.

Copyright(c) 2013-2018 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 #

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 # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

Data PutLexicon # 
Instance details

Defined in Network.AWS.Polly.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 #

Show PutLexicon # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

Generic PutLexicon # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

Associated Types

type Rep PutLexicon :: Type -> Type #

Hashable PutLexicon # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

ToJSON PutLexicon # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

AWSRequest PutLexicon # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

Associated Types

type Rs PutLexicon :: Type #

ToHeaders PutLexicon # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

Methods

toHeaders :: PutLexicon -> [Header] #

ToPath PutLexicon # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

ToQuery PutLexicon # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

NFData PutLexicon # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

Methods

rnf :: PutLexicon -> () #

type Rep PutLexicon # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

type Rep PutLexicon = D1 (MetaData "PutLexicon" "Network.AWS.Polly.PutLexicon" "amazonka-polly-1.6.1-2IwsfrEVc5c8vKHoB26sNU" False) (C1 (MetaCons "PutLexicon'" PrefixI True) (S1 (MetaSel (Just "_plName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 (MetaSel (Just "_plContent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs PutLexicon # 
Instance details

Defined in Network.AWS.Polly.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 # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

Data PutLexiconResponse # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

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 # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

Show PutLexiconResponse # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

Generic PutLexiconResponse # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

Associated Types

type Rep PutLexiconResponse :: Type -> Type #

NFData PutLexiconResponse # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

Methods

rnf :: PutLexiconResponse -> () #

type Rep PutLexiconResponse # 
Instance details

Defined in Network.AWS.Polly.PutLexicon

type Rep PutLexiconResponse = D1 (MetaData "PutLexiconResponse" "Network.AWS.Polly.PutLexicon" "amazonka-polly-1.6.1-2IwsfrEVc5c8vKHoB26sNU" True) (C1 (MetaCons "PutLexiconResponse'" PrefixI True) (S1 (MetaSel (Just "_plrsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses

plrsResponseStatus :: Lens' PutLexiconResponse Int #

  • - | The response status code.