| 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.ListAssociationVersions
Description
Retrieves all versions of an association for a specific association ID.
This operation returns paginated results.
Synopsis
- data ListAssociationVersions = ListAssociationVersions' {}
- newListAssociationVersions :: Text -> ListAssociationVersions
- listAssociationVersions_maxResults :: Lens' ListAssociationVersions (Maybe Natural)
- listAssociationVersions_nextToken :: Lens' ListAssociationVersions (Maybe Text)
- listAssociationVersions_associationId :: Lens' ListAssociationVersions Text
- data ListAssociationVersionsResponse = ListAssociationVersionsResponse' {}
- newListAssociationVersionsResponse :: Int -> ListAssociationVersionsResponse
- listAssociationVersionsResponse_associationVersions :: Lens' ListAssociationVersionsResponse (Maybe (NonEmpty AssociationVersionInfo))
- listAssociationVersionsResponse_nextToken :: Lens' ListAssociationVersionsResponse (Maybe Text)
- listAssociationVersionsResponse_httpStatus :: Lens' ListAssociationVersionsResponse Int
Creating a Request
data ListAssociationVersions Source #
See: newListAssociationVersions smart constructor.
Constructors
| ListAssociationVersions' | |
Fields
| |
Instances
newListAssociationVersions Source #
Arguments
| :: Text | |
| -> ListAssociationVersions |
Create a value of ListAssociationVersions 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:ListAssociationVersions', listAssociationVersions_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.
ListAssociationVersions, listAssociationVersions_nextToken - A token to start the list. Use this token to get the next set of
results.
ListAssociationVersions, listAssociationVersions_associationId - The association ID for which you want to view all versions.
Request Lenses
listAssociationVersions_maxResults :: Lens' ListAssociationVersions (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.
listAssociationVersions_nextToken :: Lens' ListAssociationVersions (Maybe Text) Source #
A token to start the list. Use this token to get the next set of results.
listAssociationVersions_associationId :: Lens' ListAssociationVersions Text Source #
The association ID for which you want to view all versions.
Destructuring the Response
data ListAssociationVersionsResponse Source #
See: newListAssociationVersionsResponse smart constructor.
Constructors
| ListAssociationVersionsResponse' | |
Fields
| |
Instances
newListAssociationVersionsResponse Source #
Create a value of ListAssociationVersionsResponse 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:associationVersions:ListAssociationVersionsResponse', listAssociationVersionsResponse_associationVersions - Information about all versions of the association for the specified
association ID.
ListAssociationVersions, listAssociationVersionsResponse_nextToken - The token for the next set of items to return. Use this token to get the
next set of results.
$sel:httpStatus:ListAssociationVersionsResponse', listAssociationVersionsResponse_httpStatus - The response's http status code.
Response Lenses
listAssociationVersionsResponse_associationVersions :: Lens' ListAssociationVersionsResponse (Maybe (NonEmpty AssociationVersionInfo)) Source #
Information about all versions of the association for the specified association ID.
listAssociationVersionsResponse_nextToken :: Lens' ListAssociationVersionsResponse (Maybe Text) Source #
The token for the next set of items to return. Use this token to get the next set of results.
listAssociationVersionsResponse_httpStatus :: Lens' ListAssociationVersionsResponse Int Source #
The response's http status code.