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.CreateDiskSnapshot

Contents

Description

Creates a snapshot of a block storage disk. You can use snapshots for backups, to make copies of disks, and to save data before shutting down a Lightsail instance.

You can take a snapshot of an attached disk that is in use; however, snapshots only capture data that has been written to your disk at the time the snapshot command is issued. This may exclude any data that has been cached by any applications or the operating system. If you can pause any file systems on the disk long enough to take a snapshot, your snapshot should be complete. Nevertheless, if you cannot pause all file writes to the disk, you should unmount the disk from within the Lightsail instance, issue the create disk snapshot command, and then remount the disk to ensure a consistent and complete snapshot. You may remount and use your disk while the snapshot status is pending.

Synopsis

Creating a Request

createDiskSnapshot #

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

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

  • cdsDiskName - The unique name of the source disk (e.g., my-source-disk ).
  • cdsDiskSnapshotName - The name of the destination disk snapshot (e.g., my-disk-snapshot ) based on the source disk.

data CreateDiskSnapshot #

See: createDiskSnapshot smart constructor.

Instances

Eq CreateDiskSnapshot # 
Data CreateDiskSnapshot # 

Methods

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

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

toConstr :: CreateDiskSnapshot -> Constr #

dataTypeOf :: CreateDiskSnapshot -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDiskSnapshot # 
Show CreateDiskSnapshot # 
Generic CreateDiskSnapshot # 
Hashable CreateDiskSnapshot # 
ToJSON CreateDiskSnapshot # 
NFData CreateDiskSnapshot # 

Methods

rnf :: CreateDiskSnapshot -> () #

AWSRequest CreateDiskSnapshot # 
ToHeaders CreateDiskSnapshot # 
ToPath CreateDiskSnapshot # 
ToQuery CreateDiskSnapshot # 
type Rep CreateDiskSnapshot # 
type Rep CreateDiskSnapshot = D1 * (MetaData "CreateDiskSnapshot" "Network.AWS.Lightsail.CreateDiskSnapshot" "amazonka-lightsail-1.6.0-IATUqEytvF48KpKMPJ7t6L" False) (C1 * (MetaCons "CreateDiskSnapshot'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cdsDiskName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_cdsDiskSnapshotName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs CreateDiskSnapshot # 

Request Lenses

cdsDiskName :: Lens' CreateDiskSnapshot Text #

The unique name of the source disk (e.g., my-source-disk ).

cdsDiskSnapshotName :: Lens' CreateDiskSnapshot Text #

The name of the destination disk snapshot (e.g., my-disk-snapshot ) based on the source disk.

Destructuring the Response

createDiskSnapshotResponse #

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

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

data CreateDiskSnapshotResponse #

See: createDiskSnapshotResponse smart constructor.

Instances

Eq CreateDiskSnapshotResponse # 
Data CreateDiskSnapshotResponse # 

Methods

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

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

toConstr :: CreateDiskSnapshotResponse -> Constr #

dataTypeOf :: CreateDiskSnapshotResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Response Lenses

cdsrsOperations :: Lens' CreateDiskSnapshotResponse [Operation] #

An object describing the API operations.

cdsrsResponseStatus :: Lens' CreateDiskSnapshotResponse Int #

  • - | The response status code.