| 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.DetachDisk
Description
Detaches a stopped block storage disk from a Lightsail instance. Make sure to unmount any file systems on the device within your operating system before stopping the instance and detaching the disk.
Creating a Request
Arguments
| :: Text | |
| -> DetachDisk |
Creates a value of DetachDisk with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ddDiskName- The unique name of the disk you want to detach from your instance (e.g.,my-disk).
data DetachDisk Source #
See: detachDisk smart constructor.
Instances
Request Lenses
ddDiskName :: Lens' DetachDisk Text Source #
The unique name of the disk you want to detach from your instance (e.g., my-disk ).
Destructuring the Response
Arguments
| :: Int | |
| -> DetachDiskResponse |
Creates a value of DetachDiskResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ddrsOperations- An object describing the API operations.ddrsResponseStatus- -- | The response status code.
data DetachDiskResponse Source #
See: detachDiskResponse smart constructor.
Response Lenses
ddrsOperations :: Lens' DetachDiskResponse [Operation] Source #
An object describing the API operations.
ddrsResponseStatus :: Lens' DetachDiskResponse Int Source #
- - | The response status code.