Copyright | (c) 2013-2021 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 |
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
- data UpdateVocabulary = UpdateVocabulary' {}
- newUpdateVocabulary :: Text -> LanguageCode -> UpdateVocabulary
- updateVocabulary_vocabularyFileUri :: Lens' UpdateVocabulary (Maybe Text)
- updateVocabulary_phrases :: Lens' UpdateVocabulary (Maybe [Text])
- updateVocabulary_vocabularyName :: Lens' UpdateVocabulary Text
- updateVocabulary_languageCode :: Lens' UpdateVocabulary LanguageCode
- data UpdateVocabularyResponse = UpdateVocabularyResponse' {}
- newUpdateVocabularyResponse :: Int -> UpdateVocabularyResponse
- updateVocabularyResponse_languageCode :: Lens' UpdateVocabularyResponse (Maybe LanguageCode)
- updateVocabularyResponse_vocabularyName :: Lens' UpdateVocabularyResponse (Maybe Text)
- updateVocabularyResponse_lastModifiedTime :: Lens' UpdateVocabularyResponse (Maybe UTCTime)
- updateVocabularyResponse_vocabularyState :: Lens' UpdateVocabularyResponse (Maybe VocabularyState)
- updateVocabularyResponse_httpStatus :: Lens' UpdateVocabularyResponse Int
Creating a Request
data UpdateVocabulary Source #
See: newUpdateVocabulary
smart constructor.
UpdateVocabulary' | |
|
Instances
:: Text | |
-> LanguageCode | |
-> UpdateVocabulary |
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.
UpdateVocabularyResponse' | |
|
Instances
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_languageCode :: Lens' UpdateVocabularyResponse (Maybe LanguageCode) Source #
The language code of the vocabulary entries.
updateVocabularyResponse_vocabularyName :: Lens' UpdateVocabularyResponse (Maybe Text) Source #
The name of the vocabulary that was updated.
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.
updateVocabularyResponse_httpStatus :: Lens' UpdateVocabularyResponse Int Source #
The response's http status code.