Copyright | (c) 2013-2021 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 |
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
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
- Amazon CloudWatch metrics and alarms
- Tags
- Stream settings
- Time to Live (TTL) settings
- Point in time recovery settings
Synopsis
- data RestoreTableToPointInTime = RestoreTableToPointInTime' {
- billingModeOverride :: Maybe BillingMode
- useLatestRestorableTime :: Maybe Bool
- globalSecondaryIndexOverride :: Maybe [GlobalSecondaryIndex]
- provisionedThroughputOverride :: Maybe ProvisionedThroughput
- sourceTableArn :: Maybe Text
- sSESpecificationOverride :: Maybe SSESpecification
- sourceTableName :: Maybe Text
- localSecondaryIndexOverride :: Maybe [LocalSecondaryIndex]
- restoreDateTime :: Maybe POSIX
- targetTableName :: Text
- newRestoreTableToPointInTime :: Text -> RestoreTableToPointInTime
- restoreTableToPointInTime_billingModeOverride :: Lens' RestoreTableToPointInTime (Maybe BillingMode)
- restoreTableToPointInTime_useLatestRestorableTime :: Lens' RestoreTableToPointInTime (Maybe Bool)
- restoreTableToPointInTime_globalSecondaryIndexOverride :: Lens' RestoreTableToPointInTime (Maybe [GlobalSecondaryIndex])
- restoreTableToPointInTime_provisionedThroughputOverride :: Lens' RestoreTableToPointInTime (Maybe ProvisionedThroughput)
- restoreTableToPointInTime_sourceTableArn :: Lens' RestoreTableToPointInTime (Maybe Text)
- restoreTableToPointInTime_sSESpecificationOverride :: Lens' RestoreTableToPointInTime (Maybe SSESpecification)
- restoreTableToPointInTime_sourceTableName :: Lens' RestoreTableToPointInTime (Maybe Text)
- restoreTableToPointInTime_localSecondaryIndexOverride :: Lens' RestoreTableToPointInTime (Maybe [LocalSecondaryIndex])
- restoreTableToPointInTime_restoreDateTime :: Lens' RestoreTableToPointInTime (Maybe UTCTime)
- restoreTableToPointInTime_targetTableName :: Lens' RestoreTableToPointInTime Text
- data RestoreTableToPointInTimeResponse = RestoreTableToPointInTimeResponse' {}
- newRestoreTableToPointInTimeResponse :: Int -> RestoreTableToPointInTimeResponse
- restoreTableToPointInTimeResponse_tableDescription :: Lens' RestoreTableToPointInTimeResponse (Maybe TableDescription)
- restoreTableToPointInTimeResponse_httpStatus :: Lens' RestoreTableToPointInTimeResponse Int
Creating a Request
data RestoreTableToPointInTime Source #
See: newRestoreTableToPointInTime
smart constructor.
RestoreTableToPointInTime' | |
|
Instances
newRestoreTableToPointInTime Source #
Create a value of RestoreTableToPointInTime
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:billingModeOverride:RestoreTableToPointInTime'
, restoreTableToPointInTime_billingModeOverride
- The billing mode of the restored table.
$sel:useLatestRestorableTime:RestoreTableToPointInTime'
, restoreTableToPointInTime_useLatestRestorableTime
- Restore the table to the latest possible time.
LatestRestorableDateTime
is typically 5 minutes before the current
time.
$sel:globalSecondaryIndexOverride:RestoreTableToPointInTime'
, restoreTableToPointInTime_globalSecondaryIndexOverride
- List of global secondary indexes for the restored table. The indexes
provided should match existing secondary indexes. You can choose to
exclude some or all of the indexes at the time of restore.
$sel:provisionedThroughputOverride:RestoreTableToPointInTime'
, restoreTableToPointInTime_provisionedThroughputOverride
- Provisioned throughput settings for the restored table.
$sel:sourceTableArn:RestoreTableToPointInTime'
, restoreTableToPointInTime_sourceTableArn
- The DynamoDB table that will be restored. This value is an Amazon
Resource Name (ARN).
$sel:sSESpecificationOverride:RestoreTableToPointInTime'
, restoreTableToPointInTime_sSESpecificationOverride
- The new server-side encryption settings for the restored table.
$sel:sourceTableName:RestoreTableToPointInTime'
, restoreTableToPointInTime_sourceTableName
- Name of the source table that is being restored.
$sel:localSecondaryIndexOverride:RestoreTableToPointInTime'
, restoreTableToPointInTime_localSecondaryIndexOverride
- List of local secondary indexes for the restored table. The indexes
provided should match existing secondary indexes. You can choose to
exclude some or all of the indexes at the time of restore.
$sel:restoreDateTime:RestoreTableToPointInTime'
, restoreTableToPointInTime_restoreDateTime
- Time in the past to restore the table to.
$sel:targetTableName:RestoreTableToPointInTime'
, restoreTableToPointInTime_targetTableName
- The name of the new table to which it must be restored to.
Request Lenses
restoreTableToPointInTime_billingModeOverride :: Lens' RestoreTableToPointInTime (Maybe BillingMode) Source #
The billing mode of the restored table.
restoreTableToPointInTime_useLatestRestorableTime :: Lens' RestoreTableToPointInTime (Maybe Bool) Source #
Restore the table to the latest possible time.
LatestRestorableDateTime
is typically 5 minutes before the current
time.
restoreTableToPointInTime_globalSecondaryIndexOverride :: Lens' RestoreTableToPointInTime (Maybe [GlobalSecondaryIndex]) Source #
List of global secondary indexes for the restored table. The indexes provided should match existing secondary indexes. You can choose to exclude some or all of the indexes at the time of restore.
restoreTableToPointInTime_provisionedThroughputOverride :: Lens' RestoreTableToPointInTime (Maybe ProvisionedThroughput) Source #
Provisioned throughput settings for the restored table.
restoreTableToPointInTime_sourceTableArn :: Lens' RestoreTableToPointInTime (Maybe Text) Source #
The DynamoDB table that will be restored. This value is an Amazon Resource Name (ARN).
restoreTableToPointInTime_sSESpecificationOverride :: Lens' RestoreTableToPointInTime (Maybe SSESpecification) Source #
The new server-side encryption settings for the restored table.
restoreTableToPointInTime_sourceTableName :: Lens' RestoreTableToPointInTime (Maybe Text) Source #
Name of the source table that is being restored.
restoreTableToPointInTime_localSecondaryIndexOverride :: Lens' RestoreTableToPointInTime (Maybe [LocalSecondaryIndex]) Source #
List of local secondary indexes for the restored table. The indexes provided should match existing secondary indexes. You can choose to exclude some or all of the indexes at the time of restore.
restoreTableToPointInTime_restoreDateTime :: Lens' RestoreTableToPointInTime (Maybe UTCTime) Source #
Time in the past to restore the table to.
restoreTableToPointInTime_targetTableName :: Lens' RestoreTableToPointInTime Text Source #
The name of the new table to which it must be restored to.
Destructuring the Response
data RestoreTableToPointInTimeResponse Source #
See: newRestoreTableToPointInTimeResponse
smart constructor.
RestoreTableToPointInTimeResponse' | |
|
Instances
Eq RestoreTableToPointInTimeResponse Source # | |
Read RestoreTableToPointInTimeResponse Source # | |
Show RestoreTableToPointInTimeResponse Source # | |
Generic RestoreTableToPointInTimeResponse Source # | |
NFData RestoreTableToPointInTimeResponse Source # | |
Defined in Amazonka.DynamoDB.RestoreTableToPointInTime rnf :: RestoreTableToPointInTimeResponse -> () # | |
type Rep RestoreTableToPointInTimeResponse Source # | |
Defined in Amazonka.DynamoDB.RestoreTableToPointInTime type Rep RestoreTableToPointInTimeResponse = D1 ('MetaData "RestoreTableToPointInTimeResponse" "Amazonka.DynamoDB.RestoreTableToPointInTime" "libZSservicesZSamazonka-dynamodbZSamazonka-dynamodb" 'False) (C1 ('MetaCons "RestoreTableToPointInTimeResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tableDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TableDescription)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newRestoreTableToPointInTimeResponse Source #
Create a value of RestoreTableToPointInTimeResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:tableDescription:RestoreTableToPointInTimeResponse'
, restoreTableToPointInTimeResponse_tableDescription
- Represents the properties of a table.
$sel:httpStatus:RestoreTableToPointInTimeResponse'
, restoreTableToPointInTimeResponse_httpStatus
- The response's http status code.
Response Lenses
restoreTableToPointInTimeResponse_tableDescription :: Lens' RestoreTableToPointInTimeResponse (Maybe TableDescription) Source #
Represents the properties of a table.
restoreTableToPointInTimeResponse_httpStatus :: Lens' RestoreTableToPointInTimeResponse Int Source #
The response's http status code.