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 |
Deletes the specified snapshot.
When you make periodic snapshots of a volume, 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 volume.
You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first de-register the AMI before you can delete the snapshot.
For more information, see Delete an Amazon EBS snapshot in the Amazon Elastic Compute Cloud User Guide.
Synopsis
- data DeleteSnapshot = DeleteSnapshot' {
- dryRun :: Maybe Bool
- snapshotId :: Text
- newDeleteSnapshot :: Text -> DeleteSnapshot
- deleteSnapshot_dryRun :: Lens' DeleteSnapshot (Maybe Bool)
- deleteSnapshot_snapshotId :: Lens' DeleteSnapshot Text
- data DeleteSnapshotResponse = DeleteSnapshotResponse' {
- newDeleteSnapshotResponse :: DeleteSnapshotResponse
Creating a Request
data DeleteSnapshot Source #
See: newDeleteSnapshot
smart constructor.
DeleteSnapshot' | |
|
Instances
Create a value of DeleteSnapshot
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:dryRun:DeleteSnapshot'
, deleteSnapshot_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
DeleteSnapshot
, deleteSnapshot_snapshotId
- The ID of the EBS snapshot.
Request Lenses
deleteSnapshot_dryRun :: Lens' DeleteSnapshot (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
deleteSnapshot_snapshotId :: Lens' DeleteSnapshot Text Source #
The ID of the EBS snapshot.
Destructuring the Response
data DeleteSnapshotResponse Source #
See: newDeleteSnapshotResponse
smart constructor.
Instances
Generic DeleteSnapshotResponse Source # | |
Defined in Amazonka.EC2.DeleteSnapshot type Rep DeleteSnapshotResponse :: Type -> Type # | |
Read DeleteSnapshotResponse Source # | |
Show DeleteSnapshotResponse Source # | |
Defined in Amazonka.EC2.DeleteSnapshot showsPrec :: Int -> DeleteSnapshotResponse -> ShowS # show :: DeleteSnapshotResponse -> String # showList :: [DeleteSnapshotResponse] -> ShowS # | |
NFData DeleteSnapshotResponse Source # | |
Defined in Amazonka.EC2.DeleteSnapshot rnf :: DeleteSnapshotResponse -> () # | |
Eq DeleteSnapshotResponse Source # | |
Defined in Amazonka.EC2.DeleteSnapshot | |
type Rep DeleteSnapshotResponse Source # | |
newDeleteSnapshotResponse :: DeleteSnapshotResponse Source #
Create a value of DeleteSnapshotResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.