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 |
List all versions for a document.
- listDocumentVersions :: Text -> ListDocumentVersions
- data ListDocumentVersions
- ldvNextToken :: Lens' ListDocumentVersions (Maybe Text)
- ldvMaxResults :: Lens' ListDocumentVersions (Maybe Natural)
- ldvName :: Lens' ListDocumentVersions Text
- listDocumentVersionsResponse :: Int -> ListDocumentVersionsResponse
- data ListDocumentVersionsResponse
- ldvrsDocumentVersions :: Lens' ListDocumentVersionsResponse (Maybe (NonEmpty DocumentVersionInfo))
- ldvrsNextToken :: Lens' ListDocumentVersionsResponse (Maybe Text)
- ldvrsResponseStatus :: Lens' ListDocumentVersionsResponse Int
Creating a Request
Creates a value of ListDocumentVersions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ldvNextToken
- The token for the next set of items to return. (You received this token from a previous call.)ldvMaxResults
- 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.ldvName
- The name of the document about which you want version information.
data ListDocumentVersions Source #
See: listDocumentVersions
smart constructor.
Request Lenses
ldvNextToken :: Lens' ListDocumentVersions (Maybe Text) Source #
The token for the next set of items to return. (You received this token from a previous call.)
ldvMaxResults :: 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.
ldvName :: Lens' ListDocumentVersions Text Source #
The name of the document about which you want version information.
Destructuring the Response
listDocumentVersionsResponse Source #
Creates a value of ListDocumentVersionsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ldvrsDocumentVersions
- The document versions.ldvrsNextToken
- The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.ldvrsResponseStatus
- -- | The response status code.
data ListDocumentVersionsResponse Source #
See: listDocumentVersionsResponse
smart constructor.
Response Lenses
ldvrsDocumentVersions :: Lens' ListDocumentVersionsResponse (Maybe (NonEmpty DocumentVersionInfo)) Source #
The document versions.
ldvrsNextToken :: 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.
ldvrsResponseStatus :: Lens' ListDocumentVersionsResponse Int Source #
- - | The response status code.