@cdk8s/awscdk-resolver 0.0.54 → 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 (371) hide show
  1. package/.jsii +3 -3
  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-cjs/runtimeConfig.js +1 -2
  22. package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormation.js +22 -0
  23. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/CreateGeneratedTemplateCommand.js +24 -0
  24. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DeleteGeneratedTemplateCommand.js +24 -0
  25. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DescribeGeneratedTemplateCommand.js +24 -0
  26. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DescribeResourceScanCommand.js +24 -0
  27. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/GetGeneratedTemplateCommand.js +24 -0
  28. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListGeneratedTemplatesCommand.js +24 -0
  29. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScanRelatedResourcesCommand.js +24 -0
  30. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScanResourcesCommand.js +24 -0
  31. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScansCommand.js +24 -0
  32. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/StartResourceScanCommand.js +24 -0
  33. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/UpdateGeneratedTemplateCommand.js +24 -0
  34. package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/index.js +11 -0
  35. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/index.js +1 -0
  36. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_0.js +104 -0
  37. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_1.js +1 -0
  38. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListGeneratedTemplatesPaginator.js +4 -0
  39. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScanRelatedResourcesPaginator.js +4 -0
  40. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScanResourcesPaginator.js +4 -0
  41. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScansPaginator.js +4 -0
  42. package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/index.js +4 -0
  43. package/node_modules/@aws-sdk/client-cloudformation/dist-es/protocols/Aws_query.js +1322 -92
  44. package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +1 -2
  45. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +77 -0
  46. package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +13 -2
  47. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateGeneratedTemplateCommand.d.ts +116 -0
  48. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteGeneratedTemplateCommand.d.ts +75 -0
  49. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeGeneratedTemplateCommand.d.ts +135 -0
  50. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeResourceScanCommand.d.ts +168 -0
  51. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/GetGeneratedTemplateCommand.d.ts +100 -0
  52. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListGeneratedTemplatesCommand.d.ts +112 -0
  53. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScanRelatedResourcesCommand.d.ts +145 -0
  54. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScanResourcesCommand.d.ts +147 -0
  55. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScansCommand.d.ts +97 -0
  56. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StartResourceScanCommand.d.ts +91 -0
  57. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StopStackSetOperationCommand.d.ts +1 -1
  58. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/TestTypeCommand.d.ts +1 -1
  59. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateGeneratedTemplateCommand.d.ts +156 -0
  60. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackCommand.d.ts +1 -1
  61. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackInstancesCommand.d.ts +1 -1
  62. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackSetCommand.d.ts +1 -1
  63. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateTerminationProtectionCommand.d.ts +1 -1
  64. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ValidateTemplateCommand.d.ts +1 -1
  65. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/index.d.ts +11 -0
  66. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/index.d.ts +1 -0
  67. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +4075 -3877
  68. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_1.d.ts +974 -0
  69. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListGeneratedTemplatesPaginator.d.ts +7 -0
  70. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScanRelatedResourcesPaginator.d.ts +7 -0
  71. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScanResourcesPaginator.d.ts +7 -0
  72. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScansPaginator.d.ts +7 -0
  73. package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/index.d.ts +4 -0
  74. package/node_modules/@aws-sdk/client-cloudformation/dist-types/protocols/Aws_query.d.ts +99 -0
  75. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -1
  76. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormation.d.ts +187 -0
  77. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormationClient.d.ts +66 -0
  78. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CreateGeneratedTemplateCommand.d.ts +30 -0
  79. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeleteGeneratedTemplateCommand.d.ts +26 -0
  80. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeGeneratedTemplateCommand.d.ts +30 -0
  81. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeResourceScanCommand.d.ts +30 -0
  82. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/GetGeneratedTemplateCommand.d.ts +30 -0
  83. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListGeneratedTemplatesCommand.d.ts +30 -0
  84. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScanRelatedResourcesCommand.d.ts +30 -0
  85. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScanResourcesCommand.d.ts +30 -0
  86. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScansCommand.d.ts +29 -0
  87. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StartResourceScanCommand.d.ts +29 -0
  88. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StopStackSetOperationCommand.d.ts +1 -1
  89. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/TestTypeCommand.d.ts +1 -1
  90. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateGeneratedTemplateCommand.d.ts +30 -0
  91. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackCommand.d.ts +1 -1
  92. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackInstancesCommand.d.ts +1 -1
  93. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackSetCommand.d.ts +1 -1
  94. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateTerminationProtectionCommand.d.ts +1 -1
  95. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ValidateTemplateCommand.d.ts +1 -1
  96. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/index.d.ts +11 -0
  97. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/index.d.ts +1 -0
  98. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +250 -99
  99. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_1.d.ts +132 -0
  100. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListGeneratedTemplatesPaginator.d.ts +11 -0
  101. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScanRelatedResourcesPaginator.d.ts +11 -0
  102. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScanResourcesPaginator.d.ts +11 -0
  103. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScansPaginator.d.ts +11 -0
  104. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/index.d.ts +4 -0
  105. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/protocols/Aws_query.d.ts +132 -0
  106. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +6 -2
  107. package/node_modules/@aws-sdk/client-cloudformation/package.json +13 -13
  108. package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +14 -13
  109. package/node_modules/@aws-sdk/client-sso/package.json +10 -10
  110. package/node_modules/@aws-sdk/client-sso-oidc/LICENSE +201 -0
  111. package/node_modules/@aws-sdk/client-sso-oidc/README.md +274 -0
  112. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDC.js +1 -0
  113. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/SSOOIDCClient.js +1 -0
  114. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenCommand.js +1 -0
  115. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/CreateTokenWithIAMCommand.js +1 -0
  116. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/RegisterClientCommand.js +1 -0
  117. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/StartDeviceAuthorizationCommand.js +1 -0
  118. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/commands/index.js +1 -0
  119. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/credentialDefaultProvider.js +29 -0
  120. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/EndpointParameters.js +1 -0
  121. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +12 -0
  122. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js +7 -0
  123. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/extensionConfiguration.js +1 -0
  124. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +1115 -0
  125. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/SSOOIDCServiceException.js +1 -0
  126. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/index.js +1 -0
  127. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/models/models_0.js +1 -0
  128. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/protocols/Aws_restJson1.js +1 -0
  129. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.browser.js +39 -0
  130. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +49 -0
  131. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.native.js +15 -0
  132. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js +24 -0
  133. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeExtensions.js +1 -0
  134. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js +15 -0
  135. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +38 -0
  136. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenCommand.js +25 -0
  137. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js +27 -0
  138. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js +25 -0
  139. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js +25 -0
  140. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/index.js +4 -0
  141. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/credentialDefaultProvider.js +3 -0
  142. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/EndpointParameters.js +14 -0
  143. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/endpointResolver.js +8 -0
  144. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/ruleset.js +4 -0
  145. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/extensionConfiguration.js +1 -0
  146. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js +6 -0
  147. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/SSOOIDCServiceException.js +8 -0
  148. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/index.js +1 -0
  149. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js +217 -0
  150. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +553 -0
  151. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.browser.js +34 -0
  152. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +44 -0
  153. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.native.js +11 -0
  154. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.shared.js +20 -0
  155. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeExtensions.js +18 -0
  156. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDC.d.ts +75 -0
  157. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +210 -0
  158. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +161 -0
  159. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +243 -0
  160. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +107 -0
  161. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +110 -0
  162. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/index.d.ts +4 -0
  163. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/credentialDefaultProvider.d.ts +4 -0
  164. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  165. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/endpointResolver.d.ts +5 -0
  166. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/ruleset.d.ts +2 -0
  167. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/extensionConfiguration.d.ts +8 -0
  168. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/index.d.ts +51 -0
  169. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/SSOOIDCServiceException.d.ts +13 -0
  170. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/index.d.ts +1 -0
  171. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +734 -0
  172. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/protocols/Aws_restJson1.d.ts +38 -0
  173. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +46 -0
  174. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +46 -0
  175. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +45 -0
  176. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +19 -0
  177. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeExtensions.d.ts +17 -0
  178. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDC.d.ts +73 -0
  179. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +142 -0
  180. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +26 -0
  181. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +30 -0
  182. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +29 -0
  183. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +30 -0
  184. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/index.d.ts +4 -0
  185. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/credentialDefaultProvider.d.ts +1 -0
  186. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  187. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  188. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  189. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  190. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/index.d.ts +9 -0
  191. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/SSOOIDCServiceException.d.ts +8 -0
  192. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/index.d.ts +1 -0
  193. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/models_0.d.ts +201 -0
  194. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +53 -0
  195. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  196. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  197. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
  198. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  199. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  200. package/node_modules/@aws-sdk/client-sso-oidc/package.json +103 -0
  201. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +1 -29
  202. package/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +1 -29
  203. package/node_modules/@aws-sdk/client-sts/dist-cjs/credentialDefaultProvider.js +29 -0
  204. package/node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js +1 -78
  205. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1412 -72
  206. package/node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js +1 -12
  207. package/node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js +1 -149
  208. package/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js +1 -1084
  209. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +3 -4
  210. package/node_modules/@aws-sdk/client-sts/dist-es/credentialDefaultProvider.js +3 -0
  211. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +3 -4
  212. package/node_modules/@aws-sdk/client-sts/dist-types/credentialDefaultProvider.d.ts +4 -0
  213. package/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +3 -0
  214. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +8 -3
  215. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/credentialDefaultProvider.d.ts +1 -0
  216. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +26 -14
  217. package/node_modules/@aws-sdk/client-sts/package.json +14 -12
  218. package/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +5 -3
  219. package/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js +2 -1
  220. package/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts +4 -1
  221. package/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/fromEnv.d.ts +5 -1
  222. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  223. package/node_modules/@aws-sdk/credential-provider-http/README.md +10 -0
  224. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +46 -0
  225. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +32 -0
  226. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +65 -0
  227. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttpTypes.js +2 -0
  228. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +59 -0
  229. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +17 -0
  230. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +5 -0
  231. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +5 -0
  232. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js +42 -0
  233. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.browser.js +27 -0
  234. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +59 -0
  235. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttpTypes.js +1 -0
  236. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js +53 -0
  237. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js +13 -0
  238. package/node_modules/@aws-sdk/credential-provider-http/dist-es/index.browser.js +1 -0
  239. package/node_modules/@aws-sdk/credential-provider-http/dist-es/index.js +1 -0
  240. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/checkUrl.d.ts +7 -0
  241. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.browser.d.ts +6 -0
  242. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.d.ts +6 -0
  243. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttpTypes.d.ts +69 -0
  244. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/requestHelpers.d.ts +11 -0
  245. package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/retry-wrapper.d.ts +10 -0
  246. package/node_modules/@aws-sdk/credential-provider-http/dist-types/index.browser.d.ts +2 -0
  247. package/node_modules/@aws-sdk/credential-provider-http/dist-types/index.d.ts +2 -0
  248. package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/checkUrl.d.ts +1 -0
  249. package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttp.browser.d.ts +5 -0
  250. package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttp.d.ts +5 -0
  251. package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttpTypes.d.ts +18 -0
  252. package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/requestHelpers.d.ts +7 -0
  253. package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/retry-wrapper.d.ts +8 -0
  254. package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/index.browser.d.ts +5 -0
  255. package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/index.d.ts +5 -0
  256. package/node_modules/@aws-sdk/credential-provider-http/package.json +67 -0
  257. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +71 -43
  258. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/loadSts.js +1 -0
  259. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +1 -0
  260. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/loadSts.js +2 -0
  261. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +4 -2
  262. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js +4 -6
  263. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +2 -3
  264. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +3 -3
  265. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js +10 -9
  266. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js +9 -6
  267. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +3 -3
  268. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +8 -4
  269. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/loadSts.d.ts +3 -0
  270. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -2
  271. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts +2 -1
  272. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProcessCredentials.d.ts +1 -2
  273. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +1 -1
  274. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts +6 -3
  275. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts +2 -1
  276. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +8 -1
  277. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/loadSts.d.ts +3 -0
  278. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +2 -2
  279. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveCredentialSource.d.ts +4 -1
  280. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProcessCredentials.d.ts +1 -2
  281. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts +6 -3
  282. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveStaticCredentials.d.ts +3 -1
  283. package/node_modules/@aws-sdk/credential-provider-ini/package.json +7 -6
  284. package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +24 -2
  285. package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +11 -1
  286. package/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js +5 -2
  287. package/node_modules/@aws-sdk/credential-provider-node/dist-types/defaultProvider.d.ts +17 -14
  288. package/node_modules/@aws-sdk/credential-provider-node/dist-types/remoteProvider.d.ts +3 -0
  289. package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/defaultProvider.d.ts +5 -2
  290. package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -7
  291. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +2 -0
  292. package/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js +1 -0
  293. package/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +2 -1
  294. package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/fromProcess.d.ts +4 -1
  295. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  296. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +31 -7
  297. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso.js +1 -0
  298. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +5 -1
  299. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js +2 -0
  300. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +7 -5
  301. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +4 -2
  302. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/loadSso.d.ts +3 -0
  303. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +1 -1
  304. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/fromSSO.d.ts +6 -2
  305. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/loadSso.d.ts +6 -0
  306. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/resolveSSOCredentials.d.ts +1 -0
  307. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  308. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +5 -4
  309. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +7 -5
  310. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/loadSts.js +5 -0
  311. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +1 -0
  312. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +6 -5
  313. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/loadSts.js +2 -0
  314. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +4 -3
  315. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromWebToken.d.ts +14 -4
  316. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/loadSts.d.ts +3 -0
  317. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromTokenFile.d.ts +7 -2
  318. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts +12 -6
  319. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/loadSts.d.ts +3 -0
  320. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -2
  321. package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +2 -2
  322. package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
  323. package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +2 -2
  324. package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
  325. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +2 -2
  326. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
  327. package/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +3 -3
  328. package/node_modules/@aws-sdk/middleware-signing/package.json +2 -2
  329. package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +3 -3
  330. package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
  331. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +4 -4
  332. package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
  333. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +27 -24
  334. package/node_modules/@aws-sdk/token-providers/dist-cjs/loadSsoOidc.js +1 -0
  335. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +1 -0
  336. package/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +2 -1
  337. package/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +3 -3
  338. package/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +2 -2
  339. package/node_modules/@aws-sdk/token-providers/dist-es/index.js +0 -1
  340. package/node_modules/@aws-sdk/token-providers/dist-es/loadSsoOidc.js +2 -0
  341. package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +2 -2
  342. package/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +3 -3
  343. package/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +2 -1
  344. package/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +2 -1
  345. package/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +0 -1
  346. package/node_modules/@aws-sdk/token-providers/dist-types/loadSsoOidc.d.ts +2 -0
  347. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +7 -2
  348. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts +7 -2
  349. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +1 -1
  350. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +1 -1
  351. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +0 -1
  352. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/loadSsoOidc.d.ts +2 -0
  353. package/node_modules/@aws-sdk/token-providers/package.json +6 -43
  354. package/node_modules/@aws-sdk/types/dist-cjs/index.js +3 -171
  355. package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +15 -0
  356. package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +4 -0
  357. package/node_modules/@aws-sdk/types/package.json +1 -1
  358. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +4 -24
  359. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  360. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
  361. package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +1 -1
  362. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  363. package/package.json +5 -5
  364. package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-browser.js +0 -1032
  365. package/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js +0 -1038
  366. package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-browser.js +0 -1010
  367. package/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-node.js +0 -1017
  368. package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-browser.d.ts +0 -191
  369. package/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-node.d.ts +0 -191
  370. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-browser.d.ts +0 -235
  371. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-node.d.ts +0 -235
