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 |
Returns all instance snapshots for the user's account.
This operation returns paginated results.
Synopsis
- data GetInstanceSnapshots = GetInstanceSnapshots' {}
- newGetInstanceSnapshots :: GetInstanceSnapshots
- getInstanceSnapshots_pageToken :: Lens' GetInstanceSnapshots (Maybe Text)
- data GetInstanceSnapshotsResponse = GetInstanceSnapshotsResponse' {}
- newGetInstanceSnapshotsResponse :: Int -> GetInstanceSnapshotsResponse
- getInstanceSnapshotsResponse_nextPageToken :: Lens' GetInstanceSnapshotsResponse (Maybe Text)
- getInstanceSnapshotsResponse_instanceSnapshots :: Lens' GetInstanceSnapshotsResponse (Maybe [InstanceSnapshot])
- getInstanceSnapshotsResponse_httpStatus :: Lens' GetInstanceSnapshotsResponse Int
Creating a Request
data GetInstanceSnapshots Source #
See: newGetInstanceSnapshots
smart constructor.
Instances
newGetInstanceSnapshots :: GetInstanceSnapshots Source #
Create a value of GetInstanceSnapshots
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:pageToken:GetInstanceSnapshots'
, getInstanceSnapshots_pageToken
- The token to advance to the next page of results from your request.
To get a page token, perform an initial GetInstanceSnapshots
request.
If your results are paginated, the response will return a next page
token that you can specify as the page token in a subsequent request.
Request Lenses
getInstanceSnapshots_pageToken :: Lens' GetInstanceSnapshots (Maybe Text) Source #
The token to advance to the next page of results from your request.
To get a page token, perform an initial GetInstanceSnapshots
request.
If your results are paginated, the response will return a next page
token that you can specify as the page token in a subsequent request.
Destructuring the Response
data GetInstanceSnapshotsResponse Source #
See: newGetInstanceSnapshotsResponse
smart constructor.
GetInstanceSnapshotsResponse' | |
|
Instances
newGetInstanceSnapshotsResponse Source #
Create a value of GetInstanceSnapshotsResponse
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:nextPageToken:GetInstanceSnapshotsResponse'
, getInstanceSnapshotsResponse_nextPageToken
- The token to advance to the next page of results from your request.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another GetInstanceSnapshots
request and specify the next page token using the pageToken
parameter.
$sel:instanceSnapshots:GetInstanceSnapshotsResponse'
, getInstanceSnapshotsResponse_instanceSnapshots
- An array of key-value pairs containing information about the results of
your get instance snapshots request.
$sel:httpStatus:GetInstanceSnapshotsResponse'
, getInstanceSnapshotsResponse_httpStatus
- The response's http status code.
Response Lenses
getInstanceSnapshotsResponse_nextPageToken :: Lens' GetInstanceSnapshotsResponse (Maybe Text) Source #
The token to advance to the next page of results from your request.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another GetInstanceSnapshots
request and specify the next page token using the pageToken
parameter.
getInstanceSnapshotsResponse_instanceSnapshots :: Lens' GetInstanceSnapshotsResponse (Maybe [InstanceSnapshot]) Source #
An array of key-value pairs containing information about the results of your get instance snapshots request.
getInstanceSnapshotsResponse_httpStatus :: Lens' GetInstanceSnapshotsResponse Int Source #
The response's http status code.