| 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 |
Amazonka.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.
The detach disk operation supports tag-based access control via
resource tags applied to the resource identified by disk name. For
more information, see the
Amazon Lightsail Developer Guide.
Synopsis
- data DetachDisk = DetachDisk' {}
- newDetachDisk :: Text -> DetachDisk
- detachDisk_diskName :: Lens' DetachDisk Text
- data DetachDiskResponse = DetachDiskResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newDetachDiskResponse :: Int -> DetachDiskResponse
- detachDiskResponse_operations :: Lens' DetachDiskResponse (Maybe [Operation])
- detachDiskResponse_httpStatus :: Lens' DetachDiskResponse Int
Creating a Request
data DetachDisk Source #
See: newDetachDisk smart constructor.
Constructors
| DetachDisk' | |
Instances
Arguments
| :: Text | |
| -> DetachDisk |
Create a value of DetachDisk 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:DetachDisk', detachDisk_diskName - The unique name of the disk you want to detach from your instance (e.g.,
my-disk).
Request Lenses
detachDisk_diskName :: Lens' DetachDisk Text Source #
The unique name of the disk you want to detach from your instance (e.g.,
my-disk).
Destructuring the Response
data DetachDiskResponse Source #
See: newDetachDiskResponse smart constructor.
Constructors
| DetachDiskResponse' | |
Fields
| |
Instances
newDetachDiskResponse Source #
Arguments
| :: Int | |
| -> DetachDiskResponse |
Create a value of DetachDiskResponse 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:operations:DetachDiskResponse', detachDiskResponse_operations - An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:DetachDiskResponse', detachDiskResponse_httpStatus - The response's http status code.
Response Lenses
detachDiskResponse_operations :: Lens' DetachDiskResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
detachDiskResponse_httpStatus :: Lens' DetachDiskResponse Int Source #
The response's http status code.