Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- restoreTableToPointInTime :: Text -> Text -> RestoreTableToPointInTime
- data RestoreTableToPointInTime
- rttpitUseLatestRestorableTime :: Lens' RestoreTableToPointInTime (Maybe Bool)
- rttpitRestoreDateTime :: Lens' RestoreTableToPointInTime (Maybe UTCTime)
- rttpitSourceTableName :: Lens' RestoreTableToPointInTime Text
- rttpitTargetTableName :: Lens' RestoreTableToPointInTime Text
- restoreTableToPointInTimeResponse :: Int -> RestoreTableToPointInTimeResponse
- data RestoreTableToPointInTimeResponse
- rttpitrsTableDescription :: Lens' RestoreTableToPointInTimeResponse (Maybe TableDescription)
- rttpitrsResponseStatus :: Lens' RestoreTableToPointInTimeResponse Int
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:
rttpitUseLatestRestorableTime
- Restore the table to the latest possible time.LatestRestorableDateTime
is typically 5 minutes before the current time.rttpitRestoreDateTime
- Time in the past to restore the table to.rttpitSourceTableName
- Name of the source table that is being restored.rttpitTargetTableName
- The name of the new table to which it must be restored to.
data RestoreTableToPointInTime Source #
See: restoreTableToPointInTime
smart constructor.
Instances
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:
rttpitrsTableDescription
- Represents the properties of a table.rttpitrsResponseStatus
- -- | The response status code.
data RestoreTableToPointInTimeResponse Source #
See: restoreTableToPointInTimeResponse
smart constructor.
Instances
Response Lenses
rttpitrsTableDescription :: Lens' RestoreTableToPointInTimeResponse (Maybe TableDescription) Source #
Represents the properties of a table.
rttpitrsResponseStatus :: Lens' RestoreTableToPointInTimeResponse Int Source #
- - | The response status code.