| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.Lightsail.GetDisk
Description
Returns information about a specific block storage disk.
- getDisk :: Text -> GetDisk
- data GetDisk
- gdDiskName :: Lens' GetDisk Text
- getDiskResponse :: Int -> GetDiskResponse
- data GetDiskResponse
- getrsDisk :: Lens' GetDiskResponse (Maybe Disk)
- getrsResponseStatus :: Lens' GetDiskResponse Int
Creating a Request
Creates a value of GetDisk with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gdDiskName- The name of the disk (e.g.,my-disk).
See: getDisk smart constructor.
Request Lenses
gdDiskName :: Lens' GetDisk Text #
The name of the disk (e.g., my-disk ).
Destructuring the Response
Arguments
| :: Int | |
| -> GetDiskResponse |
Creates a value of GetDiskResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
getrsDisk- An object containing information about the disk.getrsResponseStatus- -- | The response status code.
data GetDiskResponse #
See: getDiskResponse smart constructor.
Response Lenses
getrsResponseStatus :: Lens' GetDiskResponse Int #
- - | The response status code.