amazonka-polly-2.0: Amazon Polly SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Polly.PutLexicon

Description

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

Creating a Request

data PutLexicon Source #

See: newPutLexicon smart constructor.

Constructors

PutLexicon' 

Fields

  • name :: 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.

  • content :: Sensitive Text

    Content of the PLS lexicon as string data.

Instances

Instances details
ToJSON PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

ToHeaders PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Methods

toHeaders :: PutLexicon -> [Header] #

ToPath PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

ToQuery PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

AWSRequest PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Associated Types

type AWSResponse PutLexicon #

Generic PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Associated Types

type Rep PutLexicon :: Type -> Type #

Show PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

NFData PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Methods

rnf :: PutLexicon -> () #

Eq PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Hashable PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

type AWSResponse PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

type Rep PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

type Rep PutLexicon = D1 ('MetaData "PutLexicon" "Amazonka.Polly.PutLexicon" "amazonka-polly-2.0-6sZiChgAXCB1QK3Mfr0Pfp" 'False) (C1 ('MetaCons "PutLexicon'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))

newPutLexicon Source #

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:

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.

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.

Constructors

PutLexiconResponse' 

Fields

Instances

Instances details
Generic PutLexiconResponse Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Associated Types

type Rep PutLexiconResponse :: Type -> Type #

Read PutLexiconResponse Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Show PutLexiconResponse Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

NFData PutLexiconResponse Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Methods

rnf :: PutLexiconResponse -> () #

Eq PutLexiconResponse Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

type Rep PutLexiconResponse Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

type Rep PutLexiconResponse = D1 ('MetaData "PutLexiconResponse" "Amazonka.Polly.PutLexicon" "amazonka-polly-2.0-6sZiChgAXCB1QK3Mfr0Pfp" 'False) (C1 ('MetaCons "PutLexiconResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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