Skip to content

Commit e315865

Browse files
ran-isenbergRan Isenberg
and
Ran Isenberg
authored
chore: update deps and use new point in time cdk code (#937)
--------- Co-authored-by: Ran Isenberg <[email protected]>
1 parent baa2d05 commit e315865

File tree

6 files changed

+318
-299
lines changed

6 files changed

+318
-299
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.11.2
29+
rev: v0.11.8
3030
hooks:
3131
# Run the Ruff linter.
3232
- id: ruff

cdk/service/api_db_construct.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ def _build_idempotency_table(self, id_: str) -> dynamodb.TableV2:
2222
billing=dynamodb.Billing.on_demand(),
2323
removal_policy=RemovalPolicy.DESTROY,
2424
time_to_live_attribute='expiration',
25-
point_in_time_recovery=True,
25+
point_in_time_recovery_specification=dynamodb.PointInTimeRecoverySpecification(
26+
point_in_time_recovery_enabled=True,
27+
recovery_period_in_days=35,
28+
),
2629
)
2730
CfnOutput(self, id=constants.IDEMPOTENCY_TABLE_NAME_OUTPUT, value=table.table_name).override_logical_id(
2831
constants.IDEMPOTENCY_TABLE_NAME_OUTPUT
@@ -37,7 +40,10 @@ def _build_db(self, id_prefix: str) -> dynamodb.TableV2:
3740
table_name=table_id,
3841
partition_key=dynamodb.Attribute(name='id', type=dynamodb.AttributeType.STRING),
3942
billing=dynamodb.Billing.on_demand(),
40-
point_in_time_recovery=True,
43+
point_in_time_recovery_specification=dynamodb.PointInTimeRecoverySpecification(
44+
point_in_time_recovery_enabled=True,
45+
recovery_period_in_days=1,
46+
),
4147
removal_policy=RemovalPolicy.DESTROY,
4248
)
4349
CfnOutput(self, id=constants.TABLE_NAME_OUTPUT, value=table.table_name).override_logical_id(constants.TABLE_NAME_OUTPUT)

docs/swagger/openapi.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,19 @@
170170
"type"
171171
],
172172
"title": "ValidationError"
173+
},
174+
"ResponseValidationError": {
175+
"properties": {
176+
"detail": {
177+
"items": {
178+
"$ref": "#/components/schemas/ValidationError"
179+
},
180+
"type": "array",
181+
"title": "Detail"
182+
}
183+
},
184+
"type": "object",
185+
"title": "ResponseValidationError"
173186
}
174187
}
175188
}

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.1006.0"
3+
"aws-cdk": "2.1013.0"
44
}
55
}

0 commit comments

Comments
 (0)