@cdk8s/awscdk-resolver 0.0.55 → 0.0.56

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 (160) hide show
  1. package/.jsii +2 -2
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/README.md +88 -0
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/CreateGeneratedTemplateCommand.js +1 -0
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DeleteGeneratedTemplateCommand.js +1 -0
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeGeneratedTemplateCommand.js +1 -0
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeResourceScanCommand.js +1 -0
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/GetGeneratedTemplateCommand.js +1 -0
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListGeneratedTemplatesCommand.js +1 -0
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListResourceScanRelatedResourcesCommand.js +1 -0
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListResourceScanResourcesCommand.js +1 -0
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListResourceScansCommand.js +1 -0
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/StartResourceScanCommand.js +1 -0
  14. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/UpdateGeneratedTemplateCommand.js +1 -0
  15. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1677 -73
  16. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/models_1.js +1 -0
  17. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListGeneratedTemplatesPaginator.js +1 -0
  18. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListResourceScanRelatedResourcesPaginator.js +1 -0
  19. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListResourceScanResourcesPaginator.js +1 -0
  20. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListResourceScansPaginator.js +1 -0
  21. package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormation.js +22 -0
  22. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/CreateGeneratedTemplateCommand.js +24 -0
  23. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DeleteGeneratedTemplateCommand.js +24 -0
  24. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DescribeGeneratedTemplateCommand.js +24 -0
  25. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DescribeResourceScanCommand.js +24 -0
  26. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/GetGeneratedTemplateCommand.js +24 -0
  27. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListGeneratedTemplatesCommand.js +24 -0
  28. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScanRelatedResourcesCommand.js +24 -0
  29. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScanResourcesCommand.js +24 -0
  30. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScansCommand.js +24 -0
  31. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/StartResourceScanCommand.js +24 -0
  32. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/UpdateGeneratedTemplateCommand.js +24 -0
  33. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/index.js +11 -0
  34. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/index.js +1 -0
  35. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_0.js +104 -0
  36. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_1.js +1 -0
  37. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListGeneratedTemplatesPaginator.js +4 -0
  38. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScanRelatedResourcesPaginator.js +4 -0
  39. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScanResourcesPaginator.js +4 -0
  40. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScansPaginator.js +4 -0
  41. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/index.js +4 -0
  42. package/node_modules/@aws-sdk/client-cloudformation/dist-es/protocols/Aws_query.js +1322 -92
  43. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +77 -0
  44. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +13 -2
  45. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateGeneratedTemplateCommand.d.ts +116 -0
  46. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteGeneratedTemplateCommand.d.ts +75 -0
  47. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeGeneratedTemplateCommand.d.ts +135 -0
  48. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeResourceScanCommand.d.ts +168 -0
  49. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/GetGeneratedTemplateCommand.d.ts +100 -0
  50. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListGeneratedTemplatesCommand.d.ts +112 -0
  51. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScanRelatedResourcesCommand.d.ts +145 -0
  52. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScanResourcesCommand.d.ts +147 -0
  53. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScansCommand.d.ts +97 -0
  54. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StartResourceScanCommand.d.ts +91 -0
  55. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StopStackSetOperationCommand.d.ts +1 -1
  56. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/TestTypeCommand.d.ts +1 -1
  57. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateGeneratedTemplateCommand.d.ts +156 -0
  58. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackCommand.d.ts +1 -1
  59. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackInstancesCommand.d.ts +1 -1
  60. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackSetCommand.d.ts +1 -1
  61. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateTerminationProtectionCommand.d.ts +1 -1
  62. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ValidateTemplateCommand.d.ts +1 -1
  63. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/index.d.ts +11 -0
  64. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/index.d.ts +1 -0
  65. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +4075 -3877
  66. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_1.d.ts +974 -0
  67. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListGeneratedTemplatesPaginator.d.ts +7 -0
  68. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScanRelatedResourcesPaginator.d.ts +7 -0
  69. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScanResourcesPaginator.d.ts +7 -0
  70. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScansPaginator.d.ts +7 -0
  71. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/index.d.ts +4 -0
  72. package/node_modules/@aws-sdk/client-cloudformation/dist-types/protocols/Aws_query.d.ts +99 -0
  73. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormation.d.ts +187 -0
  74. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormationClient.d.ts +66 -0
  75. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CreateGeneratedTemplateCommand.d.ts +30 -0
  76. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeleteGeneratedTemplateCommand.d.ts +26 -0
  77. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeGeneratedTemplateCommand.d.ts +30 -0
  78. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeResourceScanCommand.d.ts +30 -0
  79. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/GetGeneratedTemplateCommand.d.ts +30 -0
  80. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListGeneratedTemplatesCommand.d.ts +30 -0
  81. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScanRelatedResourcesCommand.d.ts +30 -0
  82. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScanResourcesCommand.d.ts +30 -0
  83. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScansCommand.d.ts +29 -0
  84. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StartResourceScanCommand.d.ts +29 -0
  85. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StopStackSetOperationCommand.d.ts +1 -1
  86. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/TestTypeCommand.d.ts +1 -1
  87. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateGeneratedTemplateCommand.d.ts +30 -0
  88. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackCommand.d.ts +1 -1
  89. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackInstancesCommand.d.ts +1 -1
  90. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackSetCommand.d.ts +1 -1
  91. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateTerminationProtectionCommand.d.ts +1 -1
  92. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ValidateTemplateCommand.d.ts +1 -1
  93. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/index.d.ts +11 -0
  94. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/index.d.ts +1 -0
  95. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +250 -99
  96. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_1.d.ts +132 -0
  97. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListGeneratedTemplatesPaginator.d.ts +11 -0
  98. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScanRelatedResourcesPaginator.d.ts +11 -0
  99. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScanResourcesPaginator.d.ts +11 -0
  100. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScansPaginator.d.ts +11 -0
  101. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/index.d.ts +4 -0
  102. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/protocols/Aws_query.d.ts +132 -0
  103. package/node_modules/@aws-sdk/client-cloudformation/package.json +3 -3
  104. package/node_modules/@aws-sdk/client-sso-oidc/package.json +3 -3
  105. package/node_modules/@aws-sdk/client-sts/package.json +2 -2
  106. package/node_modules/@aws-sdk/credential-provider-http/README.md +10 -0
  107. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +46 -0
  108. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +32 -0
  109. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +65 -0
  110. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttpTypes.js +2 -0
  111. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +59 -0
  112. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +17 -0
  113. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +5 -0
  114. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +5 -0
  115. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js +42 -0
  116. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.browser.js +27 -0
  117. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +59 -0
  118. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttpTypes.js +1 -0
  119. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js +53 -0
  120. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js +13 -0
  121. package/node_modules/@aws-sdk/credential-provider-http/dist-es/index.browser.js +1 -0
  122. package/node_modules/@aws-sdk/credential-provider-http/dist-es/index.js +1 -0
  123. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/checkUrl.d.ts +7 -0
  124. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.browser.d.ts +6 -0
  125. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.d.ts +6 -0
  126. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttpTypes.d.ts +69 -0
  127. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/requestHelpers.d.ts +11 -0
  128. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/retry-wrapper.d.ts +10 -0
  129. package/node_modules/@aws-sdk/credential-provider-http/dist-types/index.browser.d.ts +2 -0
  130. package/node_modules/@aws-sdk/credential-provider-http/dist-types/index.d.ts +2 -0
  131. package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/checkUrl.d.ts +1 -0
  132. package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttp.browser.d.ts +5 -0
  133. package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttp.d.ts +5 -0
  134. package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttpTypes.d.ts +18 -0
  135. package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/requestHelpers.d.ts +7 -0
  136. package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/retry-wrapper.d.ts +8 -0
  137. package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/index.browser.d.ts +5 -0
  138. package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/index.d.ts +5 -0
  139. package/node_modules/@aws-sdk/credential-provider-http/package.json +67 -0
  140. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +7 -10
  141. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +1 -1
  142. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js +4 -8
  143. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +1 -0
  144. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts +2 -1
  145. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts +4 -2
  146. package/node_modules/@aws-sdk/credential-provider-ini/package.json +4 -4
  147. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +5 -4
  148. package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +2 -2
  149. package/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js +4 -3
  150. package/node_modules/@aws-sdk/credential-provider-node/dist-types/remoteProvider.d.ts +3 -0
  151. package/node_modules/@aws-sdk/credential-provider-node/package.json +5 -4
  152. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +9 -6
  153. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +3 -5
  154. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +5 -2
  155. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +1 -1
  156. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/resolveSSOCredentials.d.ts +1 -0
  157. package/node_modules/@aws-sdk/credential-provider-sso/package.json +2 -2
  158. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
  159. package/node_modules/@aws-sdk/token-providers/package.json +2 -2
  160. package/package.json +4 -4
