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 |
Attaches a block storage disk to a running or stopped Lightsail instance and exposes it to the instance with the specified disk name.
Synopsis
- attachDisk :: Text -> Text -> Text -> AttachDisk
- data AttachDisk
- adDiskName :: Lens' AttachDisk Text
- adInstanceName :: Lens' AttachDisk Text
- adDiskPath :: Lens' AttachDisk Text
- attachDiskResponse :: Int -> AttachDiskResponse
- data AttachDiskResponse
- adrsOperations :: Lens' AttachDiskResponse [Operation]
- adrsResponseStatus :: Lens' AttachDiskResponse Int
Creating a Request
Creates a value of AttachDisk
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
adDiskName
- The unique Lightsail disk name (e.g.,my-disk
).adInstanceName
- The name of the Lightsail instance where you want to utilize the storage disk.adDiskPath
- The disk path to expose to the instance (e.g.,devxvdf
).
data AttachDisk Source #
See: attachDisk
smart constructor.
Instances
Request Lenses
adDiskName :: Lens' AttachDisk Text Source #
The unique Lightsail disk name (e.g., my-disk
).
adInstanceName :: Lens' AttachDisk Text Source #
The name of the Lightsail instance where you want to utilize the storage disk.
adDiskPath :: Lens' AttachDisk Text Source #
The disk path to expose to the instance (e.g., devxvdf
).
Destructuring the Response
Creates a value of AttachDiskResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
adrsOperations
- An object describing the API operations.adrsResponseStatus
- -- | The response status code.
data AttachDiskResponse Source #
See: attachDiskResponse
smart constructor.
Instances
Response Lenses
adrsOperations :: Lens' AttachDiskResponse [Operation] Source #
An object describing the API operations.
adrsResponseStatus :: Lens' AttachDiskResponse Int Source #
- - | The response status code.