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 |
Creates a new table from an existing backup. Any number of users can execute up to 4 concurrent restores (any type of restore) in a given account.
You can call RestoreTableFromBackup
at a maximum rate of 10 times per
second.
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
Synopsis
- data RestoreTableFromBackup = RestoreTableFromBackup' {
- billingModeOverride :: Maybe BillingMode
- globalSecondaryIndexOverride :: Maybe [GlobalSecondaryIndex]
- provisionedThroughputOverride :: Maybe ProvisionedThroughput
- sSESpecificationOverride :: Maybe SSESpecification
- localSecondaryIndexOverride :: Maybe [LocalSecondaryIndex]
- targetTableName :: Text
- backupArn :: Text
- newRestoreTableFromBackup :: Text -> Text -> RestoreTableFromBackup
- restoreTableFromBackup_billingModeOverride :: Lens' RestoreTableFromBackup (Maybe BillingMode)
- restoreTableFromBackup_globalSecondaryIndexOverride :: Lens' RestoreTableFromBackup (Maybe [GlobalSecondaryIndex])
- restoreTableFromBackup_provisionedThroughputOverride :: Lens' RestoreTableFromBackup (Maybe ProvisionedThroughput)
- restoreTableFromBackup_sSESpecificationOverride :: Lens' RestoreTableFromBackup (Maybe SSESpecification)
- restoreTableFromBackup_localSecondaryIndexOverride :: Lens' RestoreTableFromBackup (Maybe [LocalSecondaryIndex])
- restoreTableFromBackup_targetTableName :: Lens' RestoreTableFromBackup Text
- restoreTableFromBackup_backupArn :: Lens' RestoreTableFromBackup Text
- data RestoreTableFromBackupResponse = RestoreTableFromBackupResponse' {}
- newRestoreTableFromBackupResponse :: Int -> RestoreTableFromBackupResponse
- restoreTableFromBackupResponse_tableDescription :: Lens' RestoreTableFromBackupResponse (Maybe TableDescription)
- restoreTableFromBackupResponse_httpStatus :: Lens' RestoreTableFromBackupResponse Int
Creating a Request
data RestoreTableFromBackup Source #
See: newRestoreTableFromBackup
smart constructor.
RestoreTableFromBackup' | |
|
Instances
newRestoreTableFromBackup Source #
:: Text | |
-> Text | |
-> RestoreTableFromBackup |
Create a value of RestoreTableFromBackup
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:RestoreTableFromBackup'
, restoreTableFromBackup_billingModeOverride
- The billing mode of the restored table.
$sel:globalSecondaryIndexOverride:RestoreTableFromBackup'
, restoreTableFromBackup_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:RestoreTableFromBackup'
, restoreTableFromBackup_provisionedThroughputOverride
- Provisioned throughput settings for the restored table.
$sel:sSESpecificationOverride:RestoreTableFromBackup'
, restoreTableFromBackup_sSESpecificationOverride
- The new server-side encryption settings for the restored table.
$sel:localSecondaryIndexOverride:RestoreTableFromBackup'
, restoreTableFromBackup_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:targetTableName:RestoreTableFromBackup'
, restoreTableFromBackup_targetTableName
- The name of the new table to which the backup must be restored.
$sel:backupArn:RestoreTableFromBackup'
, restoreTableFromBackup_backupArn
- The Amazon Resource Name (ARN) associated with the backup.
Request Lenses
restoreTableFromBackup_billingModeOverride :: Lens' RestoreTableFromBackup (Maybe BillingMode) Source #
The billing mode of the restored table.
restoreTableFromBackup_globalSecondaryIndexOverride :: Lens' RestoreTableFromBackup (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.
restoreTableFromBackup_provisionedThroughputOverride :: Lens' RestoreTableFromBackup (Maybe ProvisionedThroughput) Source #
Provisioned throughput settings for the restored table.
restoreTableFromBackup_sSESpecificationOverride :: Lens' RestoreTableFromBackup (Maybe SSESpecification) Source #
The new server-side encryption settings for the restored table.
restoreTableFromBackup_localSecondaryIndexOverride :: Lens' RestoreTableFromBackup (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.
restoreTableFromBackup_targetTableName :: Lens' RestoreTableFromBackup Text Source #
The name of the new table to which the backup must be restored.
restoreTableFromBackup_backupArn :: Lens' RestoreTableFromBackup Text Source #
The Amazon Resource Name (ARN) associated with the backup.
Destructuring the Response
data RestoreTableFromBackupResponse Source #
See: newRestoreTableFromBackupResponse
smart constructor.
RestoreTableFromBackupResponse' | |
|
Instances
Eq RestoreTableFromBackupResponse Source # | |
Read RestoreTableFromBackupResponse Source # | |
Show RestoreTableFromBackupResponse Source # | |
Defined in Amazonka.DynamoDB.RestoreTableFromBackup | |
Generic RestoreTableFromBackupResponse Source # | |
NFData RestoreTableFromBackupResponse Source # | |
Defined in Amazonka.DynamoDB.RestoreTableFromBackup rnf :: RestoreTableFromBackupResponse -> () # | |
type Rep RestoreTableFromBackupResponse Source # | |
Defined in Amazonka.DynamoDB.RestoreTableFromBackup type Rep RestoreTableFromBackupResponse = D1 ('MetaData "RestoreTableFromBackupResponse" "Amazonka.DynamoDB.RestoreTableFromBackup" "libZSservicesZSamazonka-dynamodbZSamazonka-dynamodb" 'False) (C1 ('MetaCons "RestoreTableFromBackupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tableDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TableDescription)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newRestoreTableFromBackupResponse Source #
Create a value of RestoreTableFromBackupResponse
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:RestoreTableFromBackupResponse'
, restoreTableFromBackupResponse_tableDescription
- The description of the table created from an existing backup.
$sel:httpStatus:RestoreTableFromBackupResponse'
, restoreTableFromBackupResponse_httpStatus
- The response's http status code.
Response Lenses
restoreTableFromBackupResponse_tableDescription :: Lens' RestoreTableFromBackupResponse (Maybe TableDescription) Source #
The description of the table created from an existing backup.
restoreTableFromBackupResponse_httpStatus :: Lens' RestoreTableFromBackupResponse Int Source #
The response's http status code.