# PointInTimeRecoverySpecification

Reference to PointInTimeRecovey Specification for continuous backups.

- Source: [`aws-dynamodb/lib/shared.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-dynamodb/lib/shared.ts#L112)
- Type last changed: v2.178.0 · 6 Feb 2025

## Example

```ts
const table = new dynamodb.TableV2(this, 'Table', {
  partitionKey: { name: 'pk', type: dynamodb.AttributeType.STRING },
  contributorInsightsSpecification: {
    enabled: true,
  },
  tableClass: dynamodb.TableClass.STANDARD_INFREQUENT_ACCESS,
  pointInTimeRecoverySpecification: {
    pointInTimeRecoveryEnabled: true,
  },
});
```

## Properties

- `pointInTimeRecoveryEnabled`: boolean (required) = false — Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.

- `recoveryPeriodInDays`: number = 35 — The number of preceding days for which continuous backups are taken and maintained.

  Your table data is only recoverable to any point-in-time from within the configured recovery period.
  If no value is provided, the value will default to 35.
