@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.
Files changed (113) hide show
  1. package/.jsii +4 -4
  2. package/cdk-iam-policy-builder-helper/go.mod +1 -1
  3. package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
  4. package/cdk-iam-policy-builder-helper/version +1 -1
  5. package/lib/constructs/Actions.d.ts +4 -0
  6. package/lib/constructs/Actions.js +5 -1
  7. package/methods_list.txt +4 -0
  8. package/node_modules/@aws-sdk/client-iam/dist-types/runtimeConfig.d.ts +1 -1
  9. package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  10. package/node_modules/@aws-sdk/client-iam/package.json +34 -34
  11. package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js +1 -1
  12. package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js +1 -1
  13. package/node_modules/@aws-sdk/client-sso/package.json +32 -32
  14. package/node_modules/@aws-sdk/core/package.json +11 -11
  15. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  16. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  17. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  18. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +108 -45
  19. package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +55 -46
  20. package/node_modules/@aws-sdk/credential-provider-node/dist-es/runtime/memoize-chain.js +54 -0
  21. package/node_modules/@aws-sdk/credential-provider-node/dist-types/defaultProvider.d.ts +3 -2
  22. package/node_modules/@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain.d.ts +18 -0
  23. package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/defaultProvider.d.ts +3 -2
  24. package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/runtime/memoize-chain.d.ts +19 -0
  25. package/node_modules/@aws-sdk/credential-provider-node/package.json +13 -13
  26. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  27. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  28. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  29. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  30. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  31. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  32. package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
  33. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +1 -1
  34. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +13 -6
  35. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +1 -1
  36. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +13 -6
  37. package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
  38. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +7 -0
  39. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.js +20 -0
  40. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/stsRegionDefaultResolver.native.js +6 -0
  41. package/node_modules/@aws-sdk/region-config-resolver/dist-es/index.js +1 -0
  42. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/stsRegionDefaultResolver.browser.js +3 -0
  43. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/stsRegionDefaultResolver.js +16 -0
  44. package/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/stsRegionDefaultResolver.native.js +3 -0
  45. package/node_modules/@aws-sdk/region-config-resolver/dist-types/index.d.ts +1 -0
  46. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/stsRegionDefaultResolver.browser.d.ts +4 -0
  47. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/stsRegionDefaultResolver.d.ts +14 -0
  48. package/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/stsRegionDefaultResolver.native.d.ts +4 -0
  49. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/index.d.ts +1 -0
  50. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/stsRegionDefaultResolver.browser.d.ts +1 -0
  51. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/stsRegionDefaultResolver.d.ts +7 -0
  52. package/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/stsRegionDefaultResolver.native.d.ts +1 -0
  53. package/node_modules/@aws-sdk/region-config-resolver/package.json +10 -5
  54. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  55. package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +1 -0
  56. package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +1 -0
  57. package/node_modules/@aws-sdk/types/package.json +2 -2
  58. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  59. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  60. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  61. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  62. package/node_modules/@smithy/abort-controller/package.json +2 -2
  63. package/node_modules/@smithy/config-resolver/package.json +5 -5
  64. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +5 -14
  65. package/node_modules/@smithy/core/dist-es/submodules/serde/schema-serde-lib/schema-date-utils.js +5 -14
  66. package/node_modules/@smithy/core/package.json +7 -7
  67. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  68. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  69. package/node_modules/@smithy/hash-node/package.json +2 -2
  70. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  71. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  72. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  73. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  74. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  75. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  76. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  77. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -4
  78. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +5 -2
  79. package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +2 -2
  80. package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +2 -2
  81. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +2 -2
  82. package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +2 -1
  83. package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +2 -1
  84. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  85. package/node_modules/@smithy/property-provider/package.json +2 -2
  86. package/node_modules/@smithy/protocol-http/package.json +2 -2
  87. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  88. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  89. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  90. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  91. package/node_modules/@smithy/signature-v4/package.json +4 -4
  92. package/node_modules/@smithy/smithy-client/package.json +7 -7
  93. package/node_modules/@smithy/types/dist-es/index.js +1 -0
  94. package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
  95. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +1 -0
  96. package/node_modules/@smithy/types/package.json +1 -1
  97. package/node_modules/@smithy/url-parser/package.json +3 -3
  98. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  99. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  100. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  101. package/node_modules/@smithy/util-middleware/package.json +2 -2
  102. package/node_modules/@smithy/util-retry/package.json +3 -3
  103. package/node_modules/@smithy/util-stream/package.json +4 -4
  104. package/node_modules/@smithy/util-waiter/dist-cjs/index.js +17 -4
  105. package/node_modules/@smithy/util-waiter/dist-es/circularReplacer.js +12 -0
  106. package/node_modules/@smithy/util-waiter/dist-es/poller.js +2 -1
  107. package/node_modules/@smithy/util-waiter/dist-es/waiter.js +4 -3
  108. package/node_modules/@smithy/util-waiter/dist-types/circularReplacer.d.ts +6 -0
  109. package/node_modules/@smithy/util-waiter/dist-types/poller.d.ts +1 -1
  110. package/node_modules/@smithy/util-waiter/dist-types/ts3.4/circularReplacer.d.ts +6 -0
  111. package/node_modules/@smithy/util-waiter/dist-types/ts3.4/poller.d.ts +1 -1
  112. package/node_modules/@smithy/util-waiter/package.json +3 -3
  113. package/package.json +6 -6
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-retry",
3
- "version": "4.2.3",
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.3",
35
- "@smithy/types": "^4.8.0",
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.4",
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.4",
33
- "@smithy/node-http-handler": "^4.4.3",
34
- "@smithy/types": "^4.8.0",
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) => {
@@ -0,0 +1,12 @@
1
+ export const getCircularReplacer = () => {
2
+ const seen = new WeakSet();
3
+ return (key, value) => {
4
+ if (typeof value === "object" && value !== null) {
5
+ if (seen.has(value)) {
6
+ return "[Circular]";
7
+ }
8
+ seen.add(value);
9
+ }
10
+ return value;
11
+ };
12
+ };
@@ -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
  };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Helper for JSON stringification debug logging.
3
+ *
4
+ * @internal
5
+ */
6
+ export declare const getCircularReplacer: () => (key: any, value: any) => any;
@@ -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 stateChecker - function that checks the acceptor states on each poll.
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>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Helper for JSON stringification debug logging.
3
+ *
4
+ * @internal
5
+ */
6
+ export declare const getCircularReplacer: () => (key: any, value: any) => any;
@@ -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 stateChecker - function that checks the acceptor states on each poll.
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",
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.3",
7
- "@smithy/types": "^4.8.0",
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.914.0",
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.117.0",
58
+ "jsii-diff": "^1.118.0",
59
59
  "jsii-docgen": "^10.5.0",
60
- "jsii-pacmak": "^1.117.0",
60
+ "jsii-pacmak": "^1.118.0",
61
61
  "jsii-rosetta": "~5.8.0",
62
- "projen": "^0.98.5",
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.919.0",
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.69",
104
+ "version": "0.0.71",
105
105
  "jest": {
106
106
  "coverageProvider": "v8",
107
107
  "testMatch": [