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 disks in your AWS account and region.
This operation returns paginated results.
Synopsis
- data GetDisks = GetDisks' {}
- newGetDisks :: GetDisks
- getDisks_pageToken :: Lens' GetDisks (Maybe Text)
- data GetDisksResponse = GetDisksResponse' {
- nextPageToken :: Maybe Text
- disks :: Maybe [Disk]
- httpStatus :: Int
- newGetDisksResponse :: Int -> GetDisksResponse
- getDisksResponse_nextPageToken :: Lens' GetDisksResponse (Maybe Text)
- getDisksResponse_disks :: Lens' GetDisksResponse (Maybe [Disk])
- getDisksResponse_httpStatus :: Lens' GetDisksResponse Int
Creating a Request
See: newGetDisks
smart constructor.
Instances
newGetDisks :: GetDisks Source #
Create a value of GetDisks
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:GetDisks'
, getDisks_pageToken
- The token to advance to the next page of results from your request.
To get a page token, perform an initial GetDisks
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
getDisks_pageToken :: Lens' GetDisks (Maybe Text) Source #
The token to advance to the next page of results from your request.
To get a page token, perform an initial GetDisks
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 GetDisksResponse Source #
See: newGetDisksResponse
smart constructor.
GetDisksResponse' | |
|
Instances
Create a value of GetDisksResponse
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:GetDisksResponse'
, getDisksResponse_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 GetDisks
request and
specify the next page token using the pageToken
parameter.
$sel:disks:GetDisksResponse'
, getDisksResponse_disks
- An array of objects containing information about all block storage
disks.
$sel:httpStatus:GetDisksResponse'
, getDisksResponse_httpStatus
- The response's http status code.
Response Lenses
getDisksResponse_nextPageToken :: Lens' GetDisksResponse (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 GetDisks
request and
specify the next page token using the pageToken
parameter.
getDisksResponse_disks :: Lens' GetDisksResponse (Maybe [Disk]) Source #
An array of objects containing information about all block storage disks.
getDisksResponse_httpStatus :: Lens' GetDisksResponse Int Source #
The response's http status code.