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