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 |
Gets information about a vocabulary.
Synopsis
- getVocabulary :: Text -> GetVocabulary
- data GetVocabulary
- gvVocabularyName :: Lens' GetVocabulary Text
- getVocabularyResponse :: Int -> GetVocabularyResponse
- data GetVocabularyResponse
- gvrsFailureReason :: Lens' GetVocabularyResponse (Maybe Text)
- gvrsLanguageCode :: Lens' GetVocabularyResponse (Maybe LanguageCode)
- gvrsDownloadURI :: Lens' GetVocabularyResponse (Maybe Text)
- gvrsVocabularyName :: Lens' GetVocabularyResponse (Maybe Text)
- gvrsLastModifiedTime :: Lens' GetVocabularyResponse (Maybe UTCTime)
- gvrsVocabularyState :: Lens' GetVocabularyResponse (Maybe VocabularyState)
- gvrsResponseStatus :: Lens' GetVocabularyResponse Int
Creating a Request
Creates a value of GetVocabulary
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gvVocabularyName
- The name of the vocabulary to return information about. The name is case-sensitive.
data GetVocabulary Source #
See: getVocabulary
smart constructor.
Instances
Request Lenses
gvVocabularyName :: Lens' GetVocabulary Text Source #
The name of the vocabulary to return information about. The name is case-sensitive.
Destructuring the Response
getVocabularyResponse Source #
Creates a value of GetVocabularyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gvrsFailureReason
- If theVocabularyState
field isFAILED
, this field contains information about why the job failed.gvrsLanguageCode
- The language code of the vocabulary entries.gvrsDownloadURI
- The S3 location where the vocabulary is stored. Use this URI to get the contents of the vocabulary. The URI is available for a limited time.gvrsVocabularyName
- The name of the vocabulary to return.gvrsLastModifiedTime
- The date and time that the vocabulary was last modified.gvrsVocabularyState
- The processing state of the vocabulary.gvrsResponseStatus
- -- | The response status code.
data GetVocabularyResponse Source #
See: getVocabularyResponse
smart constructor.
Instances
Response Lenses
gvrsFailureReason :: Lens' GetVocabularyResponse (Maybe Text) Source #
If the VocabularyState
field is FAILED
, this field contains information about why the job failed.
gvrsLanguageCode :: Lens' GetVocabularyResponse (Maybe LanguageCode) Source #
The language code of the vocabulary entries.
gvrsDownloadURI :: Lens' GetVocabularyResponse (Maybe Text) Source #
The S3 location where the vocabulary is stored. Use this URI to get the contents of the vocabulary. The URI is available for a limited time.
gvrsVocabularyName :: Lens' GetVocabularyResponse (Maybe Text) Source #
The name of the vocabulary to return.
gvrsLastModifiedTime :: Lens' GetVocabularyResponse (Maybe UTCTime) Source #
The date and time that the vocabulary was last modified.
gvrsVocabularyState :: Lens' GetVocabularyResponse (Maybe VocabularyState) Source #
The processing state of the vocabulary.
gvrsResponseStatus :: Lens' GetVocabularyResponse Int Source #
- - | The response status code.