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 Source #

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 Source #

See: deleteDiskSnapshot smart constructor.

Instances

Eq DeleteDiskSnapshot Source # 
Data DeleteDiskSnapshot Source # 

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 Source # 
Show DeleteDiskSnapshot Source # 
Generic DeleteDiskSnapshot Source # 
Hashable DeleteDiskSnapshot Source # 
ToJSON DeleteDiskSnapshot Source # 
NFData DeleteDiskSnapshot Source # 

Methods

rnf :: DeleteDiskSnapshot -> () #

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

Request Lenses

ddsDiskSnapshotName :: Lens' DeleteDiskSnapshot Text Source #

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

Destructuring the Response

deleteDiskSnapshotResponse Source #

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 Source #

See: deleteDiskSnapshotResponse smart constructor.

Instances

Eq DeleteDiskSnapshotResponse Source # 
Data DeleteDiskSnapshotResponse Source # 

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 Source # 
Show DeleteDiskSnapshotResponse Source # 
Generic DeleteDiskSnapshotResponse Source # 
NFData DeleteDiskSnapshotResponse Source # 
type Rep DeleteDiskSnapshotResponse Source # 
type Rep DeleteDiskSnapshotResponse = D1 * (MetaData "DeleteDiskSnapshotResponse" "Network.AWS.Lightsail.DeleteDiskSnapshot" "amazonka-lightsail-1.6.0-ARMP2uYvcAnENqDU8iFIes" 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] Source #

An object describing the API operations.