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 |
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.
Instances
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.
DetachDiskResponse' | |
|
Instances
newDetachDiskResponse Source #
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.