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 |
Retrieves version metadata for the specified document.
Synopsis
- data GetDocumentVersion = GetDocumentVersion' {}
- newGetDocumentVersion :: Text -> Text -> GetDocumentVersion
- getDocumentVersion_authenticationToken :: Lens' GetDocumentVersion (Maybe Text)
- getDocumentVersion_includeCustomMetadata :: Lens' GetDocumentVersion (Maybe Bool)
- getDocumentVersion_fields :: Lens' GetDocumentVersion (Maybe Text)
- getDocumentVersion_documentId :: Lens' GetDocumentVersion Text
- getDocumentVersion_versionId :: Lens' GetDocumentVersion Text
- data GetDocumentVersionResponse = GetDocumentVersionResponse' {}
- newGetDocumentVersionResponse :: Int -> GetDocumentVersionResponse
- getDocumentVersionResponse_customMetadata :: Lens' GetDocumentVersionResponse (Maybe (HashMap Text Text))
- getDocumentVersionResponse_metadata :: Lens' GetDocumentVersionResponse (Maybe DocumentVersionMetadata)
- getDocumentVersionResponse_httpStatus :: Lens' GetDocumentVersionResponse Int
Creating a Request
data GetDocumentVersion Source #
See: newGetDocumentVersion
smart constructor.
GetDocumentVersion' | |
|
Instances
newGetDocumentVersion Source #
:: Text | |
-> Text | |
-> GetDocumentVersion |
Create a value of GetDocumentVersion
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:authenticationToken:GetDocumentVersion'
, getDocumentVersion_authenticationToken
- Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
$sel:includeCustomMetadata:GetDocumentVersion'
, getDocumentVersion_includeCustomMetadata
- Set this to TRUE to include custom metadata in the response.
$sel:fields:GetDocumentVersion'
, getDocumentVersion_fields
- A comma-separated list of values. Specify "SOURCE" to include a URL
for the source document.
$sel:documentId:GetDocumentVersion'
, getDocumentVersion_documentId
- The ID of the document.
$sel:versionId:GetDocumentVersion'
, getDocumentVersion_versionId
- The version ID of the document.
Request Lenses
getDocumentVersion_authenticationToken :: Lens' GetDocumentVersion (Maybe Text) Source #
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
getDocumentVersion_includeCustomMetadata :: Lens' GetDocumentVersion (Maybe Bool) Source #
Set this to TRUE to include custom metadata in the response.
getDocumentVersion_fields :: Lens' GetDocumentVersion (Maybe Text) Source #
A comma-separated list of values. Specify "SOURCE" to include a URL for the source document.
getDocumentVersion_documentId :: Lens' GetDocumentVersion Text Source #
The ID of the document.
getDocumentVersion_versionId :: Lens' GetDocumentVersion Text Source #
The version ID of the document.
Destructuring the Response
data GetDocumentVersionResponse Source #
See: newGetDocumentVersionResponse
smart constructor.
GetDocumentVersionResponse' | |
|
Instances
newGetDocumentVersionResponse Source #
Create a value of GetDocumentVersionResponse
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:customMetadata:GetDocumentVersionResponse'
, getDocumentVersionResponse_customMetadata
- The custom metadata on the document version.
$sel:metadata:GetDocumentVersionResponse'
, getDocumentVersionResponse_metadata
- The version metadata.
$sel:httpStatus:GetDocumentVersionResponse'
, getDocumentVersionResponse_httpStatus
- The response's http status code.
Response Lenses
getDocumentVersionResponse_customMetadata :: Lens' GetDocumentVersionResponse (Maybe (HashMap Text Text)) Source #
The custom metadata on the document version.
getDocumentVersionResponse_metadata :: Lens' GetDocumentVersionResponse (Maybe DocumentVersionMetadata) Source #
The version metadata.
getDocumentVersionResponse_httpStatus :: Lens' GetDocumentVersionResponse Int Source #
The response's http status code.