amazonka-lightsail-1.6.0: Amazon Lightsail 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.Lightsail.DeleteDiskSnapshot

Contents

Description

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.

Synopsis

Creating a Request

deleteDiskSnapshot #

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

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

  • ddsDiskSnapshotName - The name of the disk snapshot you want to delete (e.g., my-disk-snapshot ).

data DeleteDiskSnapshot #

See: deleteDiskSnapshot smart constructor.

Instances

Eq DeleteDiskSnapshot # 
Data DeleteDiskSnapshot # 

Methods

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

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

toConstr :: DeleteDiskSnapshot -> Constr #

dataTypeOf :: DeleteDiskSnapshot -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteDiskSnapshot # 
Show DeleteDiskSnapshot # 
Generic DeleteDiskSnapshot # 
Hashable DeleteDiskSnapshot # 
ToJSON DeleteDiskSnapshot # 
NFData DeleteDiskSnapshot # 

Methods

rnf :: DeleteDiskSnapshot -> () #

AWSRequest DeleteDiskSnapshot # 
ToHeaders DeleteDiskSnapshot # 
ToPath DeleteDiskSnapshot # 
ToQuery DeleteDiskSnapshot # 
type Rep DeleteDiskSnapshot # 
type Rep DeleteDiskSnapshot = D1 * (MetaData "DeleteDiskSnapshot" "Network.AWS.Lightsail.DeleteDiskSnapshot" "amazonka-lightsail-1.6.0-IATUqEytvF48KpKMPJ7t6L" True) (C1 * (MetaCons "DeleteDiskSnapshot'" PrefixI True) (S1 * (MetaSel (Just Symbol "_ddsDiskSnapshotName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))
type Rs DeleteDiskSnapshot # 

Request Lenses

ddsDiskSnapshotName :: Lens' DeleteDiskSnapshot Text #

The name of the disk snapshot you want to delete (e.g., my-disk-snapshot ).

Destructuring the Response

deleteDiskSnapshotResponse #

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

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

data DeleteDiskSnapshotResponse #

See: deleteDiskSnapshotResponse smart constructor.

Instances

Eq DeleteDiskSnapshotResponse # 
Data DeleteDiskSnapshotResponse # 

Methods

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

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

toConstr :: DeleteDiskSnapshotResponse -> Constr #

dataTypeOf :: DeleteDiskSnapshotResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteDiskSnapshotResponse # 
Show DeleteDiskSnapshotResponse # 
Generic DeleteDiskSnapshotResponse # 
NFData DeleteDiskSnapshotResponse # 
type Rep DeleteDiskSnapshotResponse # 
type Rep DeleteDiskSnapshotResponse = D1 * (MetaData "DeleteDiskSnapshotResponse" "Network.AWS.Lightsail.DeleteDiskSnapshot" "amazonka-lightsail-1.6.0-IATUqEytvF48KpKMPJ7t6L" False) (C1 * (MetaCons "DeleteDiskSnapshotResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ddsrsOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Operation]))) (S1 * (MetaSel (Just Symbol "_ddsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

ddsrsOperations :: Lens' DeleteDiskSnapshotResponse [Operation] #

An object describing the API operations.

ddsrsResponseStatus :: Lens' DeleteDiskSnapshotResponse Int #

  • - | The response status code.