@cdk8s/awscdk-resolver 0.0.57 → 0.0.58

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 (61) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +191 -1696
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-es/protocols/Aws_query.js +180 -1685
  5. package/node_modules/@aws-sdk/client-cloudformation/package.json +14 -14
  6. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +9 -90
  7. package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +8 -89
  8. package/node_modules/@aws-sdk/client-sso/package.json +11 -11
  9. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +30 -135
  10. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +29 -134
  11. package/node_modules/@aws-sdk/client-sso-oidc/package.json +14 -14
  12. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +74 -196
  13. package/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +17 -15
  14. package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +30 -178
  15. package/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +4 -4
  16. package/node_modules/@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers.d.ts +11 -3
  17. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultRoleAssumers.d.ts +4 -7
  18. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +11 -3
  19. package/node_modules/@aws-sdk/client-sts/package.json +12 -12
  20. package/node_modules/@aws-sdk/core/CHANGELOG.md +11 -0
  21. package/node_modules/@aws-sdk/core/dist-cjs/index.js +13 -7
  22. package/node_modules/@aws-sdk/core/dist-es/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +6 -2
  23. package/node_modules/@aws-sdk/core/package.json +1 -1
  24. package/node_modules/@aws-sdk/core/src/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.ts +10 -2
  25. package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
  26. package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
  27. package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
  28. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  29. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  30. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +10 -2
  31. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +5 -1
  32. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +1 -0
  33. package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -7
  34. package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -9
  35. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  36. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  37. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +28 -1
  38. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +5 -1
  39. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  40. package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
  41. package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
  42. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
  43. package/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +10 -2
  44. package/node_modules/@aws-sdk/middleware-signing/dist-es/awsAuthConfiguration.js +6 -2
  45. package/node_modules/@aws-sdk/middleware-signing/package.json +2 -2
  46. package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
  47. package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
  48. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  49. package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +16 -0
  50. package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +3 -0
  51. package/node_modules/@aws-sdk/types/package.json +1 -1
  52. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  53. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
  54. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  55. package/node_modules/@smithy/core/dist-cjs/index.js +26 -15
  56. package/node_modules/@smithy/core/dist-es/pagination/createPaginator.js +12 -1
  57. package/node_modules/@smithy/core/package.json +1 -1
  58. package/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +13 -3
  59. package/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js +1 -1
  60. package/node_modules/@smithy/util-defaults-mode-node/package.json +1 -1
  61. package/package.json +5 -5
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-host-header",
3
- "version": "3.502.0",
3
+ "version": "3.511.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-host-header",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.502.0",
24
+ "@aws-sdk/types": "3.511.0",
25
25
  "@smithy/protocol-http": "^3.1.1",
26
26
  "@smithy/types": "^2.9.1",
27
27
  "tslib": "^2.5.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-logger",
3
- "version": "3.502.0",
3
+ "version": "3.511.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-logger",
@@ -22,7 +22,7 @@
22
22
  "module": "./dist-es/index.js",
23
23
  "types": "./dist-types/index.d.ts",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.502.0",
25
+ "@aws-sdk/types": "3.511.0",
26
26
  "@smithy/types": "^2.9.1",
27
27
  "tslib": "^2.5.0"
28
28
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-recursion-detection",
3
- "version": "3.502.0",
3
+ "version": "3.511.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",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.502.0",
24
+ "@aws-sdk/types": "3.511.0",
25
25
  "@smithy/protocol-http": "^3.1.1",
26
26
  "@smithy/types": "^2.9.1",
27
27
  "tslib": "^2.5.0"
@@ -35,7 +35,11 @@ var import_signature_v4 = require("@smithy/signature-v4");
35
35
  var import_util_middleware = require("@smithy/util-middleware");
36
36
  var CREDENTIAL_EXPIRE_WINDOW = 3e5;
