@jjrawlins/cdk-iam-policy-builder-helper 0.0.69 → 0.0.71
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/cdk-iam-policy-builder-helper/go.mod +1 -1
- package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
- package/cdk-iam-policy-builder-helper/version +1 -1
- package/lib/constructs/Actions.d.ts +4 -0
- package/lib/constructs/Actions.js +5 -1
- package/methods_list.txt +4 -0
- package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/node_modules/@aws-sdk/client-iam/package.json +34 -34
- package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js +1 -1
- package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js +1 -1
- package/node_modules/@aws-sdk/client-sso/package.json +32 -32
- package/node_modules/@aws-sdk/core/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +108 -45
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +55 -46
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +54 -0
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/defaultProvider.d.ts +3 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain.d.ts +18 -0
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/defaultProvider.d.ts +3 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/runtime/memoize-chain.d.ts +19 -0
- package/node_modules/@aws-sdk/credential-provider-node/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +13 -6
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +13 -6
- package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +7 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.js +20 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.native.js +6 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/stsRegionDefaultResolver.browser.js +3 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/stsRegionDefaultResolver.js +16 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/stsRegionDefaultResolver.native.js +3 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/stsRegionDefaultResolver.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/stsRegionDefaultResolver.d.ts +14 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/stsRegionDefaultResolver.native.d.ts +4 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/stsRegionDefaultResolver.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/stsRegionDefaultResolver.d.ts +7 -0
- package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/stsRegionDefaultResolver.native.d.ts +1 -0
- package/node_modules/@aws-sdk/region-config-resolver/package.json +10 -5
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +1 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +1 -0
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +5 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +5 -14
- package/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js +5 -14
- package/node_modules/@smithy/core/package.json +7 -7
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/node_modules/@smithy/hash-node/package.json +2 -2
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/package.json +8 -8
- package/node_modules/@smithy/middleware-serde/package.json +3 -3
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -4
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +5 -2
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +2 -1
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-es/index.js +1 -0
- package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/package.json +4 -4
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +17 -4
- package/node_modules/@smithy/util-waiter/dist-es/circularReplacer.js +12 -0
- package/node_modules/@smithy/util-waiter/dist-es/poller.js +2 -1
- package/node_modules/@smithy/util-waiter/dist-es/waiter.js +4 -3
- package/node_modules/@smithy/util-waiter/dist-types/circularReplacer.d.ts +6 -0
- package/node_modules/@smithy/util-waiter/dist-types/poller.d.ts +1 -1
- package/node_modules/@smithy/util-waiter/dist-types/ts3.4/circularReplacer.d.ts +6 -0
- package/node_modules/@smithy/util-waiter/dist-types/ts3.4/poller.d.ts +1 -1
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-retry",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.4",
|
|
4
4
|
"description": "Shared retry utilities to be used in middleware packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@smithy/service-error-classification": "^4.2.
|
|
35
|
-
"@smithy/types": "^4.8.
|
|
34
|
+
"@smithy/service-error-classification": "^4.2.4",
|
|
35
|
+
"@smithy/types": "^4.8.1",
|
|
36
36
|
"tslib": "^2.6.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-stream",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.5",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline util-stream",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
33
|
-
"@smithy/node-http-handler": "^4.4.
|
|
34
|
-
"@smithy/types": "^4.8.
|
|
32
|
+
"@smithy/fetch-http-handler": "^5.3.5",
|
|
33
|
+
"@smithy/node-http-handler": "^4.4.4",
|
|
34
|
+
"@smithy/types": "^4.8.1",
|
|
35
35
|
"@smithy/util-base64": "^4.3.0",
|
|
36
36
|
"@smithy/util-buffer-from": "^4.2.0",
|
|
37
37
|
"@smithy/util-hex-encoding": "^4.2.0",
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const getCircularReplacer = () => {
|
|
4
|
+
const seen = new WeakSet();
|
|
5
|
+
return (key, value) => {
|
|
6
|
+
if (typeof value === "object" && value !== null) {
|
|
7
|
+
if (seen.has(value)) {
|
|
8
|
+
return "[Circular]";
|
|
9
|
+
}
|
|
10
|
+
seen.add(value);
|
|
11
|
+
}
|
|
12
|
+
return value;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
|
|
3
16
|
const sleep = (seconds) => {
|
|
4
17
|
return new Promise((resolve) => setTimeout(resolve, seconds * 1000));
|
|
5
18
|
};
|
|
@@ -21,7 +34,7 @@ const checkExceptions = (result) => {
|
|
|
21
34
|
const abortError = new Error(`${JSON.stringify({
|
|
22
35
|
...result,
|
|
23
36
|
reason: "Request was aborted",
|
|
24
|
-
})}`);
|
|
37
|
+
}, getCircularReplacer())}`);
|
|
25
38
|
abortError.name = "AbortError";
|
|
26
39
|
throw abortError;
|
|
27
40
|
}
|
|
@@ -29,12 +42,12 @@ const checkExceptions = (result) => {
|
|
|
29
42
|
const timeoutError = new Error(`${JSON.stringify({
|
|
30
43
|
...result,
|
|
31
44
|
reason: "Waiter has timed out",
|
|
32
|
-
})}`);
|
|
45
|
+
}, getCircularReplacer())}`);
|
|
33
46
|
timeoutError.name = "TimeoutError";
|
|
34
47
|
throw timeoutError;
|
|
35
48
|
}
|
|
36
49
|
else if (result.state !== exports.WaiterState.SUCCESS) {
|
|
37
|
-
throw new Error(`${JSON.stringify(result)}`);
|
|
50
|
+
throw new Error(`${JSON.stringify(result, getCircularReplacer())}`);
|
|
38
51
|
}
|
|
39
52
|
return result;
|
|
40
53
|
};
|
|
@@ -94,7 +107,7 @@ const createMessageFromResponse = (reason) => {
|
|
|
94
107
|
}
|
|
95
108
|
return `${reason.$metadata.httpStatusCode}: OK`;
|
|
96
109
|
}
|
|
97
|
-
return String(reason?.message ?? JSON.stringify(reason) ?? "Unknown");
|
|
110
|
+
return String(reason?.message ?? JSON.stringify(reason, getCircularReplacer()) ?? "Unknown");
|
|
98
111
|
};
|
|
99
112
|
|
|
100
113
|
const validateWaiterOptions = (options) => {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getCircularReplacer } from "./circularReplacer";
|
|
1
2
|
import { sleep } from "./utils/sleep";
|
|
2
3
|
import { WaiterState } from "./waiter";
|
|
3
4
|
const exponentialBackoffWithJitter = (minDelay, maxDelay, attemptCeiling, attempt) => {
|
|
@@ -55,5 +56,5 @@ const createMessageFromResponse = (reason) => {
|
|
|
55
56
|
}
|
|
56
57
|
return `${reason.$metadata.httpStatusCode}: OK`;
|
|
57
58
|
}
|
|
58
|
-
return String(reason?.message ?? JSON.stringify(reason) ?? "Unknown");
|
|
59
|
+
return String(reason?.message ?? JSON.stringify(reason, getCircularReplacer()) ?? "Unknown");
|
|
59
60
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getCircularReplacer } from "./circularReplacer";
|
|
1
2
|
export const waiterServiceDefaults = {
|
|
2
3
|
minDelay: 2,
|
|
3
4
|
maxDelay: 120,
|
|
@@ -15,7 +16,7 @@ export const checkExceptions = (result) => {
|
|
|
15
16
|
const abortError = new Error(`${JSON.stringify({
|
|
16
17
|
...result,
|
|
17
18
|
reason: "Request was aborted",
|
|
18
|
-
})}`);
|
|
19
|
+
}, getCircularReplacer())}`);
|
|
19
20
|
abortError.name = "AbortError";
|
|
20
21
|
throw abortError;
|
|
21
22
|
}
|
|
@@ -23,12 +24,12 @@ export const checkExceptions = (result) => {
|
|
|
23
24
|
const timeoutError = new Error(`${JSON.stringify({
|
|
24
25
|
...result,
|
|
25
26
|
reason: "Waiter has timed out",
|
|
26
|
-
})}`);
|
|
27
|
+
}, getCircularReplacer())}`);
|
|
27
28
|
timeoutError.name = "TimeoutError";
|
|
28
29
|
throw timeoutError;
|
|
29
30
|
}
|
|
30
31
|
else if (result.state !== WaiterState.SUCCESS) {
|
|
31
|
-
throw new Error(`${JSON.stringify(result)}`);
|
|
32
|
+
throw new Error(`${JSON.stringify(result, getCircularReplacer())}`);
|
|
32
33
|
}
|
|
33
34
|
return result;
|
|
34
35
|
};
|
|
@@ -5,6 +5,6 @@ import type { WaiterOptions, WaiterResult } from "./waiter";
|
|
|
5
5
|
* @param params - options passed to the waiter.
|
|
6
6
|
* @param client - AWS SDK Client
|
|
7
7
|
* @param input - client input
|
|
8
|
-
* @param
|
|
8
|
+
* @param acceptorChecks - function that checks the acceptor states on each poll.
|
|
9
9
|
*/
|
|
10
10
|
export declare const runPolling: <Client, Input>({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }: WaiterOptions<Client>, input: Input, acceptorChecks: (client: Client, input: Input) => Promise<WaiterResult>) => Promise<WaiterResult>;
|
|
@@ -5,6 +5,6 @@ import { WaiterOptions, WaiterResult } from "./waiter";
|
|
|
5
5
|
* @param params - options passed to the waiter.
|
|
6
6
|
* @param client - AWS SDK Client
|
|
7
7
|
* @param input - client input
|
|
8
|
-
* @param
|
|
8
|
+
* @param acceptorChecks - function that checks the acceptor states on each poll.
|
|
9
9
|
*/
|
|
10
10
|
export declare const runPolling: <Client, Input>({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }: WaiterOptions<Client>, input: Input, acceptorChecks: (client: Client, input: Input) => Promise<WaiterResult>) => Promise<WaiterResult>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-waiter",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.4",
|
|
4
4
|
"description": "Shared utilities for client waiters for the AWS SDK",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@smithy/abort-controller": "^4.2.
|
|
7
|
-
"@smithy/types": "^4.8.
|
|
6
|
+
"@smithy/abort-controller": "^4.2.4",
|
|
7
|
+
"@smithy/types": "^4.8.1",
|
|
8
8
|
"tslib": "^2.6.2"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
package/package.json
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"organization": false
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@aws-sdk/types": "^3.
|
|
43
|
+
"@aws-sdk/types": "^3.921.0",
|
|
44
44
|
"@stylistic/eslint-plugin": "^2",
|
|
45
45
|
"@types/jest": "^29.5.14",
|
|
46
46
|
"@types/node": "^20",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"jest": "^29.7.0",
|
|
56
56
|
"jest-junit": "^16",
|
|
57
57
|
"jsii": "~5.8.0",
|
|
58
|
-
"jsii-diff": "^1.
|
|
58
|
+
"jsii-diff": "^1.118.0",
|
|
59
59
|
"jsii-docgen": "^10.5.0",
|
|
60
|
-
"jsii-pacmak": "^1.
|
|
60
|
+
"jsii-pacmak": "^1.118.0",
|
|
61
61
|
"jsii-rosetta": "~5.8.0",
|
|
62
|
-
"projen": "^0.98.
|
|
62
|
+
"projen": "^0.98.6",
|
|
63
63
|
"ts-jest": "^29.4.5",
|
|
64
64
|
"ts-node": "^10.9.2",
|
|
65
65
|
"typescript": "^5.9.3"
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"constructs": "^10.0.5"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@aws-sdk/client-iam": "^3.
|
|
72
|
+
"@aws-sdk/client-iam": "^3.921.0",
|
|
73
73
|
"axios": "^1.8.2",
|
|
74
74
|
"constructs": "^10.4.2",
|
|
75
75
|
"jsonc-parser": "^3.3.1"
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"publishConfig": {
|
|
102
102
|
"access": "public"
|
|
103
103
|
},
|
|
104
|
-
"version": "0.0.
|
|
104
|
+
"version": "0.0.71",
|
|
105
105
|
"jest": {
|
|
106
106
|
"coverageProvider": "v8",
|
|
107
107
|
"testMatch": [
|