libZSservicesZSamazonka-transcribeZSamazonka-transcribe
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.Transcribe.UpdateVocabulary

Description

Updates an existing vocabulary with new values. The UpdateVocabulary operation overwrites all of the existing information with the values that you provide in the request.

Synopsis

Creating a Request

data UpdateVocabulary Source #

See: newUpdateVocabulary smart constructor.

Constructors

UpdateVocabulary' 

Fields

  • vocabularyFileUri :: Maybe Text

    The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is

    For example:

    For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide.

    For more information about custom vocabularies, see Custom Vocabularies.

  • phrases :: Maybe [Text]

    An array of strings containing the vocabulary entries.

  • vocabularyName :: Text

    The name of the vocabulary to update. The name is case sensitive. If you try to update a vocabulary with the same name as a previous vocabulary you will receive a ConflictException error.

  • languageCode :: LanguageCode

    The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see transcribe-whatis.

Instances

Instances details
Eq UpdateVocabulary Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

Read UpdateVocabulary Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

Show UpdateVocabulary Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

Generic UpdateVocabulary Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

Associated Types

type Rep UpdateVocabulary :: Type -> Type #

NFData UpdateVocabulary Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

Methods

rnf :: UpdateVocabulary -> () #

Hashable UpdateVocabulary Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

ToJSON UpdateVocabulary Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

AWSRequest UpdateVocabulary Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

Associated Types

type AWSResponse UpdateVocabulary #

ToHeaders UpdateVocabulary Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

ToPath UpdateVocabulary Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

ToQuery UpdateVocabulary Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

type Rep UpdateVocabulary Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

type Rep UpdateVocabulary = D1 ('MetaData "UpdateVocabulary" "Amazonka.Transcribe.UpdateVocabulary" "libZSservicesZSamazonka-transcribeZSamazonka-transcribe" 'False) (C1 ('MetaCons "UpdateVocabulary'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "vocabularyFileUri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "phrases") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "vocabularyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "languageCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LanguageCode))))
type AWSResponse UpdateVocabulary Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

newUpdateVocabulary Source #

Create a value of UpdateVocabulary 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:vocabularyFileUri:UpdateVocabulary', updateVocabulary_vocabularyFileUri - The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is

For example:

For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide.

For more information about custom vocabularies, see Custom Vocabularies.

$sel:phrases:UpdateVocabulary', updateVocabulary_phrases - An array of strings containing the vocabulary entries.

$sel:vocabularyName:UpdateVocabulary', updateVocabulary_vocabularyName - The name of the vocabulary to update. The name is case sensitive. If you try to update a vocabulary with the same name as a previous vocabulary you will receive a ConflictException error.

$sel:languageCode:UpdateVocabulary', updateVocabulary_languageCode - The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see transcribe-whatis.

Request Lenses

updateVocabulary_vocabularyFileUri :: Lens' UpdateVocabulary (Maybe Text) Source #

The S3 location of the text file that contains the definition of the custom vocabulary. The URI must be in the same region as the API endpoint that you are calling. The general form is

For example:

For more information about S3 object names, see Object Keys in the Amazon S3 Developer Guide.

For more information about custom vocabularies, see Custom Vocabularies.

updateVocabulary_phrases :: Lens' UpdateVocabulary (Maybe [Text]) Source #

An array of strings containing the vocabulary entries.

updateVocabulary_vocabularyName :: Lens' UpdateVocabulary Text Source #

The name of the vocabulary to update. The name is case sensitive. If you try to update a vocabulary with the same name as a previous vocabulary you will receive a ConflictException error.

updateVocabulary_languageCode :: Lens' UpdateVocabulary LanguageCode Source #

The language code of the vocabulary entries. For a list of languages and their corresponding language codes, see transcribe-whatis.

Destructuring the Response

data UpdateVocabularyResponse Source #

See: newUpdateVocabularyResponse smart constructor.

Constructors

UpdateVocabularyResponse' 

Fields

Instances

Instances details
Eq UpdateVocabularyResponse Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

Read UpdateVocabularyResponse Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

Show UpdateVocabularyResponse Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

Generic UpdateVocabularyResponse Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

Associated Types

type Rep UpdateVocabularyResponse :: Type -> Type #

NFData UpdateVocabularyResponse Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

type Rep UpdateVocabularyResponse Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabulary

type Rep UpdateVocabularyResponse = D1 ('MetaData "UpdateVocabularyResponse" "Amazonka.Transcribe.UpdateVocabulary" "libZSservicesZSamazonka-transcribeZSamazonka-transcribe" 'False) (C1 ('MetaCons "UpdateVocabularyResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "languageCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LanguageCode)) :*: S1 ('MetaSel ('Just "vocabularyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "lastModifiedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "vocabularyState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VocabularyState)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newUpdateVocabularyResponse Source #

Create a value of UpdateVocabularyResponse 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:languageCode:UpdateVocabulary', updateVocabularyResponse_languageCode - The language code of the vocabulary entries.

$sel:vocabularyName:UpdateVocabulary', updateVocabularyResponse_vocabularyName - The name of the vocabulary that was updated.

$sel:lastModifiedTime:UpdateVocabularyResponse', updateVocabularyResponse_lastModifiedTime - The date and time that the vocabulary was updated.

$sel:vocabularyState:UpdateVocabularyResponse', updateVocabularyResponse_vocabularyState - The processing state of the vocabulary. When the VocabularyState field contains READY the vocabulary is ready to be used in a StartTranscriptionJob request.

$sel:httpStatus:UpdateVocabularyResponse', updateVocabularyResponse_httpStatus - The response's http status code.

Response Lenses

updateVocabularyResponse_lastModifiedTime :: Lens' UpdateVocabularyResponse (Maybe UTCTime) Source #

The date and time that the vocabulary was updated.

updateVocabularyResponse_vocabularyState :: Lens' UpdateVocabularyResponse (Maybe VocabularyState) Source #

The processing state of the vocabulary. When the VocabularyState field contains READY the vocabulary is ready to be used in a StartTranscriptionJob request.