| 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 |
Amazonka.WorkDocs.DescribeDocumentVersions
Description
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_authenticationToken :: Lens' DescribeDocumentVersions (Maybe Text)
- describeDocumentVersions_fields :: Lens' DescribeDocumentVersions (Maybe Text)
- describeDocumentVersions_include :: Lens' DescribeDocumentVersions (Maybe Text)
- describeDocumentVersions_limit :: Lens' DescribeDocumentVersions (Maybe Natural)
- describeDocumentVersions_marker :: 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.
Constructors
| DescribeDocumentVersions' | |
Fields
| |
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:authenticationToken:DescribeDocumentVersions', describeDocumentVersions_authenticationToken - Amazon WorkDocs authentication token. Not required when using AWS
administrator credentials to access the API.
$sel:fields:DescribeDocumentVersions', describeDocumentVersions_fields - Specify "SOURCE" to include initialized versions and a URL for the
source document.
$sel:include:DescribeDocumentVersions', describeDocumentVersions_include - A comma-separated list of values. Specify "INITIALIZED" to include
incomplete versions.
$sel:limit:DescribeDocumentVersions', describeDocumentVersions_limit - The maximum number of versions to return with this call.
DescribeDocumentVersions, describeDocumentVersions_marker - The marker for the next set of results. (You received this marker from a
previous call.)
$sel:documentId:DescribeDocumentVersions', describeDocumentVersions_documentId - The ID of the document.
Request Lenses
describeDocumentVersions_authenticationToken :: Lens' DescribeDocumentVersions (Maybe Text) Source #
Amazon WorkDocs authentication token. Not required when using AWS administrator credentials to access the API.
describeDocumentVersions_fields :: Lens' DescribeDocumentVersions (Maybe Text) Source #
Specify "SOURCE" to include initialized versions and a URL for the source document.
describeDocumentVersions_include :: Lens' DescribeDocumentVersions (Maybe Text) Source #
A comma-separated list of values. Specify "INITIALIZED" to include incomplete versions.
describeDocumentVersions_limit :: Lens' DescribeDocumentVersions (Maybe Natural) Source #
The maximum number of versions to return with this call.
describeDocumentVersions_marker :: Lens' DescribeDocumentVersions (Maybe Text) Source #
The marker for the next set of results. (You received this marker from a previous call.)
describeDocumentVersions_documentId :: Lens' DescribeDocumentVersions Text Source #
The ID of the document.
Destructuring the Response
data DescribeDocumentVersionsResponse Source #
See: newDescribeDocumentVersionsResponse smart constructor.
Constructors
| DescribeDocumentVersionsResponse' | |
Fields
| |
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.
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.