serverless-spy 0.0.5 → 0.0.6

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 (269) hide show
  1. package/.jsii +3 -2
  2. package/lib/ServerlessSpy.js +1 -1
  3. package/listener/createServerlessSpyListener.ts +12 -2
  4. package/listener/index.ts +1 -0
  5. package/node_modules/@aws-sdk/client-cognito-identity/CHANGELOG.md +4150 -0
  6. package/node_modules/@aws-sdk/client-cognito-identity/LICENSE +201 -0
  7. package/node_modules/@aws-sdk/client-cognito-identity/README.md +219 -0
  8. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/CognitoIdentity.js +352 -0
  9. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/CognitoIdentityClient.js +36 -0
  10. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/CreateIdentityPoolCommand.js +38 -0
  11. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/DeleteIdentitiesCommand.js +38 -0
  12. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/DeleteIdentityPoolCommand.js +38 -0
  13. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/DescribeIdentityCommand.js +38 -0
  14. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/DescribeIdentityPoolCommand.js +38 -0
  15. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetCredentialsForIdentityCommand.js +36 -0
  16. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetIdCommand.js +36 -0
  17. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetIdentityPoolRolesCommand.js +38 -0
  18. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetOpenIdTokenCommand.js +36 -0
  19. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetOpenIdTokenForDeveloperIdentityCommand.js +38 -0
  20. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetPrincipalTagAttributeMapCommand.js +38 -0
  21. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/ListIdentitiesCommand.js +38 -0
  22. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/ListIdentityPoolsCommand.js +38 -0
  23. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/ListTagsForResourceCommand.js +38 -0
  24. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/LookupDeveloperIdentityCommand.js +38 -0
  25. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/MergeDeveloperIdentitiesCommand.js +38 -0
  26. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/SetIdentityPoolRolesCommand.js +38 -0
  27. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/SetPrincipalTagAttributeMapCommand.js +38 -0
  28. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/TagResourceCommand.js +38 -0
  29. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/UnlinkDeveloperIdentityCommand.js +38 -0
  30. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/UnlinkIdentityCommand.js +36 -0
  31. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/UntagResourceCommand.js +38 -0
  32. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/UpdateIdentityPoolCommand.js +38 -0
  33. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/index.js +26 -0
  34. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/endpoints.js +167 -0
  35. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js +11 -0
  36. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/models/CognitoIdentityServiceException.js +11 -0
  37. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/models/index.js +4 -0
  38. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/models/models_0.js +354 -0
  39. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/pagination/Interfaces.js +2 -0
  40. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/pagination/ListIdentityPoolsPaginator.js +36 -0
  41. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/pagination/index.js +5 -0
  42. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/protocols/Aws_json1_1.js +2236 -0
  43. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/runtimeConfig.browser.js +45 -0
  44. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/runtimeConfig.js +52 -0
  45. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/runtimeConfig.native.js +16 -0
  46. package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/runtimeConfig.shared.js +17 -0
  47. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/CognitoIdentity.js +355 -0
  48. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/CognitoIdentityClient.js +38 -0
  49. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/CreateIdentityPoolCommand.js +41 -0
  50. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/DeleteIdentitiesCommand.js +41 -0
  51. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/DeleteIdentityPoolCommand.js +41 -0
  52. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/DescribeIdentityCommand.js +41 -0
  53. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/DescribeIdentityPoolCommand.js +41 -0
  54. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetCredentialsForIdentityCommand.js +39 -0
  55. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetIdCommand.js +39 -0
  56. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetIdentityPoolRolesCommand.js +41 -0
  57. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetOpenIdTokenCommand.js +39 -0
  58. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetOpenIdTokenForDeveloperIdentityCommand.js +41 -0
  59. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetPrincipalTagAttributeMapCommand.js +41 -0
  60. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/ListIdentitiesCommand.js +41 -0
  61. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/ListIdentityPoolsCommand.js +41 -0
  62. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/ListTagsForResourceCommand.js +41 -0
  63. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/LookupDeveloperIdentityCommand.js +41 -0
  64. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/MergeDeveloperIdentitiesCommand.js +41 -0
  65. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/SetIdentityPoolRolesCommand.js +41 -0
  66. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/SetPrincipalTagAttributeMapCommand.js +41 -0
  67. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/TagResourceCommand.js +41 -0
  68. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/UnlinkDeveloperIdentityCommand.js +41 -0
  69. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/UnlinkIdentityCommand.js +39 -0
  70. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/UntagResourceCommand.js +41 -0
  71. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/UpdateIdentityPoolCommand.js +41 -0
  72. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/index.js +23 -0
  73. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/endpoints.js +163 -0
  74. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/index.js +6 -0
  75. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/models/CognitoIdentityServiceException.js +12 -0
  76. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/models/index.js +1 -0
  77. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/models/models_0.js +202 -0
  78. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/pagination/Interfaces.js +1 -0
  79. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/pagination/ListIdentityPoolsPaginator.js +75 -0
  80. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/pagination/index.js +2 -0
  81. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/protocols/Aws_json1_1.js +2662 -0
  82. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/runtimeConfig.browser.js +26 -0
  83. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/runtimeConfig.js +30 -0
  84. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/runtimeConfig.native.js +8 -0
  85. package/node_modules/@aws-sdk/client-cognito-identity/dist-es/runtimeConfig.shared.js +13 -0
  86. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/CognitoIdentity.d.ts +295 -0
  87. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/CognitoIdentityClient.d.ts +180 -0
  88. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/CreateIdentityPoolCommand.d.ts +61 -0
  89. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/DeleteIdentitiesCommand.d.ts +37 -0
  90. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/DeleteIdentityPoolCommand.d.ts +37 -0
  91. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/DescribeIdentityCommand.d.ts +37 -0
  92. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/DescribeIdentityPoolCommand.d.ts +37 -0
  93. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetCredentialsForIdentityCommand.d.ts +39 -0
  94. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetIdCommand.d.ts +37 -0
  95. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetIdentityPoolRolesCommand.d.ts +36 -0
  96. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetOpenIdTokenCommand.d.ts +39 -0
  97. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetOpenIdTokenForDeveloperIdentityCommand.d.ts +47 -0
  98. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetPrincipalTagAttributeMapCommand.d.ts +35 -0
  99. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/ListIdentitiesCommand.d.ts +36 -0
  100. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/ListIdentityPoolsCommand.d.ts +36 -0
  101. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/ListTagsForResourceCommand.d.ts +38 -0
  102. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/LookupDeveloperIdentityCommand.d.ts +51 -0
  103. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/MergeDeveloperIdentitiesCommand.d.ts +47 -0
  104. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/SetIdentityPoolRolesCommand.d.ts +36 -0
  105. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/SetPrincipalTagAttributeMapCommand.d.ts +35 -0
  106. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/TagResourceCommand.d.ts +49 -0
  107. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/UnlinkDeveloperIdentityCommand.d.ts +39 -0
  108. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/UnlinkIdentityCommand.d.ts +38 -0
  109. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/UntagResourceCommand.d.ts +36 -0
  110. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/UpdateIdentityPoolCommand.d.ts +36 -0
  111. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/index.d.ts +23 -0
  112. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/endpoints.d.ts +2 -0
  113. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/index.d.ts +6 -0
  114. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/models/CognitoIdentityServiceException.d.ts +10 -0
  115. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/models/index.d.ts +1 -0
  116. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/models/models_0.d.ts +1166 -0
  117. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/pagination/Interfaces.d.ts +6 -0
  118. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/pagination/ListIdentityPoolsPaginator.d.ts +4 -0
  119. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/pagination/index.d.ts +2 -0
  120. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/protocols/Aws_json1_1.d.ts +71 -0
  121. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/runtimeConfig.browser.d.ts +40 -0
  122. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/runtimeConfig.d.ts +40 -0
  123. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/runtimeConfig.native.d.ts +39 -0
  124. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/runtimeConfig.shared.d.ts +13 -0
  125. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/CognitoIdentity.d.ts +120 -0
  126. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/CognitoIdentityClient.d.ts +96 -0
  127. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/CreateIdentityPoolCommand.d.ts +17 -0
  128. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/DeleteIdentitiesCommand.d.ts +17 -0
  129. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/DeleteIdentityPoolCommand.d.ts +17 -0
  130. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/DescribeIdentityCommand.d.ts +17 -0
  131. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/DescribeIdentityPoolCommand.d.ts +17 -0
  132. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetCredentialsForIdentityCommand.d.ts +17 -0
  133. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetIdCommand.d.ts +17 -0
  134. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetIdentityPoolRolesCommand.d.ts +17 -0
  135. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetOpenIdTokenCommand.d.ts +17 -0
  136. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetOpenIdTokenForDeveloperIdentityCommand.d.ts +17 -0
  137. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetPrincipalTagAttributeMapCommand.d.ts +17 -0
  138. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/ListIdentitiesCommand.d.ts +17 -0
  139. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/ListIdentityPoolsCommand.d.ts +17 -0
  140. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  141. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/LookupDeveloperIdentityCommand.d.ts +17 -0
  142. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/MergeDeveloperIdentitiesCommand.d.ts +17 -0
  143. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/SetIdentityPoolRolesCommand.d.ts +17 -0
  144. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/SetPrincipalTagAttributeMapCommand.d.ts +17 -0
  145. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  146. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/UnlinkDeveloperIdentityCommand.d.ts +17 -0
  147. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/UnlinkIdentityCommand.d.ts +17 -0
  148. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  149. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/UpdateIdentityPoolCommand.d.ts +17 -0
  150. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/index.d.ts +23 -0
  151. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/endpoints.d.ts +2 -0
  152. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/index.d.ts +6 -0
  153. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/models/CognitoIdentityServiceException.d.ts +6 -0
  154. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/models/index.d.ts +1 -0
  155. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/models/models_0.d.ts +567 -0
  156. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  157. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/pagination/ListIdentityPoolsPaginator.d.ts +4 -0
  158. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/pagination/index.d.ts +2 -0
  159. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +71 -0
  160. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  161. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  162. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  163. package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  164. package/node_modules/@aws-sdk/client-cognito-identity/package.json +107 -0
  165. package/node_modules/@aws-sdk/credential-provider-cognito-identity/CHANGELOG.md +4874 -0
  166. package/node_modules/@aws-sdk/credential-provider-cognito-identity/LICENSE +201 -0
  167. package/node_modules/@aws-sdk/credential-provider-cognito-identity/README.md +11 -0
  168. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/CognitoProviderParameters.js +2 -0
  169. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/InMemoryStorage.js +21 -0
  170. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/IndexedDbStorage.js +71 -0
  171. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/Logins.js +2 -0
  172. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/Storage.js +2 -0
  173. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/fromCognitoIdentity.js +32 -0
  174. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/fromCognitoIdentityPool.js +42 -0
  175. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js +8 -0
  176. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/localStorage.js +16 -0
  177. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/resolveLogins.js +19 -0
  178. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/CognitoProviderParameters.js +1 -0
  179. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/InMemoryStorage.js +20 -0
  180. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/IndexedDbStorage.js +70 -0
  181. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/Logins.js +1 -0
  182. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/Storage.js +1 -0
  183. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/fromCognitoIdentity.js +50 -0
  184. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/fromCognitoIdentityPool.js +73 -0
  185. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/index.js +5 -0
  186. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/localStorage.js +12 -0
  187. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/resolveLogins.js +19 -0
  188. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/CognitoProviderParameters.d.ts +25 -0
  189. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/InMemoryStorage.d.ts +8 -0
  190. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/IndexedDbStorage.d.ts +10 -0
  191. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/Logins.d.ts +3 -0
  192. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/Storage.d.ts +14 -0
  193. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/fromCognitoIdentity.d.ts +23 -0
  194. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/fromCognitoIdentityPool.d.ts +44 -0
  195. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/index.d.ts +5 -0
  196. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/localStorage.d.ts +2 -0
  197. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/resolveLogins.d.ts +5 -0
  198. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/CognitoProviderParameters.d.ts +10 -0
  199. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/InMemoryStorage.d.ts +8 -0
  200. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/IndexedDbStorage.d.ts +10 -0
  201. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/Logins.d.ts +3 -0
  202. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/Storage.d.ts +6 -0
  203. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/fromCognitoIdentity.d.ts +13 -0
  204. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/fromCognitoIdentityPool.d.ts +15 -0
  205. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/index.d.ts +5 -0
  206. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/localStorage.d.ts +2 -0
  207. package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/resolveLogins.d.ts +3 -0
  208. package/node_modules/@aws-sdk/credential-provider-cognito-identity/package.json +59 -0
  209. package/node_modules/@aws-sdk/credential-providers/CHANGELOG.md +570 -0
  210. package/node_modules/@aws-sdk/credential-providers/LICENSE +201 -0
  211. package/node_modules/@aws-sdk/credential-providers/README.md +663 -0
  212. package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromCognitoIdentity.js +13 -0
  213. package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromCognitoIdentityPool.js +13 -0
  214. package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromContainerMetadata.js +6 -0
  215. package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromEnv.js +6 -0
  216. package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromIni.js +14 -0
  217. package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromInstanceMetadata.js +6 -0
  218. package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromNodeProviderChain.js +14 -0
  219. package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromProcess.js +6 -0
  220. package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromSSO.js +7 -0
  221. package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromTemporaryCredentials.js +31 -0
  222. package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromTokenFile.js +13 -0
  223. package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromWebToken.js +13 -0
  224. package/node_modules/@aws-sdk/credential-providers/dist-cjs/index.js +15 -0
  225. package/node_modules/@aws-sdk/credential-providers/dist-cjs/index.web.js +7 -0
  226. package/node_modules/@aws-sdk/credential-providers/dist-es/fromCognitoIdentity.js +7 -0
  227. package/node_modules/@aws-sdk/credential-providers/dist-es/fromCognitoIdentityPool.js +7 -0
  228. package/node_modules/@aws-sdk/credential-providers/dist-es/fromContainerMetadata.js +2 -0
  229. package/node_modules/@aws-sdk/credential-providers/dist-es/fromEnv.js +2 -0
  230. package/node_modules/@aws-sdk/credential-providers/dist-es/fromIni.js +8 -0
  231. package/node_modules/@aws-sdk/credential-providers/dist-es/fromInstanceMetadata.js +2 -0
  232. package/node_modules/@aws-sdk/credential-providers/dist-es/fromNodeProviderChain.js +8 -0
  233. package/node_modules/@aws-sdk/credential-providers/dist-es/fromProcess.js +2 -0
  234. package/node_modules/@aws-sdk/credential-providers/dist-es/fromSSO.js +7 -0
  235. package/node_modules/@aws-sdk/credential-providers/dist-es/fromTemporaryCredentials.js +40 -0
  236. package/node_modules/@aws-sdk/credential-providers/dist-es/fromTokenFile.js +8 -0
  237. package/node_modules/@aws-sdk/credential-providers/dist-es/fromWebToken.js +7 -0
  238. package/node_modules/@aws-sdk/credential-providers/dist-es/index.js +12 -0
  239. package/node_modules/@aws-sdk/credential-providers/dist-es/index.web.js +4 -0
  240. package/node_modules/@aws-sdk/credential-providers/dist-types/fromCognitoIdentity.d.ts +45 -0
  241. package/node_modules/@aws-sdk/credential-providers/dist-types/fromCognitoIdentityPool.d.ts +46 -0
  242. package/node_modules/@aws-sdk/credential-providers/dist-types/fromContainerMetadata.d.ts +24 -0
  243. package/node_modules/@aws-sdk/credential-providers/dist-types/fromEnv.d.ts +26 -0
  244. package/node_modules/@aws-sdk/credential-providers/dist-types/fromIni.d.ts +43 -0
  245. package/node_modules/@aws-sdk/credential-providers/dist-types/fromInstanceMetadata.d.ts +22 -0
  246. package/node_modules/@aws-sdk/credential-providers/dist-types/fromNodeProviderChain.d.ts +29 -0
  247. package/node_modules/@aws-sdk/credential-providers/dist-types/fromProcess.d.ts +28 -0
  248. package/node_modules/@aws-sdk/credential-providers/dist-types/fromSSO.d.ts +48 -0
  249. package/node_modules/@aws-sdk/credential-providers/dist-types/fromTemporaryCredentials.d.ts +48 -0
  250. package/node_modules/@aws-sdk/credential-providers/dist-types/fromTokenFile.d.ts +32 -0
  251. package/node_modules/@aws-sdk/credential-providers/dist-types/fromWebToken.d.ts +41 -0
  252. package/node_modules/@aws-sdk/credential-providers/dist-types/index.d.ts +12 -0
  253. package/node_modules/@aws-sdk/credential-providers/dist-types/index.web.d.ts +4 -0
  254. package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromCognitoIdentity.d.ts +9 -0
  255. package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromCognitoIdentityPool.d.ts +7 -0
  256. package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromContainerMetadata.d.ts +6 -0
  257. package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromEnv.d.ts +3 -0
  258. package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromIni.d.ts +8 -0
  259. package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromInstanceMetadata.d.ts +4 -0
  260. package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromNodeProviderChain.d.ts +8 -0
  261. package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromProcess.d.ts +6 -0
  262. package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromSSO.d.ts +8 -0
  263. package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromTemporaryCredentials.d.ts +12 -0
  264. package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromTokenFile.d.ts +8 -0
  265. package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromWebToken.d.ts +8 -0
  266. package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/index.d.ts +12 -0
  267. package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/index.web.d.ts +4 -0
  268. package/node_modules/@aws-sdk/credential-providers/package.json +78 -0
  269. package/package.json +4 -2
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fromContainerMetadata = void 0;
4
+ const credential_provider_imds_1 = require("@aws-sdk/credential-provider-imds");
5
+ const fromContainerMetadata = (init) => (0, credential_provider_imds_1.fromContainerMetadata)(init);
6
+ exports.fromContainerMetadata = fromContainerMetadata;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fromEnv = void 0;
4
+ const credential_provider_env_1 = require("@aws-sdk/credential-provider-env");
5
+ const fromEnv = () => (0, credential_provider_env_1.fromEnv)();
6
+ exports.fromEnv = fromEnv;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fromIni = void 0;
4
+ const client_sts_1 = require("@aws-sdk/client-sts");
5
+ const credential_provider_ini_1 = require("@aws-sdk/credential-provider-ini");
6
+ const fromIni = (init = {}) => {
7
+ var _a, _b;
8
+ return (0, credential_provider_ini_1.fromIni)({
9
+ ...init,
10
+ roleAssumer: (_a = init.roleAssumer) !== null && _a !== void 0 ? _a : (0, client_sts_1.getDefaultRoleAssumer)(init.clientConfig),
11
+ roleAssumerWithWebIdentity: (_b = init.roleAssumerWithWebIdentity) !== null && _b !== void 0 ? _b : (0, client_sts_1.getDefaultRoleAssumerWithWebIdentity)(init.clientConfig),
12
+ });
13
+ };
14
+ exports.fromIni = fromIni;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fromInstanceMetadata = void 0;
4
+ const credential_provider_imds_1 = require("@aws-sdk/credential-provider-imds");
5
+ const fromInstanceMetadata = (init) => (0, credential_provider_imds_1.fromInstanceMetadata)(init);
6
+ exports.fromInstanceMetadata = fromInstanceMetadata;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fromNodeProviderChain = void 0;
4
+ const client_sts_1 = require("@aws-sdk/client-sts");
5
+ const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
6
+ const fromNodeProviderChain = (init = {}) => {
7
+ var _a, _b;
8
+ return (0, credential_provider_node_1.defaultProvider)({
9
+ ...init,
10
+ roleAssumer: (_a = init.roleAssumer) !== null && _a !== void 0 ? _a : (0, client_sts_1.getDefaultRoleAssumer)(init.clientConfig),
11
+ roleAssumerWithWebIdentity: (_b = init.roleAssumerWithWebIdentity) !== null && _b !== void 0 ? _b : (0, client_sts_1.getDefaultRoleAssumerWithWebIdentity)(init.clientConfig),
12
+ });
13
+ };
14
+ exports.fromNodeProviderChain = fromNodeProviderChain;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fromProcess = void 0;
4
+ const credential_provider_process_1 = require("@aws-sdk/credential-provider-process");
5
+ const fromProcess = (init) => (0, credential_provider_process_1.fromProcess)(init);
6
+ exports.fromProcess = fromProcess;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fromSSO = void 0;
4
+ const client_sso_1 = require("@aws-sdk/client-sso");
5
+ const credential_provider_sso_1 = require("@aws-sdk/credential-provider-sso");
6
+ const fromSSO = (init = {}) => (0, credential_provider_sso_1.fromSSO)({ ...{ ssoClient: init.clientConfig ? new client_sso_1.SSOClient(init.clientConfig) : undefined }, ...init });
7
+ exports.fromSSO = fromSSO;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fromTemporaryCredentials = void 0;
4
+ const client_sts_1 = require("@aws-sdk/client-sts");
5
+ const property_provider_1 = require("@aws-sdk/property-provider");
6
+ const fromTemporaryCredentials = (options) => {
7
+ let stsClient;
8
+ return async () => {
9
+ var _a;
10
+ const params = { ...options.params, RoleSessionName: (_a = options.params.RoleSessionName) !== null && _a !== void 0 ? _a : "aws-sdk-js-" + Date.now() };
11
+ if (params === null || params === void 0 ? void 0 : params.SerialNumber) {
12
+ if (!options.mfaCodeProvider) {
13
+ throw new property_provider_1.CredentialsProviderError(`Temporary credential requires multi-factor authentication,` + ` but no MFA code callback was provided.`, false);
14
+ }
15
+ params.TokenCode = await options.mfaCodeProvider(params === null || params === void 0 ? void 0 : params.SerialNumber);
16
+ }
17
+ if (!stsClient)
18
+ stsClient = new client_sts_1.STSClient({ ...options.clientConfig, credentials: options.masterCredentials });
19
+ const { Credentials } = await stsClient.send(new client_sts_1.AssumeRoleCommand(params));
20
+ if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
21
+ throw new property_provider_1.CredentialsProviderError(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`);
22
+ }
23
+ return {
24
+ accessKeyId: Credentials.AccessKeyId,
25
+ secretAccessKey: Credentials.SecretAccessKey,
26
+ sessionToken: Credentials.SessionToken,
27
+ expiration: Credentials.Expiration,
28
+ };
29
+ };
30
+ };
31
+ exports.fromTemporaryCredentials = fromTemporaryCredentials;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fromTokenFile = void 0;
4
+ const client_sts_1 = require("@aws-sdk/client-sts");
5
+ const credential_provider_web_identity_1 = require("@aws-sdk/credential-provider-web-identity");
6
+ const fromTokenFile = (init = {}) => {
7
+ var _a;
8
+ return (0, credential_provider_web_identity_1.fromTokenFile)({
9
+ ...init,
10
+ roleAssumerWithWebIdentity: (_a = init.roleAssumerWithWebIdentity) !== null && _a !== void 0 ? _a : (0, client_sts_1.getDefaultRoleAssumerWithWebIdentity)(init.clientConfig),
11
+ });
12
+ };
13
+ exports.fromTokenFile = fromTokenFile;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fromWebToken = void 0;
4
+ const client_sts_1 = require("@aws-sdk/client-sts");
5
+ const credential_provider_web_identity_1 = require("@aws-sdk/credential-provider-web-identity");
6
+ const fromWebToken = (init) => {
7
+ var _a;
8
+ return (0, credential_provider_web_identity_1.fromWebToken)({
9
+ ...init,
10
+ roleAssumerWithWebIdentity: (_a = init.roleAssumerWithWebIdentity) !== null && _a !== void 0 ? _a : (0, client_sts_1.getDefaultRoleAssumerWithWebIdentity)(init.clientConfig),
11
+ });
12
+ };
13
+ exports.fromWebToken = fromWebToken;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./fromCognitoIdentity"), exports);
5
+ tslib_1.__exportStar(require("./fromCognitoIdentityPool"), exports);
6
+ tslib_1.__exportStar(require("./fromContainerMetadata"), exports);
7
+ tslib_1.__exportStar(require("./fromEnv"), exports);
8
+ tslib_1.__exportStar(require("./fromIni"), exports);
9
+ tslib_1.__exportStar(require("./fromInstanceMetadata"), exports);
10
+ tslib_1.__exportStar(require("./fromNodeProviderChain"), exports);
11
+ tslib_1.__exportStar(require("./fromProcess"), exports);
12
+ tslib_1.__exportStar(require("./fromSSO"), exports);
13
+ tslib_1.__exportStar(require("./fromTemporaryCredentials"), exports);
14
+ tslib_1.__exportStar(require("./fromTokenFile"), exports);
15
+ tslib_1.__exportStar(require("./fromWebToken"), exports);
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./fromCognitoIdentity"), exports);
5
+ tslib_1.__exportStar(require("./fromCognitoIdentityPool"), exports);
6
+ tslib_1.__exportStar(require("./fromTemporaryCredentials"), exports);
7
+ tslib_1.__exportStar(require("./fromWebToken"), exports);
@@ -0,0 +1,7 @@
1
+ import { __assign } from "tslib";
2
+ import { CognitoIdentityClient } from "@aws-sdk/client-cognito-identity";
3
+ import { fromCognitoIdentity as _fromCognitoIdentity, } from "@aws-sdk/credential-provider-cognito-identity";
4
+ export var fromCognitoIdentity = function (options) {
5
+ var _a;
6
+ return _fromCognitoIdentity(__assign(__assign({}, options), { client: new CognitoIdentityClient((_a = options.clientConfig) !== null && _a !== void 0 ? _a : {}) }));
7
+ };
@@ -0,0 +1,7 @@
1
+ import { __assign } from "tslib";
2
+ import { CognitoIdentityClient } from "@aws-sdk/client-cognito-identity";
3
+ import { fromCognitoIdentityPool as _fromCognitoIdentityPool, } from "@aws-sdk/credential-provider-cognito-identity";
4
+ export var fromCognitoIdentityPool = function (options) {
5
+ var _a;
6
+ return _fromCognitoIdentityPool(__assign(__assign({}, options), { client: new CognitoIdentityClient((_a = options.clientConfig) !== null && _a !== void 0 ? _a : {}) }));
7
+ };
@@ -0,0 +1,2 @@
1
+ import { fromContainerMetadata as _fromContainerMetadata, } from "@aws-sdk/credential-provider-imds";
2
+ export var fromContainerMetadata = function (init) { return _fromContainerMetadata(init); };
@@ -0,0 +1,2 @@
1
+ import { fromEnv as _fromEnv } from "@aws-sdk/credential-provider-env";
2
+ export var fromEnv = function () { return _fromEnv(); };
@@ -0,0 +1,8 @@
1
+ import { __assign } from "tslib";
2
+ import { getDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity } from "@aws-sdk/client-sts";
3
+ import { fromIni as _fromIni } from "@aws-sdk/credential-provider-ini";
4
+ export var fromIni = function (init) {
5
+ var _a, _b;
6
+ if (init === void 0) { init = {}; }
7
+ return _fromIni(__assign(__assign({}, init), { roleAssumer: (_a = init.roleAssumer) !== null && _a !== void 0 ? _a : getDefaultRoleAssumer(init.clientConfig), roleAssumerWithWebIdentity: (_b = init.roleAssumerWithWebIdentity) !== null && _b !== void 0 ? _b : getDefaultRoleAssumerWithWebIdentity(init.clientConfig) }));
8
+ };
@@ -0,0 +1,2 @@
1
+ import { fromInstanceMetadata as _fromInstanceMetadata, } from "@aws-sdk/credential-provider-imds";
2
+ export var fromInstanceMetadata = function (init) { return _fromInstanceMetadata(init); };
@@ -0,0 +1,8 @@
1
+ import { __assign } from "tslib";
2
+ import { getDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity } from "@aws-sdk/client-sts";
3
+ import { defaultProvider } from "@aws-sdk/credential-provider-node";
4
+ export var fromNodeProviderChain = function (init) {
5
+ var _a, _b;
6
+ if (init === void 0) { init = {}; }
7
+ return defaultProvider(__assign(__assign({}, init), { roleAssumer: (_a = init.roleAssumer) !== null && _a !== void 0 ? _a : getDefaultRoleAssumer(init.clientConfig), roleAssumerWithWebIdentity: (_b = init.roleAssumerWithWebIdentity) !== null && _b !== void 0 ? _b : getDefaultRoleAssumerWithWebIdentity(init.clientConfig) }));
8
+ };
@@ -0,0 +1,2 @@
1
+ import { fromProcess as _fromProcess } from "@aws-sdk/credential-provider-process";
2
+ export var fromProcess = function (init) { return _fromProcess(init); };
@@ -0,0 +1,7 @@
1
+ import { __assign } from "tslib";
2
+ import { SSOClient } from "@aws-sdk/client-sso";
3
+ import { fromSSO as _fromSSO } from "@aws-sdk/credential-provider-sso";
4
+ export var fromSSO = function (init) {
5
+ if (init === void 0) { init = {}; }
6
+ return _fromSSO(__assign({ ssoClient: init.clientConfig ? new SSOClient(init.clientConfig) : undefined }, init));
7
+ };
@@ -0,0 +1,40 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
+ import { AssumeRoleCommand, STSClient } from "@aws-sdk/client-sts";
3
+ import { CredentialsProviderError } from "@aws-sdk/property-provider";
4
+ export var fromTemporaryCredentials = function (options) {
5
+ var stsClient;
6
+ return function () { return __awaiter(void 0, void 0, void 0, function () {
7
+ var params, _a, Credentials;
8
+ var _b;
9
+ return __generator(this, function (_c) {
10
+ switch (_c.label) {
11
+ case 0:
12
+ params = __assign(__assign({}, options.params), { RoleSessionName: (_b = options.params.RoleSessionName) !== null && _b !== void 0 ? _b : "aws-sdk-js-" + Date.now() });
13
+ if (!(params === null || params === void 0 ? void 0 : params.SerialNumber)) return [3, 2];
14
+ if (!options.mfaCodeProvider) {
15
+ throw new CredentialsProviderError("Temporary credential requires multi-factor authentication," + " but no MFA code callback was provided.", false);
16
+ }
17
+ _a = params;
18
+ return [4, options.mfaCodeProvider(params === null || params === void 0 ? void 0 : params.SerialNumber)];
19
+ case 1:
20
+ _a.TokenCode = _c.sent();
21
+ _c.label = 2;
22
+ case 2:
23
+ if (!stsClient)
24
+ stsClient = new STSClient(__assign(__assign({}, options.clientConfig), { credentials: options.masterCredentials }));
25
+ return [4, stsClient.send(new AssumeRoleCommand(params))];
26
+ case 3:
27
+ Credentials = (_c.sent()).Credentials;
28
+ if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
29
+ throw new CredentialsProviderError("Invalid response from STS.assumeRole call with role ".concat(params.RoleArn));
30
+ }
31
+ return [2, {
32
+ accessKeyId: Credentials.AccessKeyId,
33
+ secretAccessKey: Credentials.SecretAccessKey,
34
+ sessionToken: Credentials.SessionToken,
35
+ expiration: Credentials.Expiration,
36
+ }];
37
+ }
38
+ });
39
+ }); };
40
+ };
@@ -0,0 +1,8 @@
1
+ import { __assign } from "tslib";
2
+ import { getDefaultRoleAssumerWithWebIdentity } from "@aws-sdk/client-sts";
3
+ import { fromTokenFile as _fromTokenFile, } from "@aws-sdk/credential-provider-web-identity";
4
+ export var fromTokenFile = function (init) {
5
+ var _a;
6
+ if (init === void 0) { init = {}; }
7
+ return _fromTokenFile(__assign(__assign({}, init), { roleAssumerWithWebIdentity: (_a = init.roleAssumerWithWebIdentity) !== null && _a !== void 0 ? _a : getDefaultRoleAssumerWithWebIdentity(init.clientConfig) }));
8
+ };
@@ -0,0 +1,7 @@
1
+ import { __assign } from "tslib";
2
+ import { getDefaultRoleAssumerWithWebIdentity } from "@aws-sdk/client-sts";
3
+ import { fromWebToken as _fromWebToken, } from "@aws-sdk/credential-provider-web-identity";
4
+ export var fromWebToken = function (init) {
5
+ var _a;
6
+ return _fromWebToken(__assign(__assign({}, init), { roleAssumerWithWebIdentity: (_a = init.roleAssumerWithWebIdentity) !== null && _a !== void 0 ? _a : getDefaultRoleAssumerWithWebIdentity(init.clientConfig) }));
7
+ };
@@ -0,0 +1,12 @@
1
+ export * from "./fromCognitoIdentity";
2
+ export * from "./fromCognitoIdentityPool";
3
+ export * from "./fromContainerMetadata";
4
+ export * from "./fromEnv";
5
+ export * from "./fromIni";
6
+ export * from "./fromInstanceMetadata";
7
+ export * from "./fromNodeProviderChain";
8
+ export * from "./fromProcess";
9
+ export * from "./fromSSO";
10
+ export * from "./fromTemporaryCredentials";
11
+ export * from "./fromTokenFile";
12
+ export * from "./fromWebToken";
@@ -0,0 +1,4 @@
1
+ export * from "./fromCognitoIdentity";
2
+ export * from "./fromCognitoIdentityPool";
3
+ export * from "./fromTemporaryCredentials";
4
+ export * from "./fromWebToken";
@@ -0,0 +1,45 @@
1
+ import { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
2
+ import { CognitoIdentityCredentialProvider as _CognitoIdentityCredentialProvider, FromCognitoIdentityParameters as _FromCognitoIdentityParameters } from "@aws-sdk/credential-provider-cognito-identity";
3
+ export interface FromCognitoIdentityParameters extends Omit<_FromCognitoIdentityParameters, "client"> {
4
+ /**
5
+ * Custom client configuration if you need overwrite default Cognito Identity client configuration.
6
+ */
7
+ clientConfig?: CognitoIdentityClientConfig;
8
+ }
9
+ export declare type CognitoIdentityCredentialProvider = _CognitoIdentityCredentialProvider;
10
+ /**
11
+ * Creates a credential provider function that reetrieves temporary AWS credentials using Amazon Cognito's
12
+ * `GetCredentialsForIdentity` operation.
13
+ *
14
+ * Results from this function call are not cached internally.
15
+ *
16
+ * ```javascript
17
+ * import { fromCognitoIdentity } from "@aws-sdk/credential-providers"; // ES6 import
18
+ * // const { fromCognitoIdentity } = require("@aws-sdk/credential-providers"); // CommonJS import
19
+ *
20
+ * const client = new FooClient({
21
+ * region,
22
+ * credentials: fromCognitoIdentity({
23
+ * // Required. The unique identifier for the identity against which credentials
24
+ * // will be issued.
25
+ * identityId: "us-east-1:128d0a74-c82f-4553-916d-90053e4a8b0f"
26
+ * // optional. The ARN of the role to be assumed when multiple roles were
27
+ * // received in the token from the identity provider.
28
+ * customRoleArn: "arn:aws:iam::1234567890:role/MYAPP-CognitoIdentity"
29
+ * // Optional. A set of name-value pairs that map provider names to provider
30
+ * // tokens. Required when using identities associated with external identity
31
+ * // providers such as Facebook.
32
+ * logins: {
33
+ * "graph.facebook.com": "FBTOKEN",
34
+ * "www.amazon.com": "AMAZONTOKEN",
35
+ * "accounts.google.com": "GOOGLETOKEN",
36
+ * "api.twitter.com": "TWITTERTOKEN'",
37
+ * "www.digits.com": "DIGITSTOKEN"
38
+ * },
39
+ * // Optional. Custom client configuration if you need overwrite default Cognito Identity client configuration.
40
+ * clientConfig: { region }
41
+ * }),
42
+ * });
43
+ * ```
44
+ */
45
+ export declare const fromCognitoIdentity: (options: FromCognitoIdentityParameters) => _CognitoIdentityCredentialProvider;
@@ -0,0 +1,46 @@
1
+ import { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
2
+ import { CognitoIdentityCredentialProvider, FromCognitoIdentityPoolParameters as _FromCognitoIdentityPoolParameters } from "@aws-sdk/credential-provider-cognito-identity";
3
+ export interface FromCognitoIdentityPoolParameters extends Omit<_FromCognitoIdentityPoolParameters, "client"> {
4
+ clientConfig?: CognitoIdentityClientConfig;
5
+ }
6
+ /**
7
+ * Creates a credential provider function that retrieves or generates a unique identifier using Amazon Cognito's `GetId`
8
+ * operation, then generates temporary AWS credentials using Amazon Cognito's `GetCredentialsForIdentity` operation.
9
+ *
10
+ * Results from `GetId` are cached internally, but results from `GetCredentialsForIdentity` are not.
11
+ *
12
+ * ```javascript
13
+ * import { fromCognitoIdentityPool } from "@aws-sdk/credential-providers"; // ES6 import
14
+ * // const { fromCognitoIdentityPool } = require("@aws-sdk/credential-providers"); // CommonJS import
15
+ *
16
+ * const client = new FooClient({
17
+ * region,
18
+ * credentials: fromCognitoIdentityPool({
19
+ * // Required. The unique identifier for the identity pool from which an identity should be retrieved or generated.
20
+ * identityPoolId: "us-east-1:1699ebc0-7900-4099-b910-2df94f52a030";
21
+ * // Optional. A standard AWS account ID (9+ digits)
22
+ * accountId: "123456789",
23
+ * // Optional. A cache in which to store resolved Cognito IdentityIds.
24
+ * cache: custom_storage,
25
+ * // Optional. A unique identifier for the user used to cache Cognito IdentityIds on a per-user basis.
26
+ * userIdentifier: "user_0",
27
+ * // optional. The ARN of the role to be assumed when multiple roles were
28
+ * // received in the token from the identity provider.
29
+ * customRoleArn: "arn:aws:iam::1234567890:role/MYAPP-CognitoIdentity"
30
+ * // Optional. A set of name-value pairs that map provider names to provider
31
+ * // tokens. Required when using identities associated with external identity
32
+ * // providers such as Facebook.
33
+ * logins: {
34
+ * 'graph.facebook.com': 'FBTOKEN',
35
+ * 'www.amazon.com': 'AMAZONTOKEN',
36
+ * 'accounts.google.com': 'GOOGLETOKEN',
37
+ * 'api.twitter.com': 'TWITTERTOKEN',
38
+ * 'www.digits.com': 'DIGITSTOKEN'
39
+ * },
40
+ * // Optional. Custom client configuration if you need overwrite default Cognito Identity client configuration.
41
+ * client: new CognitoIdentityClient({ region })
42
+ * }),
43
+ * });
44
+ * ```
45
+ */
46
+ export declare const fromCognitoIdentityPool: (options: FromCognitoIdentityPoolParameters) => CognitoIdentityCredentialProvider;
@@ -0,0 +1,24 @@
1
+ import { RemoteProviderInit as _RemoteProviderInit } from "@aws-sdk/credential-provider-imds";
2
+ import { CredentialProvider } from "@aws-sdk/types";
3
+ export interface RemoteProviderInit extends _RemoteProviderInit {
4
+ }
5
+ /**
6
+ * Create a credential provider function that reads from ECS container metadata service.
7
+ *
8
+ * ```javascript
9
+ * import { fromContainerMetadata } from "@aws-sdk/credential-providers"; // ES6 import
10
+ * // const { fromContainerMetadata } = require("@aws-sdk/credential-providers"); // CommonJS import
11
+ *
12
+ * const foo = new FooClient({
13
+ * credentials: fromInstanceMetadata({
14
+ * // Optional. The connection timeout (in milliseconds) to apply to any remote requests. If not specified, a default value
15
+ * // of`1000` (one second) is used.
16
+ * timeout: 1000,
17
+ * // Optional. The maximum number of times any HTTP connections should be retried. If not specified, a default value of `0`
18
+ * // will be used.
19
+ * maxRetries: 0,
20
+ * }),
21
+ * });
22
+ * ```
23
+ */
24
+ export declare const fromContainerMetadata: (init?: RemoteProviderInit | undefined) => CredentialProvider;
@@ -0,0 +1,26 @@
1
+ import { CredentialProvider } from "@aws-sdk/types";
2
+ /**
3
+ * Create a credential provider that reads credentials from the following environment variables:
4
+ *
5
+ * - `AWS_ACCESS_KEY_ID` - The access key for your AWS account.
6
+ * - `AWS_SECRET_ACCESS_KEY` - The secret key for your AWS account.
7
+ * - `AWS_SESSION_TOKEN` - The session key for your AWS account. This is only
8
+ * needed when you are using temporary credentials.
9
+ * - `AWS_CREDENTIAL_EXPIRATION` - The expiration time of the credentials contained
10
+ * in the environment variables described above. This value must be in a format
11
+ * compatible with the [ISO-8601 standard](https://en.wikipedia.org/wiki/ISO_8601)
12
+ * and is only needed when you are using temporary credentials.
13
+ *
14
+ * If either the `AWS_ACCESS_KEY_ID` or `AWS_SECRET_ACCESS_KEY` environment variable is not set or contains a falsy
15
+ * value, the promise returned by the `fromEnv` function will be rejected.
16
+ *
17
+ * ```javascript
18
+ * import { fromEnv } from "@aws-sdk/credential-providers"; // ES6 import
19
+ * // const { fromEnv } = require("@aws-sdk/credential-providers"); // CommonJS import
20
+ *
21
+ * const client = new DynamoDBClient({
22
+ * credentials: fromEnv(),
23
+ * });
24
+ * ```
25
+ */
26
+ export declare const fromEnv: () => CredentialProvider;
@@ -0,0 +1,43 @@
1
+ import { STSClientConfig } from "@aws-sdk/client-sts";
2
+ import { FromIniInit as _FromIniInit } from "@aws-sdk/credential-provider-ini";
3
+ import { CredentialProvider } from "@aws-sdk/types";
4
+ export interface FromIniInit extends _FromIniInit {
5
+ clientConfig?: STSClientConfig;
6
+ }
7
+ /**
8
+ * Creates a credential provider function that reads from a shared credentials file at `~/.aws/credentials` and a
9
+ * shared configuration file at `~/.aws/config`. Both files are expected to be INI formatted with section names
10
+ * corresponding to profiles. Sections in the credentials file are treated as profile names, whereas profile sections in
11
+ * the config file must have the format of`[profile profile-name]`, except for the default profile.
12
+ *
13
+ * Profiles that appear in both files will not be merged, and the version that appears in the credentials file will be
14
+ * given precedence over the profile found in the config file.
15
+ *
16
+ * ```javascript
17
+ * import { fromIni } from "@aws-sdk/credential-providers"; // ES6 import
18
+ * // const { fromIni } = require("@aws-sdk/credential-providers"); // CommonJS import
19
+ *
20
+ * const client = new FooClient({
21
+ * credentials: fromIni({
22
+ * // Optional. The configuration profile to use. If not specified, the provider will use the value in the
23
+ * // `AWS_PROFILE` environment variable or a default of `default`.
24
+ * profile: "profile",
25
+ * // Optional. The path to the shared credentials file. If not specified, the provider will use the value in the
26
+ * // `AWS_SHARED_CREDENTIALS_FILE` environment variable or a default of `~/.aws/credentials`.
27
+ * filepath: "~/.aws/credentials",
28
+ * // Optional. The path to the shared config file. If not specified, the provider will use the value in the
29
+ * // `AWS_CONFIG_FILE` environment variable or a default of `~/.aws/config`.
30
+ * configFilepath: "~/.aws/config",
31
+ * // Optional. A function that returns a a promise fulfilled with an MFA token code for the provided MFA Serial
32
+ * // code. If a profile requires an MFA code and `mfaCodeProvider` is not a valid function, the credential provider
33
+ * // promise will be rejected.
34
+ * mfaCodeProvider: async (mfaSerial) => {
35
+ * return "token";
36
+ * },
37
+ * // Optional. Custom STS client configurations overriding the default ones.
38
+ * clientConfig: { region },
39
+ * }),
40
+ * });
41
+ * ```
42
+ */
43
+ export declare const fromIni: (init?: FromIniInit) => CredentialProvider;
@@ -0,0 +1,22 @@
1
+ import { RemoteProviderConfig as _RemoteProviderInit } from "@aws-sdk/credential-provider-imds";
2
+ import { CredentialProvider } from "@aws-sdk/types";
3
+ /**
4
+ * Creates a credential provider function that reads from the EC2 instance metadata service.
5
+ *
6
+ * ```javascript
7
+ * import { fromInstanceMetadata } from "@aws-sdk/credential-providers"; // ES6 import
8
+ * // const { fromInstanceMetadata } = require("@aws-sdk/credential-providers"); // CommonJS import
9
+ *
10
+ * const client = new DynamoDBClient({
11
+ * credentials: fromInstanceMetadata({
12
+ * // Optional. The connection timeout (in milliseconds) to apply to any remote requests. If not specified, a
13
+ * // default value of`1000` (one second) is used.
14
+ * timeout: 1000,
15
+ * // Optional. The maximum number of times any HTTP connections should be retried. If not specified, a default
16
+ * // value of `0` will be used.
17
+ * maxRetries: 0,
18
+ * }),
19
+ * });
20
+ * ```
21
+ */
22
+ export declare const fromInstanceMetadata: (init?: _RemoteProviderInit | undefined) => CredentialProvider;
@@ -0,0 +1,29 @@
1
+ import { STSClientConfig } from "@aws-sdk/client-sts";
2
+ import { DefaultProviderInit } from "@aws-sdk/credential-provider-node";
3
+ import { CredentialProvider } from "@aws-sdk/types";
4
+ export interface fromNodeProviderChainInit extends DefaultProviderInit {
5
+ clientConfig?: STSClientConfig;
6
+ }
7
+ /**
8
+ * This is the same credential provider as {@link defaultProvider|the default provider for Node.js SDK},
9
+ * but with default role assumers so you don't need to import them from
10
+ * STS client and supply them manually.
11
+ *
12
+ * You normally don't need to use this explicitly in the client constructor.
13
+ * It is useful for utility functions requiring credentials like S3 presigner,
14
+ * or RDS signer.
15
+ *
16
+ * ```js
17
+ * import { fromNodeProviderChain } from "@aws-sdk/credential-providers"; // ES6 import
18
+ * // const { fromNodeProviderChain } = require("@aws-sdk/credential-providers") // CommonJS import
19
+ *
20
+ * const credentialProvider = fromNodeProviderChain({
21
+ * //...any input of fromEnv(), fromSSO(), fromTokenFile(), fromIni(),
22
+ * // fromProcess(), fromInstanceMetadata(), fromContainerMetadata()
23
+ *
24
+ * // Optional. Custom STS client configurations overriding the default ones.
25
+ * clientConfig: { region },
26
+ * })
27
+ * ```
28
+ */
29
+ export declare const fromNodeProviderChain: (init?: fromNodeProviderChainInit) => CredentialProvider;
@@ -0,0 +1,28 @@
1
+ import { FromProcessInit as _FromProcessInit } from "@aws-sdk/credential-provider-process";
2
+ import { CredentialProvider } from "@aws-sdk/types";
3
+ export interface FromProcessInit extends _FromProcessInit {
4
+ }
5
+ /**
6
+ * Creates a credential provider function that executes a given process and attempt to read its standard output to
7
+ * receive a JSON payload containing the credentials.
8
+ *
9
+ * ```javascript
10
+ * import { fromProcess } from "@aws-sdk/credential-providers"; // ES6 import
11
+ * // const { fromProcess } = require("@aws-sdk/credential-providers"); // CommonJS import
12
+ *
13
+ * const client = new FooClient({
14
+ * credentials: fromProcess({
15
+ * // Optional. The configuration profile to use. If not specified, the provider will use the value in the
16
+ * // `AWS_PROFILE` environment variable or a default of `default`.
17
+ * profile: "profile",
18
+ * // Optional. The path to the shared credentials file. If not specified, the provider will use the value in the
19
+ * // `AWS_SHARED_CREDENTIALS_FILE` environment variable or a default of `~/.aws/credentials`.
20
+ * filepath: "~/.aws/credentials",
21
+ * // Optional. The path to the shared config file. If not specified, the provider will use the value in the
22
+ * // `AWS_CONFIG_FILE` environment variable or a default of `~/.aws/config`.
23
+ * configFilepath: "~/.aws/config",
24
+ * }),
25
+ * });
26
+ * ```
27
+ */
28
+ export declare const fromProcess: (init?: FromProcessInit | undefined) => CredentialProvider;
@@ -0,0 +1,48 @@
1
+ import { SSOClientConfig } from "@aws-sdk/client-sso";
2
+ import { FromSSOInit as _FromSSOInit } from "@aws-sdk/credential-provider-sso";
3
+ import { CredentialProvider } from "@aws-sdk/types";
4
+ export interface FromSSOInit extends Omit<_FromSSOInit, "client"> {
5
+ clientConfig?: SSOClientConfig;
6
+ }
7
+ /**
8
+ * Creates a credential provider function that reads from the _resolved_ access token from local disk then requests
9
+ * temporary AWS credentials.
10
+ *
11
+ * You can create the `CredentialProvider` functions using the inline SSO parameters(`ssoStartUrl`, `ssoAccountId`,
12
+ * `ssoRegion`, `ssoRoleName`) or load them from [AWS SDKs and Tools shared configuration and credentials files](https://docs.aws.amazon.com/credref/latest/refdocs/creds-config-files.html).
13
+ * Profiles in the `credentials` file are given precedence over profiles in the `config` file.
14
+ *
15
+ * ```javascript
16
+ * import { fromSSO } from "@aws-sdk/credential-providers"; // ES6 import
17
+ * // const { fromSSO } = require(@aws-sdk/credential-providers") // CommonJS import
18
+ *
19
+ * const client = new FooClient({
20
+ * credentials: fromSSO({
21
+ * // Optional. The configuration profile to use. If not specified, the provider will use the value in the
22
+ * // `AWS_PROFILE` environment variable or `default` by default.
23
+ * profile: "my-sso-profile",
24
+ * // Optional. The path to the shared credentials file. If not specified, the provider will use the value in the
25
+ * // `AWS_SHARED_CREDENTIALS_FILE` environment variable or a default of `~/.aws/credentials`.
26
+ * filepath: "~/.aws/credentials",
27
+ * // Optional. The path to the shared config file. If not specified, the provider will use the value in the
28
+ * // `AWS_CONFIG_FILE` environment variable or a default of `~/.aws/config`.
29
+ * configFilepath: "~/.aws/config",
30
+ * // Optional. The URL to the AWS SSO service. Required if any of the `sso*` options(except for `ssoClient`) is
31
+ * // provided.
32
+ * ssoStartUrl: "https://d-abc123.awsapps.com/start",
33
+ * // Optional. The ID of the AWS account to use for temporary credentials. Required if any of the `sso*`
34
+ * // options(except for `ssoClient`) is provided.
35
+ * ssoAccountId: "1234567890",
36
+ * // Optional. The AWS region to use for temporary credentials. Required if any of the `sso*` options(except for
37
+ * // `ssoClient`) is provided.
38
+ * ssoRegion: "us-east-1",
39
+ * // Optional. The name of the AWS role to assume. Required if any of the `sso*` options(except for `ssoClient`) is
40
+ * // provided.
41
+ * ssoRoleName: "SampleRole",
42
+ * // Optional. Overwrite the configuration used construct the SSO service client.
43
+ * clientConfig: { region },
44
+ * }),
45
+ * });
46
+ * ```
47
+ */
48
+ export declare const fromSSO: (init?: FromSSOInit) => CredentialProvider;