@@ -0,0 +1,59 @@
1
+ import { NodeHttpHandler } from "@smithy/node-http-handler";
2
+ import { CredentialsProviderError } from "@smithy/property-provider";
3
+ import fs from "fs/promises";
4
+ import { checkUrl } from "./checkUrl";
5
+ import { createGetRequest, getCredentials } from "./requestHelpers";
6
+ import { retryWrapper } from "./retry-wrapper";
7
+ const AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
8
+ const DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2";
9
+ const AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
10
+ const AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE";
11
+ const AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
12
+ export const fromHttp = (options) => {
13
+ options.logger?.debug("@aws-sdk/credential-provider-http", "fromHttp");
14
+ let host;
15
+ const relative = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
16
+ const full = options.awsContainerCredentialsFullUri ?? process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI];
17
+ const token = options.awsContainerAuthorizationToken ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN];
18
+ const tokenFile = options.awsContainerAuthorizationTokenFile ?? process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE];
19
+ if (relative && full) {
20
+ console.warn("AWS SDK HTTP credentials provider:", "you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.");
21
+ console.warn("awsContainerCredentialsFullUri will take precedence.");
22
+ }
23
+ if (token && tokenFile) {
24
+ console.warn("AWS SDK HTTP credentials provider:", "you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.");
25
+ console.warn("awsContainerAuthorizationToken will take precedence.");
26
+ }
27
+ if (full) {
28
+ host = full;
29
+ }
30
+ else if (relative) {
31
+ host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;
32
+ }
33
+ else {
34
+ throw new CredentialsProviderError(`No HTTP credential provider host provided.
35
+ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`);
36
+ }
37
+ const url = new URL(host);
38
+ checkUrl(url);
39
+ const requestHandler = new NodeHttpHandler({
40
+ requestTimeout: options.timeout ?? 1000,
41
+ connectionTimeout: options.timeout ?? 1000,
42
+ });
43
+ return retryWrapper(async () => {
44
+ const request = createGetRequest(url);
45
+ if (token) {
46
+ request.headers.Authorization = token;
47
+ }
48
+ else if (tokenFile) {
49
+ request.headers.Authorization = (await fs.readFile(tokenFile)).toString();
50
+ }
51
+ try {
52
+ const result = await requestHandler.handle(request);
53
+ return getCredentials(result.response);
54
+ }
55
+ catch (e) {
56
+ throw new CredentialsProviderError(String(e));
57
+ }
58
+ }, options.maxRetries ?? 3, options.timeout ?? 1000);
59
+ };
@@ -0,0 +1,53 @@
1
+ import { CredentialsProviderError } from "@smithy/property-provider";
2
+ import { HttpRequest } from "@smithy/protocol-http";
3
+ import { parseRfc3339DateTime } from "@smithy/smithy-client";
4
+ import { sdkStreamMixin } from "@smithy/util-stream";
5
+ export function createGetRequest(url) {
6
+ return new HttpRequest({
7
+ protocol: url.protocol,
8
+ hostname: url.hostname,
9
+ port: Number(url.port),
10
+ path: url.pathname,
11
+ query: Array.from(url.searchParams.entries()).reduce((acc, [k, v]) => {
12
+ acc[k] = v;
13
+ return acc;
14
+ }, {}),
15
+ fragment: url.hash,
16
+ });
17
+ }
18
+ export async function getCredentials(response) {
19
+ const contentType = response?.headers["content-type"] ?? response?.headers["Content-Type"] ?? "";
20
+ if (!contentType.includes("json")) {
21
+ console.warn("HTTP credential provider response header content-type was not application/json. Observed: " + contentType + ".");
22
+ }
23
+ const stream = sdkStreamMixin(response.body);
24
+ const str = await stream.transformToString();
25
+ if (response.statusCode === 200) {
26
+ const parsed = JSON.parse(str);
27
+ if (typeof parsed.AccessKeyId !== "string" ||
28
+ typeof parsed.SecretAccessKey !== "string" ||
29
+ typeof parsed.Token !== "string" ||
30
+ typeof parsed.Expiration !== "string") {
31
+ throw new CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " +
32
+ "{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }");
33
+ }
34
+ return {
35
+ accessKeyId: parsed.AccessKeyId,
36
+ secretAccessKey: parsed.SecretAccessKey,
37
+ sessionToken: parsed.Token,
38
+ expiration: parseRfc3339DateTime(parsed.Expiration),
39
+ };
40
+ }
41
+ if (response.statusCode >= 400 && response.statusCode < 500) {
42
+ let parsedBody = {};
43
+ try {
44
+ parsedBody = JSON.parse(str);
45
+ }
46
+ catch (e) { }
47
+ throw Object.assign(new CredentialsProviderError(`Server responded with status: ${response.statusCode}`), {
48
+ Code: parsedBody.Code,
49
+ Message: parsedBody.Message,
50
+ });
51
+ }
52
+ throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`);
53
+ }
@@ -0,0 +1,13 @@
1
+ export const retryWrapper = (toRetry, maxRetries, delayMs) => {
2
+ return async () => {
3
+ for (let i = 0; i < maxRetries; ++i) {
4
+ try {
5
+ return await toRetry();
6
+ }
7
+ catch (e) {
8
+ await new Promise((resolve) => setTimeout(resolve, delayMs));
9
+ }
10
+ }
11
+ return await toRetry();
12
+ };
13
+ };
@@ -0,0 +1 @@
1
+ export { fromHttp } from "./fromHttp/fromHttp.browser";
@@ -0,0 +1 @@
1
+ export { fromHttp } from "./fromHttp/fromHttp";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @internal
3
+ *
4
+ * @param url - to be validated.
5
+ * @throws if not acceptable to this provider.
6
+ */
7
+ export declare const checkUrl: (url: URL) => void;
@@ -0,0 +1,6 @@
1
+ import { AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import type { FromHttpOptions } from "./fromHttpTypes";
3
+ /**
4
+ * Creates a provider that gets credentials via HTTP request.
5
+ */
6
+ export declare const fromHttp: (options: FromHttpOptions) => AwsCredentialIdentityProvider;
@@ -0,0 +1,6 @@
1
+ import { AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import type { FromHttpOptions } from "./fromHttpTypes";
3
+ /**
4
+ * Creates a provider that gets credentials via HTTP request.
5
+ */
6
+ export declare const fromHttp: (options: FromHttpOptions) => AwsCredentialIdentityProvider;
@@ -0,0 +1,69 @@
1
+ import type { CredentialProviderOptions } from "@aws-sdk/types";
2
+ /**
3
+ * @public
4
+ *
5
+ * Input for the fromHttp function in the HTTP Credentials Provider for Node.js.
6
+ */
7
+ export interface FromHttpOptions extends CredentialProviderOptions {
8
+ /**
9
+ * If this value is provided, it will be used as-is.
10
+ *
11
+ * For browser environments, use instead {@link credentialsFullUri}.
12
+ */
13
+ awsContainerCredentialsFullUri?: string;
14
+ /**
15
+ * If this value is provided instead of the full URI, it
16
+ * will be appended to the default link local host of 169.254.170.2.
17
+ *
18
+ * Not supported in browsers.
19
+ */
20
+ awsContainerCredentialsRelativeUri?: string;
21
+ /**
22
+ * Will be read on each credentials request to
23
+ * add an Authorization request header value.
24
+ *
25
+ * Not supported in browsers.
26
+ */
27
+ awsContainerAuthorizationTokenFile?: string;
28
+ /**
29
+ * An alternative to awsContainerAuthorizationTokenFile,
30
+ * this is the token value itself.
31
+ *
32
+ * For browser environments, use instead {@link authorizationToken}.
33
+ */
34
+ awsContainerAuthorizationToken?: string;
35
+ /**
36
+ * BROWSER ONLY.
37
+ *
38
+ * In browsers, a relative URI is not allowed, and a full URI must be provided.
39
+ * HTTPS is required.
40
+ *
41
+ * This value is required for the browser environment.
42
+ */
43
+ credentialsFullUri?: string;
44
+ /**
45
+ * BROWSER ONLY.
46
+ *
47
+ * Providing this value will set an "Authorization" request
48
+ * header value on the GET request.
49
+ */
50
+ authorizationToken?: string;
51
+ /**
52
+ * Default is 3 retry attempts or 4 total attempts.
53
+ */
54
+ maxRetries?: number;
55
+ /**
56
+ * Default is 1000ms. Time in milliseconds to spend waiting between retry attempts.
57
+ */
58
+ timeout?: number;
59
+ }
60
+ /**
61
+ * @public
62
+ */
63
+ export type HttpProviderCredentials = {
64
+ AccessKeyId: string;
65
+ SecretAccessKey: string;
66
+ Token: string;
67
+ AccountId?: string;
68
+ Expiration: string;
69
+ };
@@ -0,0 +1,11 @@
1
+ import { AwsCredentialIdentity } from "@aws-sdk/types";
2
+ import { HttpRequest } from "@smithy/protocol-http";
3
+ import { HttpResponse } from "@smithy/types";
4
+ /**
5
+ * @internal
6
+ */
7
+ export declare function createGetRequest(url: URL): HttpRequest;
8
+ /**
9
+ * @internal
10
+ */
11
+ export declare function getCredentials(response: HttpResponse): Promise<AwsCredentialIdentity>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export interface RetryableProvider<T> {
5
+ (): Promise<T>;
6
+ }
7
+ /**
8
+ * @internal
9
+ */
10
+ export declare const retryWrapper: <T>(toRetry: RetryableProvider<T>, maxRetries: number, delayMs: number) => RetryableProvider<T>;
@@ -0,0 +1,2 @@
1
+ export { fromHttp } from "./fromHttp/fromHttp.browser";
2
+ export type { FromHttpOptions, HttpProviderCredentials } from "./fromHttp/fromHttpTypes";
@@ -0,0 +1,2 @@
1
+ export { fromHttp } from "./fromHttp/fromHttp";
2
+ export type { FromHttpOptions, HttpProviderCredentials } from "./fromHttp/fromHttpTypes";
@@ -0,0 +1 @@
1
+ export declare const checkUrl: (url: URL) => void;
@@ -0,0 +1,5 @@
1
+ import { AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import { FromHttpOptions } from "./fromHttpTypes";
3
+ export declare const fromHttp: (
4
+ options: FromHttpOptions
5
+ ) => AwsCredentialIdentityProvider;
@@ -0,0 +1,5 @@
1
+ import { AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import { FromHttpOptions } from "./fromHttpTypes";
3
+ export declare const fromHttp: (
4
+ options: FromHttpOptions
5
+ ) => AwsCredentialIdentityProvider;
@@ -0,0 +1,18 @@
1
+ import { CredentialProviderOptions } from "@aws-sdk/types";
2
+ export interface FromHttpOptions extends CredentialProviderOptions {
3
+ awsContainerCredentialsFullUri?: string;
4
+ awsContainerCredentialsRelativeUri?: string;
5
+ awsContainerAuthorizationTokenFile?: string;
6
+ awsContainerAuthorizationToken?: string;
7
+ credentialsFullUri?: string;
8
+ authorizationToken?: string;
9
+ maxRetries?: number;
10
+ timeout?: number;
11
+ }
12
+ export type HttpProviderCredentials = {
13
+ AccessKeyId: string;
14
+ SecretAccessKey: string;
15
+ Token: string;
16
+ AccountId?: string;
17
+ Expiration: string;
18
+ };
@@ -0,0 +1,7 @@
1
+ import { AwsCredentialIdentity } from "@aws-sdk/types";
2
+ import { HttpRequest } from "@smithy/protocol-http";
3
+ import { HttpResponse } from "@smithy/types";
4
+ export declare function createGetRequest(url: URL): HttpRequest;
5
+ export declare function getCredentials(
6
+ response: HttpResponse
7
+ ): Promise<AwsCredentialIdentity>;
@@ -0,0 +1,8 @@
1
+ export interface RetryableProvider<T> {
2
+ (): Promise<T>;
3
+ }
4
+ export declare const retryWrapper: <T>(
5
+ toRetry: RetryableProvider<T>,
6
+ maxRetries: number,
7
+ delayMs: number
8
+ ) => RetryableProvider<T>;
@@ -0,0 +1,5 @@
1
+ export { fromHttp } from "./fromHttp/fromHttp.browser";
2
+ export {
3
+ FromHttpOptions,
4
+ HttpProviderCredentials,
5
+ } from "./fromHttp/fromHttpTypes";
@@ -0,0 +1,5 @@
1
+ export { fromHttp } from "./fromHttp/fromHttp";
2
+ export {
3
+ FromHttpOptions,
4
+ HttpProviderCredentials,
5
+ } from "./fromHttp/fromHttpTypes";
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@aws-sdk/credential-provider-http",
3
+ "version": "3.503.1",
4
+ "description": "AWS credential provider for containers and HTTP sources",
5
+ "main": "./dist-cjs/index.js",
6
+ "module": "./dist-es/index.js",
7
+ "browser": "./dist-es/index.browser.js",
8
+ "react-native": "./dist-es/index.browser.js",
9
+ "scripts": {
10
+ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
11
+ "build:cjs": "node ../../scripts/compilation/inline credential-provider-http",
12
+ "build:es": "tsc -p tsconfig.es.json",
13
+ "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
14
+ "build:types": "tsc -p tsconfig.types.json",
15
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
16
+ "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
17
+ "test": "jest"
18
+ },
19
+ "keywords": [
20
+ "aws",
21
+ "credentials"
22
+ ],
23
+ "author": {
24
+ "name": "AWS SDK for JavaScript Team",
25
+ "url": "https://aws.amazon.com/javascript/"
26
+ },
27
+ "license": "Apache-2.0",
28
+ "dependencies": {
29
+ "@aws-sdk/types": "3.502.0",
30
+ "@smithy/fetch-http-handler": "^2.4.1",
31
+ "@smithy/node-http-handler": "^2.3.1",
32
+ "@smithy/property-provider": "^2.1.1",
33
+ "@smithy/protocol-http": "^3.1.1",
34
+ "@smithy/smithy-client": "^2.3.1",
35
+ "@smithy/types": "^2.9.1",
36
+ "@smithy/util-stream": "^2.1.1",
37
+ "tslib": "^2.5.0"
38
+ },
39
+ "devDependencies": {
40
+ "@tsconfig/recommended": "1.0.1",
41
+ "@types/node": "^14.14.31",
42
+ "concurrently": "7.0.0",
43
+ "downlevel-dts": "0.10.1",
44
+ "rimraf": "3.0.2",
45
+ "typescript": "~4.9.5"
46
+ },
47
+ "types": "./dist-types/index.d.ts",
48
+ "engines": {
49
+ "node": ">=14.0.0"
50
+ },
51
+ "typesVersions": {
52
+ "<4.0": {
53
+ "dist-types/*": [
54
+ "dist-types/ts3.4/*"
55
+ ]
56
+ }
57
+ },
58
+ "files": [
59
+ "dist-*/**"
60
+ ],
61
+ "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/credential-provider-http",
62
+ "repository": {
63
+ "type": "git",
64
+ "url": "https://github.com/aws/aws-sdk-js-v3.git",
65
+ "directory": "packages/credential-provider-http"
66
+ }
67
+ }
@@ -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,57 +121,60 @@ 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)({
114
- ssoStartUrl: sso_start_url,
115
- ssoAccountId: sso_account_id,
116
- ssoSession: sso_session,
117
- ssoRegion: sso_region,
118
- ssoRoleName: sso_role_name
133
+ var resolveSsoCredentials = /* @__PURE__ */ __name(async (profile, options = {}) => {
134
+ const { fromSSO } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-sso")));
135
+ return fromSSO({
136
+ profile,
137
+ logger: options.logger
119
138
  })();
120
139
  }, "resolveSsoCredentials");
140
+ 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
141
 
122
142
  // src/resolveStaticCredentials.ts
123
143
  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");
144
+ var resolveStaticCredentials = /* @__PURE__ */ __name((profile, options) => {
145
+ var _a;
146
+ (_a = options == null ? void 0 : options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini", "resolveStaticCredentials");
147
+ return Promise.resolve({
148
+ accessKeyId: profile.aws_access_key_id,
149
+ secretAccessKey: profile.aws_secret_access_key,
150
+ sessionToken: profile.aws_session_token,
151
+ credentialScope: profile.aws_credential_scope
152
+ });
153
+ }, "resolveStaticCredentials");
130
154
 
131
155
  // src/resolveWebIdentityCredentials.ts
132
- var import_credential_provider_web_identity = require("@aws-sdk/credential-provider-web-identity");
133
156
  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");
157
+ var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options) => Promise.resolve().then(() => __toESM(require("@aws-sdk/credential-provider-web-identity"))).then(
158
+ ({ fromTokenFile }) => fromTokenFile({
159
+ webIdentityTokenFile: profile.web_identity_token_file,
160
+ roleArn: profile.role_arn,
161
+ roleSessionName: profile.role_session_name,
162
+ roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
163
+ logger: options.logger
164
+ })()
165
+ ), "resolveWebIdentityCredentials");
140
166
 
141
167
  // src/resolveProfileData.ts
142
168
  var resolveProfileData = /* @__PURE__ */ __name(async (profileName, profiles, options, visitedProfiles = {}) => {
143
169
  const data = profiles[profileName];
144
170
  if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
145
- return resolveStaticCredentials(data);
171
+ return resolveStaticCredentials(data, options);
146
172
  }
147
173
  if (isAssumeRoleProfile(data)) {
148
174
  return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);
149
175
  }
150
176
  if (isStaticCredsProfile(data)) {
151
- return resolveStaticCredentials(data);
177
+ return resolveStaticCredentials(data, options);
152
178
  }
153
179
  if (isWebIdentityProfile(data)) {
154
180
  return resolveWebIdentityCredentials(data, options);
@@ -156,14 +182,16 @@ var resolveProfileData = /* @__PURE__ */ __name(async (profileName, profiles, op
156
182
  if (isProcessProfile(data)) {
157
183
  return resolveProcessCredentials(options, profileName);
158
184
  }
159
- if ((0, import_credential_provider_sso.isSsoProfile)(data)) {
160
- return resolveSsoCredentials(data);
185
+ if (isSsoProfile(data)) {
186
+ return await resolveSsoCredentials(profileName, options);
161
187
  }
162
188
  throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`);
163
189
  }, "resolveProfileData");
164
190
 
165
191
  // src/fromIni.ts
166
192
  var fromIni = /* @__PURE__ */ __name((init = {}) => async () => {
193
+ var _a;
194
+ (_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini", "fromIni");
167
195
  const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
168
196
  return resolveProfileData((0, import_shared_ini_file_loader.getProfileName)(init), profiles, init);
169
197
  }, "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()}`,