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

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
Eq PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Show PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Generic PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Associated Types

type Rep PutLexicon :: Type -> Type #

NFData PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Methods

rnf :: PutLexicon -> () #

Hashable PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

ToJSON PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

AWSRequest PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Associated Types

type AWSResponse 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

type Rep PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

type Rep PutLexicon = D1 ('MetaData "PutLexicon" "Amazonka.Polly.PutLexicon" "libZSservicesZSamazonka-pollyZSamazonka-polly" '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))))
type AWSResponse PutLexicon Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

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:

$sel:name: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.

$sel:content: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
Eq PutLexiconResponse Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Read PutLexiconResponse Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Show PutLexiconResponse Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Generic PutLexiconResponse Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Associated Types

type Rep PutLexiconResponse :: Type -> Type #

NFData PutLexiconResponse Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

Methods

rnf :: PutLexiconResponse -> () #

type Rep PutLexiconResponse Source # 
Instance details

Defined in Amazonka.Polly.PutLexicon

type Rep PutLexiconResponse = D1 ('MetaData "PutLexiconResponse" "Amazonka.Polly.PutLexicon" "libZSservicesZSamazonka-pollyZSamazonka-polly" '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