amazonka-ec2-1.4.5: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DeleteSnapshot

Contents

Description

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 Deleting an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide .

Synopsis

Creating a Request

deleteSnapshot Source #

Creates a value of DeleteSnapshot with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • deleDryRun - 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 .
  • deleSnapshotId - The ID of the EBS snapshot.

data DeleteSnapshot Source #

Contains the parameters for DeleteSnapshot.

See: deleteSnapshot smart constructor.

Instances

Eq DeleteSnapshot Source # 
Data DeleteSnapshot Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteSnapshot -> c DeleteSnapshot #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteSnapshot #

toConstr :: DeleteSnapshot -> Constr #

dataTypeOf :: DeleteSnapshot -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteSnapshot) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteSnapshot) #

gmapT :: (forall b. Data b => b -> b) -> DeleteSnapshot -> DeleteSnapshot #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteSnapshot -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteSnapshot -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteSnapshot -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteSnapshot -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteSnapshot -> m DeleteSnapshot #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteSnapshot -> m DeleteSnapshot #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteSnapshot -> m DeleteSnapshot #

Read DeleteSnapshot Source # 
Show DeleteSnapshot Source # 
Generic DeleteSnapshot Source # 

Associated Types

type Rep DeleteSnapshot :: * -> * #

Hashable DeleteSnapshot Source # 
NFData DeleteSnapshot Source # 

Methods

rnf :: DeleteSnapshot -> () #

AWSRequest DeleteSnapshot Source # 
ToPath DeleteSnapshot Source # 
ToHeaders DeleteSnapshot Source # 
ToQuery DeleteSnapshot Source # 
type Rep DeleteSnapshot Source # 
type Rep DeleteSnapshot = D1 (MetaData "DeleteSnapshot" "Network.AWS.EC2.DeleteSnapshot" "amazonka-ec2-1.4.5-4J1X1aohvSR7xjHvMmTrf6" False) (C1 (MetaCons "DeleteSnapshot'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_deleDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_deleSnapshotId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs DeleteSnapshot Source # 

Request Lenses

deleDryRun :: 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 .

deleSnapshotId :: Lens' DeleteSnapshot Text Source #

The ID of the EBS snapshot.

Destructuring the Response

deleteSnapshotResponse :: DeleteSnapshotResponse Source #

Creates a value of DeleteSnapshotResponse with the minimum fields required to make a request.

data DeleteSnapshotResponse Source #

See: deleteSnapshotResponse smart constructor.

Instances

Eq DeleteSnapshotResponse Source # 
Data DeleteSnapshotResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DeleteSnapshotResponse -> c DeleteSnapshotResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DeleteSnapshotResponse #

toConstr :: DeleteSnapshotResponse -> Constr #

dataTypeOf :: DeleteSnapshotResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DeleteSnapshotResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DeleteSnapshotResponse) #

gmapT :: (forall b. Data b => b -> b) -> DeleteSnapshotResponse -> DeleteSnapshotResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DeleteSnapshotResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DeleteSnapshotResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DeleteSnapshotResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DeleteSnapshotResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DeleteSnapshotResponse -> m DeleteSnapshotResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteSnapshotResponse -> m DeleteSnapshotResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DeleteSnapshotResponse -> m DeleteSnapshotResponse #

Read DeleteSnapshotResponse Source # 
Show DeleteSnapshotResponse Source # 
Generic DeleteSnapshotResponse Source # 
NFData DeleteSnapshotResponse Source # 

Methods

rnf :: DeleteSnapshotResponse -> () #

type Rep DeleteSnapshotResponse Source # 
type Rep DeleteSnapshotResponse = D1 (MetaData "DeleteSnapshotResponse" "Network.AWS.EC2.DeleteSnapshot" "amazonka-ec2-1.4.5-4J1X1aohvSR7xjHvMmTrf6" False) (C1 (MetaCons "DeleteSnapshotResponse'" PrefixI False) U1)