amazonka-dynamodb-2.0: Amazon DynamoDB SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DynamoDB.RestoreTableToPointInTime

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

    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

Creating a Request

data RestoreTableToPointInTime Source #

See: newRestoreTableToPointInTime smart constructor.

Constructors

RestoreTableToPointInTime' 

Fields

Instances

Instances details
ToJSON RestoreTableToPointInTime Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

ToHeaders RestoreTableToPointInTime Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

ToPath RestoreTableToPointInTime Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

ToQuery RestoreTableToPointInTime Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

AWSRequest RestoreTableToPointInTime Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

Generic RestoreTableToPointInTime Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

Associated Types

type Rep RestoreTableToPointInTime :: Type -> Type #

Read RestoreTableToPointInTime Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

Show RestoreTableToPointInTime Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

NFData RestoreTableToPointInTime Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

Eq RestoreTableToPointInTime Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

Hashable RestoreTableToPointInTime Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

type AWSResponse RestoreTableToPointInTime Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

type Rep RestoreTableToPointInTime Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

type Rep RestoreTableToPointInTime = D1 ('MetaData "RestoreTableToPointInTime" "Amazonka.DynamoDB.RestoreTableToPointInTime" "amazonka-dynamodb-2.0-GNxlseyeFiu302JKQwQrUS" 'False) (C1 ('MetaCons "RestoreTableToPointInTime'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "billingModeOverride") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BillingMode)) :*: S1 ('MetaSel ('Just "globalSecondaryIndexOverride") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [GlobalSecondaryIndex]))) :*: (S1 ('MetaSel ('Just "localSecondaryIndexOverride") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LocalSecondaryIndex])) :*: (S1 ('MetaSel ('Just "provisionedThroughputOverride") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProvisionedThroughput)) :*: S1 ('MetaSel ('Just "restoreDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))) :*: ((S1 ('MetaSel ('Just "sSESpecificationOverride") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SSESpecification)) :*: S1 ('MetaSel ('Just "sourceTableArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "sourceTableName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "useLatestRestorableTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "targetTableName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

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

RestoreTableToPointInTime, restoreTableToPointInTime_provisionedThroughputOverride - Provisioned throughput settings for the restored table.

RestoreTableToPointInTime, restoreTableToPointInTime_restoreDateTime - Time in the past to restore the table to.

$sel:sSESpecificationOverride:RestoreTableToPointInTime', restoreTableToPointInTime_sSESpecificationOverride - The new server-side encryption settings for the restored table.

RestoreTableToPointInTime, restoreTableToPointInTime_sourceTableArn - The DynamoDB table that will be restored. This value is an Amazon Resource Name (ARN).

$sel:sourceTableName:RestoreTableToPointInTime', restoreTableToPointInTime_sourceTableName - Name of the source table that is being restored.

$sel:useLatestRestorableTime:RestoreTableToPointInTime', restoreTableToPointInTime_useLatestRestorableTime - Restore the table to the latest possible time. LatestRestorableDateTime is typically 5 minutes before the current time.

$sel:targetTableName:RestoreTableToPointInTime', restoreTableToPointInTime_targetTableName - The name of the new table to which it must be restored to.

Request Lenses

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_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_sSESpecificationOverride :: Lens' RestoreTableToPointInTime (Maybe SSESpecification) Source #

The new server-side encryption 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_sourceTableName :: Lens' RestoreTableToPointInTime (Maybe Text) Source #

Name of the source table that is being restored.

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

Constructors

RestoreTableToPointInTimeResponse' 

Fields

Instances

Instances details
Generic RestoreTableToPointInTimeResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

Associated Types

type Rep RestoreTableToPointInTimeResponse :: Type -> Type #

Read RestoreTableToPointInTimeResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

Show RestoreTableToPointInTimeResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

NFData RestoreTableToPointInTimeResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

Eq RestoreTableToPointInTimeResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

type Rep RestoreTableToPointInTimeResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.RestoreTableToPointInTime

type Rep RestoreTableToPointInTimeResponse = D1 ('MetaData "RestoreTableToPointInTimeResponse" "Amazonka.DynamoDB.RestoreTableToPointInTime" "amazonka-dynamodb-2.0-GNxlseyeFiu302JKQwQrUS" '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