Skip to content

Commit 587cf63

Browse files
Feat/fix npm audit issues (#657)
* fix npm audit * soft lock aws-cdk versions to avoid breaking changes * update obsolete cdk syntax * fix prettier issue * update jest snapshots * fix pytest failed test cases
1 parent 14ba709 commit 587cf63

File tree

11 files changed

+368
-169
lines changed

11 files changed

+368
-169
lines changed

lib/authentication/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export class Authentication extends Construct {
2626
: cdk.RemovalPolicy.DESTROY,
2727
selfSignUpEnabled: false,
2828
mfa: cognito.Mfa.OPTIONAL,
29-
advancedSecurityMode: cognito.AdvancedSecurityMode.ENFORCED,
29+
featurePlan: cognito.FeaturePlan.PLUS,
30+
standardThreatProtectionMode:
31+
cognito.StandardThreatProtectionMode.FULL_FUNCTION,
3032
autoVerify: { email: true, phone: true },
3133
signInAliases: {
3234
email: true,

lib/chatbot-api/application-dynamodb-tables/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ export class ApplicationDynamoDBTables extends Construct {
3333
props.retainOnDelete === true
3434
? cdk.RemovalPolicy.RETAIN_ON_UPDATE_OR_DELETE
3535
: cdk.RemovalPolicy.DESTROY,
36-
pointInTimeRecovery: true,
36+
pointInTimeRecoverySpecification: {
37+
pointInTimeRecoveryEnabled: true,
38+
},
3739
deletionProtection: props.deletionProtection,
3840
});
3941

lib/chatbot-api/chatbot-dynamodb-tables/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ export class ChatBotDynamoDBTables extends Construct {
3434
props.retainOnDelete === true
3535
? cdk.RemovalPolicy.RETAIN_ON_UPDATE_OR_DELETE
3636
: cdk.RemovalPolicy.DESTROY,
37-
pointInTimeRecovery: true,
37+
pointInTimeRecoverySpecification: {
38+
pointInTimeRecoveryEnabled: true,
39+
},
3840
deletionProtection: props.deletionProtection,
3941
});
4042

lib/rag-engines/rag-dynamodb-tables/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ export class RagDynamoDBTables extends Construct {
3535
? dynamodb.TableEncryption.CUSTOMER_MANAGED
3636
: dynamodb.TableEncryption.AWS_MANAGED,
3737
encryptionKey: props.kmsKey,
38-
pointInTimeRecovery: true,
38+
pointInTimeRecoverySpecification: {
39+
pointInTimeRecoveryEnabled: true,
40+
},
3941
removalPolicy:
4042
props.retainOnDelete === true
4143
? cdk.RemovalPolicy.RETAIN_ON_UPDATE_OR_DELETE
@@ -69,7 +71,9 @@ export class RagDynamoDBTables extends Construct {
6971
? dynamodb.TableEncryption.CUSTOMER_MANAGED
7072
: dynamodb.TableEncryption.AWS_MANAGED,
7173
encryptionKey: props.kmsKey,
72-
pointInTimeRecovery: true,
74+
pointInTimeRecoverySpecification: {
75+
pointInTimeRecoveryEnabled: true,
76+
},
7377
removalPolicy:
7478
props.retainOnDelete === true
7579
? cdk.RemovalPolicy.RETAIN_ON_UPDATE_OR_DELETE

0 commit comments

Comments
 (0)