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 a list of the gateway's local disks. To specify which gateway to describe, you use the Amazon Resource Name (ARN) of the gateway in the body of the request.
The request returns a list of all disks, specifying which are configured
as working storage, cache storage, or stored volume or not configured at
all. The response includes a DiskStatus
field. This field can have a
value of present (the disk is available to use), missing (the disk is no
longer connected to the gateway), or mismatch (the disk node is occupied
by a disk that has incorrect metadata or the disk content is corrupted).
Synopsis
- data ListLocalDisks = ListLocalDisks' {
- gatewayARN :: Text
- newListLocalDisks :: Text -> ListLocalDisks
- listLocalDisks_gatewayARN :: Lens' ListLocalDisks Text
- data ListLocalDisksResponse = ListLocalDisksResponse' {
- gatewayARN :: Maybe Text
- disks :: Maybe [Disk]
- httpStatus :: Int
- newListLocalDisksResponse :: Int -> ListLocalDisksResponse
- listLocalDisksResponse_gatewayARN :: Lens' ListLocalDisksResponse (Maybe Text)
- listLocalDisksResponse_disks :: Lens' ListLocalDisksResponse (Maybe [Disk])
- listLocalDisksResponse_httpStatus :: Lens' ListLocalDisksResponse Int
Creating a Request
data ListLocalDisks Source #
A JSON object containing the Amazon Resource Name (ARN) of the gateway.
See: newListLocalDisks
smart constructor.
Instances
Create a value of ListLocalDisks
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:gatewayARN:ListLocalDisks'
, listLocalDisks_gatewayARN
- Undocumented member.
Request Lenses
listLocalDisks_gatewayARN :: Lens' ListLocalDisks Text Source #
Undocumented member.
Destructuring the Response
data ListLocalDisksResponse Source #
See: newListLocalDisksResponse
smart constructor.
ListLocalDisksResponse' | |
|
Instances
newListLocalDisksResponse Source #
Create a value of ListLocalDisksResponse
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:gatewayARN:ListLocalDisks'
, listLocalDisksResponse_gatewayARN
- Undocumented member.
$sel:disks:ListLocalDisksResponse'
, listLocalDisksResponse_disks
- A JSON object containing the following fields:
- ListLocalDisksOutput$Disks
$sel:httpStatus:ListLocalDisksResponse'
, listLocalDisksResponse_httpStatus
- The response's http status code.
Response Lenses
listLocalDisksResponse_gatewayARN :: Lens' ListLocalDisksResponse (Maybe Text) Source #
Undocumented member.
listLocalDisksResponse_disks :: Lens' ListLocalDisksResponse (Maybe [Disk]) Source #
A JSON object containing the following fields:
- ListLocalDisksOutput$Disks
listLocalDisksResponse_httpStatus :: Lens' ListLocalDisksResponse Int Source #
The response's http status code.