| 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 |
Network.AWS.WorkDocs.GetDocumentVersion
Description
Retrieves version metadata for the specified document.
Synopsis
- getDocumentVersion :: Text -> Text -> GetDocumentVersion
- data GetDocumentVersion
- gdvAuthenticationToken :: Lens' GetDocumentVersion (Maybe Text)
- gdvIncludeCustomMetadata :: Lens' GetDocumentVersion (Maybe Bool)
- gdvFields :: Lens' GetDocumentVersion (Maybe Text)
- gdvDocumentId :: Lens' GetDocumentVersion Text
- gdvVersionId :: Lens' GetDocumentVersion Text
- getDocumentVersionResponse :: Int -> GetDocumentVersionResponse
- data GetDocumentVersionResponse
- gdvrsCustomMetadata :: Lens' GetDocumentVersionResponse (HashMap Text Text)
- gdvrsMetadata :: Lens' GetDocumentVersionResponse (Maybe DocumentVersionMetadata)
- gdvrsResponseStatus :: Lens' GetDocumentVersionResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> GetDocumentVersion |
Creates a value of GetDocumentVersion with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gdvAuthenticationToken- Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.gdvIncludeCustomMetadata- Set this to TRUE to include custom metadata in the response.gdvFields- A comma-separated list of values. Specify SOURCE to include a URL for the source document.gdvDocumentId- The ID of the document.gdvVersionId- The version ID of the document.
data GetDocumentVersion Source #
See: getDocumentVersion smart constructor.
Instances
Request Lenses
gdvAuthenticationToken :: Lens' GetDocumentVersion (Maybe Text) Source #
Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using AWS credentials.
gdvIncludeCustomMetadata :: Lens' GetDocumentVersion (Maybe Bool) Source #
Set this to TRUE to include custom metadata in the response.
gdvFields :: Lens' GetDocumentVersion (Maybe Text) Source #
A comma-separated list of values. Specify SOURCE to include a URL for the source document.
gdvDocumentId :: Lens' GetDocumentVersion Text Source #
The ID of the document.
gdvVersionId :: Lens' GetDocumentVersion Text Source #
The version ID of the document.
Destructuring the Response
getDocumentVersionResponse Source #
Arguments
| :: Int | |
| -> GetDocumentVersionResponse |
Creates a value of GetDocumentVersionResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gdvrsCustomMetadata- The custom metadata on the document version.gdvrsMetadata- The version metadata.gdvrsResponseStatus- -- | The response status code.
data GetDocumentVersionResponse Source #
See: getDocumentVersionResponse smart constructor.
Instances
Response Lenses
gdvrsCustomMetadata :: Lens' GetDocumentVersionResponse (HashMap Text Text) Source #
The custom metadata on the document version.
gdvrsMetadata :: Lens' GetDocumentVersionResponse (Maybe DocumentVersionMetadata) Source #
The version metadata.
gdvrsResponseStatus :: Lens' GetDocumentVersionResponse Int Source #
- - | The response status code.