Skip to content
v2.277.0

PointInTimeRecoverySpecificationProperty Struct ​

Represents the settings used to enable point in time recovery.

Example ​

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.CfnGlobalTable.PointInTimeRecoverySpecificationProperty = {
  pointInTimeRecoveryEnabled: false,
  recoveryPeriodInDays: 123,
};
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.CfnGlobalTable.PointInTimeRecoverySpecificationProperty(
    point_in_time_recovery_enabled=False,
    recovery_period_in_days=123
)
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();
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
};
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 ​

pointInTimeRecoveryEnabledoptionalboolean | IResolvablepoint_in_time_recovery_enabledoptionaltyping.Union[bool, IResolvable]pointInTimeRecoveryEnabledoptionalBooleanPointInTimeRecoveryEnabledoptionalboolPointInTimeRecoveryEnabledoptionalinterface{}#
Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.
recoveryPeriodInDaysoptionalnumberrecovery_period_in_daysoptionalint | floatrecoveryPeriodInDaysoptionalNumberRecoveryPeriodInDaysoptionaldoubleRecoveryPeriodInDaysoptional*float64#
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.