Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Returns information about a specific block storage disk.
Synopsis
- data GetDisk = GetDisk' {}
- newGetDisk :: Text -> GetDisk
- getDisk_diskName :: Lens' GetDisk Text
- data GetDiskResponse = GetDiskResponse' {
- disk :: Maybe Disk
- httpStatus :: Int
- newGetDiskResponse :: Int -> GetDiskResponse
- getDiskResponse_disk :: Lens' GetDiskResponse (Maybe Disk)
- getDiskResponse_httpStatus :: Lens' GetDiskResponse Int
Creating a Request
See: newGetDisk
smart constructor.
Instances
Create a value of GetDisk
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:diskName:GetDisk'
, getDisk_diskName
- The name of the disk (e.g., my-disk
).
Request Lenses
Destructuring the Response
data GetDiskResponse Source #
See: newGetDiskResponse
smart constructor.
GetDiskResponse' | |
|
Instances
Create a value of GetDiskResponse
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:disk:GetDiskResponse'
, getDiskResponse_disk
- An object containing information about the disk.
$sel:httpStatus:GetDiskResponse'
, getDiskResponse_httpStatus
- The response's http status code.
Response Lenses
getDiskResponse_disk :: Lens' GetDiskResponse (Maybe Disk) Source #
An object containing information about the disk.
getDiskResponse_httpStatus :: Lens' GetDiskResponse Int Source #
The response's http status code.