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 |
List all versions for a document.
This operation returns paginated results.
Synopsis
- data ListDocumentVersions = ListDocumentVersions' {}
- newListDocumentVersions :: Text -> ListDocumentVersions
- listDocumentVersions_nextToken :: Lens' ListDocumentVersions (Maybe Text)
- listDocumentVersions_maxResults :: Lens' ListDocumentVersions (Maybe Natural)
- listDocumentVersions_name :: Lens' ListDocumentVersions Text
- data ListDocumentVersionsResponse = ListDocumentVersionsResponse' {}
- newListDocumentVersionsResponse :: Int -> ListDocumentVersionsResponse
- listDocumentVersionsResponse_documentVersions :: Lens' ListDocumentVersionsResponse (Maybe (NonEmpty DocumentVersionInfo))
- listDocumentVersionsResponse_nextToken :: Lens' ListDocumentVersionsResponse (Maybe Text)
- listDocumentVersionsResponse_httpStatus :: Lens' ListDocumentVersionsResponse Int
Creating a Request
data ListDocumentVersions Source #
See: newListDocumentVersions
smart constructor.
ListDocumentVersions' | |
|
Instances
newListDocumentVersions Source #
Create a value of ListDocumentVersions
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:nextToken:ListDocumentVersions'
, listDocumentVersions_nextToken
- The token for the next set of items to return. (You received this token
from a previous call.)
$sel:maxResults:ListDocumentVersions'
, listDocumentVersions_maxResults
- The maximum number of items to return for this call. The call also
returns a token that you can specify in a subsequent call to get the
next set of results.
$sel:name:ListDocumentVersions'
, listDocumentVersions_name
- The name of the document. You can specify an Amazon Resource Name (ARN).
Request Lenses
listDocumentVersions_nextToken :: Lens' ListDocumentVersions (Maybe Text) Source #
The token for the next set of items to return. (You received this token from a previous call.)
listDocumentVersions_maxResults :: Lens' ListDocumentVersions (Maybe Natural) Source #
The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
listDocumentVersions_name :: Lens' ListDocumentVersions Text Source #
The name of the document. You can specify an Amazon Resource Name (ARN).
Destructuring the Response
data ListDocumentVersionsResponse Source #
See: newListDocumentVersionsResponse
smart constructor.
ListDocumentVersionsResponse' | |
|
Instances
newListDocumentVersionsResponse Source #
Create a value of ListDocumentVersionsResponse
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:ListDocumentVersionsResponse'
, listDocumentVersionsResponse_documentVersions
- The document versions.
$sel:nextToken:ListDocumentVersions'
, listDocumentVersionsResponse_nextToken
- The token to use when requesting the next set of items. If there are no
additional items to return, the string is empty.
$sel:httpStatus:ListDocumentVersionsResponse'
, listDocumentVersionsResponse_httpStatus
- The response's http status code.
Response Lenses
listDocumentVersionsResponse_documentVersions :: Lens' ListDocumentVersionsResponse (Maybe (NonEmpty DocumentVersionInfo)) Source #
The document versions.
listDocumentVersionsResponse_nextToken :: Lens' ListDocumentVersionsResponse (Maybe Text) Source #
The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.
listDocumentVersionsResponse_httpStatus :: Lens' ListDocumentVersionsResponse Int Source #
The response's http status code.