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

Contents

Description

Restores the specified table to the specified point in time within EarliestRestorableDateTime and LatestRestorableDateTime . You can restore your table to any point in time during the last 35 days. Any number of users can execute up to 4 concurrent restores (any type of restore) in a given account.

When you restore using point in time recovery, DynamoDB restores your table data to the state based on the selected date and time (day:hour:minute:second) to a new table.

Along with data, the following are also included on the new restored table using point in time recovery:

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

Important: All these settings come from the current settings of the source table at the time of restore.

You must manually set up the following on the restored table:

  • Auto scaling policies
  • IAM policies
  • Cloudwatch metrics and alarms
  • Tags
  • Stream settings
  • Time to Live (TTL) settings
  • Point in time recovery settings
Synopsis

Creating a Request

restoreTableToPointInTime Source #

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

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

data RestoreTableToPointInTime Source #

See: restoreTableToPointInTime smart constructor.

Instances
Eq RestoreTableToPointInTime Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

Data RestoreTableToPointInTime Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

Methods

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

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

toConstr :: RestoreTableToPointInTime -> Constr #

dataTypeOf :: RestoreTableToPointInTime -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RestoreTableToPointInTime Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

Show RestoreTableToPointInTime Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

Generic RestoreTableToPointInTime Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

Associated Types

type Rep RestoreTableToPointInTime :: Type -> Type #

Hashable RestoreTableToPointInTime Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

ToJSON RestoreTableToPointInTime Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

AWSRequest RestoreTableToPointInTime Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

Associated Types

type Rs RestoreTableToPointInTime :: Type #

ToHeaders RestoreTableToPointInTime Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

ToPath RestoreTableToPointInTime Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

ToQuery RestoreTableToPointInTime Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

NFData RestoreTableToPointInTime Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

type Rep RestoreTableToPointInTime Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

type Rep RestoreTableToPointInTime = D1 (MetaData "RestoreTableToPointInTime" "Network.AWS.DynamoDB.RestoreTableToPointInTime" "amazonka-dynamodb-1.6.1-FTtIhwsA5vX17zvPeEA8Mr" False) (C1 (MetaCons "RestoreTableToPointInTime'" PrefixI True) ((S1 (MetaSel (Just "_rttpitUseLatestRestorableTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_rttpitRestoreDateTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 (MetaSel (Just "_rttpitSourceTableName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_rttpitTargetTableName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs RestoreTableToPointInTime Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

Request Lenses

rttpitUseLatestRestorableTime :: Lens' RestoreTableToPointInTime (Maybe Bool) Source #

Restore the table to the latest possible time. LatestRestorableDateTime is typically 5 minutes before the current time.

rttpitRestoreDateTime :: Lens' RestoreTableToPointInTime (Maybe UTCTime) Source #

Time in the past to restore the table to.

rttpitSourceTableName :: Lens' RestoreTableToPointInTime Text Source #

Name of the source table that is being restored.

rttpitTargetTableName :: Lens' RestoreTableToPointInTime Text Source #

The name of the new table to which it must be restored to.

Destructuring the Response

restoreTableToPointInTimeResponse Source #

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

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

data RestoreTableToPointInTimeResponse Source #

See: restoreTableToPointInTimeResponse smart constructor.

Instances
Eq RestoreTableToPointInTimeResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

Data RestoreTableToPointInTimeResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

Methods

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

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

toConstr :: RestoreTableToPointInTimeResponse -> Constr #

dataTypeOf :: RestoreTableToPointInTimeResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RestoreTableToPointInTimeResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

Show RestoreTableToPointInTimeResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

Generic RestoreTableToPointInTimeResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

Associated Types

type Rep RestoreTableToPointInTimeResponse :: Type -> Type #

NFData RestoreTableToPointInTimeResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

type Rep RestoreTableToPointInTimeResponse Source # 
Instance details

Defined in Network.AWS.DynamoDB.RestoreTableToPointInTime

type Rep RestoreTableToPointInTimeResponse = D1 (MetaData "RestoreTableToPointInTimeResponse" "Network.AWS.DynamoDB.RestoreTableToPointInTime" "amazonka-dynamodb-1.6.1-FTtIhwsA5vX17zvPeEA8Mr" False) (C1 (MetaCons "RestoreTableToPointInTimeResponse'" PrefixI True) (S1 (MetaSel (Just "_rttpitrsTableDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TableDescription)) :*: S1 (MetaSel (Just "_rttpitrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses