Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a new custom vocabulary that you can use to change the way Amazon Transcribe handles transcription of an audio file.
Synopsis
- createVocabulary :: Text -> LanguageCode -> CreateVocabulary
- data CreateVocabulary
- cvVocabularyName :: Lens' CreateVocabulary Text
- cvLanguageCode :: Lens' CreateVocabulary LanguageCode
- cvPhrases :: Lens' CreateVocabulary [Text]
- createVocabularyResponse :: Int -> CreateVocabularyResponse
- data CreateVocabularyResponse
- cvrsFailureReason :: Lens' CreateVocabularyResponse (Maybe Text)
- cvrsLanguageCode :: Lens' CreateVocabularyResponse (Maybe LanguageCode)
- cvrsVocabularyName :: Lens' CreateVocabularyResponse (Maybe Text)
- cvrsLastModifiedTime :: Lens' CreateVocabularyResponse (Maybe UTCTime)
- cvrsVocabularyState :: Lens' CreateVocabularyResponse (Maybe VocabularyState)
- cvrsResponseStatus :: Lens' CreateVocabularyResponse Int
Creating a Request
Creates a value of CreateVocabulary
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cvVocabularyName
- The name of the vocabulary. The name must be unique within an AWS account. The name is case-sensitive.cvLanguageCode
- The language code of the vocabulary entries.cvPhrases
- An array of strings that contains the vocabulary entries.
data CreateVocabulary Source #
See: createVocabulary
smart constructor.
Instances
Request Lenses
cvVocabularyName :: Lens' CreateVocabulary Text Source #
The name of the vocabulary. The name must be unique within an AWS account. The name is case-sensitive.
cvLanguageCode :: Lens' CreateVocabulary LanguageCode Source #
The language code of the vocabulary entries.
cvPhrases :: Lens' CreateVocabulary [Text] Source #
An array of strings that contains the vocabulary entries.
Destructuring the Response
createVocabularyResponse Source #
Creates a value of CreateVocabularyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cvrsFailureReason
- If theVocabularyState
field isFAILED
, this field contains information about why the job failed.cvrsLanguageCode
- The language code of the vocabulary entries.cvrsVocabularyName
- The name of the vocabulary.cvrsLastModifiedTime
- The date and time that the vocabulary was created.cvrsVocabularyState
- The processing state of the vocabulary. When theVocabularyState
field containsREADY
the vocabulary is ready to be used in aStartTranscriptionJob
request.cvrsResponseStatus
- -- | The response status code.
data CreateVocabularyResponse Source #
See: createVocabularyResponse
smart constructor.
Instances
Response Lenses
cvrsFailureReason :: Lens' CreateVocabularyResponse (Maybe Text) Source #
If the VocabularyState
field is FAILED
, this field contains information about why the job failed.
cvrsLanguageCode :: Lens' CreateVocabularyResponse (Maybe LanguageCode) Source #
The language code of the vocabulary entries.
cvrsVocabularyName :: Lens' CreateVocabularyResponse (Maybe Text) Source #
The name of the vocabulary.
cvrsLastModifiedTime :: Lens' CreateVocabularyResponse (Maybe UTCTime) Source #
The date and time that the vocabulary was created.
cvrsVocabularyState :: Lens' CreateVocabularyResponse (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.
cvrsResponseStatus :: Lens' CreateVocabularyResponse Int Source #
- - | The response status code.