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 information about all block storage disk snapshots in your AWS account and region.
This operation returns paginated results.
Synopsis
- data GetDiskSnapshots = GetDiskSnapshots' {}
- newGetDiskSnapshots :: GetDiskSnapshots
- getDiskSnapshots_pageToken :: Lens' GetDiskSnapshots (Maybe Text)
- data GetDiskSnapshotsResponse = GetDiskSnapshotsResponse' {}
- newGetDiskSnapshotsResponse :: Int -> GetDiskSnapshotsResponse
- getDiskSnapshotsResponse_nextPageToken :: Lens' GetDiskSnapshotsResponse (Maybe Text)
- getDiskSnapshotsResponse_diskSnapshots :: Lens' GetDiskSnapshotsResponse (Maybe [DiskSnapshot])
- getDiskSnapshotsResponse_httpStatus :: Lens' GetDiskSnapshotsResponse Int
Creating a Request
data GetDiskSnapshots Source #
See: newGetDiskSnapshots
smart constructor.
Instances
newGetDiskSnapshots :: GetDiskSnapshots Source #
Create a value of GetDiskSnapshots
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:GetDiskSnapshots'
, getDiskSnapshots_pageToken
- The token to advance to the next page of results from your request.
To get a page token, perform an initial GetDiskSnapshots
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
getDiskSnapshots_pageToken :: Lens' GetDiskSnapshots (Maybe Text) Source #
The token to advance to the next page of results from your request.
To get a page token, perform an initial GetDiskSnapshots
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 GetDiskSnapshotsResponse Source #
See: newGetDiskSnapshotsResponse
smart constructor.
GetDiskSnapshotsResponse' | |
|
Instances
newGetDiskSnapshotsResponse Source #
Create a value of GetDiskSnapshotsResponse
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:GetDiskSnapshotsResponse'
, getDiskSnapshotsResponse_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 GetDiskSnapshots
request and specify the next page token using the pageToken
parameter.
$sel:diskSnapshots:GetDiskSnapshotsResponse'
, getDiskSnapshotsResponse_diskSnapshots
- An array of objects containing information about all block storage disk
snapshots.
$sel:httpStatus:GetDiskSnapshotsResponse'
, getDiskSnapshotsResponse_httpStatus
- The response's http status code.
Response Lenses
getDiskSnapshotsResponse_nextPageToken :: Lens' GetDiskSnapshotsResponse (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 GetDiskSnapshots
request and specify the next page token using the pageToken
parameter.
getDiskSnapshotsResponse_diskSnapshots :: Lens' GetDiskSnapshotsResponse (Maybe [DiskSnapshot]) Source #
An array of objects containing information about all block storage disk snapshots.
getDiskSnapshotsResponse_httpStatus :: Lens' GetDiskSnapshotsResponse Int Source #
The response's http status code.