# PointInTimeRecoverySpecificationProperty

The settings used to enable point in time recovery.

- Source: Generated at build time
- Type last changed: v2.174.0 · 4 Jan 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dynamodb as dynamodb } from 'aws-cdk-lib';
const pointInTimeRecoverySpecificationProperty: dynamodb.CfnTable.PointInTimeRecoverySpecificationProperty = {
  pointInTimeRecoveryEnabled: false,
  recoveryPeriodInDays: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dynamodb as dynamodb

point_in_time_recovery_specification_property = dynamodb.CfnTable.PointInTimeRecoverySpecificationProperty(
    point_in_time_recovery_enabled=False,
    recovery_period_in_days=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dynamodb.*;

PointInTimeRecoverySpecificationProperty pointInTimeRecoverySpecificationProperty = PointInTimeRecoverySpecificationProperty.builder()
        .pointInTimeRecoveryEnabled(false)
        .recoveryPeriodInDays(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DynamoDB;

var pointInTimeRecoverySpecificationProperty = new PointInTimeRecoverySpecificationProperty {
    PointInTimeRecoveryEnabled = false,
    RecoveryPeriodInDays = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

pointInTimeRecoverySpecificationProperty := &PointInTimeRecoverySpecificationProperty{
	PointInTimeRecoveryEnabled: jsii.Boolean(false),
	RecoveryPeriodInDays: jsii.Number(123),
}
```

## Properties

- `pointInTimeRecoveryEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.

- `recoveryPeriodInDays`: number — 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. This parameter is optional. If no value is provided, the value will default to 35.
