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

Description

Creates a new vocabulary filter that you can use to filter words, such as profane words, from the output of a transcription job.

Synopsis

Creating a Request

data CreateVocabularyFilter Source #

See: newCreateVocabularyFilter smart constructor.

Constructors

CreateVocabularyFilter' 

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.

  • tags :: Maybe (NonEmpty Tag)

    Adds one or more tags, each in the form of a key:value pair, to a new Amazon Transcribe vocabulary filter at the time you create this new vocabulary filter.

  • vocabularyFilterName :: Text

    The vocabulary filter name. The name must be unique within the account that contains it. If you try to create a vocabulary filter with the same name as another vocabulary filter, you get a ConflictException error.

  • languageCode :: LanguageCode

    The language code of the words in the vocabulary filter. All words in the filter must be in the same language. The vocabulary filter can only be used with transcription jobs in the specified language.

Instances

Instances details
Eq CreateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

Read CreateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

Show CreateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

Generic CreateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

Associated Types

type Rep CreateVocabularyFilter :: Type -> Type #

NFData CreateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

Methods

rnf :: CreateVocabularyFilter -> () #

Hashable CreateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

ToJSON CreateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

AWSRequest CreateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

Associated Types

type AWSResponse CreateVocabularyFilter #

ToHeaders CreateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

ToPath CreateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

ToQuery CreateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

type Rep CreateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

type Rep CreateVocabularyFilter = D1 ('MetaData "CreateVocabularyFilter" "Amazonka.Transcribe.CreateVocabularyFilter" "libZSservicesZSamazonka-transcribeZSamazonka-transcribe" 'False) (C1 ('MetaCons "CreateVocabularyFilter'" '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 "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Tag))) :*: (S1 ('MetaSel ('Just "vocabularyFilterName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "languageCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LanguageCode)))))
type AWSResponse CreateVocabularyFilter Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

newCreateVocabularyFilter Source #

Create a value of CreateVocabularyFilter 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:CreateVocabularyFilter', createVocabularyFilter_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:CreateVocabularyFilter', createVocabularyFilter_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:tags:CreateVocabularyFilter', createVocabularyFilter_tags - Adds one or more tags, each in the form of a key:value pair, to a new Amazon Transcribe vocabulary filter at the time you create this new vocabulary filter.

$sel:vocabularyFilterName:CreateVocabularyFilter', createVocabularyFilter_vocabularyFilterName - The vocabulary filter name. The name must be unique within the account that contains it. If you try to create a vocabulary filter with the same name as another vocabulary filter, you get a ConflictException error.

$sel:languageCode:CreateVocabularyFilter', createVocabularyFilter_languageCode - The language code of the words in the vocabulary filter. All words in the filter must be in the same language. The vocabulary filter can only be used with transcription jobs in the specified language.

Request Lenses

createVocabularyFilter_vocabularyFilterFileUri :: Lens' CreateVocabularyFilter (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.

createVocabularyFilter_words :: Lens' CreateVocabularyFilter (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.

createVocabularyFilter_tags :: Lens' CreateVocabularyFilter (Maybe (NonEmpty Tag)) Source #

Adds one or more tags, each in the form of a key:value pair, to a new Amazon Transcribe vocabulary filter at the time you create this new vocabulary filter.

createVocabularyFilter_vocabularyFilterName :: Lens' CreateVocabularyFilter Text Source #

The vocabulary filter name. The name must be unique within the account that contains it. If you try to create a vocabulary filter with the same name as another vocabulary filter, you get a ConflictException error.

createVocabularyFilter_languageCode :: Lens' CreateVocabularyFilter LanguageCode Source #

The language code of the words in the vocabulary filter. All words in the filter must be in the same language. The vocabulary filter can only be used with transcription jobs in the specified language.

Destructuring the Response

data CreateVocabularyFilterResponse Source #

See: newCreateVocabularyFilterResponse smart constructor.

Constructors

CreateVocabularyFilterResponse' 

Fields

Instances

Instances details
Eq CreateVocabularyFilterResponse Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

Read CreateVocabularyFilterResponse Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

Show CreateVocabularyFilterResponse Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

Generic CreateVocabularyFilterResponse Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

Associated Types

type Rep CreateVocabularyFilterResponse :: Type -> Type #

NFData CreateVocabularyFilterResponse Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

type Rep CreateVocabularyFilterResponse Source # 
Instance details

Defined in Amazonka.Transcribe.CreateVocabularyFilter

type Rep CreateVocabularyFilterResponse = D1 ('MetaData "CreateVocabularyFilterResponse" "Amazonka.Transcribe.CreateVocabularyFilter" "libZSservicesZSamazonka-transcribeZSamazonka-transcribe" 'False) (C1 ('MetaCons "CreateVocabularyFilterResponse'" '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))))

newCreateVocabularyFilterResponse Source #

Create a value of CreateVocabularyFilterResponse 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:CreateVocabularyFilter', createVocabularyFilterResponse_languageCode - The language code of the words in the collection.

$sel:lastModifiedTime:CreateVocabularyFilterResponse', createVocabularyFilterResponse_lastModifiedTime - The date and time that the vocabulary filter was modified.

$sel:vocabularyFilterName:CreateVocabularyFilter', createVocabularyFilterResponse_vocabularyFilterName - The name of the vocabulary filter.

$sel:httpStatus:CreateVocabularyFilterResponse', createVocabularyFilterResponse_httpStatus - The response's http status code.

Response Lenses

createVocabularyFilterResponse_lastModifiedTime :: Lens' CreateVocabularyFilterResponse (Maybe UTCTime) Source #

The date and time that the vocabulary filter was modified.