amazonka-dynamodb-1.6.0: Amazon DynamoDB 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.DynamoDB.CreateBackup

Contents

Description

Creates a backup for an existing table.

Each time you create an On-Demand Backup, the entire table data is backed up. There is no limit to the number of on-demand backups that can be taken.

When you create an On-Demand Backup, a time marker of the request is cataloged, and the backup is created asynchronously, by applying all changes until the time of the request to the last full table snapshot. Backup requests are processed instantaneously and become available for restore within minutes.

You can call CreateBackup at a maximum rate of 50 times per second.

All backups in DynamoDB work without consuming any provisioned throughput on the table.

If you submit a backup request on 2018-12-14 at 14:25:00, the backup is guaranteed to contain all data committed to the table up to 14:24:00, and data committed after 14:26:00 will not be. The backup may or may not contain data modifications made between 14:24:00 and 14:26:00. On-Demand Backup does not support causal consistency.

Along with data, the following are also included on the backups:

  • Global secondary indexes (GSIs)
  • Local secondary indexes (LSIs)
  • Streams
  • Provisioned read and write capacity

Synopsis

Creating a Request

createBackup Source #

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

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

data CreateBackup Source #

See: createBackup smart constructor.

Instances

Eq CreateBackup Source # 
Data CreateBackup Source # 

Methods

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

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

toConstr :: CreateBackup -> Constr #

dataTypeOf :: CreateBackup -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateBackup Source # 
Show CreateBackup Source # 
Generic CreateBackup Source # 

Associated Types

type Rep CreateBackup :: * -> * #

Hashable CreateBackup Source # 
ToJSON CreateBackup Source # 
NFData CreateBackup Source # 

Methods

rnf :: CreateBackup -> () #

AWSRequest CreateBackup Source # 
ToHeaders CreateBackup Source # 
ToPath CreateBackup Source # 
ToQuery CreateBackup Source # 
type Rep CreateBackup Source # 
type Rep CreateBackup = D1 * (MetaData "CreateBackup" "Network.AWS.DynamoDB.CreateBackup" "amazonka-dynamodb-1.6.0-Be8FXVQVyEHEMZza56FG0o" False) (C1 * (MetaCons "CreateBackup'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cbTableName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_cbBackupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs CreateBackup Source # 

Request Lenses

cbTableName :: Lens' CreateBackup Text Source #

The name of the table.

cbBackupName :: Lens' CreateBackup Text Source #

Specified name for the backup.

Destructuring the Response

createBackupResponse Source #

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

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

data CreateBackupResponse Source #

See: createBackupResponse smart constructor.

Instances

Eq CreateBackupResponse Source # 
Data CreateBackupResponse Source # 

Methods

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

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

toConstr :: CreateBackupResponse -> Constr #

dataTypeOf :: CreateBackupResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateBackupResponse Source # 
Show CreateBackupResponse Source # 
Generic CreateBackupResponse Source # 
NFData CreateBackupResponse Source # 

Methods

rnf :: CreateBackupResponse -> () #

type Rep CreateBackupResponse Source # 
type Rep CreateBackupResponse = D1 * (MetaData "CreateBackupResponse" "Network.AWS.DynamoDB.CreateBackup" "amazonka-dynamodb-1.6.0-Be8FXVQVyEHEMZza56FG0o" False) (C1 * (MetaCons "CreateBackupResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cbrsBackupDetails") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe BackupDetails))) (S1 * (MetaSel (Just Symbol "_cbrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

cbrsBackupDetails :: Lens' CreateBackupResponse (Maybe BackupDetails) Source #

Contains the details of the backup created for the table.

cbrsResponseStatus :: Lens' CreateBackupResponse Int Source #

  • - | The response status code.