37
37
  var resolveAwsAuthConfig = /* @__PURE__ */ __name((input) => {
38
- const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input);
38
+ const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(
39
+ Object.assign({}, input, {
40
+ parentClientConfig: input
41
+ })
42
+ );
39
43
  const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input;
40
44
  let signer;
41
45
  if (input.signer) {
@@ -101,7 +105,11 @@ var resolveAwsAuthConfig = /* @__PURE__ */ __name((input) => {
101
105
  };
102
106
  }, "resolveAwsAuthConfig");
103
107
  var resolveSigV4AuthConfig = /* @__PURE__ */ __name((input) => {
104
- const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(input);
108
+ const normalizedCreds = input.credentials ? normalizeCredentialProvider(input.credentials) : input.credentialDefaultProvider(
109
+ Object.assign({}, input, {
110
+ parentClientConfig: input
111
+ })
112
+ );
105
113
  const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input;
106
114
  let signer;
107
115
  if (input.signer) {
@@ -5,7 +5,9 @@ const CREDENTIAL_EXPIRE_WINDOW = 300000;
5
5
  export const resolveAwsAuthConfig = (input) => {
6
6
  const normalizedCreds = input.credentials
7
7
  ? normalizeCredentialProvider(input.credentials)
8
- : input.credentialDefaultProvider(input);
8
+ : input.credentialDefaultProvider(Object.assign({}, input, {
9
+ parentClientConfig: input,
10
+ }));
9
11
  const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input;
10
12
  let signer;
11
13
  if (input.signer) {
@@ -71,7 +73,9 @@ export const resolveAwsAuthConfig = (input) => {
71
73
  export const resolveSigV4AuthConfig = (input) => {
72
74
  const normalizedCreds = input.credentials
73
75
  ? normalizeCredentialProvider(input.credentials)
74
- : input.credentialDefaultProvider(input);
76
+ : input.credentialDefaultProvider(Object.assign({}, input, {
77
+ parentClientConfig: input,
78
+ }));
75
79
  const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input;
76
80
  let signer;
77
81
  if (input.signer) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-signing",
3
- "version": "3.502.0",
3
+ "version": "3.511.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-signing",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.502.0",
25
+ "@aws-sdk/types": "3.511.0",
26
26
  "@smithy/property-provider": "^2.1.1",
27
27
  "@smithy/protocol-http": "^3.1.1",
28
28
  "@smithy/signature-v4": "^2.1.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.502.0",
3
+ "version": "3.511.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-user-agent",
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.502.0",
26
- "@aws-sdk/util-endpoints": "3.502.0",
25
+ "@aws-sdk/types": "3.511.0",
26
+ "@aws-sdk/util-endpoints": "3.511.0",
27
27
  "@smithy/protocol-http": "^3.1.1",
28
28
  "@smithy/types": "^2.9.1",
29
29
  "tslib": "^2.5.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/region-config-resolver",
3
- "version": "3.502.0",
3
+ "version": "3.511.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 region-config-resolver",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/types": "3.502.0",
24
+ "@aws-sdk/types": "3.511.0",
25
25
  "@smithy/node-config-provider": "^2.2.1",
26
26
  "@smithy/types": "^2.9.1",
27
27
  "@smithy/util-config-provider": "^2.2.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.504.0",
3
+ "version": "3.511.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/client-sso-oidc": "3.504.0",
30
- "@aws-sdk/types": "3.502.0",
29
+ "@aws-sdk/client-sso-oidc": "3.511.0",
30
+ "@aws-sdk/types": "3.511.0",
31
31
  "@smithy/property-provider": "^2.1.1",
32
32
  "@smithy/shared-ini-file-loader": "^2.3.1",
33
33
  "@smithy/types": "^2.9.1",
@@ -29,4 +29,20 @@ export type CredentialProviderOptions = {
29
29
  * It does not log credentials.
30
30
  */
31
31
  logger?: Logger;
32
+ /**
33
+ * Present if the credential provider was created by calling
34
+ * the defaultCredentialProvider in a client's middleware, having
35
+ * access to the client's config.
36
+ *
37
+ * The region of that parent or outer client is important because
38
+ * an inner client used by the credential provider may need
39
+ * to match its default partition or region with that of
40
+ * the outer client.
41
+ *
42
+ * @internal
43
+ * @deprecated - not truly deprecated, marked as a warning to not use this.
44
+ */
45
+ parentClientConfig?: {
46
+ region?: string | Provider<string>;
47
+ };
32
48
  };
@@ -5,4 +5,7 @@ export interface Credentials extends AwsCredentialIdentity {}
5
5
  export type CredentialProvider = Provider<Credentials>;
6
6
  export type CredentialProviderOptions = {
7
7
  logger?: Logger;
8
+ parentClientConfig?: {
9
+ region?: string | Provider<string>;
10
+ };
8
11
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.502.0",
3
+ "version": "3.511.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.502.0",
3
+ "version": "3.511.0",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.502.0",
25
+ "@aws-sdk/types": "3.511.0",
26
26
  "@smithy/types": "^2.9.1",
27
27
  "@smithy/util-endpoints": "^1.1.1",
28
28
  "tslib": "^2.5.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-browser",
3
- "version": "3.502.0",
3
+ "version": "3.511.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 util-user-agent-browser",
@@ -22,7 +22,7 @@
22
22
  "license": "Apache-2.0",
23
23
  "react-native": "dist-es/index.native.js",
24
24
  "dependencies": {
25
- "@aws-sdk/types": "3.502.0",
25
+ "@aws-sdk/types": "3.511.0",
26
26
  "@smithy/types": "^2.9.1",
27
27
  "bowser": "^2.11.0",
28
28
  "tslib": "^2.5.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-node",
3
- "version": "3.502.0",
3
+ "version": "3.511.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 util-user-agent-node",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@aws-sdk/types": "3.502.0",
23
+ "@aws-sdk/types": "3.511.0",
24
24
  "@smithy/node-config-provider": "^2.2.1",
25
25
  "@smithy/types": "^2.9.1",
26
26
  "tslib": "^2.5.0"
@@ -446,37 +446,48 @@ function createPaginator(ClientCtor, CommandCtor, inputTokenName, outputTokenNam
446
446
  }
447
447
  yield page;
448
448
  const prevToken = token;
449
- token = page[outputTokenName];
449
+ token = get(page, outputTokenName);
450
450
  hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
451
451
  }
452
452
  return void 0;
453
453
  }, "paginateOperation");
454
454
  }
455
455
  __name(createPaginator, "createPaginator");
456
+ var get = /* @__PURE__ */ __name((fromObject, path) => {
457
+ let cursor = fromObject;
458
+ const pathComponents = path.split(".");
459
+ for (const step of pathComponents) {
460
+ if (!cursor || typeof cursor !== "object") {
461
+ return void 0;
462
+ }
463
+ cursor = cursor[step];
464
+ }
465
+ return cursor;
466
+ }, "get");
456
467
  // Annotate the CommonJS export names for ESM import in node:
457
468
 
458
469
  0 && (module.exports = {
459
- DefaultIdentityProviderConfig,
460
- EXPIRATION_MS,
461
- HttpApiKeyAuthSigner,
462
- HttpBearerAuthSigner,
463
- NoAuthSigner,
464
- RequestBuilder,
465
- createIsIdentityExpiredFunction,
466
470
  createPaginator,
467
- doesIdentityRequireRefresh,
468
- getHttpAuthSchemeEndpointRuleSetPlugin,
469
- getHttpAuthSchemePlugin,
470
- getHttpSigningPlugin,
471
- getSmithyContext,
472
- httpAuthSchemeEndpointRuleSetMiddlewareOptions,
473
471
  httpAuthSchemeMiddleware,
472
+ httpAuthSchemeEndpointRuleSetMiddlewareOptions,
473
+ getHttpAuthSchemeEndpointRuleSetPlugin,
474
474
  httpAuthSchemeMiddlewareOptions,
475
+ getHttpAuthSchemePlugin,
475
476
  httpSigningMiddleware,
476
477
  httpSigningMiddlewareOptions,
478
+ getHttpSigningPlugin,
479
+ DefaultIdentityProviderConfig,
480
+ HttpApiKeyAuthSigner,
481
+ HttpBearerAuthSigner,
482
+ NoAuthSigner,
483
+ createIsIdentityExpiredFunction,
484
+ EXPIRATION_MS,
477
485
  isIdentityExpired,
486
+ doesIdentityRequireRefresh,
478
487
  memoizeIdentityProvider,
488
+ getSmithyContext,
479
489
  normalizeProvider,
480
- requestBuilder
490
+ requestBuilder,
491
+ RequestBuilder
481
492
  });
482
493
 
@@ -19,9 +19,20 @@ export function createPaginator(ClientCtor, CommandCtor, inputTokenName, outputT
19
19
  }
20
20
  yield page;
21
21
  const prevToken = token;
22
- token = page[outputTokenName];
22
+ token = get(page, outputTokenName);
23
23
  hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
24
24
  }
25
25
  return undefined;
26
26
  };
27
27
  }
28
+ const get = (fromObject, path) => {
29
+ let cursor = fromObject;
30
+ const pathComponents = path.split(".");
31
+ for (const step of pathComponents) {
32
+ if (!cursor || typeof cursor !== "object") {
33
+ return undefined;
34
+ }
35
+ cursor = cursor[step];
36
+ }
37
+ return cursor;
38
+ };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
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 core",
@@ -1,6 +1,8 @@
1
+ var __create = Object.create;
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
4
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
7
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
8
  var __export = (target, all) => {
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
18
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
29
 
20
30
  // src/index.ts
@@ -26,7 +36,6 @@ module.exports = __toCommonJS(src_exports);
26
36
 
27
37
  // src/resolveDefaultsModeConfig.ts
28
38
  var import_config_resolver = require("@smithy/config-resolver");
29
- var import_credential_provider_imds = require("@smithy/credential-provider-imds");
30
39
  var import_node_config_provider = require("@smithy/node-config-provider");
31
40
  var import_property_provider = require("@smithy/property-provider");
32
41
 
@@ -95,8 +104,9 @@ var inferPhysicalRegion = /* @__PURE__ */ __name(async () => {
95
104
  }
96
105
  if (!process.env[ENV_IMDS_DISABLED]) {
97
106
  try {
98
- const endpoint = await (0, import_credential_provider_imds.getInstanceMetadataEndpoint)();
99
- return (await (0, import_credential_provider_imds.httpRequest)({ ...endpoint, path: IMDS_REGION_PATH })).toString();
107
+ const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM(require("@smithy/credential-provider-imds")));
108
+ const endpoint = await getInstanceMetadataEndpoint();
109
+ return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
100
110
  } catch (e) {
101
111
  }
102
112
  }
@@ -1,5 +1,4 @@
1
1
  import { NODE_REGION_CONFIG_OPTIONS } from "@smithy/config-resolver";
2
- import { getInstanceMetadataEndpoint, httpRequest } from "@smithy/credential-provider-imds";
3
2
  import { loadConfig } from "@smithy/node-config-provider";
4
3
  import { memoize } from "@smithy/property-provider";
5
4
  import { AWS_DEFAULT_REGION_ENV, AWS_EXECUTION_ENV, AWS_REGION_ENV, DEFAULTS_MODE_OPTIONS, ENV_IMDS_DISABLED, IMDS_REGION_PATH, } from "./constants";
@@ -43,6 +42,7 @@ const inferPhysicalRegion = async () => {
43
42
  }
44
43
  if (!process.env[ENV_IMDS_DISABLED]) {
45
44
  try {
45
+ const { getInstanceMetadataEndpoint, httpRequest } = await import("@smithy/credential-provider-imds");
46
46
  const endpoint = await getInstanceMetadataEndpoint();
47
47
  return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
48
48
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
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-defaults-mode-node",
package/package.json CHANGED
@@ -42,16 +42,16 @@
42
42
  "organization": false
43
43
  },
44
44
  "devDependencies": {
45
- "@cdk8s/projen-common": "0.0.486",
45
+ "@cdk8s/projen-common": "0.0.488",
46
46
  "@types/fs-extra": "^11.0.4",
47
47
  "@types/jest": "^27",
48
48
  "@types/node": "^16",
49
49
  "@typescript-eslint/eslint-plugin": "^6",
50
50
  "@typescript-eslint/parser": "^6",
51
- "aws-cdk": "^2.126.0",
51
+ "aws-cdk": "^2.127.0",
52
52
  "aws-cdk-lib": "2.109.0",
53
53
  "cdk8s": "2.68.4",
54
- "cdk8s-cli": "^2.198.40",
54
+ "cdk8s-cli": "^2.198.46",
55
55
  "constructs": "10.3.0",
56
56
  "eslint": "^8",
57
57
  "eslint-import-resolver-typescript": "^3.6.1",
@@ -64,7 +64,7 @@
64
64
  "jsii-docgen": "^9.2.2",
65
65
  "jsii-pacmak": "^1.94.0",
66
66
  "jsii-rosetta": "^5",
67
- "projen": "^0.79.7",
67
+ "projen": "^0.79.17",
68
68
  "standard-version": "^9",
69
69
  "ts-jest": "^27",
70
70
  "ts-node": "^10.9.2",
@@ -92,7 +92,7 @@
92
92
  "publishConfig": {
93
93
  "access": "public"
94
94
  },
95
- "version": "0.0.57",
95
+ "version": "0.0.58",
96
96
  "jest": {
97
97
  "testMatch": [
98
98
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",