PointInTimeRecoverySpecification
- class aws_cdk.aws_dynamodb.PointInTimeRecoverySpecification(*, point_in_time_recovery_enabled, recovery_period_in_days=None)
Bases:
object
Reference to PointInTimeRecovey Specification for continuous backups.
- Parameters:
point_in_time_recovery_enabled (
bool
) – Indicates whether point in time recovery is enabled (true) or disabled (false) on the table. Default: falserecovery_period_in_days (
Union
[int
,float
,None
]) – 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. Default: 35
- ExampleMetadata:
infused
Example:
table = dynamodb.TableV2(self, "Table", partition_key=dynamodb.Attribute(name="pk", type=dynamodb.AttributeType.STRING), contributor_insights=True, table_class=dynamodb.TableClass.STANDARD_INFREQUENT_ACCESS, point_in_time_recovery_specification=dynamodb.PointInTimeRecoverySpecification( point_in_time_recovery_enabled=True ) )
Attributes
- point_in_time_recovery_enabled
Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.
- Default:
false
- recovery_period_in_days
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.
- Default:
35