@@ -61,6 +61,7 @@ var resolveSSOCredentials = /* @__PURE__ */ __name(async ({
61
61
  ssoRegion,
62
62
  ssoRoleName,
63
63
  ssoClient,
64
+ clientConfig,
64
65
  profile
65
66
  }) => {
66
67
  let token;
@@ -93,7 +94,11 @@ var resolveSSOCredentials = /* @__PURE__ */ __name(async ({
93
94
  }
94
95
  const { accessToken } = token;
95
96
  const { SSOClient: SSOClient2, GetRoleCredentialsCommand: GetRoleCredentialsCommand2 } = await Promise.resolve().then(() => (init_loadSso(), loadSso_exports));
96
- const sso = ssoClient || new SSOClient2({ region: ssoRegion });
97
+ const sso = ssoClient || new SSOClient2(
98
+ Object.assign({}, clientConfig ?? {}, {
99
+ region: (clientConfig == null ? void 0 : clientConfig.region) ?? ssoRegion
100
+ })
101
+ );
97
102
  let ssoResp;
98
103
  try {
99
104
  ssoResp = await sso.send(
@@ -134,11 +139,7 @@ var fromSSO = /* @__PURE__ */ __name((init = {}) => async () => {
134
139
  var _a;
135
140
  (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-sso", "fromSSO");
136
141
  const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
137
- let { ssoClient } = init;
138
- if (!ssoClient) {
139
- const { SSOClient: SSOClient2 } = await Promise.resolve().then(() => (init_loadSso(), loadSso_exports));
140
- ssoClient = new SSOClient2(init.clientConfig ?? {});
141
- }
142
+ const { ssoClient } = init;
142
143
  const profileName = (0, import_shared_ini_file_loader.getProfileName)(init);
143
144
  if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
144
145
  const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
@@ -170,6 +171,7 @@ var fromSSO = /* @__PURE__ */ __name((init = {}) => async () => {
170
171
  ssoRegion: sso_region,
171
172
  ssoRoleName: sso_role_name,
172
173
  ssoClient,
174
+ clientConfig: init.clientConfig,
173
175
  profile: profileName
174
176
  });
175
177
  } else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
@@ -184,6 +186,7 @@ var fromSSO = /* @__PURE__ */ __name((init = {}) => async () => {
184
186
  ssoRegion,
185
187
  ssoRoleName,
186
188
  ssoClient,
189
+ clientConfig: init.clientConfig,
187
190
  profile: profileName
188
191
  });
189
192
  }
@@ -6,11 +6,7 @@ import { validateSsoProfile } from "./validateSsoProfile";
6
6
  export const fromSSO = (init = {}) => async () => {
7
7
  init.logger?.debug("@aws-sdk/credential-provider-sso", "fromSSO");
8
8
  const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
9
- let { ssoClient } = init;
10
- if (!ssoClient) {
11
- const { SSOClient } = await import("./loadSso");
12
- ssoClient = new SSOClient(init.clientConfig ?? {});
13
- }
9
+ const { ssoClient } = init;
14
10
  const profileName = getProfileName(init);
15
11
  if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
16
12
  const profiles = await parseKnownFiles(init);
@@ -42,6 +38,7 @@ export const fromSSO = (init = {}) => async () => {
42
38
  ssoRegion: sso_region,
43
39
  ssoRoleName: sso_role_name,
44
40
  ssoClient: ssoClient,
41
+ clientConfig: init.clientConfig,
45
42
  profile: profileName,
46
43
  });
47
44
  }
@@ -57,6 +54,7 @@ export const fromSSO = (init = {}) => async () => {
57
54
  ssoRegion,
58
55
  ssoRoleName,
59
56
  ssoClient,
57
+ clientConfig: init.clientConfig,
60
58
  profile: profileName,
61
59
  });
62
60
  }
@@ -2,7 +2,7 @@ import { fromSso as getSsoTokenProvider } from "@aws-sdk/token-providers";
2
2
  import { CredentialsProviderError } from "@smithy/property-provider";
3
3
  import { getSSOTokenFromFile } from "@smithy/shared-ini-file-loader";
4
4
  const SHOULD_FAIL_CREDENTIAL_CHAIN = false;
5
- export const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile, }) => {
5
+ export const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, profile, }) => {
6
6
  let token;
7
7
  const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
8
8
  if (ssoSession) {
@@ -30,7 +30,10 @@ export const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccoun
30
30
  }
31
31
  const { accessToken } = token;
32
32
  const { SSOClient, GetRoleCredentialsCommand } = await import("./loadSso");
33
- const sso = ssoClient || new SSOClient({ region: ssoRegion });
33
+ const sso = ssoClient ||
34
+ new SSOClient(Object.assign({}, clientConfig ?? {}, {
35
+ region: clientConfig?.region ?? ssoRegion,
36
+ }));
34
37
  let ssoResp;
35
38
  try {
36
39
  ssoResp = await sso.send(new GetRoleCredentialsCommand({
@@ -3,4 +3,4 @@ import { FromSSOInit, SsoCredentialsParameters } from "./fromSSO";
3
3
  /**
4
4
  * @internal
5
5
  */
6
- export declare const resolveSSOCredentials: ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile, }: FromSSOInit & SsoCredentialsParameters) => Promise<AwsCredentialIdentity>;
6
+ export declare const resolveSSOCredentials: ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, profile, }: FromSSOInit & SsoCredentialsParameters) => Promise<AwsCredentialIdentity>;
@@ -7,5 +7,6 @@ export declare const resolveSSOCredentials: ({
7
7
  ssoRegion,
8
8
  ssoRoleName,
9
9
  ssoClient,
10
+ clientConfig,
10
11
  profile,
11
12
  }: FromSSOInit & SsoCredentialsParameters) => Promise<AwsCredentialIdentity>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.502.0",
3
+ "version": "3.504.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",
@@ -25,7 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
27
  "@aws-sdk/client-sso": "3.502.0",
28
- "@aws-sdk/token-providers": "3.502.0",
28
+ "@aws-sdk/token-providers": "3.504.0",
29
29
  "@aws-sdk/types": "3.502.0",
30
30
  "@smithy/property-provider": "^2.1.1",
31
31
  "@smithy/shared-ini-file-loader": "^2.3.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.502.0",
3
+ "version": "3.504.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",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "license": "Apache-2.0",
34
34
  "dependencies": {
35
- "@aws-sdk/client-sts": "3.502.0",
35
+ "@aws-sdk/client-sts": "3.504.0",
36
36
  "@aws-sdk/types": "3.502.0",
37
37
  "@smithy/property-provider": "^2.1.1",
38
38
  "@smithy/types": "^2.9.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.502.0",
3
+ "version": "3.504.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@aws-sdk/client-sso-oidc": "3.502.0",
29
+ "@aws-sdk/client-sso-oidc": "3.504.0",
30
30
  "@aws-sdk/types": "3.502.0",
31
31
  "@smithy/property-provider": "^2.1.1",
32
32
  "@smithy/shared-ini-file-loader": "^2.3.1",
package/package.json CHANGED
@@ -48,10 +48,10 @@
48
48
  "@types/node": "^16",
49
49
  "@typescript-eslint/eslint-plugin": "^6",
50
50
  "@typescript-eslint/parser": "^6",
51
- "aws-cdk": "^2.124.0",
51
+ "aws-cdk": "^2.125.0",
52
52
  "aws-cdk-lib": "2.109.0",
53
53
  "cdk8s": "2.68.4",
54
- "cdk8s-cli": "^2.198.36",
54
+ "cdk8s-cli": "^2.198.37",
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.6",
67
+ "projen": "^0.79.7",
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.55",
95
+ "version": "0.0.56",
96
96
  "jest": {
97
97
  "testMatch": [
98
98
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",