Skip to content

Commit aec64f0

Browse files
LeeroyHanniganLee HanniganGavinZZ
authored
feat(dynamodb): add pointintimerecoveryspecification and deprecate old (#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]>
1 parent ccc9f5e commit aec64f0

25 files changed

+1193
-16
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.pitr.js.snapshot/PITR-Integ-Test.assets.json

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"Resources": {
3+
"TableTestV29E695762": {
4+
"Type": "AWS::DynamoDB::GlobalTable",
5+
"Properties": {
6+
"AttributeDefinitions": [
7+
{
8+
"AttributeName": "id",
9+
"AttributeType": "S"
10+
}
11+
],
12+
"BillingMode": "PAY_PER_REQUEST",
13+
"KeySchema": [
14+
{
15+
"AttributeName": "id",
16+
"KeyType": "HASH"
17+
}
18+
],
19+
"Replicas": [
20+
{
21+
"PointInTimeRecoverySpecification": {
22+
"PointInTimeRecoveryEnabled": true,
23+
"RecoveryPeriodInDays": 5
24+
},
25+
"Region": "eu-west-2"
26+
},
27+
{
28+
"PointInTimeRecoverySpecification": {
29+
"PointInTimeRecoveryEnabled": true,
30+
"RecoveryPeriodInDays": 10
31+
},
32+
"Region": "eu-west-1"
33+
}
34+
],
35+
"StreamSpecification": {
36+
"StreamViewType": "NEW_AND_OLD_IMAGES"
37+
}
38+
},
39+
"UpdateReplacePolicy": "Delete",
40+
"DeletionPolicy": "Delete"
41+
}
42+
},
43+
"Parameters": {
44+
"BootstrapVersion": {
45+
"Type": "AWS::SSM::Parameter::Value<String>",
46+
"Default": "/cdk-bootstrap/hnb659fds/version",
47+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
48+
}
49+
},
50+
"Rules": {
51+
"CheckBootstrapVersion": {
52+
"Assertions": [
53+
{
54+
"Assert": {
55+
"Fn::Not": [
56+
{
57+
"Fn::Contains": [
58+
[
59+
"1",
60+
"2",
61+
"3",
62+
"4",
63+
"5"
64+
],
65+
{
66+
"Ref": "BootstrapVersion"
67+
}
68+
]
69+
}
70+
]
71+
},
72+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
73+
}
74+
]
75+
}
76+
}
77+
}

packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.pitr.js.snapshot/cdk.out

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.pitr.js.snapshot/integ.json

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.pitr.js.snapshot/manifest.json

+113
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.pitr.js.snapshot/tablev2pitrtestDefaultTestDeployAssertCC1E91C6.assets.json

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-dynamodb/test/integ.dynamodb-v2.pitr.js.snapshot/tablev2pitrtestDefaultTestDeployAssertCC1E91C6.template.json

+36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)