Skip to content

Commit d2c93e4

Browse files
alvazjorLeon Michalski
authored andcommitted
feat(dynamodb): adding ContributorInsightsMode feature (aws#35332)
### Reason for this change Adding new feature for DynamoDB Contributor Insights Mode: https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-dynamodb-table-contributorinsightsspecification.html#cfn-dynamodb-table-contributorinsightsspecification-mode ### Description of changes Changes to Table and TableV2 to provide CCI Mode ### Describe any new or updated permissions being added ### Description of how you validated changes Yes, 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*
1 parent a4aad78 commit d2c93e4

34 files changed

+2195
-482
lines changed

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

Lines changed: 21 additions & 0 deletions
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,120 @@
1+
{
2+
"Resources": {
3+
"TableV26B253703": {
4+
"Type": "AWS::DynamoDB::GlobalTable",
5+
"Properties": {
6+
"AttributeDefinitions": [
7+
{
8+
"AttributeName": "hashKey",
9+
"AttributeType": "S"
10+
},
11+
{
12+
"AttributeName": "sortKey",
13+
"AttributeType": "N"
14+
},
15+
{
16+
"AttributeName": "gsiHashKey",
17+
"AttributeType": "S"
18+
}
19+
],
20+
"BillingMode": "PAY_PER_REQUEST",
21+
"GlobalSecondaryIndexes": [
22+
{
23+
"IndexName": "gsi",
24+
"KeySchema": [
25+
{
26+
"AttributeName": "gsiHashKey",
27+
"KeyType": "HASH"
28+
}
29+
],
30+
"Projection": {
31+
"ProjectionType": "ALL"
32+
}
33+
}
34+
],
35+
"KeySchema": [
36+
{
37+
"AttributeName": "hashKey",
38+
"KeyType": "HASH"
39+
},
40+
{
41+
"AttributeName": "sortKey",
42+
"KeyType": "RANGE"
43+
}
44+
],
45+
"Replicas": [
46+
{
47+
"ContributorInsightsSpecification": {
48+
"Enabled": false
49+
},
50+
"GlobalSecondaryIndexes": [
51+
{
52+
"ContributorInsightsSpecification": {
53+
"Enabled": true,
54+
"Mode": "THROTTLED_KEYS"
55+
},
56+
"IndexName": "gsi"
57+
}
58+
],
59+
"Region": "eu-west-2"
60+
},
61+
{
62+
"ContributorInsightsSpecification": {
63+
"Enabled": true,
64+
"Mode": "ACCESSED_AND_THROTTLED_KEYS"
65+
},
66+
"GlobalSecondaryIndexes": [
67+
{
68+
"ContributorInsightsSpecification": {
69+
"Enabled": true,
70+
"Mode": "ACCESSED_AND_THROTTLED_KEYS"
71+
},
72+
"IndexName": "gsi"
73+
}
74+
],
75+
"Region": "eu-west-1"
76+
}
77+
],
78+
"StreamSpecification": {
79+
"StreamViewType": "NEW_AND_OLD_IMAGES"
80+
}
81+
},
82+
"UpdateReplacePolicy": "Retain",
83+
"DeletionPolicy": "Retain"
84+
}
85+
},
86+
"Parameters": {
87+
"BootstrapVersion": {
88+
"Type": "AWS::SSM::Parameter::Value<String>",
89+
"Default": "/cdk-bootstrap/hnb659fds/version",
90+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
91+
}
92+
},
93+
"Rules": {
94+
"CheckBootstrapVersion": {
95+
"Assertions": [
96+
{
97+
"Assert": {
98+
"Fn::Not": [
99+
{
100+
"Fn::Contains": [
101+
[
102+
"1",
103+
"2",
104+
"3",
105+
"4",
106+
"5"
107+
],
108+
{
109+
"Ref": "BootstrapVersion"
110+
}
111+
]
112+
}
113+
]
114+
},
115+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
116+
}
117+
]
118+
}
119+
}
120+
}

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

Lines changed: 1 addition & 0 deletions
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.cci.js.snapshot/integ.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)