| 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.SSM.ListDocumentVersions
Description
List all versions for a document.
This operation returns paginated results.
Synopsis
- data ListDocumentVersions = ListDocumentVersions' {}
- newListDocumentVersions :: Text -> ListDocumentVersions
- listDocumentVersions_maxResults :: Lens' ListDocumentVersions (Maybe Natural)
- listDocumentVersions_nextToken :: Lens' ListDocumentVersions (Maybe Text)
- 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.
Constructors
| ListDocumentVersions' | |
Fields
| |
Instances
newListDocumentVersions Source #
Arguments
| :: Text | |
| -> ListDocumentVersions |
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: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.
ListDocumentVersions, listDocumentVersions_nextToken - The token for the next set of items to return. (You received this token
from a previous call.)
ListDocumentVersions, listDocumentVersions_name - The name of the document. You can specify an Amazon Resource Name (ARN).
Request Lenses
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_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_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.
Constructors
| ListDocumentVersionsResponse' | |
Fields
| |
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.
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.