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 the document versions for the specified document.
By default, only active versions are returned.
This operation returns paginated results.
Synopsis
- data DescribeDocumentVersions = DescribeDocumentVersions' {}
- newDescribeDocumentVersions :: Text -> DescribeDocumentVersions
- describeDocumentVersions_include :: Lens' DescribeDocumentVersions (Maybe Text)
- describeDocumentVersions_authenticationToken :: Lens' DescribeDocumentVersions (Maybe Text)
- describeDocumentVersions_marker :: Lens' DescribeDocumentVersions (Maybe Text)
- describeDocumentVersions_limit :: Lens' DescribeDocumentVersions (Maybe Natural)
- describeDocumentVersions_fields :: Lens' DescribeDocumentVersions (Maybe Text)
- describeDocumentVersions_documentId :: Lens' DescribeDocumentVersions Text
- data DescribeDocumentVersionsResponse = DescribeDocumentVersionsResponse' {}
- newDescribeDocumentVersionsResponse :: Int -> DescribeDocumentVersionsResponse
- describeDocumentVersionsResponse_documentVersions :: Lens' DescribeDocumentVersionsResponse (Maybe [DocumentVersionMetadata])
- describeDocumentVersionsResponse_marker :: Lens' DescribeDocumentVersionsResponse (Maybe Text)
- describeDocumentVersionsResponse_httpStatus :: Lens' DescribeDocumentVersionsResponse Int
Creating a Request
data DescribeDocumentVersions Source #
See: newDescribeDocumentVersions
smart constructor.
DescribeDocumentVersions' | |
|
Instances
newDescribeDocumentVersions Source #
Create a value of DescribeDocumentVersions
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:include:DescribeDocumentVersions'
, describeDocumentVersions_include
- A comma-separated list of values. Specify "INITIALIZED" to include
incomplete versions.
$sel:authenticationToken:DescribeDocumentVersions'
, describeDocumentVersions_authenticationToken
- Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
$sel:marker:DescribeDocumentVersions'
, describeDocumentVersions_marker
- The marker for the next set of results. (You received this marker from a
previous call.)
$sel:limit:DescribeDocumentVersions'
, describeDocumentVersions_limit
- The maximum number of versions to return with this call.
$sel:fields:DescribeDocumentVersions'
, describeDocumentVersions_fields
- Specify "SOURCE" to include initialized versions and a URL for the
source document.
$sel:documentId:DescribeDocumentVersions'
, describeDocumentVersions_documentId
- The ID of the document.
Request Lenses
describeDocumentVersions_include :: Lens' DescribeDocumentVersions (Maybe Text) Source #
A comma-separated list of values. Specify "INITIALIZED" to include incomplete versions.
describeDocumentVersions_authenticationToken :: Lens' DescribeDocumentVersions (Maybe Text) Source #
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
describeDocumentVersions_marker :: Lens' DescribeDocumentVersions (Maybe Text) Source #
The marker for the next set of results. (You received this marker from a previous call.)
describeDocumentVersions_limit :: Lens' DescribeDocumentVersions (Maybe Natural) Source #
The maximum number of versions to return with this call.
describeDocumentVersions_fields :: Lens' DescribeDocumentVersions (Maybe Text) Source #
Specify "SOURCE" to include initialized versions and a URL for the source document.
describeDocumentVersions_documentId :: Lens' DescribeDocumentVersions Text Source #
The ID of the document.
Destructuring the Response
data DescribeDocumentVersionsResponse Source #
See: newDescribeDocumentVersionsResponse
smart constructor.
DescribeDocumentVersionsResponse' | |
|
Instances
newDescribeDocumentVersionsResponse Source #
Create a value of DescribeDocumentVersionsResponse
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:documentVersions:DescribeDocumentVersionsResponse'
, describeDocumentVersionsResponse_documentVersions
- The document versions.
$sel:marker:DescribeDocumentVersions'
, describeDocumentVersionsResponse_marker
- The marker to use when requesting the next set of results. If there are
no additional results, the string is empty.
$sel:httpStatus:DescribeDocumentVersionsResponse'
, describeDocumentVersionsResponse_httpStatus
- The response's http status code.
Response Lenses
describeDocumentVersionsResponse_documentVersions :: Lens' DescribeDocumentVersionsResponse (Maybe [DocumentVersionMetadata]) Source #
The document versions.
describeDocumentVersionsResponse_marker :: Lens' DescribeDocumentVersionsResponse (Maybe Text) Source #
The marker to use when requesting the next set of results. If there are no additional results, the string is empty.
describeDocumentVersionsResponse_httpStatus :: Lens' DescribeDocumentVersionsResponse Int Source #
The response's http status code.