@cdk8s/awscdk-resolver 0.0.53 → 0.0.55

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 (237) 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 +91 -90
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +1 -2
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +1 -2
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -1
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +6 -2
  8. package/node_modules/@aws-sdk/client-cloudformation/package.json +13 -13
  9. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +14 -13
  10. package/node_modules/@aws-sdk/client-sso/package.json +10 -10
  11. package/node_modules/@aws-sdk/client-sso-oidc/LICENSE +201 -0
  12. package/node_modules/@aws-sdk/client-sso-oidc/README.md +274 -0
  13. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDC.js +1 -0
  14. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDCClient.js +1 -0
  15. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js +1 -0
  16. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenWithIAMCommand.js +1 -0
  17. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js +1 -0
  18. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js +1 -0
  19. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/index.js +1 -0
  20. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/credentialDefaultProvider.js +29 -0
  21. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/EndpointParameters.js +1 -0
  22. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +12 -0
  23. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js +7 -0
  24. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/extensionConfiguration.js +1 -0
  25. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +1115 -0
  26. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/SSOOIDCServiceException.js +1 -0
  27. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/index.js +1 -0
  28. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/models_0.js +1 -0
  29. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js +1 -0
  30. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.browser.js +39 -0
  31. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +49 -0
  32. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.native.js +15 -0
  33. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js +24 -0
  34. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeExtensions.js +1 -0
  35. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js +15 -0
  36. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +38 -0
  37. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenCommand.js +25 -0
  38. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js +27 -0
  39. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js +25 -0
  40. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js +25 -0
  41. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/index.js +4 -0
  42. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/credentialDefaultProvider.js +3 -0
  43. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/EndpointParameters.js +14 -0
  44. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/endpointResolver.js +8 -0
  45. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/ruleset.js +4 -0
  46. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/extensionConfiguration.js +1 -0
  47. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js +6 -0
  48. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/SSOOIDCServiceException.js +8 -0
  49. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/index.js +1 -0
  50. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js +217 -0
  51. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +553 -0
  52. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.browser.js +34 -0
  53. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +44 -0
  54. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.native.js +11 -0
  55. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.shared.js +20 -0
  56. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeExtensions.js +18 -0
  57. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDC.d.ts +75 -0
  58. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +210 -0
  59. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +161 -0
  60. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +243 -0
  61. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +107 -0
  62. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +110 -0
  63. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/index.d.ts +4 -0
  64. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/credentialDefaultProvider.d.ts +4 -0
  65. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  66. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/endpointResolver.d.ts +5 -0
  67. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/ruleset.d.ts +2 -0
  68. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/extensionConfiguration.d.ts +8 -0
  69. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/index.d.ts +51 -0
  70. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/SSOOIDCServiceException.d.ts +13 -0
  71. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/index.d.ts +1 -0
  72. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +734 -0
  73. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/protocols/Aws_restJson1.d.ts +38 -0
  74. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +46 -0
  75. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +46 -0
  76. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +45 -0
  77. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +19 -0
  78. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeExtensions.d.ts +17 -0
  79. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDC.d.ts +73 -0
  80. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +142 -0
  81. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +26 -0
  82. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +30 -0
  83. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +29 -0
  84. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +30 -0
  85. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/index.d.ts +4 -0
  86. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/credentialDefaultProvider.d.ts +1 -0
  87. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  88. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  89. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  90. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  91. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/index.d.ts +9 -0
  92. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/SSOOIDCServiceException.d.ts +8 -0
  93. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/index.d.ts +1 -0
  94. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/models_0.d.ts +201 -0
  95. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +53 -0
  96. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  97. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  98. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
  99. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  100. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  101. package/node_modules/@aws-sdk/client-sso-oidc/package.json +103 -0
  102. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +1 -29
  103. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +1 -29
  104. package/node_modules/@aws-sdk/client-sts/dist-cjs/credentialDefaultProvider.js +29 -0
  105. package/node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js +1 -78
  106. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1423 -85
  107. package/node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js +1 -12
  108. package/node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js +1 -149
  109. package/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js +1 -1084
  110. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +3 -4
  111. package/node_modules/@aws-sdk/client-sts/dist-es/credentialDefaultProvider.js +3 -0
  112. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +3 -4
  113. package/node_modules/@aws-sdk/client-sts/dist-types/credentialDefaultProvider.d.ts +4 -0
  114. package/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +3 -0
  115. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +8 -3
  116. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/credentialDefaultProvider.d.ts +1 -0
  117. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +26 -14
  118. package/node_modules/@aws-sdk/client-sts/package.json +14 -12
  119. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +5 -3
  120. package/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js +2 -1
  121. package/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts +4 -1
  122. package/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/fromEnv.d.ts +5 -1
  123. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  124. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +69 -38
  125. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/loadSts.js +1 -0
  126. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +1 -0
  127. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/loadSts.js +2 -0
  128. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +4 -2
  129. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js +4 -6
  130. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +2 -3
  131. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +3 -3
  132. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js +8 -3
  133. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js +9 -6
  134. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +2 -3
  135. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +8 -4
  136. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/loadSts.d.ts +3 -0
  137. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -2
  138. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts +2 -1
  139. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProcessCredentials.d.ts +1 -2
  140. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +1 -1
  141. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts +5 -3
  142. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts +2 -1
  143. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +8 -1
  144. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/loadSts.d.ts +3 -0
  145. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +2 -2
  146. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveCredentialSource.d.ts +4 -1
  147. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProcessCredentials.d.ts +1 -2
  148. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts +2 -1
  149. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveStaticCredentials.d.ts +3 -1
  150. package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -6
  151. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +70 -19
  152. package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +35 -7
  153. package/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js +4 -2
  154. package/node_modules/@aws-sdk/credential-provider-node/dist-types/defaultProvider.d.ts +33 -18
  155. package/node_modules/@aws-sdk/credential-provider-node/dist-types/remoteProvider.d.ts +6 -3
  156. package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/defaultProvider.d.ts +11 -2
  157. package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/remoteProvider.d.ts +1 -1
  158. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  159. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +2 -0
  160. package/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js +1 -0
  161. package/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +2 -1
  162. package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/fromProcess.d.ts +4 -1
  163. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  164. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +28 -7
  165. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso.js +1 -0
  166. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +7 -1
  167. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js +2 -0
  168. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +2 -3
  169. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +4 -2
  170. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/loadSso.d.ts +3 -0
  171. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/fromSSO.d.ts +6 -2
  172. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/loadSso.d.ts +6 -0
  173. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  174. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +5 -4
  175. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +7 -5
  176. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/loadSts.js +5 -0
  177. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +1 -0
  178. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +6 -5
  179. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/loadSts.js +2 -0
  180. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +4 -3
  181. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromWebToken.d.ts +14 -4
  182. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/loadSts.d.ts +3 -0
  183. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromTokenFile.d.ts +7 -2
  184. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts +12 -6
  185. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/loadSts.d.ts +3 -0
  186. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -2
  187. package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +2 -2
  188. package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
  189. package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +2 -2
  190. package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
  191. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +2 -2
  192. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
  193. package/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +3 -3
  194. package/node_modules/@aws-sdk/middleware-signing/package.json +2 -2
  195. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +3 -3
  196. package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
  197. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +4 -4
  198. package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
  199. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +28 -25
  200. package/node_modules/@aws-sdk/token-providers/dist-cjs/loadSsoOidc.js +1 -0
  201. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +1 -0
  202. package/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +2 -1
  203. package/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +3 -3
  204. package/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +2 -2
  205. package/node_modules/@aws-sdk/token-providers/dist-es/index.js +0 -1
  206. package/node_modules/@aws-sdk/token-providers/dist-es/loadSsoOidc.js +2 -0
  207. package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +2 -2
  208. package/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +3 -3
  209. package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +2 -1
  210. package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +2 -1
  211. package/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +0 -1
  212. package/node_modules/@aws-sdk/token-providers/dist-types/loadSsoOidc.d.ts +2 -0
  213. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +7 -2
  214. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts +7 -2
  215. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +1 -1
  216. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +1 -1
  217. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +0 -1
  218. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/loadSsoOidc.d.ts +2 -0
  219. package/node_modules/@aws-sdk/token-providers/package.json +6 -43
  220. package/node_modules/@aws-sdk/types/dist-cjs/index.js +3 -171
  221. package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +15 -0
  222. package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +4 -0
  223. package/node_modules/@aws-sdk/types/package.json +1 -1
  224. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +4 -24
  225. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  226. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
  227. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +1 -1
  228. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  229. package/package.json +5 -5
  230. package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-browser.js +0 -1032
  231. package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js +0 -1038
  232. package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-browser.js +0 -1010
  233. package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-node.js +0 -1017
  234. package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-browser.d.ts +0 -191
  235. package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-node.d.ts +0 -191
  236. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-browser.d.ts +0 -235
  237. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-node.d.ts +0 -235
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const defaultStsRoleAssumers_1 = require("./defaultStsRoleAssumers");
6
+ const credentialDefaultProvider_1 = require("./credentialDefaultProvider");
7
7
  const core_1 = require("@aws-sdk/core");
