@gradientedge/cdk-utils 8.67.0 → 8.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -130,6 +130,7 @@ class LambdaManager {
130
130
  if (lambdaFunction.deadLetterQueue && props.dlq?.retriesEnabled) {
131
131
  lambdaFunction.addEventSource(new eventSources.SqsEventSource(lambdaFunction.deadLetterQueue, {
132
132
  reportBatchItemFailures: true,
133
+ batchSize: props.dlq.retryBatchSize ?? 1,
133
134
  }));
134
135
  }
135
136
  if (props.lambdaAliases && props.lambdaAliases.length > 0) {
@@ -227,6 +228,7 @@ class LambdaManager {
227
228
  if (lambdaFunction.deadLetterQueue && props.dlq?.retriesEnabled) {
228
229
  lambdaFunction.addEventSource(new eventSources.SqsEventSource(lambdaFunction.deadLetterQueue, {
229
230
  reportBatchItemFailures: true,
231
+ batchSize: props.dlq.retryBatchSize ?? 1,
230
232
  }));
231
233
  }
232
234
  utils.createCfnOutput(`${id}-lambdaArn`, scope, lambdaFunction.functionArn);
@@ -846,5 +846,6 @@ export interface QueueProps extends sqs.QueueProps {
846
846
  retentionInDays?: number;
847
847
  tags?: TagProps[];
848
848
  retriesEnabled?: boolean;
849
+ retryBatchSize?: number;
849
850
  }
850
851
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "8.67.0",
3
+ "version": "8.68.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -46,13 +46,13 @@
46
46
  }
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/client-secrets-manager": "^3.338.0",
49
+ "@aws-sdk/client-secrets-manager": "^3.341.0",
50
50
  "@types/lodash": "^4.14.195",
51
- "@types/node": "^20.2.4",
51
+ "@types/node": "^20.2.5",
52
52
  "@types/uuid": "^9.0.1",
53
53
  "app-root-path": "^3.1.0",
54
54
  "aws-cdk-lib": "^2.81.0",
55
- "constructs": "^10.2.33",
55
+ "constructs": "^10.2.37",
56
56
  "lodash": "^4.17.21",
57
57
  "moment": "^2.29.4",
58
58
  "nconf": "^0.12.0",
@@ -61,12 +61,12 @@
61
61
  "uuid": "^9.0.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@babel/core": "^7.21.8",
64
+ "@babel/core": "^7.22.1",
65
65
  "@babel/eslint-parser": "^7.21.8",
66
66
  "@babel/plugin-proposal-class-properties": "^7.18.6",
67
67
  "@types/jest": "^29.5.1",
68
- "@typescript-eslint/eslint-plugin": "^5.59.7",
69
- "@typescript-eslint/parser": "^5.59.7",
68
+ "@typescript-eslint/eslint-plugin": "^5.59.8",
69
+ "@typescript-eslint/parser": "^5.59.8",
70
70
  "aws-cdk": "^2.81.0",
71
71
  "better-docs": "^2.7.2",
72
72
  "codecov": "^3.8.3",
@@ -76,7 +76,7 @@
76
76
  "eslint": "^8.41.0",
77
77
  "eslint-config-prettier": "^8.8.0",
78
78
  "eslint-plugin-import": "^2.27.5",
79
- "eslint-plugin-jsdoc": "^44.2.5",
79
+ "eslint-plugin-jsdoc": "^45.0.0",
80
80
  "husky": "^8.0.3",
81
81
  "jest": "^29.5.0",
82
82
  "jest-extended": "^3.2.4",
@@ -135,6 +135,7 @@ export class LambdaManager {
135
135
  lambdaFunction.addEventSource(
136
136
  new eventSources.SqsEventSource(lambdaFunction.deadLetterQueue, {
137
137
  reportBatchItemFailures: true,
138
+ batchSize: props.dlq.retryBatchSize ?? 1,
138
139
  })
139
140
  )
140
141
  }
@@ -284,6 +285,7 @@ export class LambdaManager {
284
285
  lambdaFunction.addEventSource(
285
286
  new eventSources.SqsEventSource(lambdaFunction.deadLetterQueue, {
286
287
  reportBatchItemFailures: true,
288
+ batchSize: props.dlq.retryBatchSize ?? 1,
287
289
  })
288
290
  )
289
291
  }
@@ -907,4 +907,5 @@ export interface QueueProps extends sqs.QueueProps {
907
907
  retentionInDays?: number
908
908
  tags?: TagProps[]
909
909
  retriesEnabled?: boolean
910
+ retryBatchSize?: number
910
911
  }