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 |
Updates an existing vocabulary with new values.
Synopsis
- updateVocabulary :: Text -> LanguageCode -> UpdateVocabulary
- data UpdateVocabulary
- uvVocabularyName :: Lens' UpdateVocabulary Text
- uvLanguageCode :: Lens' UpdateVocabulary LanguageCode
- uvPhrases :: Lens' UpdateVocabulary [Text]
- updateVocabularyResponse :: Int -> UpdateVocabularyResponse
- data UpdateVocabularyResponse
- uvrsLanguageCode :: Lens' UpdateVocabularyResponse (Maybe LanguageCode)
- uvrsVocabularyName :: Lens' UpdateVocabularyResponse (Maybe Text)
- uvrsLastModifiedTime :: Lens' UpdateVocabularyResponse (Maybe UTCTime)
- uvrsVocabularyState :: Lens' UpdateVocabularyResponse (Maybe VocabularyState)
- uvrsResponseStatus :: Lens' UpdateVocabularyResponse Int
Creating a Request
Creates a value of UpdateVocabulary
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uvVocabularyName
- The name of the vocabulary to update. The name is case-sensitive.uvLanguageCode
- The language code of the vocabulary entries.uvPhrases
- An array of strings containing the vocabulary entries.
data UpdateVocabulary Source #
See: updateVocabulary
smart constructor.
Instances
Request Lenses
uvVocabularyName :: Lens' UpdateVocabulary Text Source #
The name of the vocabulary to update. The name is case-sensitive.
uvLanguageCode :: Lens' UpdateVocabulary LanguageCode Source #
The language code of the vocabulary entries.
uvPhrases :: Lens' UpdateVocabulary [Text] Source #
An array of strings containing the vocabulary entries.
Destructuring the Response
updateVocabularyResponse Source #
Creates a value of UpdateVocabularyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
uvrsLanguageCode
- The language code of the vocabulary entries.uvrsVocabularyName
- The name of the vocabulary that was updated.uvrsLastModifiedTime
- The date and time that the vocabulary was updated.uvrsVocabularyState
- The processing state of the vocabulary. When theVocabularyState
field containsREADY
the vocabulary is ready to be used in aStartTranscriptionJob
request.uvrsResponseStatus
- -- | The response status code.
data UpdateVocabularyResponse Source #
See: updateVocabularyResponse
smart constructor.
Instances
Response Lenses
uvrsLanguageCode :: Lens' UpdateVocabularyResponse (Maybe LanguageCode) Source #
The language code of the vocabulary entries.
uvrsVocabularyName :: Lens' UpdateVocabularyResponse (Maybe Text) Source #
The name of the vocabulary that was updated.
uvrsLastModifiedTime :: Lens' UpdateVocabularyResponse (Maybe UTCTime) Source #
The date and time that the vocabulary was updated.
uvrsVocabularyState :: 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.
uvrsResponseStatus :: Lens' UpdateVocabularyResponse Int Source #
- - | The response status code.