8
- const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
9
8
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
10
9
  const config_resolver_1 = require("@smithy/config-resolver");
11
10
  const core_2 = require("@smithy/core");
@@ -31,14 +30,14 @@ const getRuntimeConfig = (config) => {
31
30
  runtime: "node",
32
31
  defaultsMode,
33
32
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
34
- credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
33
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider_1.defaultProvider,
35
34
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
36
35
  (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
36
  httpAuthSchemes: config?.httpAuthSchemes ?? [
38
37
  {
39
38
  schemeId: "aws.auth#sigv4",
40
39
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") ||
41
- (async (idProps) => await (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider)(idProps?.__config || {})()),
40
+ (async (idProps) => await (0, credentialDefaultProvider_1.defaultProvider)(idProps?.__config || {})()),
42
41
  signer: new core_1.AwsSdkSigV4Signer(),
43
42
  },
44
43
  {
@@ -0,0 +1,3 @@
1
+ export const defaultProvider = ((input) => {
2
+ return () => import("@aws-sdk/credential-provider-node").then(({ defaultProvider }) => defaultProvider(input)());
3
+ });
@@ -1,7 +1,6 @@
1
1
  import packageInfo from "../package.json";
2
- import { decorateDefaultCredentialProvider } from "./defaultStsRoleAssumers";
2
+ import { defaultProvider as credentialDefaultProvider } from "./credentialDefaultProvider";
3
3
  import { AwsSdkSigV4Signer, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
4
- import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
4
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
6
5
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
7
6
  import { NoAuthSigner } from "@smithy/core";
@@ -27,14 +26,14 @@ export const getRuntimeConfig = (config) => {
27
26
  runtime: "node",
28
27
  defaultsMode,
29
28
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
30
- credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
29
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
31
30
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
31
  defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
32
  httpAuthSchemes: config?.httpAuthSchemes ?? [
34
33
  {
35
34
  schemeId: "aws.auth#sigv4",
36
35
  identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4") ||
37
- (async (idProps) => await decorateDefaultCredentialProvider(credentialDefaultProvider)(idProps?.__config || {})()),
36
+ (async (idProps) => await credentialDefaultProvider(idProps?.__config || {})()),
38
37
  signer: new AwsSdkSigV4Signer(),
39
38
  },
40
39
  {
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare const defaultProvider: any;
@@ -16,5 +16,8 @@ export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions?: Pick<ST
16
16
  * dependencies.
17
17
  *
18
18
  * @internal
19
+ *
20
+ * @deprecated this is no longer needed. Use the defaultProvider directly,
21
+ * which will load STS if needed.
19
22
  */
20
23
  export declare const decorateDefaultCredentialProvider: (provider: DefaultCredentialProvider) => DefaultCredentialProvider;
@@ -1,3 +1,4 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
1
2
  import { NoAuthSigner } from "@smithy/core";
2
3
  import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
3
4
  import { IdentityProviderConfig } from "@smithy/types";
@@ -9,13 +10,17 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
9
10
  runtime: string;
10
11
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
11
12
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
12
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
13
+ credentialDefaultProvider: any;
13
14
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
14
- httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | {
15
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
16
+ schemeId: string;
17
+ identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | ((idProps: Record<string, any> | undefined) => Promise<any>);
18
+ signer: AwsSdkSigV4Signer;
19
+ } | {
15
20
  schemeId: string;
16
21
  identityProvider: (ipc: IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
17
22
  signer: NoAuthSigner;
18
- }[];
23
+ })[];
19
24
  maxAttempts: number | import("@smithy/types").Provider<number>;
20
25
  region: string | import("@smithy/types").Provider<string>;
21
26
  requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
@@ -0,0 +1 @@
1
+ export declare const defaultProvider: any;
@@ -1,3 +1,4 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
1
2
  import { NoAuthSigner } from "@smithy/core";
2
3
  import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
3
4
  import { IdentityProviderConfig } from "@smithy/types";
@@ -8,25 +9,36 @@ export declare const getRuntimeConfig: (config: STSClientConfig) => {
8
9
  import("@smithy/smithy-client").ResolvedDefaultsMode
9
10
  >;
10
11
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
- credentialDefaultProvider: (
12
- input: any
13
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
12
+ credentialDefaultProvider: any;
14
13
  defaultUserAgentProvider: import("@smithy/types").Provider<
15
14
  import("@smithy/types").UserAgent
16
15
  >;
17
16
  httpAuthSchemes:
18
17
  | import("@smithy/types").HttpAuthScheme[]
19
- | {
20
- schemeId: string;
21
- identityProvider: (
22
- ipc: IdentityProviderConfig
23
- ) =>
24
- | import("@smithy/types").IdentityProvider<
25
- import("@smithy/types").Identity
26
- >
27
- | (() => Promise<{}>);
28
- signer: NoAuthSigner;
29
- }[];
18
+ | (
19
+ | {
20
+ schemeId: string;
21
+ identityProvider: (
22
+ ipc: IdentityProviderConfig
23
+ ) =>
24
+ | import("@smithy/types").IdentityProvider<
25
+ import("@smithy/types").Identity
26
+ >
27
+ | ((idProps: Record<string, any> | undefined) => Promise<any>);
28
+ signer: AwsSdkSigV4Signer;
29
+ }
30
+ | {
31
+ schemeId: string;
32
+ identityProvider: (
33
+ ipc: IdentityProviderConfig
34
+ ) =>
35
+ | import("@smithy/types").IdentityProvider<
36
+ import("@smithy/types").Identity
37
+ >
38
+ | (() => Promise<{}>);
39
+ signer: NoAuthSigner;
40
+ }
41
+ )[];
30
42
  maxAttempts: number | import("@smithy/types").Provider<number>;
31
43
  region: string | import("@smithy/types").Provider<string>;
32
44
  requestHandler:
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sts",
3
3
  "description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
4
- "version": "3.496.0",
4
+ "version": "3.502.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-sts",
8
8
  "build:es": "tsc -p tsconfig.es.json",
9
9
  "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
10
- "build:types": "tsc -p tsconfig.types.json",
10
+ "build:types": "rimraf ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
12
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
13
13
  "extract:docs": "api-extractor run --local",
@@ -23,16 +23,15 @@
23
23
  "@aws-crypto/sha256-browser": "3.0.0",
24
24
  "@aws-crypto/sha256-js": "3.0.0",
25
25
  "@aws-sdk/core": "3.496.0",
26
- "@aws-sdk/credential-provider-node": "3.496.0",
27
- "@aws-sdk/middleware-host-header": "3.496.0",
28
- "@aws-sdk/middleware-logger": "3.496.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.496.0",
30
- "@aws-sdk/middleware-user-agent": "3.496.0",
31
- "@aws-sdk/region-config-resolver": "3.496.0",
32
- "@aws-sdk/types": "3.496.0",
33
- "@aws-sdk/util-endpoints": "3.496.0",
34
- "@aws-sdk/util-user-agent-browser": "3.496.0",
35
- "@aws-sdk/util-user-agent-node": "3.496.0",
26
+ "@aws-sdk/middleware-host-header": "3.502.0",
27
+ "@aws-sdk/middleware-logger": "3.502.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.502.0",
29
+ "@aws-sdk/middleware-user-agent": "3.502.0",
30
+ "@aws-sdk/region-config-resolver": "3.502.0",
31
+ "@aws-sdk/types": "3.502.0",
32
+ "@aws-sdk/util-endpoints": "3.502.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.502.0",
34
+ "@aws-sdk/util-user-agent-node": "3.502.0",
36
35
  "@smithy/config-resolver": "^2.1.1",
37
36
  "@smithy/core": "^1.3.1",
38
37
  "@smithy/fetch-http-handler": "^2.4.1",
@@ -88,6 +87,9 @@
88
87
  "url": "https://aws.amazon.com/javascript/"
89
88
  },
90
89
  "license": "Apache-2.0",
90
+ "peerDependencies": {
91
+ "@aws-sdk/credential-provider-node": "*"
92
+ },
91
93
  "browser": {
92
94
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
93
95
  },
@@ -36,7 +36,9 @@ var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
36
36
  var ENV_SESSION = "AWS_SESSION_TOKEN";
37
37
  var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
38
38
  var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
39
- var fromEnv = /* @__PURE__ */ __name(() => async () => {
39
+ var fromEnv = /* @__PURE__ */ __name((init) => async () => {
40
+ var _a;
41
+ (_a = init == null ? void 0 : init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-env", "fromEnv");
40
42
  const accessKeyId = process.env[ENV_KEY];
41
43
  const secretAccessKey = process.env[ENV_SECRET];
42
44
  const sessionToken = process.env[ENV_SESSION];
@@ -56,11 +58,11 @@ var fromEnv = /* @__PURE__ */ __name(() => async () => {
56
58
  // Annotate the CommonJS export names for ESM import in node:
57
59
 
58
60
  0 && (module.exports = {
59
- ENV_CREDENTIAL_SCOPE,
60
- ENV_EXPIRATION,
61
61
  ENV_KEY,
62
62
  ENV_SECRET,
63
63
  ENV_SESSION,
64
+ ENV_EXPIRATION,
65
+ ENV_CREDENTIAL_SCOPE,
64
66
  fromEnv
65
67
  });
66
68
 
@@ -4,7 +4,8 @@ export const ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
4
4
  export const ENV_SESSION = "AWS_SESSION_TOKEN";
5
5
  export const ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
6
6
  export const ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
7
- export const fromEnv = () => async () => {
7
+ export const fromEnv = (init) => async () => {
8
+ init?.logger?.debug("@aws-sdk/credential-provider-env", "fromEnv");
8
9
  const accessKeyId = process.env[ENV_KEY];
9
10
  const secretAccessKey = process.env[ENV_SECRET];
10
11
  const sessionToken = process.env[ENV_SESSION];
@@ -1,4 +1,7 @@
1
+ import type { CredentialProviderOptions } from "@aws-sdk/types";
1
2
  import { AwsCredentialIdentityProvider } from "@smithy/types";
3
+ export interface FromEnvInit extends CredentialProviderOptions {
4
+ }
2
5
  /**
3
6
  * @internal
4
7
  */
@@ -26,4 +29,4 @@ export declare const ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
26
29
  * `AWS_ACCESS_KEY_ID` or `AWS_SECRET_ACCESS_KEY` environment variable is not
27
30
  * set in this process, the provider will return a rejected promise.
28
31
  */
29
- export declare const fromEnv: () => AwsCredentialIdentityProvider;
32
+ export declare const fromEnv: (init?: FromEnvInit) => AwsCredentialIdentityProvider;
@@ -1,7 +1,11 @@
1
+ import { CredentialProviderOptions } from "@aws-sdk/types";
1
2
  import { AwsCredentialIdentityProvider } from "@smithy/types";
3
+ export interface FromEnvInit extends CredentialProviderOptions {}
2
4
  export declare const ENV_KEY = "AWS_ACCESS_KEY_ID";
3
5
  export declare const ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
4
6
  export declare const ENV_SESSION = "AWS_SESSION_TOKEN";
5
7
  export declare const ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
6
8
  export declare const ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
7
- export declare const fromEnv: () => AwsCredentialIdentityProvider;
9
+ export declare const fromEnv: (
10
+ init?: FromEnvInit
11
+ ) => AwsCredentialIdentityProvider;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-env",
3
- "version": "3.496.0",
3
+ "version": "3.502.0",
4
4
  "description": "AWS credential provider that sources credentials from known environment variables",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/types": "3.496.0",
27
+ "@aws-sdk/types": "3.502.0",
28
28
  "@smithy/property-provider": "^2.1.1",
29
29
  "@smithy/types": "^2.9.1",
30
30
  "tslib": "^2.5.0"
@@ -1,8 +1,13 @@
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 });
8
+ var __esm = (fn, res) => function __init() {
9
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
+ };
6
11
  var __export = (target, all) => {
7
12
  for (var name in all)
8
13
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -15,8 +20,28 @@ var __copyProps = (to, from, except, desc) => {
15
20
  }
16
21
  return to;
17
22
  };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ // If the importer is in node compatibility mode or this is not an ESM
25
+ // file that has been converted to a CommonJS file using a Babel-
26
+ // compatible transform (i.e. "__esModule" has not been set), then set
27
+ // "default" to the CommonJS "module.exports" for node compatibility.
28
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
+ mod
30
+ ));
18
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
32
 
33
+ // src/loadSts.ts
34
+ var loadSts_exports = {};
35
+ __export(loadSts_exports, {
36
+ getDefaultRoleAssumer: () => import_client_sts.getDefaultRoleAssumer
37
+ });
38
+ var import_client_sts;
39
+ var init_loadSts = __esm({
40
+ "src/loadSts.ts"() {
41
+ import_client_sts = require("@aws-sdk/client-sts");
42
+ }
43
+ });
44
+
20
45
  // src/index.ts
21
46
  var src_exports = {};
22
47
  __export(src_exports, {
@@ -35,17 +60,15 @@ module.exports = __toCommonJS(src_exports);
35
60
  var import_shared_ini_file_loader = require("@smithy/shared-ini-file-loader");
36
61
 
37
62
  // src/resolveCredentialSource.ts
38
- var import_credential_provider_env = require("@aws-sdk/credential-provider-env");
39
- var import_credential_provider_imds = require("@smithy/credential-provider-imds");
40
63
  var import_property_provider = require("@smithy/property-provider");
41
64
  var resolveCredentialSource = /* @__PURE__ */ __name((credentialSource, profileName) => {
42
65
  const sourceProvidersMap = {
43
- EcsContainer: import_credential_provider_imds.fromContainerMetadata,
44
- Ec2InstanceMetadata: import_credential_provider_imds.fromInstanceMetadata,
45
- Environment: import_credential_provider_env.fromEnv
66
+ EcsContainer: (options) => Promise.resolve().then(() => __toESM(require("@smithy/credential-provider-imds"))).then(({ fromContainerMetadata }) => fromContainerMetadata(options)),
67
+ Ec2InstanceMetadata: (options) => Promise.resolve().then(() => __toESM(require("@smithy/credential-provider-imds"))).then(({ fromInstanceMetadata }) => fromInstanceMetadata(options)),
68
+ Environment: (options) => Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-env"))).then(({ fromEnv }) => fromEnv(options))
46
69
  };
47
70
  if (credentialSource in sourceProvidersMap) {
48
- return sourceProvidersMap[credentialSource]();
71
+ return sourceProvidersMap[credentialSource];
49
72
  } else {
50
73
  throw new import_property_provider.CredentialsProviderError(
51
74
  `Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`
@@ -58,12 +81,12 @@ var isAssumeRoleProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof
58
81
  var isAssumeRoleWithSourceProfile = /* @__PURE__ */ __name((arg) => typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined", "isAssumeRoleWithSourceProfile");
59
82
  var isAssumeRoleWithProviderProfile = /* @__PURE__ */ __name((arg) => typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined", "isAssumeRoleWithProviderProfile");
60
83
  var resolveAssumeRoleCredentials = /* @__PURE__ */ __name(async (profileName, profiles, options, visitedProfiles = {}) => {
84
+ var _a;
85
+ (_a = options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini", "resolveAssumeRoleCredentials (STS)");
61
86
  const data = profiles[profileName];
62
87
  if (!options.roleAssumer) {
63
- throw new import_property_provider.CredentialsProviderError(
64
- `Profile ${profileName} requires a role to be assumed, but no role assumption callback was provided.`,
65
- false
66
- );
88
+ const { getDefaultRoleAssumer: getDefaultRoleAssumer2 } = await Promise.resolve().then(() => (init_loadSts(), loadSts_exports));
89
+ options.roleAssumer = getDefaultRoleAssumer2(options.clientConfig, options.clientPlugins);
67
90
  }
68
91
  const { source_profile } = data;
69
92
  if (source_profile && source_profile in visitedProfiles) {
@@ -75,7 +98,7 @@ var resolveAssumeRoleCredentials = /* @__PURE__ */ __name(async (profileName, pr
75
98
  const sourceCredsProvider = source_profile ? resolveProfileData(source_profile, profiles, options, {
76
99
  ...visitedProfiles,
77
100
  [source_profile]: true
78
- }) : resolveCredentialSource(data.credential_source, profileName)();
101
+ }) : (await resolveCredentialSource(data.credential_source, profileName)(options))();
79
102
  const params = {
80
103
  RoleArn: data.role_arn,
81
104
  RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`,
@@ -98,19 +121,19 @@ var resolveAssumeRoleCredentials = /* @__PURE__ */ __name(async (profileName, pr
98
121
  }, "resolveAssumeRoleCredentials");
99
122
 
100
123
  // src/resolveProcessCredentials.ts
101
- var import_credential_provider_process = require("@aws-sdk/credential-provider-process");
102
124
  var isProcessProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile");
103
- var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => (0, import_credential_provider_process.fromProcess)({
104
- ...options,
105
- profile
106
- })(), "resolveProcessCredentials");
125
+ var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-process"))).then(
126
+ ({ fromProcess }) => fromProcess({
127
+ ...options,
128
+ profile
129
+ })()
130
+ ), "resolveProcessCredentials");
107
131
 
108
132
  // src/resolveSsoCredentials.ts
109
- var import_credential_provider_sso = require("@aws-sdk/credential-provider-sso");
110
-
111
- var resolveSsoCredentials = /* @__PURE__ */ __name((data) => {
112
- const { sso_start_url, sso_account_id, sso_session, sso_region, sso_role_name } = (0, import_credential_provider_sso.validateSsoProfile)(data);
113
- return (0, import_credential_provider_sso.fromSSO)({
133
+ var resolveSsoCredentials = /* @__PURE__ */ __name(async (data) => {
134
+ const { fromSSO, validateSsoProfile } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-sso")));
135
+ const { sso_start_url, sso_account_id, sso_session, sso_region, sso_role_name } = validateSsoProfile(data);
136
+ return fromSSO({
114
137
  ssoStartUrl: sso_start_url,
115
138
  ssoAccountId: sso_account_id,
116
139
  ssoSession: sso_session,
@@ -118,37 +141,43 @@ var resolveSsoCredentials = /* @__PURE__ */ __name((data) => {
118
141
  ssoRoleName: sso_role_name
119
142
  })();
120
143
  }, "resolveSsoCredentials");
144
+ var isSsoProfile = /* @__PURE__ */ __name((arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"), "isSsoProfile");
121
145
 
122
146
  // src/resolveStaticCredentials.ts
123
147
  var isStaticCredsProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1, "isStaticCredsProfile");
124
- var resolveStaticCredentials = /* @__PURE__ */ __name((profile) => Promise.resolve({
125
- accessKeyId: profile.aws_access_key_id,
126
- secretAccessKey: profile.aws_secret_access_key,
127
- sessionToken: profile.aws_session_token,
128
- credentialScope: profile.aws_credential_scope
129
- }), "resolveStaticCredentials");
148
+ var resolveStaticCredentials = /* @__PURE__ */ __name((profile, options) => {
149
+ var _a;
150
+ (_a = options == null ? void 0 : options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini", "resolveStaticCredentials");
151
+ return Promise.resolve({
152
+ accessKeyId: profile.aws_access_key_id,
153
+ secretAccessKey: profile.aws_secret_access_key,
154
+ sessionToken: profile.aws_session_token,
155
+ credentialScope: profile.aws_credential_scope
156
+ });
157
+ }, "resolveStaticCredentials");
130
158
 
131
159
  // src/resolveWebIdentityCredentials.ts
132
- var import_credential_provider_web_identity = require("@aws-sdk/credential-provider-web-identity");
133
160
  var isWebIdentityProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1, "isWebIdentityProfile");
134
- var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => (0, import_credential_provider_web_identity.fromTokenFile)({
135
- webIdentityTokenFile: profile.web_identity_token_file,
136
- roleArn: profile.role_arn,
137
- roleSessionName: profile.role_session_name,
138
- roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity
139
- })(), "resolveWebIdentityCredentials");
161
+ var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-web-identity"))).then(
162
+ ({ fromTokenFile }) => fromTokenFile({
163
+ webIdentityTokenFile: profile.web_identity_token_file,
164
+ roleArn: profile.role_arn,
165
+ roleSessionName: profile.role_session_name,
166
+ roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity
167
+ })()
168
+ ), "resolveWebIdentityCredentials");
140
169
 
141
170
  // src/resolveProfileData.ts
142
171
  var resolveProfileData = /* @__PURE__ */ __name(async (profileName, profiles, options, visitedProfiles = {}) => {
143
172
  const data = profiles[profileName];
144
173
  if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
145
- return resolveStaticCredentials(data);
174
+ return resolveStaticCredentials(data, options);
146
175
  }
147
176
  if (isAssumeRoleProfile(data)) {
148
177
  return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);
149
178
  }
150
179
  if (isStaticCredsProfile(data)) {
151
- return resolveStaticCredentials(data);
180
+ return resolveStaticCredentials(data, options);
152
181
  }
153
182
  if (isWebIdentityProfile(data)) {
154
183
  return resolveWebIdentityCredentials(data, options);
@@ -156,14 +185,16 @@ var resolveProfileData = /* @__PURE__ */ __name(async (profileName, profiles, op
156
185
  if (isProcessProfile(data)) {
157
186
  return resolveProcessCredentials(options, profileName);
158
187
  }
159
- if ((0, import_credential_provider_sso.isSsoProfile)(data)) {
160
- return resolveSsoCredentials(data);
188
+ if (isSsoProfile(data)) {
189
+ return await resolveSsoCredentials(data);
161
190
  }
162
191
  throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`);
163
192
  }, "resolveProfileData");
164
193
 
165
194
  // src/fromIni.ts
166
195
  var fromIni = /* @__PURE__ */ __name((init = {}) => async () => {
196
+ var _a;
197
+ (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini", "fromIni");
167
198
  const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
168
199
  return resolveProfileData((0, import_shared_ini_file_loader.getProfileName)(init), profiles, init);
169
200
  }, "fromIni");
@@ -0,0 +1 @@
1
+ module.exports = require("./index.js");
@@ -1,6 +1,7 @@
1
1
  import { getProfileName, parseKnownFiles } from "@smithy/shared-ini-file-loader";
2
2
  import { resolveProfileData } from "./resolveProfileData";
3
3
  export const fromIni = (init = {}) => async () => {
4
+ init.logger?.debug("@aws-sdk/credential-provider-ini", "fromIni");
4
5
  const profiles = await parseKnownFiles(init);
5
6
  return resolveProfileData(getProfileName(init), profiles, init);
6
7
  };
@@ -0,0 +1,2 @@
1
+ import { getDefaultRoleAssumer } from "@aws-sdk/client-sts";
2
+ export { getDefaultRoleAssumer };
@@ -12,9 +12,11 @@ export const isAssumeRoleProfile = (arg) => Boolean(arg) &&
12
12
  const isAssumeRoleWithSourceProfile = (arg) => typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined";
13
13
  const isAssumeRoleWithProviderProfile = (arg) => typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined";
14
14
  export const resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => {
15
+ options.logger?.debug("@aws-sdk/credential-provider-ini", "resolveAssumeRoleCredentials (STS)");
15
16
  const data = profiles[profileName];
16
17
  if (!options.roleAssumer) {
17
- throw new CredentialsProviderError(`Profile ${profileName} requires a role to be assumed, but no role assumption callback was provided.`, false);
18
+ const { getDefaultRoleAssumer } = await import("./loadSts");
19
+ options.roleAssumer = getDefaultRoleAssumer(options.clientConfig, options.clientPlugins);
18
20
  }
19
21
  const { source_profile } = data;
20
22
  if (source_profile && source_profile in visitedProfiles) {
@@ -27,7 +29,7 @@ export const resolveAssumeRoleCredentials = async (profileName, profiles, option
27
29
  ...visitedProfiles,
28
30
  [source_profile]: true,
29
31
  })
30
- : resolveCredentialSource(data.credential_source, profileName)();
32
+ : (await resolveCredentialSource(data.credential_source, profileName)(options))();
31
33
  const params = {
32
34
  RoleArn: data.role_arn,
33
35
  RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`,
@@ -1,14 +1,12 @@
1
- import { fromEnv } from "@aws-sdk/credential-provider-env";
2
- import { fromContainerMetadata, fromInstanceMetadata } from "@smithy/credential-provider-imds";
3
1
  import { CredentialsProviderError } from "@smithy/property-provider";
4
2
  export const resolveCredentialSource = (credentialSource, profileName) => {
5
3
  const sourceProvidersMap = {
6
- EcsContainer: fromContainerMetadata,
7
- Ec2InstanceMetadata: fromInstanceMetadata,
8
- Environment: fromEnv,
4
+ EcsContainer: (options) => import("@smithy/credential-provider-imds").then(({ fromContainerMetadata }) => fromContainerMetadata(options)),
5
+ Ec2InstanceMetadata: (options) => import("@smithy/credential-provider-imds").then(({ fromInstanceMetadata }) => fromInstanceMetadata(options)),
6
+ Environment: (options) => import("@aws-sdk/credential-provider-env").then(({ fromEnv }) => fromEnv(options)),
9
7
  };
10
8
  if (credentialSource in sourceProvidersMap) {
11
- return sourceProvidersMap[credentialSource]();
9
+ return sourceProvidersMap[credentialSource];
12
10
  }
13
11
  else {
14
12
  throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` +
@@ -1,6 +1,5 @@
1
- import { fromProcess } from "@aws-sdk/credential-provider-process";
2
1
  export const isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
3
- export const resolveProcessCredentials = async (options, profile) => fromProcess({
2
+ export const resolveProcessCredentials = async (options, profile) => import("@aws-sdk/credential-provider-process").then(({ fromProcess }) => fromProcess({
4
3
  ...options,
5
4
  profile,
6
- })();
5
+ })());
@@ -7,13 +7,13 @@ import { isWebIdentityProfile, resolveWebIdentityCredentials } from "./resolveWe
7
7
  export const resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}) => {
8
8
  const data = profiles[profileName];
9
9
  if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
10
- return resolveStaticCredentials(data);
10
+ return resolveStaticCredentials(data, options);
11
11
  }
12
12
  if (isAssumeRoleProfile(data)) {
13
13
  return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);
14
14
  }
15
15
  if (isStaticCredsProfile(data)) {
16
- return resolveStaticCredentials(data);
16
+ return resolveStaticCredentials(data, options);
17
17
  }
18
18
  if (isWebIdentityProfile(data)) {
19
19
  return resolveWebIdentityCredentials(data, options);
@@ -22,7 +22,7 @@ export const resolveProfileData = async (profileName, profiles, options, visited
22
22
  return resolveProcessCredentials(options, profileName);
23
23
  }
24
24
  if (isSsoProfile(data)) {
25
- return resolveSsoCredentials(data);
25
+ return await resolveSsoCredentials(data);
26
26
  }
27
27
  throw new CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`);
28
28
  };
@@ -1,6 +1,5 @@
1
- import { fromSSO, validateSsoProfile } from "@aws-sdk/credential-provider-sso";
2
- export { isSsoProfile } from "@aws-sdk/credential-provider-sso";
3
- export const resolveSsoCredentials = (data) => {
1
+ export const resolveSsoCredentials = async (data) => {
2
+ const { fromSSO, validateSsoProfile } = await import("@aws-sdk/credential-provider-sso");
4
3
  const { sso_start_url, sso_account_id, sso_session, sso_region, sso_role_name } = validateSsoProfile(data);
5
4
  return fromSSO({
6
5
  ssoStartUrl: sso_start_url,
@@ -10,3 +9,9 @@ export const resolveSsoCredentials = (data) => {
10
9
  ssoRoleName: sso_role_name,
11
10
  })();
12
11
  };
12
+ export const isSsoProfile = (arg) => arg &&
13
+ (typeof arg.sso_start_url === "string" ||
14
+ typeof arg.sso_account_id === "string" ||
15
+ typeof arg.sso_session === "string" ||
16
+ typeof arg.sso_region === "string" ||
17
+ typeof arg.sso_role_name === "string");