Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Provides information about the specified custom vocabulary.
To view the status of the specified custom vocabulary, check the
VocabularyState
field. If the status is READY
, your custom
vocabulary is available to use. If the status is FAILED
,
FailureReason
provides details on why your custom vocabulary failed.
To get a list of your custom vocabularies, use the operation.
Synopsis
- data GetVocabulary = GetVocabulary' {}
- newGetVocabulary :: Text -> GetVocabulary
- getVocabulary_vocabularyName :: Lens' GetVocabulary Text
- data GetVocabularyResponse = GetVocabularyResponse' {}
- newGetVocabularyResponse :: Int -> GetVocabularyResponse
- getVocabularyResponse_downloadUri :: Lens' GetVocabularyResponse (Maybe Text)
- getVocabularyResponse_failureReason :: Lens' GetVocabularyResponse (Maybe Text)
- getVocabularyResponse_languageCode :: Lens' GetVocabularyResponse (Maybe LanguageCode)
- getVocabularyResponse_lastModifiedTime :: Lens' GetVocabularyResponse (Maybe UTCTime)
- getVocabularyResponse_vocabularyName :: Lens' GetVocabularyResponse (Maybe Text)
- getVocabularyResponse_vocabularyState :: Lens' GetVocabularyResponse (Maybe VocabularyState)
- getVocabularyResponse_httpStatus :: Lens' GetVocabularyResponse Int
Creating a Request
data GetVocabulary Source #
See: newGetVocabulary
smart constructor.
GetVocabulary' | |
|
Instances
Create a value of GetVocabulary
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:
GetVocabulary
, getVocabulary_vocabularyName
- The name of the custom vocabulary you want information about. Custom
vocabulary names are case sensitive.
Request Lenses
getVocabulary_vocabularyName :: Lens' GetVocabulary Text Source #
The name of the custom vocabulary you want information about. Custom vocabulary names are case sensitive.
Destructuring the Response
data GetVocabularyResponse Source #
See: newGetVocabularyResponse
smart constructor.
GetVocabularyResponse' | |
|
Instances
newGetVocabularyResponse Source #
Create a value of GetVocabularyResponse
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:downloadUri:GetVocabularyResponse'
, getVocabularyResponse_downloadUri
- The S3 location where the custom vocabulary is stored; use this URI to
view or download the custom vocabulary.
GetVocabularyResponse
, getVocabularyResponse_failureReason
- If VocabularyState
is FAILED
, FailureReason
contains information
about why the custom vocabulary request failed. See also:
Common Errors.
GetVocabularyResponse
, getVocabularyResponse_languageCode
- The language code you selected for your custom vocabulary.
GetVocabularyResponse
, getVocabularyResponse_lastModifiedTime
- The date and time the specified custom vocabulary was last modified.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For
example, 2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on
May 4, 2022.
GetVocabulary
, getVocabularyResponse_vocabularyName
- The name of the custom vocabulary you requested information about.
GetVocabularyResponse
, getVocabularyResponse_vocabularyState
- The processing state of your custom vocabulary. If the state is READY
,
you can use the custom vocabulary in a StartTranscriptionJob
request.
$sel:httpStatus:GetVocabularyResponse'
, getVocabularyResponse_httpStatus
- The response's http status code.
Response Lenses
getVocabularyResponse_downloadUri :: Lens' GetVocabularyResponse (Maybe Text) Source #
The S3 location where the custom vocabulary is stored; use this URI to view or download the custom vocabulary.
getVocabularyResponse_failureReason :: Lens' GetVocabularyResponse (Maybe Text) Source #
If VocabularyState
is FAILED
, FailureReason
contains information
about why the custom vocabulary request failed. See also:
Common Errors.
getVocabularyResponse_languageCode :: Lens' GetVocabularyResponse (Maybe LanguageCode) Source #
The language code you selected for your custom vocabulary.
getVocabularyResponse_lastModifiedTime :: Lens' GetVocabularyResponse (Maybe UTCTime) Source #
The date and time the specified custom vocabulary was last modified.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For
example, 2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on
May 4, 2022.
getVocabularyResponse_vocabularyName :: Lens' GetVocabularyResponse (Maybe Text) Source #
The name of the custom vocabulary you requested information about.
getVocabularyResponse_vocabularyState :: Lens' GetVocabularyResponse (Maybe VocabularyState) Source #
The processing state of your custom vocabulary. If the state is READY
,
you can use the custom vocabulary in a StartTranscriptionJob
request.
getVocabularyResponse_httpStatus :: Lens' GetVocabularyResponse Int Source #
The response's http status code.