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 |
Creates a snapshot of a block storage disk. You can use snapshots for backups, to make copies of disks, and to save data before shutting down a Lightsail instance.
You can take a snapshot of an attached disk that is in use; however, snapshots only capture data that has been written to your disk at the time the snapshot command is issued. This may exclude any data that has been cached by any applications or the operating system. If you can pause any file systems on the disk long enough to take a snapshot, your snapshot should be complete. Nevertheless, if you cannot pause all file writes to the disk, you should unmount the disk from within the Lightsail instance, issue the create disk snapshot command, and then remount the disk to ensure a consistent and complete snapshot. You may remount and use your disk while the snapshot status is pending.
Synopsis
- createDiskSnapshot :: Text -> Text -> CreateDiskSnapshot
- data CreateDiskSnapshot
- cdsDiskName :: Lens' CreateDiskSnapshot Text
- cdsDiskSnapshotName :: Lens' CreateDiskSnapshot Text
- createDiskSnapshotResponse :: Int -> CreateDiskSnapshotResponse
- data CreateDiskSnapshotResponse
- cdsrsOperations :: Lens' CreateDiskSnapshotResponse [Operation]
- cdsrsResponseStatus :: Lens' CreateDiskSnapshotResponse Int
Creating a Request
Creates a value of CreateDiskSnapshot
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cdsDiskName
- The unique name of the source disk (e.g.,my-source-disk
).cdsDiskSnapshotName
- The name of the destination disk snapshot (e.g.,my-disk-snapshot
) based on the source disk.
data CreateDiskSnapshot Source #
See: createDiskSnapshot
smart constructor.
Instances
Request Lenses
cdsDiskName :: Lens' CreateDiskSnapshot Text Source #
The unique name of the source disk (e.g., my-source-disk
).
cdsDiskSnapshotName :: Lens' CreateDiskSnapshot Text Source #
The name of the destination disk snapshot (e.g., my-disk-snapshot
) based on the source disk.
Destructuring the Response
createDiskSnapshotResponse Source #
Creates a value of CreateDiskSnapshotResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cdsrsOperations
- An object describing the API operations.cdsrsResponseStatus
- -- | The response status code.
data CreateDiskSnapshotResponse Source #
See: createDiskSnapshotResponse
smart constructor.
Instances
Response Lenses
cdsrsOperations :: Lens' CreateDiskSnapshotResponse [Operation] Source #
An object describing the API operations.
cdsrsResponseStatus :: Lens' CreateDiskSnapshotResponse Int Source #
- - | The response status code.