@gradientedge/cdk-utils 8.50.0 → 8.52.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.
|
@@ -116,7 +116,7 @@ class LambdaManager {
|
|
|
116
116
|
: undefined,
|
|
117
117
|
layers: layers,
|
|
118
118
|
logRetention: scope.props.logRetention ?? props.logRetention,
|
|
119
|
-
reservedConcurrentExecutions: props.reservedConcurrentExecutions,
|
|
119
|
+
reservedConcurrentExecutions: props.reservedConcurrentExecutions ?? 20,
|
|
120
120
|
role: role instanceof iam.Role ? role : undefined,
|
|
121
121
|
securityGroups: securityGroups,
|
|
122
122
|
timeout: props.timeoutInSecs ? cdk.Duration.seconds(props.timeoutInSecs) : cdk.Duration.minutes(15),
|
|
@@ -680,6 +680,15 @@ export interface TagProps {
|
|
|
680
680
|
key: string;
|
|
681
681
|
value: string;
|
|
682
682
|
}
|
|
683
|
+
/**
|
|
684
|
+
* @category cdk-utils.lambda-manager
|
|
685
|
+
* @subcategory Properties
|
|
686
|
+
*/
|
|
687
|
+
export interface ProvisionedConcurrencyProps {
|
|
688
|
+
minCapacity: number;
|
|
689
|
+
maxCapacity: number;
|
|
690
|
+
utilizationTarget: number;
|
|
691
|
+
}
|
|
683
692
|
/**
|
|
684
693
|
* @category cdk-utils.lambda-manager
|
|
685
694
|
* @subcategory Properties
|
|
@@ -690,6 +699,7 @@ export interface LambdaProps extends lambda.FunctionProps {
|
|
|
690
699
|
timeoutInSecs?: number;
|
|
691
700
|
excludeLastModifiedTimestamp?: boolean;
|
|
692
701
|
tags?: TagProps[];
|
|
702
|
+
provisionedConcurrency?: ProvisionedConcurrencyProps;
|
|
693
703
|
}
|
|
694
704
|
/**
|
|
695
705
|
* @category cdk-utils.lambda-manager
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradientedge/cdk-utils",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.52.0",
|
|
4
4
|
"description": "Utilities for AWS CDK provisioning",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@types/lodash": "^4.14.194",
|
|
49
|
-
"@types/node": "^
|
|
49
|
+
"@types/node": "^20.1.1",
|
|
50
50
|
"app-root-path": "^3.1.0",
|
|
51
|
-
"aws-cdk-lib": "^2.
|
|
52
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
|
53
|
-
"constructs": "^10.2.
|
|
51
|
+
"aws-cdk-lib": "^2.78.0",
|
|
52
|
+
"@aws-sdk/client-secrets-manager": "^3.329.0",
|
|
53
|
+
"constructs": "^10.2.17",
|
|
54
54
|
"lodash": "^4.17.21",
|
|
55
55
|
"moment": "^2.29.4",
|
|
56
56
|
"nconf": "^0.12.0",
|
|
@@ -58,31 +58,31 @@
|
|
|
58
58
|
"ts-node": "^10.9.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@babel/core": "^7.21.
|
|
62
|
-
"@babel/eslint-parser": "^7.21.
|
|
61
|
+
"@babel/core": "^7.21.8",
|
|
62
|
+
"@babel/eslint-parser": "^7.21.8",
|
|
63
63
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
64
|
-
"@types/jest": "^29.5.
|
|
65
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
66
|
-
"@typescript-eslint/parser": "^5.
|
|
67
|
-
"aws-cdk": "^2.
|
|
64
|
+
"@types/jest": "^29.5.1",
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
|
66
|
+
"@typescript-eslint/parser": "^5.59.5",
|
|
67
|
+
"aws-cdk": "^2.78.0",
|
|
68
68
|
"better-docs": "^2.7.2",
|
|
69
69
|
"codecov": "^3.8.3",
|
|
70
70
|
"commitizen": "^4.3.0",
|
|
71
71
|
"dotenv": "^16.0.3",
|
|
72
|
-
"eslint": "^8.
|
|
72
|
+
"eslint": "^8.40.0",
|
|
73
73
|
"eslint-config-prettier": "^8.8.0",
|
|
74
74
|
"eslint-plugin-import": "^2.27.5",
|
|
75
75
|
"husky": "^8.0.3",
|
|
76
76
|
"jest": "^29.5.0",
|
|
77
77
|
"jest-extended": "^3.2.4",
|
|
78
|
-
"jest-junit": "^
|
|
78
|
+
"jest-junit": "^16.0.0",
|
|
79
79
|
"jsdoc": "^4.0.2",
|
|
80
80
|
"jsdoc-babel": "^0.5.0",
|
|
81
81
|
"jsdoc-mermaid": "^1.0.0",
|
|
82
|
-
"prettier": "^2.8.
|
|
82
|
+
"prettier": "^2.8.8",
|
|
83
83
|
"prettier-plugin-organize-imports": "^3.2.2",
|
|
84
84
|
"rimraf": "^5.0.0",
|
|
85
|
-
"semantic-release": "^21.0.
|
|
85
|
+
"semantic-release": "^21.0.2",
|
|
86
86
|
"taffydb": "^2.7.3",
|
|
87
87
|
"ts-jest": "^29.1.0",
|
|
88
88
|
"ts-node": "^10.9.1",
|
|
@@ -118,7 +118,7 @@ export class LambdaManager {
|
|
|
118
118
|
: undefined,
|
|
119
119
|
layers: layers,
|
|
120
120
|
logRetention: scope.props.logRetention ?? props.logRetention,
|
|
121
|
-
reservedConcurrentExecutions: props.reservedConcurrentExecutions,
|
|
121
|
+
reservedConcurrentExecutions: props.reservedConcurrentExecutions ?? 20,
|
|
122
122
|
role: role instanceof iam.Role ? role : undefined,
|
|
123
123
|
securityGroups: securityGroups,
|
|
124
124
|
timeout: props.timeoutInSecs ? cdk.Duration.seconds(props.timeoutInSecs) : cdk.Duration.minutes(15),
|
|
@@ -728,6 +728,16 @@ export interface TagProps {
|
|
|
728
728
|
value: string
|
|
729
729
|
}
|
|
730
730
|
|
|
731
|
+
/**
|
|
732
|
+
* @category cdk-utils.lambda-manager
|
|
733
|
+
* @subcategory Properties
|
|
734
|
+
*/
|
|
735
|
+
export interface ProvisionedConcurrencyProps {
|
|
736
|
+
minCapacity: number
|
|
737
|
+
maxCapacity: number
|
|
738
|
+
utilizationTarget: number
|
|
739
|
+
}
|
|
740
|
+
|
|
731
741
|
/**
|
|
732
742
|
* @category cdk-utils.lambda-manager
|
|
733
743
|
* @subcategory Properties
|
|
@@ -738,6 +748,7 @@ export interface LambdaProps extends lambda.FunctionProps {
|
|
|
738
748
|
timeoutInSecs?: number
|
|
739
749
|
excludeLastModifiedTimestamp?: boolean
|
|
740
750
|
tags?: TagProps[]
|
|
751
|
+
provisionedConcurrency?: ProvisionedConcurrencyProps
|
|
741
752
|
}
|
|
742
753
|
|
|
743
754
|
/**
|