| 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.AttachDisk
Description
Attaches a block storage disk to a running or stopped Lightsail instance and exposes it to the instance with the specified disk name.
The attach 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 AttachDisk = AttachDisk' {}
- newAttachDisk :: Text -> Text -> Text -> AttachDisk
- attachDisk_diskName :: Lens' AttachDisk Text
- attachDisk_instanceName :: Lens' AttachDisk Text
- attachDisk_diskPath :: Lens' AttachDisk Text
- data AttachDiskResponse = AttachDiskResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newAttachDiskResponse :: Int -> AttachDiskResponse
- attachDiskResponse_operations :: Lens' AttachDiskResponse (Maybe [Operation])
- attachDiskResponse_httpStatus :: Lens' AttachDiskResponse Int
Creating a Request
data AttachDisk Source #
See: newAttachDisk smart constructor.
Constructors
| AttachDisk' | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> AttachDisk |
Create a value of AttachDisk 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:AttachDisk', attachDisk_diskName - The unique Lightsail disk name (e.g., my-disk).
AttachDisk, attachDisk_instanceName - The name of the Lightsail instance where you want to utilize the storage
disk.
$sel:diskPath:AttachDisk', attachDisk_diskPath - The disk path to expose to the instance (e.g., /dev/xvdf).
Request Lenses
attachDisk_diskName :: Lens' AttachDisk Text Source #
The unique Lightsail disk name (e.g., my-disk).
attachDisk_instanceName :: Lens' AttachDisk Text Source #
The name of the Lightsail instance where you want to utilize the storage disk.
attachDisk_diskPath :: Lens' AttachDisk Text Source #
The disk path to expose to the instance (e.g., /dev/xvdf).
Destructuring the Response
data AttachDiskResponse Source #
See: newAttachDiskResponse smart constructor.
Constructors
| AttachDiskResponse' | |
Fields
| |
Instances
newAttachDiskResponse Source #
Arguments
| :: Int | |
| -> AttachDiskResponse |
Create a value of AttachDiskResponse 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:AttachDiskResponse', attachDiskResponse_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:AttachDiskResponse', attachDiskResponse_httpStatus - The response's http status code.
Response Lenses
attachDiskResponse_operations :: Lens' AttachDiskResponse (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.
attachDiskResponse_httpStatus :: Lens' AttachDiskResponse Int Source #
The response's http status code.