Skip to content

Commit 7d2bf91

Browse files
ran-isenbergRan Isenberg
andauthored
feature: add dynamo contributer insights (#972)
--------- Co-authored-by: Ran Isenberg <[email protected]>
1 parent 0caa22b commit 7d2bf91

File tree

5 files changed

+149
-69
lines changed

5 files changed

+149
-69
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
exclude: "^(?!helpers/)"
2727
- repo: https://github.com/astral-sh/ruff-pre-commit
2828
# Ruff version.
29-
rev: v0.12.11
29+
rev: v0.12.12
3030
hooks:
3131
# Run the Ruff linter.
3232
- id: ruff

cdk/service/api_db_construct.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ def _build_db(self, id_prefix: str) -> dynamodb.TableV2:
4545
recovery_period_in_days=1,
4646
),
4747
removal_policy=RemovalPolicy.DESTROY,
48+
contributor_insights_specification=dynamodb.ContributorInsightsSpecification(
49+
enabled=True, mode=dynamodb.ContributorInsightsMode.THROTTLED_KEYS
50+
),
4851
)
4952
CfnOutput(self, id=constants.TABLE_NAME_OUTPUT, value=table.table_name).override_logical_id(constants.TABLE_NAME_OUTPUT)
5053
return table

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"aws-cdk": "2.1027.0"
3+
"aws-cdk": "2.1028.0"
44
}
55
}

0 commit comments

Comments
 (0)