@jjrawlins/cdk-iam-policy-builder-helper 0.0.84 → 0.0.86
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/.jsii +4 -4
- package/cdkiampolicybuilderhelper/jsii/jsii.go +2 -2
- package/cdkiampolicybuilderhelper/version +1 -1
- package/lib/constructs/Actions.d.ts +19 -0
- package/lib/constructs/Actions.js +20 -1
- package/methods_list.txt +17 -0
- package/node_modules/@aws/lambda-invoke-store/README.md +35 -27
- package/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +104 -46
- package/node_modules/@aws/lambda-invoke-store/dist-es/invoke-store.js +104 -46
- package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.benchmark.d.ts +1 -0
- package/node_modules/@aws/lambda-invoke-store/dist-types/invoke-store.d.ts +40 -47
- package/node_modules/@aws/lambda-invoke-store/package.json +2 -2
- package/node_modules/@aws-sdk/client-iam/package.json +3 -3
- package/node_modules/@aws-sdk/client-sso/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/recursionDetectionMiddleware.js +2 -1
- package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.js +2 -1
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/package.json +2 -2
|
@@ -1,57 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
interface Context {
|
|
2
|
+
[key: string]: unknown;
|
|
3
|
+
[key: symbol]: unknown;
|
|
4
|
+
}
|
|
5
|
+
declare global {
|
|
6
|
+
var awslambda: {
|
|
7
|
+
InvokeStore?: InvokeStoreBase;
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
};
|
|
7
10
|
}
|
|
8
11
|
/**
|
|
9
|
-
*
|
|
12
|
+
* Base class for AWS Lambda context storage implementations.
|
|
13
|
+
* Provides core functionality for managing Lambda execution context.
|
|
14
|
+
*
|
|
15
|
+
* Implementations handle either single-context (InvokeStoreSingle) or
|
|
16
|
+
* multi-context (InvokeStoreMulti) scenarios based on Lambda's execution environment.
|
|
17
|
+
*
|
|
18
|
+
* @public
|
|
10
19
|
*/
|
|
11
|
-
declare class
|
|
12
|
-
private static storage;
|
|
20
|
+
export declare abstract class InvokeStoreBase {
|
|
13
21
|
static readonly PROTECTED_KEYS: {
|
|
14
22
|
readonly REQUEST_ID: symbol;
|
|
15
23
|
readonly X_RAY_TRACE_ID: symbol;
|
|
16
24
|
readonly TENANT_ID: symbol;
|
|
17
25
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
*/
|
|
42
|
-
static getXRayTraceId(): string | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* Get the current tenant ID
|
|
45
|
-
*/
|
|
46
|
-
static getTenantId(): string | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* Check if we're currently within an invoke context
|
|
49
|
-
*/
|
|
50
|
-
static hasContext(): boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Check if a key is protected (readonly Lambda context field)
|
|
53
|
-
*/
|
|
54
|
-
private static isProtectedKey;
|
|
26
|
+
abstract getContext(): Context | undefined;
|
|
27
|
+
abstract hasContext(): boolean;
|
|
28
|
+
abstract get<T = unknown>(key: string | symbol): T | undefined;
|
|
29
|
+
abstract set<T = unknown>(key: string | symbol, value: T): void;
|
|
30
|
+
abstract run<T>(context: Context, fn: () => T): T;
|
|
31
|
+
protected isProtectedKey(key: string | symbol): boolean;
|
|
32
|
+
getRequestId(): string;
|
|
33
|
+
getXRayTraceId(): string | undefined;
|
|
34
|
+
getTenantId(): string | undefined;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Provides access to AWS Lambda execution context storage.
|
|
38
|
+
* Supports both single-context and multi-context environments through different implementations.
|
|
39
|
+
*
|
|
40
|
+
* The store manages protected Lambda context fields and allows storing/retrieving custom values
|
|
41
|
+
* within the execution context.
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
export declare namespace InvokeStore {
|
|
45
|
+
function getInstanceAsync(): Promise<InvokeStoreBase>;
|
|
46
|
+
const _testing: {
|
|
47
|
+
reset: () => void;
|
|
48
|
+
} | undefined;
|
|
55
49
|
}
|
|
56
|
-
export declare const InvokeStore: typeof InvokeStoreImpl;
|
|
57
50
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws/lambda-invoke-store",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Invoke scoped data storage for AWS Lambda Node.js Runtime Environment",
|
|
5
5
|
"homepage": "https://github.com/awslabs/aws-lambda-invoke-store",
|
|
6
6
|
"main": "./dist-cjs/invoke-store.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"build": "yarn clean && yarn build:types && node ./scripts/build-rollup.js",
|
|
33
33
|
"build:types": "tsc -p tsconfig.types.json",
|
|
34
34
|
"clean": "rm -rf dist-types dist-cjs dist-es",
|
|
35
|
-
"test": "vitest run",
|
|
35
|
+
"test": "vitest run --reporter verbose",
|
|
36
36
|
"test:watch": "vitest watch",
|
|
37
37
|
"release": "yarn build && changeset publish"
|
|
38
38
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iam",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.933.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-iam",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.932.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.933.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.930.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.930.0",
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.933.0",
|
|
28
28
|
"@aws-sdk/middleware-user-agent": "3.932.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.930.0",
|
|
30
30
|
"@aws-sdk/types": "3.930.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sso",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.933.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sso",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@aws-sdk/core": "3.932.0",
|
|
24
24
|
"@aws-sdk/middleware-host-header": "3.930.0",
|
|
25
25
|
"@aws-sdk/middleware-logger": "3.930.0",
|
|
26
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
26
|
+
"@aws-sdk/middleware-recursion-detection": "3.933.0",
|
|
27
27
|
"@aws-sdk/middleware-user-agent": "3.932.0",
|
|
28
28
|
"@aws-sdk/region-config-resolver": "3.930.0",
|
|
29
29
|
"@aws-sdk/types": "3.930.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.933.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"@aws-sdk/credential-provider-env": "3.932.0",
|
|
33
33
|
"@aws-sdk/credential-provider-http": "3.932.0",
|
|
34
34
|
"@aws-sdk/credential-provider-process": "3.932.0",
|
|
35
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
36
|
-
"@aws-sdk/credential-provider-web-identity": "3.
|
|
37
|
-
"@aws-sdk/nested-clients": "3.
|
|
35
|
+
"@aws-sdk/credential-provider-sso": "3.933.0",
|
|
36
|
+
"@aws-sdk/credential-provider-web-identity": "3.933.0",
|
|
37
|
+
"@aws-sdk/nested-clients": "3.933.0",
|
|
38
38
|
"@aws-sdk/types": "3.930.0",
|
|
39
39
|
"@smithy/credential-provider-imds": "^4.2.5",
|
|
40
40
|
"@smithy/property-provider": "^4.2.5",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.933.0",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@aws-sdk/credential-provider-env": "3.932.0",
|
|
35
35
|
"@aws-sdk/credential-provider-http": "3.932.0",
|
|
36
|
-
"@aws-sdk/credential-provider-ini": "3.
|
|
36
|
+
"@aws-sdk/credential-provider-ini": "3.933.0",
|
|
37
37
|
"@aws-sdk/credential-provider-process": "3.932.0",
|
|
38
|
-
"@aws-sdk/credential-provider-sso": "3.
|
|
39
|
-
"@aws-sdk/credential-provider-web-identity": "3.
|
|
38
|
+
"@aws-sdk/credential-provider-sso": "3.933.0",
|
|
39
|
+
"@aws-sdk/credential-provider-web-identity": "3.933.0",
|
|
40
40
|
"@aws-sdk/types": "3.930.0",
|
|
41
41
|
"@smithy/credential-provider-imds": "^4.2.5",
|
|
42
42
|
"@smithy/property-provider": "^4.2.5",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.933.0",
|
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/client-sso": "3.
|
|
29
|
+
"@aws-sdk/client-sso": "3.933.0",
|
|
30
30
|
"@aws-sdk/core": "3.932.0",
|
|
31
|
-
"@aws-sdk/token-providers": "3.
|
|
31
|
+
"@aws-sdk/token-providers": "3.933.0",
|
|
32
32
|
"@aws-sdk/types": "3.930.0",
|
|
33
33
|
"@smithy/property-provider": "^4.2.5",
|
|
34
34
|
"@smithy/shared-ini-file-loader": "^4.4.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.933.0",
|
|
4
4
|
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"license": "Apache-2.0",
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@aws-sdk/core": "3.932.0",
|
|
38
|
-
"@aws-sdk/nested-clients": "3.
|
|
38
|
+
"@aws-sdk/nested-clients": "3.933.0",
|
|
39
39
|
"@aws-sdk/types": "3.930.0",
|
|
40
40
|
"@smithy/property-provider": "^4.2.5",
|
|
41
41
|
"@smithy/shared-ini-file-loader": "^4.4.0",
|
|
@@ -18,7 +18,8 @@ const recursionDetectionMiddleware = () => (next) => async (args) => {
|
|
|
18
18
|
}
|
|
19
19
|
const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
|
|
20
20
|
const traceIdFromEnv = process.env[ENV_TRACE_ID];
|
|
21
|
-
const
|
|
21
|
+
const invokeStore = await lambda_invoke_store_1.InvokeStore.getInstanceAsync();
|
|
22
|
+
const traceIdFromInvokeStore = invokeStore?.getXRayTraceId();
|
|
22
23
|
const traceId = traceIdFromInvokeStore ?? traceIdFromEnv;
|
|
23
24
|
const nonEmptyString = (str) => typeof str === "string" && str.length > 0;
|
|
24
25
|
if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
|
package/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/recursionDetectionMiddleware.js
CHANGED
|
@@ -15,7 +15,8 @@ export const recursionDetectionMiddleware = () => (next) => async (args) => {
|
|
|
15
15
|
}
|
|
16
16
|
const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME];
|
|
17
17
|
const traceIdFromEnv = process.env[ENV_TRACE_ID];
|
|
18
|
-
const
|
|
18
|
+
const invokeStore = await InvokeStore.getInstanceAsync();
|
|
19
|
+
const traceIdFromInvokeStore = invokeStore?.getXRayTraceId();
|
|
19
20
|
const traceId = traceIdFromInvokeStore ?? traceIdFromEnv;
|
|
20
21
|
const nonEmptyString = (str) => typeof str === "string" && str.length > 0;
|
|
21
22
|
if (nonEmptyString(functionName) && nonEmptyString(traceId)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-recursion-detection",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.933.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-recursion-detection",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@aws-sdk/types": "3.930.0",
|
|
28
|
-
"@aws/lambda-invoke-store": "^0.
|
|
28
|
+
"@aws/lambda-invoke-store": "^0.2.0",
|
|
29
29
|
"@smithy/protocol-http": "^5.3.5",
|
|
30
30
|
"@smithy/types": "^4.9.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/nested-clients",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.933.0",
|
|
4
4
|
"description": "Nested clients for AWS SDK packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@aws-sdk/core": "3.932.0",
|
|
33
33
|
"@aws-sdk/middleware-host-header": "3.930.0",
|
|
34
34
|
"@aws-sdk/middleware-logger": "3.930.0",
|
|
35
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
+
"@aws-sdk/middleware-recursion-detection": "3.933.0",
|
|
36
36
|
"@aws-sdk/middleware-user-agent": "3.932.0",
|
|
37
37
|
"@aws-sdk/region-config-resolver": "3.930.0",
|
|
38
38
|
"@aws-sdk/types": "3.930.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.933.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@aws-sdk/core": "3.932.0",
|
|
33
|
-
"@aws-sdk/nested-clients": "3.
|
|
33
|
+
"@aws-sdk/nested-clients": "3.933.0",
|
|
34
34
|
"@aws-sdk/types": "3.930.0",
|
|
35
35
|
"@smithy/property-provider": "^4.2.5",
|
|
36
36
|
"@smithy/shared-ini-file-loader": "^4.4.0",
|
package/package.json
CHANGED
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"constructs": ">=10.0.5 <11.0.0"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@aws-sdk/client-iam": "^3.
|
|
73
|
+
"@aws-sdk/client-iam": "^3.933.0",
|
|
74
74
|
"axios": "^1.8.2",
|
|
75
75
|
"jsonc-parser": "^3.3.1"
|
|
76
76
|
},
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"publishConfig": {
|
|
100
100
|
"access": "public"
|
|
101
101
|
},
|
|
102
|
-
"version": "0.0.
|
|
102
|
+
"version": "0.0.86",
|
|
103
103
|
"jest": {
|
|
104
104
|
"coverageProvider": "v8",
|
|
105
105
|
"testMatch": [
|