Skip to content

Commit

Permalink
feat(dynamodb): add pointintimerecoveryspecification and deprecate old (
Browse files Browse the repository at this point in the history
#33059)

### Issue # (if applicable)

Closes #32786

### Reason for this change

New feature of DynamoDB

### Description of changes

Added `pointInTimeRecoverySpecification` which takes
`pointInTimeRecoveryEnabled` and `recoveryPeriodInDays`.

Deprecated `pointInTimeRecovery` as it could not take
`recoveryPeriodInDays`

### Describe any new or updated permissions being added

<!-- What new or updated IAM permissions are needed to support the
changes being introduced ? -->


### Description of how you validated changes

Integ and Unit tests

### Checklist
- [X] My code adheres to the [CONTRIBUTING
GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and
[DESIGN
GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license*

---------

Co-authored-by: Lee Hannigan <[email protected]>
Co-authored-by: GZ <[email protected]>
  • Loading branch information
3 people authored Jan 30, 2025
1 parent ccc9f5e commit aec64f0
Show file tree
Hide file tree
Showing 25 changed files with 1,193 additions and 16 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"Resources": {
"TableTestV29E695762": {
"Type": "AWS::DynamoDB::GlobalTable",
"Properties": {
"AttributeDefinitions": [
{
"AttributeName": "id",
"AttributeType": "S"
}
],
"BillingMode": "PAY_PER_REQUEST",
"KeySchema": [
{
"AttributeName": "id",
"KeyType": "HASH"
}
],
"Replicas": [
{
"PointInTimeRecoverySpecification": {
"PointInTimeRecoveryEnabled": true,
"RecoveryPeriodInDays": 5
},
"Region": "eu-west-2"
},
{
"PointInTimeRecoverySpecification": {
"PointInTimeRecoveryEnabled": true,
"RecoveryPeriodInDays": 10
},
"Region": "eu-west-1"
}
],
"StreamSpecification": {
"StreamViewType": "NEW_AND_OLD_IMAGES"
}
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit aec64f0

Please sign in to comment.