| 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 |
Amazonka.Lightsail.GetDisk
Description
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
| Eq GetDisk Source # | |
| Read GetDisk Source # | |
| Show GetDisk Source # | |
| Generic GetDisk Source # | |
| NFData GetDisk Source # | |
Defined in Amazonka.Lightsail.GetDisk | |
| Hashable GetDisk Source # | |
Defined in Amazonka.Lightsail.GetDisk | |
| ToJSON GetDisk Source # | |
Defined in Amazonka.Lightsail.GetDisk | |
| AWSRequest GetDisk Source # | |
Defined in Amazonka.Lightsail.GetDisk Associated Types type AWSResponse GetDisk # Methods request :: GetDisk -> Request GetDisk # response :: MonadResource m => Logger -> Service -> Proxy GetDisk -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetDisk))) # | |
| ToHeaders GetDisk Source # | |
Defined in Amazonka.Lightsail.GetDisk | |
| ToPath GetDisk Source # | |
Defined in Amazonka.Lightsail.GetDisk Methods toPath :: GetDisk -> ByteString # | |
| ToQuery GetDisk Source # | |
Defined in Amazonka.Lightsail.GetDisk Methods toQuery :: GetDisk -> QueryString # | |
| type Rep GetDisk Source # | |
Defined in Amazonka.Lightsail.GetDisk | |
| type AWSResponse GetDisk Source # | |
Defined in Amazonka.Lightsail.GetDisk | |
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.
Constructors
| GetDiskResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetDiskResponse |
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.