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.UpdateVocabularyFilter

Description

Updates a vocabulary filter with a new list of filtered words.

Synopsis

Creating a Request

data UpdateVocabularyFilter Source #

See: newUpdateVocabularyFilter smart constructor.

Constructors

UpdateVocabularyFilter' 

Fields

  • vocabularyFilterFileUri :: Maybe Text

    The Amazon S3 location of a text file used as input to create the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.

    The specified file must be less than 50 KB of UTF-8 characters.

    If you provide the location of a list of words in the VocabularyFilterFileUri parameter, you can't use the Words parameter.

  • words :: Maybe (NonEmpty Text)

    The words to use in the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.

    If you provide a list of words in the Words parameter, you can't use the VocabularyFilterFileUri parameter.

  • vocabularyFilterName :: Text

    The name of the vocabulary filter to update. If you try to update a vocabulary filter with the same name as another vocabulary filter, you get a ConflictException error.

Instances

Instances details
Eq UpdateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

Read UpdateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

Show UpdateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

Generic UpdateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

Associated Types

type Rep UpdateVocabularyFilter :: Type -> Type #

NFData UpdateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

Methods

rnf :: UpdateVocabularyFilter -> () #

Hashable UpdateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

ToJSON UpdateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

AWSRequest UpdateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

Associated Types

type AWSResponse UpdateVocabularyFilter #

ToHeaders UpdateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

ToPath UpdateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

ToQuery UpdateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

type Rep UpdateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

type Rep UpdateVocabularyFilter = D1 ('MetaData "UpdateVocabularyFilter" "Amazonka.Transcribe.UpdateVocabularyFilter" "libZSservicesZSamazonka-transcribeZSamazonka-transcribe" 'False) (C1 ('MetaCons "UpdateVocabularyFilter'" 'PrefixI 'True) (S1 ('MetaSel ('Just "vocabularyFilterFileUri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "words") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "vocabularyFilterName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse UpdateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

newUpdateVocabularyFilter Source #

Create a value of UpdateVocabularyFilter 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:vocabularyFilterFileUri:UpdateVocabularyFilter', updateVocabularyFilter_vocabularyFilterFileUri - The Amazon S3 location of a text file used as input to create the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.

The specified file must be less than 50 KB of UTF-8 characters.

If you provide the location of a list of words in the VocabularyFilterFileUri parameter, you can't use the Words parameter.

$sel:words:UpdateVocabularyFilter', updateVocabularyFilter_words - The words to use in the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.

If you provide a list of words in the Words parameter, you can't use the VocabularyFilterFileUri parameter.

$sel:vocabularyFilterName:UpdateVocabularyFilter', updateVocabularyFilter_vocabularyFilterName - The name of the vocabulary filter to update. If you try to update a vocabulary filter with the same name as another vocabulary filter, you get a ConflictException error.

Request Lenses

updateVocabularyFilter_vocabularyFilterFileUri :: Lens' UpdateVocabularyFilter (Maybe Text) Source #

The Amazon S3 location of a text file used as input to create the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.

The specified file must be less than 50 KB of UTF-8 characters.

If you provide the location of a list of words in the VocabularyFilterFileUri parameter, you can't use the Words parameter.

updateVocabularyFilter_words :: Lens' UpdateVocabularyFilter (Maybe (NonEmpty Text)) Source #

The words to use in the vocabulary filter. Only use characters from the character set defined for custom vocabularies. For a list of character sets, see Character Sets for Custom Vocabularies.

If you provide a list of words in the Words parameter, you can't use the VocabularyFilterFileUri parameter.

updateVocabularyFilter_vocabularyFilterName :: Lens' UpdateVocabularyFilter Text Source #

The name of the vocabulary filter to update. If you try to update a vocabulary filter with the same name as another vocabulary filter, you get a ConflictException error.

Destructuring the Response

data UpdateVocabularyFilterResponse Source #

See: newUpdateVocabularyFilterResponse smart constructor.

Constructors

UpdateVocabularyFilterResponse' 

Fields

Instances

Instances details
Eq UpdateVocabularyFilterResponse Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

Read UpdateVocabularyFilterResponse Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

Show UpdateVocabularyFilterResponse Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

Generic UpdateVocabularyFilterResponse Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

Associated Types

type Rep UpdateVocabularyFilterResponse :: Type -> Type #

NFData UpdateVocabularyFilterResponse Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

type Rep UpdateVocabularyFilterResponse Source # 
Instance details

Defined in Amazonka.Transcribe.UpdateVocabularyFilter

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

newUpdateVocabularyFilterResponse Source #

Create a value of UpdateVocabularyFilterResponse 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:UpdateVocabularyFilterResponse', updateVocabularyFilterResponse_languageCode - The language code of the words in the vocabulary filter.

$sel:lastModifiedTime:UpdateVocabularyFilterResponse', updateVocabularyFilterResponse_lastModifiedTime - The date and time that the vocabulary filter was updated.

$sel:vocabularyFilterName:UpdateVocabularyFilter', updateVocabularyFilterResponse_vocabularyFilterName - The name of the updated vocabulary filter.

$sel:httpStatus:UpdateVocabularyFilterResponse', updateVocabularyFilterResponse_httpStatus - The response's http status code.

Response Lenses

updateVocabularyFilterResponse_lastModifiedTime :: Lens' UpdateVocabularyFilterResponse (Maybe UTCTime) Source #

The date and time that the vocabulary filter was updated.