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 |
Deletes the specified disk snapshot.
When you make periodic snapshots of a disk, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the disk.
The delete disk snapshot
operation supports tag-based access control
via resource tags applied to the resource identified by
disk snapshot name
. For more information, see the
Amazon Lightsail Developer Guide.
Synopsis
- data DeleteDiskSnapshot = DeleteDiskSnapshot' {}
- newDeleteDiskSnapshot :: Text -> DeleteDiskSnapshot
- deleteDiskSnapshot_diskSnapshotName :: Lens' DeleteDiskSnapshot Text
- data DeleteDiskSnapshotResponse = DeleteDiskSnapshotResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newDeleteDiskSnapshotResponse :: Int -> DeleteDiskSnapshotResponse
- deleteDiskSnapshotResponse_operations :: Lens' DeleteDiskSnapshotResponse (Maybe [Operation])
- deleteDiskSnapshotResponse_httpStatus :: Lens' DeleteDiskSnapshotResponse Int
Creating a Request
data DeleteDiskSnapshot Source #
See: newDeleteDiskSnapshot
smart constructor.
DeleteDiskSnapshot' | |
|
Instances
newDeleteDiskSnapshot Source #
Create a value of DeleteDiskSnapshot
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:diskSnapshotName:DeleteDiskSnapshot'
, deleteDiskSnapshot_diskSnapshotName
- The name of the disk snapshot you want to delete (e.g.,
my-disk-snapshot
).
Request Lenses
deleteDiskSnapshot_diskSnapshotName :: Lens' DeleteDiskSnapshot Text Source #
The name of the disk snapshot you want to delete (e.g.,
my-disk-snapshot
).
Destructuring the Response
data DeleteDiskSnapshotResponse Source #
See: newDeleteDiskSnapshotResponse
smart constructor.
DeleteDiskSnapshotResponse' | |
|
Instances
newDeleteDiskSnapshotResponse Source #
Create a value of DeleteDiskSnapshotResponse
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:DeleteDiskSnapshotResponse'
, deleteDiskSnapshotResponse_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:DeleteDiskSnapshotResponse'
, deleteDiskSnapshotResponse_httpStatus
- The response's http status code.
Response Lenses
deleteDiskSnapshotResponse_operations :: Lens' DeleteDiskSnapshotResponse (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.
deleteDiskSnapshotResponse_httpStatus :: Lens' DeleteDiskSnapshotResponse Int Source #
The response's http status code.