amazonka-dynamodb-1.6.1: 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 # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

Data CreateBackup Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

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

Defined in Network.AWS.DynamoDB.CreateBackup

Show CreateBackup Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

Generic CreateBackup Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

Associated Types

type Rep CreateBackup :: Type -> Type #

Hashable CreateBackup Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

ToJSON CreateBackup Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

AWSRequest CreateBackup Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

Associated Types

type Rs CreateBackup :: Type #

ToHeaders CreateBackup Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

ToPath CreateBackup Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

ToQuery CreateBackup Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

NFData CreateBackup Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

Methods

rnf :: CreateBackup -> () #

type Rep CreateBackup Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

type Rep CreateBackup = D1 (MetaData "CreateBackup" "Network.AWS.DynamoDB.CreateBackup" "amazonka-dynamodb-1.6.1-FTtIhwsA5vX17zvPeEA8Mr" False) (C1 (MetaCons "CreateBackup'" PrefixI True) (S1 (MetaSel (Just "_cbTableName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cbBackupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs CreateBackup Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

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

Defined in Network.AWS.DynamoDB.CreateBackup

Data CreateBackupResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

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

Defined in Network.AWS.DynamoDB.CreateBackup

Show CreateBackupResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

Generic CreateBackupResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

Associated Types

type Rep CreateBackupResponse :: Type -> Type #

NFData CreateBackupResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

Methods

rnf :: CreateBackupResponse -> () #

type Rep CreateBackupResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.CreateBackup

type Rep CreateBackupResponse = D1 (MetaData "CreateBackupResponse" "Network.AWS.DynamoDB.CreateBackup" "amazonka-dynamodb-1.6.1-FTtIhwsA5vX17zvPeEA8Mr" False) (C1 (MetaCons "CreateBackupResponse'" PrefixI True) (S1 (MetaSel (Just "_cbrsBackupDetails") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe BackupDetails)) :*: S1 (MetaSel (Just "_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.