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

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@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 #

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 #

Contains the parameters for DeleteSnapshot.

See: deleteSnapshot smart constructor.

Instances
Eq DeleteSnapshot # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

Data DeleteSnapshot # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

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 # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

Show DeleteSnapshot # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

Generic DeleteSnapshot # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

Associated Types

type Rep DeleteSnapshot :: Type -> Type #

Hashable DeleteSnapshot # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

AWSRequest DeleteSnapshot # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

Associated Types

type Rs DeleteSnapshot :: Type #

ToHeaders DeleteSnapshot # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

ToPath DeleteSnapshot # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

ToQuery DeleteSnapshot # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

NFData DeleteSnapshot # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

Methods

rnf :: DeleteSnapshot -> () #

type Rep DeleteSnapshot # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

type Rep DeleteSnapshot = D1 (MetaData "DeleteSnapshot" "Network.AWS.EC2.DeleteSnapshot" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "DeleteSnapshot'" PrefixI True) (S1 (MetaSel (Just "_deleDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_deleSnapshotId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs DeleteSnapshot # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

Request Lenses

deleDryRun :: Lens' DeleteSnapshot (Maybe Bool) #

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 #

The ID of the EBS snapshot.

Destructuring the Response

deleteSnapshotResponse :: DeleteSnapshotResponse #

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

data DeleteSnapshotResponse #

See: deleteSnapshotResponse smart constructor.

Instances
Eq DeleteSnapshotResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

Data DeleteSnapshotResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

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 # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

Show DeleteSnapshotResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

Generic DeleteSnapshotResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

Associated Types

type Rep DeleteSnapshotResponse :: Type -> Type #

NFData DeleteSnapshotResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

Methods

rnf :: DeleteSnapshotResponse -> () #

type Rep DeleteSnapshotResponse # 
Instance details

Defined in Network.AWS.EC2.DeleteSnapshot

type Rep DeleteSnapshotResponse = D1 (MetaData "DeleteSnapshotResponse" "Network.AWS.EC2.DeleteSnapshot" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "DeleteSnapshotResponse'" PrefixI False) (U1 :: Type -> Type))