@lambda-kata/cdk 0.1.3-rc.50 → 0.1.3-rc.51
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.
- package/out/dist/index.js +30 -30
- package/out/tsc/src/mock-licensing.d.ts +18 -0
- package/package.json +2 -2
|
@@ -68,6 +68,10 @@ export declare class MockLicensingService implements LicensingService {
|
|
|
68
68
|
* Custom error message when simulating service errors.
|
|
69
69
|
*/
|
|
70
70
|
private serviceErrorMessage;
|
|
71
|
+
/**
|
|
72
|
+
* Flag to simulate entitled response without layerArn (service issue).
|
|
73
|
+
*/
|
|
74
|
+
private simulateEntitledWithoutLayerArn;
|
|
71
75
|
/**
|
|
72
76
|
* Sets an account as entitled with a specific Layer ARN.
|
|
73
77
|
*
|
|
@@ -147,6 +151,20 @@ export declare class MockLicensingService implements LicensingService {
|
|
|
147
151
|
* ```
|
|
148
152
|
*/
|
|
149
153
|
setSimulateServiceError(simulate: boolean, errorMessage?: string): void;
|
|
154
|
+
/**
|
|
155
|
+
* Configures the mock to simulate entitled response without layerArn.
|
|
156
|
+
* This simulates a licensing service issue where the account is entitled
|
|
157
|
+
* but the service fails to return the layer ARN.
|
|
158
|
+
*
|
|
159
|
+
* @param simulate - Whether to simulate entitled without layerArn
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* ```typescript
|
|
163
|
+
* // Simulate service returning entitled: true but no layerArn
|
|
164
|
+
* mockService.setSimulateEntitledWithoutLayerArn(true);
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
167
|
+
setSimulateEntitledWithoutLayerArn(simulate: boolean): void;
|
|
150
168
|
/**
|
|
151
169
|
* Check if an AWS account is entitled to use Lambda Kata.
|
|
152
170
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambda-kata/cdk",
|
|
3
|
-
"version": "0.1.3-rc.
|
|
3
|
+
"version": "0.1.3-rc.51",
|
|
4
4
|
"description": "AWS CDK integration for Lambda Kata - Node.js Lambdas running via Lambda Kata runtime",
|
|
5
5
|
"main": "out/dist/index.js",
|
|
6
6
|
"types": "out/tsc/src/index.d.ts",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@aws-sdk/client-lambda": "^3.500.0",
|
|
57
57
|
"@aws-sdk/client-s3": "^3.500.0",
|
|
58
58
|
"@aws-sdk/client-sts": "^3.500.0",
|
|
59
|
-
"@lambda-kata/licensing": "
|
|
59
|
+
"@lambda-kata/licensing": "0.1.26",
|
|
60
60
|
"dotenv": "^17.2.3",
|
|
61
61
|
"reflect-metadata": "^0.2.2"
|
|
62
62
|
},
|