@cdk8s/awscdk-resolver 0.0.89 → 0.0.91

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 (222) hide show
  1. package/.jsii +4 -4
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +2 -2
  4. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +2 -17
  5. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +1 -1
  6. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +5 -2
  7. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +1 -2
  8. package/node_modules/@aws-sdk/credential-provider-ini/package.json +6 -4
  9. package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
  10. package/node_modules/@aws-sdk/credential-provider-sso/package.json +2 -2
  11. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +1 -1
  12. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +1 -1
  13. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromWebToken.d.ts +2 -2
  14. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts +1 -2
  15. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -2
  16. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +14 -20
  17. package/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +1 -1
  18. package/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +1 -1
  19. package/node_modules/@aws-sdk/token-providers/package.json +4 -2
  20. package/package.json +4 -4
  21. package/node_modules/@aws-sdk/client-sso-oidc/LICENSE +0 -201
  22. package/node_modules/@aws-sdk/client-sso-oidc/README.md +0 -274
  23. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js +0 -64
  24. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/credentialDefaultProvider.js +0 -29
  25. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +0 -14
  26. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js +0 -7
  27. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +0 -1024
  28. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.browser.js +0 -39
  29. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +0 -49
  30. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.native.js +0 -15
  31. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js +0 -40
  32. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js +0 -15
  33. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +0 -52
  34. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthExtensionConfiguration.js +0 -38
  35. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthSchemeProvider.js +0 -58
  36. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenCommand.js +0 -25
  37. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js +0 -25
  38. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js +0 -25
  39. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js +0 -25
  40. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/index.js +0 -4
  41. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/credentialDefaultProvider.js +0 -3
  42. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/EndpointParameters.js +0 -14
  43. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/endpointResolver.js +0 -10
  44. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/ruleset.js +0 -4
  45. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/extensionConfiguration.js +0 -1
  46. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js +0 -5
  47. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/SSOOIDCServiceException.js +0 -8
  48. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/index.js +0 -1
  49. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js +0 -217
  50. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +0 -409
  51. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.browser.js +0 -34
  52. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +0 -44
  53. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.native.js +0 -11
  54. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.shared.js +0 -36
  55. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeExtensions.js +0 -21
  56. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDC.d.ts +0 -75
  57. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +0 -212
  58. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/auth/httpAuthExtensionConfiguration.d.ts +0 -29
  59. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/auth/httpAuthSchemeProvider.d.ts +0 -61
  60. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +0 -162
  61. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +0 -244
  62. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +0 -108
  63. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +0 -111
  64. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/index.d.ts +0 -4
  65. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/credentialDefaultProvider.d.ts +0 -4
  66. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/EndpointParameters.d.ts +0 -40
  67. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/endpointResolver.d.ts +0 -5
  68. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/ruleset.d.ts +0 -2
  69. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/extensionConfiguration.d.ts +0 -9
  70. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/index.d.ts +0 -50
  71. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/SSOOIDCServiceException.d.ts +0 -13
  72. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/index.d.ts +0 -1
  73. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +0 -734
  74. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/protocols/Aws_restJson1.d.ts +0 -38
  75. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +0 -53
  76. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +0 -53
  77. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +0 -52
  78. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +0 -32
  79. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeExtensions.d.ts +0 -17
  80. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDC.d.ts +0 -73
  81. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +0 -144
  82. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +0 -32
  83. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +0 -44
  84. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +0 -35
  85. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +0 -39
  86. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +0 -38
  87. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +0 -39
  88. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/index.d.ts +0 -4
  89. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/credentialDefaultProvider.d.ts +0 -1
  90. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +0 -51
  91. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/endpointResolver.d.ts +0 -8
  92. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/ruleset.d.ts +0 -2
  93. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/extensionConfiguration.d.ts +0 -9
  94. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/index.d.ts +0 -8
  95. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/SSOOIDCServiceException.d.ts +0 -8
  96. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/index.d.ts +0 -1
  97. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/models_0.d.ts +0 -201
  98. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -53
  99. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +0 -110
  100. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +0 -108
  101. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +0 -104
  102. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +0 -49
  103. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeExtensions.d.ts +0 -11
  104. package/node_modules/@aws-sdk/client-sso-oidc/package.json +0 -102
  105. package/node_modules/@aws-sdk/client-sts/LICENSE +0 -201
  106. package/node_modules/@aws-sdk/client-sts/README.md +0 -273
  107. package/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +0 -56
  108. package/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  109. package/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js +0 -67
  110. package/node_modules/@aws-sdk/client-sts/dist-cjs/credentialDefaultProvider.js +0 -29
  111. package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js +0 -20
  112. package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js +0 -14
  113. package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js +0 -7
  114. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +0 -1457
  115. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.browser.js +0 -39
  116. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +0 -63
  117. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.native.js +0 -15
  118. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +0 -40
  119. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js +0 -25
  120. package/node_modules/@aws-sdk/client-sts/dist-es/STS.js +0 -23
  121. package/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +0 -52
  122. package/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthExtensionConfiguration.js +0 -38
  123. package/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthSchemeProvider.js +0 -60
  124. package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js +0 -25
  125. package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js +0 -25
  126. package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +0 -25
  127. package/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js +0 -24
  128. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js +0 -24
  129. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js +0 -24
  130. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js +0 -25
  131. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js +0 -25
  132. package/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js +0 -8
  133. package/node_modules/@aws-sdk/client-sts/dist-es/credentialDefaultProvider.js +0 -3
  134. package/node_modules/@aws-sdk/client-sts/dist-es/defaultRoleAssumers.js +0 -22
  135. package/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +0 -67
  136. package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/EndpointParameters.js +0 -16
  137. package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js +0 -10
  138. package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js +0 -4
  139. package/node_modules/@aws-sdk/client-sts/dist-es/extensionConfiguration.js +0 -1
  140. package/node_modules/@aws-sdk/client-sts/dist-es/index.js +0 -6
  141. package/node_modules/@aws-sdk/client-sts/dist-es/models/STSServiceException.js +0 -8
  142. package/node_modules/@aws-sdk/client-sts/dist-es/models/index.js +0 -1
  143. package/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js +0 -130
  144. package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +0 -885
  145. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.browser.js +0 -34
  146. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +0 -58
  147. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.native.js +0 -11
  148. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js +0 -36
  149. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeExtensions.js +0 -21
  150. package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +0 -71
  151. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +0 -182
  152. package/node_modules/@aws-sdk/client-sts/dist-types/auth/httpAuthExtensionConfiguration.d.ts +0 -29
  153. package/node_modules/@aws-sdk/client-sts/dist-types/auth/httpAuthSchemeProvider.d.ts +0 -71
  154. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +0 -257
  155. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +0 -282
  156. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +0 -291
  157. package/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +0 -115
  158. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetAccessKeyInfoCommand.d.ts +0 -75
  159. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts +0 -116
  160. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +0 -230
  161. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +0 -154
  162. package/node_modules/@aws-sdk/client-sts/dist-types/commands/index.d.ts +0 -8
  163. package/node_modules/@aws-sdk/client-sts/dist-types/credentialDefaultProvider.d.ts +0 -4
  164. package/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +0 -23
  165. package/node_modules/@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers.d.ts +0 -43
  166. package/node_modules/@aws-sdk/client-sts/dist-types/endpoint/EndpointParameters.d.ts +0 -46
  167. package/node_modules/@aws-sdk/client-sts/dist-types/endpoint/endpointResolver.d.ts +0 -5
  168. package/node_modules/@aws-sdk/client-sts/dist-types/endpoint/ruleset.d.ts +0 -2
  169. package/node_modules/@aws-sdk/client-sts/dist-types/extensionConfiguration.d.ts +0 -9
  170. package/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts +0 -17
  171. package/node_modules/@aws-sdk/client-sts/dist-types/models/STSServiceException.d.ts +0 -13
  172. package/node_modules/@aws-sdk/client-sts/dist-types/models/index.d.ts +0 -1
  173. package/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +0 -1213
  174. package/node_modules/@aws-sdk/client-sts/dist-types/protocols/Aws_query.d.ts +0 -74
  175. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +0 -54
  176. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +0 -57
  177. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +0 -53
  178. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts +0 -32
  179. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeExtensions.d.ts +0 -17
  180. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +0 -143
  181. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +0 -165
  182. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +0 -32
  183. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +0 -54
  184. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +0 -35
  185. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +0 -39
  186. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +0 -39
  187. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +0 -39
  188. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +0 -38
  189. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +0 -39
  190. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +0 -39
  191. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +0 -38
  192. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/index.d.ts +0 -8
  193. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/credentialDefaultProvider.d.ts +0 -1
  194. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultRoleAssumers.d.ts +0 -19
  195. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +0 -33
  196. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +0 -57
  197. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/endpointResolver.d.ts +0 -8
  198. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/ruleset.d.ts +0 -2
  199. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/extensionConfiguration.d.ts +0 -9
  200. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/index.d.ts +0 -9
  201. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/STSServiceException.d.ts +0 -8
  202. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/index.d.ts +0 -1
  203. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/models_0.d.ts +0 -206
  204. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/protocols/Aws_query.d.ts +0 -101
  205. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +0 -116
  206. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +0 -117
  207. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +0 -110
  208. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts +0 -51
  209. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeExtensions.d.ts +0 -11
  210. package/node_modules/@aws-sdk/client-sts/package.json +0 -104
  211. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/loadSts.js +0 -1
  212. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/loadSts.js +0 -2
  213. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/loadSts.d.ts +0 -3
  214. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/loadSts.d.ts +0 -3
  215. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/loadSts.js +0 -5
  216. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/loadSts.js +0 -2
  217. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/loadSts.d.ts +0 -3
  218. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/loadSts.d.ts +0 -3
  219. package/node_modules/@aws-sdk/token-providers/dist-cjs/loadSsoOidc.js +0 -1
  220. package/node_modules/@aws-sdk/token-providers/dist-es/loadSsoOidc.js +0 -2
  221. package/node_modules/@aws-sdk/token-providers/dist-types/loadSsoOidc.d.ts +0 -2
  222. package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/loadSsoOidc.d.ts +0 -2
@@ -1,217 +0,0 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
- import { SSOOIDCServiceException as __BaseException } from "./SSOOIDCServiceException";
3
- export class AccessDeniedException extends __BaseException {
4
- constructor(opts) {
5
- super({
6
- name: "AccessDeniedException",
7
- $fault: "client",
8
- ...opts,
9
- });
10
- this.name = "AccessDeniedException";
11
- this.$fault = "client";
12
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
- this.error = opts.error;
14
- this.error_description = opts.error_description;
15
- }
16
- }
17
- export class AuthorizationPendingException extends __BaseException {
18
- constructor(opts) {
19
- super({
20
- name: "AuthorizationPendingException",
21
- $fault: "client",
22
- ...opts,
23
- });
24
- this.name = "AuthorizationPendingException";
25
- this.$fault = "client";
26
- Object.setPrototypeOf(this, AuthorizationPendingException.prototype);
27
- this.error = opts.error;
28
- this.error_description = opts.error_description;
29
- }
30
- }
31
- export class ExpiredTokenException extends __BaseException {
32
- constructor(opts) {
33
- super({
34
- name: "ExpiredTokenException",
35
- $fault: "client",
36
- ...opts,
37
- });
38
- this.name = "ExpiredTokenException";
39
- this.$fault = "client";
40
- Object.setPrototypeOf(this, ExpiredTokenException.prototype);
41
- this.error = opts.error;
42
- this.error_description = opts.error_description;
43
- }
44
- }
45
- export class InternalServerException extends __BaseException {
46
- constructor(opts) {
47
- super({
48
- name: "InternalServerException",
49
- $fault: "server",
50
- ...opts,
51
- });
52
- this.name = "InternalServerException";
53
- this.$fault = "server";
54
- Object.setPrototypeOf(this, InternalServerException.prototype);
55
- this.error = opts.error;
56
- this.error_description = opts.error_description;
57
- }
58
- }
59
- export class InvalidClientException extends __BaseException {
60
- constructor(opts) {
61
- super({
62
- name: "InvalidClientException",
63
- $fault: "client",
64
- ...opts,
65
- });
66
- this.name = "InvalidClientException";
67
- this.$fault = "client";
68
- Object.setPrototypeOf(this, InvalidClientException.prototype);
69
- this.error = opts.error;
70
- this.error_description = opts.error_description;
71
- }
72
- }
73
- export class InvalidGrantException extends __BaseException {
74
- constructor(opts) {
75
- super({
76
- name: "InvalidGrantException",
77
- $fault: "client",
78
- ...opts,
79
- });
80
- this.name = "InvalidGrantException";
81
- this.$fault = "client";
82
- Object.setPrototypeOf(this, InvalidGrantException.prototype);
83
- this.error = opts.error;
84
- this.error_description = opts.error_description;
85
- }
86
- }
87
- export class InvalidRequestException extends __BaseException {
88
- constructor(opts) {
89
- super({
90
- name: "InvalidRequestException",
91
- $fault: "client",
92
- ...opts,
93
- });
94
- this.name = "InvalidRequestException";
95
- this.$fault = "client";
96
- Object.setPrototypeOf(this, InvalidRequestException.prototype);
97
- this.error = opts.error;
98
- this.error_description = opts.error_description;
99
- }
100
- }
101
- export class InvalidScopeException extends __BaseException {
102
- constructor(opts) {
103
- super({
104
- name: "InvalidScopeException",
105
- $fault: "client",
106
- ...opts,
107
- });
108
- this.name = "InvalidScopeException";
109
- this.$fault = "client";
110
- Object.setPrototypeOf(this, InvalidScopeException.prototype);
111
- this.error = opts.error;
112
- this.error_description = opts.error_description;
113
- }
114
- }
115
- export class SlowDownException extends __BaseException {
116
- constructor(opts) {
117
- super({
118
- name: "SlowDownException",
119
- $fault: "client",
120
- ...opts,
121
- });
122
- this.name = "SlowDownException";
123
- this.$fault = "client";
124
- Object.setPrototypeOf(this, SlowDownException.prototype);
125
- this.error = opts.error;
126
- this.error_description = opts.error_description;
127
- }
128
- }
129
- export class UnauthorizedClientException extends __BaseException {
130
- constructor(opts) {
131
- super({
132
- name: "UnauthorizedClientException",
133
- $fault: "client",
134
- ...opts,
135
- });
136
- this.name = "UnauthorizedClientException";
137
- this.$fault = "client";
138
- Object.setPrototypeOf(this, UnauthorizedClientException.prototype);
139
- this.error = opts.error;
140
- this.error_description = opts.error_description;
141
- }
142
- }
143
- export class UnsupportedGrantTypeException extends __BaseException {
144
- constructor(opts) {
145
- super({
146
- name: "UnsupportedGrantTypeException",
147
- $fault: "client",
148
- ...opts,
149
- });
150
- this.name = "UnsupportedGrantTypeException";
151
- this.$fault = "client";
152
- Object.setPrototypeOf(this, UnsupportedGrantTypeException.prototype);
153
- this.error = opts.error;
154
- this.error_description = opts.error_description;
155
- }
156
- }
157
- export class InvalidRequestRegionException extends __BaseException {
158
- constructor(opts) {
159
- super({
160
- name: "InvalidRequestRegionException",
161
- $fault: "client",
162
- ...opts,
163
- });
164
- this.name = "InvalidRequestRegionException";
165
- this.$fault = "client";
166
- Object.setPrototypeOf(this, InvalidRequestRegionException.prototype);
167
- this.error = opts.error;
168
- this.error_description = opts.error_description;
169
- this.endpoint = opts.endpoint;
170
- this.region = opts.region;
171
- }
172
- }
173
- export class InvalidClientMetadataException extends __BaseException {
174
- constructor(opts) {
175
- super({
176
- name: "InvalidClientMetadataException",
177
- $fault: "client",
178
- ...opts,
179
- });
180
- this.name = "InvalidClientMetadataException";
181
- this.$fault = "client";
182
- Object.setPrototypeOf(this, InvalidClientMetadataException.prototype);
183
- this.error = opts.error;
184
- this.error_description = opts.error_description;
185
- }
186
- }
187
- export const CreateTokenRequestFilterSensitiveLog = (obj) => ({
188
- ...obj,
189
- ...(obj.clientSecret && { clientSecret: SENSITIVE_STRING }),
190
- ...(obj.refreshToken && { refreshToken: SENSITIVE_STRING }),
191
- });
192
- export const CreateTokenResponseFilterSensitiveLog = (obj) => ({
193
- ...obj,
194
- ...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
195
- ...(obj.refreshToken && { refreshToken: SENSITIVE_STRING }),
196
- ...(obj.idToken && { idToken: SENSITIVE_STRING }),
197
- });
198
- export const CreateTokenWithIAMRequestFilterSensitiveLog = (obj) => ({
199
- ...obj,
200
- ...(obj.refreshToken && { refreshToken: SENSITIVE_STRING }),
201
- ...(obj.assertion && { assertion: SENSITIVE_STRING }),
202
- ...(obj.subjectToken && { subjectToken: SENSITIVE_STRING }),
203
- });
204
- export const CreateTokenWithIAMResponseFilterSensitiveLog = (obj) => ({
205
- ...obj,
206
- ...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
207
- ...(obj.refreshToken && { refreshToken: SENSITIVE_STRING }),
208
- ...(obj.idToken && { idToken: SENSITIVE_STRING }),
209
- });
210
- export const RegisterClientResponseFilterSensitiveLog = (obj) => ({
211
- ...obj,
212
- ...(obj.clientSecret && { clientSecret: SENSITIVE_STRING }),
213
- });
214
- export const StartDeviceAuthorizationRequestFilterSensitiveLog = (obj) => ({
215
- ...obj,
216
- ...(obj.clientSecret && { clientSecret: SENSITIVE_STRING }),
217
- });
@@ -1,409 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
4
- import { AccessDeniedException, AuthorizationPendingException, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidClientMetadataException, InvalidGrantException, InvalidRequestException, InvalidRequestRegionException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, } from "../models/models_0";
5
- import { SSOOIDCServiceException as __BaseException } from "../models/SSOOIDCServiceException";
6
- export const se_CreateTokenCommand = async (input, context) => {
7
- const b = rb(input, context);
8
- const headers = {
9
- "content-type": "application/json",
10
- };
11
- b.bp("/token");
12
- let body;
13
- body = JSON.stringify(take(input, {
14
- clientId: [],
15
- clientSecret: [],
16
- code: [],
17
- deviceCode: [],
18
- grantType: [],
19
- redirectUri: [],
20
- refreshToken: [],
21
- scope: (_) => _json(_),
22
- }));
23
- b.m("POST").h(headers).b(body);
24
- return b.build();
25
- };
26
- export const se_CreateTokenWithIAMCommand = async (input, context) => {
27
- const b = rb(input, context);
28
- const headers = {
29
- "content-type": "application/json",
30
- };
31
- b.bp("/token");
32
- const query = map({
33
- [_ai]: [, "t"],
34
- });
35
- let body;
36
- body = JSON.stringify(take(input, {
37
- assertion: [],
38
- clientId: [],
39
- code: [],
40
- grantType: [],
41
- redirectUri: [],
42
- refreshToken: [],
43
- requestedTokenType: [],
44
- scope: (_) => _json(_),
45
- subjectToken: [],
46
- subjectTokenType: [],
47
- }));
48
- b.m("POST").h(headers).q(query).b(body);
49
- return b.build();
50
- };
51
- export const se_RegisterClientCommand = async (input, context) => {
52
- const b = rb(input, context);
53
- const headers = {
54
- "content-type": "application/json",
55
- };
56
- b.bp("/client/register");
57
- let body;
58
- body = JSON.stringify(take(input, {
59
- clientName: [],
60
- clientType: [],
61
- scopes: (_) => _json(_),
62
- }));
63
- b.m("POST").h(headers).b(body);
64
- return b.build();
65
- };
66
- export const se_StartDeviceAuthorizationCommand = async (input, context) => {
67
- const b = rb(input, context);
68
- const headers = {
69
- "content-type": "application/json",
70
- };
71
- b.bp("/device_authorization");
72
- let body;
73
- body = JSON.stringify(take(input, {
74
- clientId: [],
75
- clientSecret: [],
76
- startUrl: [],
77
- }));
78
- b.m("POST").h(headers).b(body);
79
- return b.build();
80
- };
81
- export const de_CreateTokenCommand = async (output, context) => {
82
- if (output.statusCode !== 200 && output.statusCode >= 300) {
83
- return de_CommandError(output, context);
84
- }
85
- const contents = map({
86
- $metadata: deserializeMetadata(output),
87
- });
88
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
89
- const doc = take(data, {
90
- accessToken: __expectString,
91
- expiresIn: __expectInt32,
92
- idToken: __expectString,
93
- refreshToken: __expectString,
94
- tokenType: __expectString,
95
- });
96
- Object.assign(contents, doc);
97
- return contents;
98
- };
99
- export const de_CreateTokenWithIAMCommand = async (output, context) => {
100
- if (output.statusCode !== 200 && output.statusCode >= 300) {
101
- return de_CommandError(output, context);
102
- }
103
- const contents = map({
104
- $metadata: deserializeMetadata(output),
105
- });
106
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
107
- const doc = take(data, {
108
- accessToken: __expectString,
109
- expiresIn: __expectInt32,
110
- idToken: __expectString,
111
- issuedTokenType: __expectString,
112
- refreshToken: __expectString,
113
- scope: _json,
114
- tokenType: __expectString,
115
- });
116
- Object.assign(contents, doc);
117
- return contents;
118
- };
119
- export const de_RegisterClientCommand = async (output, context) => {
120
- if (output.statusCode !== 200 && output.statusCode >= 300) {
121
- return de_CommandError(output, context);
122
- }
123
- const contents = map({
124
- $metadata: deserializeMetadata(output),
125
- });
126
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
127
- const doc = take(data, {
128
- authorizationEndpoint: __expectString,
129
- clientId: __expectString,
130
- clientIdIssuedAt: __expectLong,
131
- clientSecret: __expectString,
132
- clientSecretExpiresAt: __expectLong,
133
- tokenEndpoint: __expectString,
134
- });
135
- Object.assign(contents, doc);
136
- return contents;
137
- };
138
- export const de_StartDeviceAuthorizationCommand = async (output, context) => {
139
- if (output.statusCode !== 200 && output.statusCode >= 300) {
140
- return de_CommandError(output, context);
141
- }
142
- const contents = map({
143
- $metadata: deserializeMetadata(output),
144
- });
145
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
146
- const doc = take(data, {
147
- deviceCode: __expectString,
148
- expiresIn: __expectInt32,
149
- interval: __expectInt32,
150
- userCode: __expectString,
151
- verificationUri: __expectString,
152
- verificationUriComplete: __expectString,
153
- });
154
- Object.assign(contents, doc);
155
- return contents;
156
- };
157
- const de_CommandError = async (output, context) => {
158
- const parsedOutput = {
159
- ...output,
160
- body: await parseErrorBody(output.body, context),
161
- };
162
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
163
- switch (errorCode) {
164
- case "AccessDeniedException":
165
- case "com.amazonaws.ssooidc#AccessDeniedException":
166
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
167
- case "AuthorizationPendingException":
168
- case "com.amazonaws.ssooidc#AuthorizationPendingException":
169
- throw await de_AuthorizationPendingExceptionRes(parsedOutput, context);
170
- case "ExpiredTokenException":
171
- case "com.amazonaws.ssooidc#ExpiredTokenException":
172
- throw await de_ExpiredTokenExceptionRes(parsedOutput, context);
173
- case "InternalServerException":
174
- case "com.amazonaws.ssooidc#InternalServerException":
175
- throw await de_InternalServerExceptionRes(parsedOutput, context);
176
- case "InvalidClientException":
177
- case "com.amazonaws.ssooidc#InvalidClientException":
178
- throw await de_InvalidClientExceptionRes(parsedOutput, context);
179
- case "InvalidGrantException":
180
- case "com.amazonaws.ssooidc#InvalidGrantException":
181
- throw await de_InvalidGrantExceptionRes(parsedOutput, context);
182
- case "InvalidRequestException":
183
- case "com.amazonaws.ssooidc#InvalidRequestException":
184
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
185
- case "InvalidScopeException":
186
- case "com.amazonaws.ssooidc#InvalidScopeException":
187
- throw await de_InvalidScopeExceptionRes(parsedOutput, context);
188
- case "SlowDownException":
189
- case "com.amazonaws.ssooidc#SlowDownException":
190
- throw await de_SlowDownExceptionRes(parsedOutput, context);
191
- case "UnauthorizedClientException":
192
- case "com.amazonaws.ssooidc#UnauthorizedClientException":
193
- throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
194
- case "UnsupportedGrantTypeException":
195
- case "com.amazonaws.ssooidc#UnsupportedGrantTypeException":
196
- throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context);
197
- case "InvalidRequestRegionException":
198
- case "com.amazonaws.ssooidc#InvalidRequestRegionException":
199
- throw await de_InvalidRequestRegionExceptionRes(parsedOutput, context);
200
- case "InvalidClientMetadataException":
201
- case "com.amazonaws.ssooidc#InvalidClientMetadataException":
202
- throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context);
203
- default:
204
- const parsedBody = parsedOutput.body;
205
- return throwDefaultError({
206
- output,
207
- parsedBody,
208
- errorCode,
209
- });
210
- }
211
- };
212
- const throwDefaultError = withBaseException(__BaseException);
213
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
214
- const contents = map({});
215
- const data = parsedOutput.body;
216
- const doc = take(data, {
217
- error: __expectString,
218
- error_description: __expectString,
219
- });
220
- Object.assign(contents, doc);
221
- const exception = new AccessDeniedException({
222
- $metadata: deserializeMetadata(parsedOutput),
223
- ...contents,
224
- });
225
- return __decorateServiceException(exception, parsedOutput.body);
226
- };
227
- const de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => {
228
- const contents = map({});
229
- const data = parsedOutput.body;
230
- const doc = take(data, {
231
- error: __expectString,
232
- error_description: __expectString,
233
- });
234
- Object.assign(contents, doc);
235
- const exception = new AuthorizationPendingException({
236
- $metadata: deserializeMetadata(parsedOutput),
237
- ...contents,
238
- });
239
- return __decorateServiceException(exception, parsedOutput.body);
240
- };
241
- const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => {
242
- const contents = map({});
243
- const data = parsedOutput.body;
244
- const doc = take(data, {
245
- error: __expectString,
246
- error_description: __expectString,
247
- });
248
- Object.assign(contents, doc);
249
- const exception = new ExpiredTokenException({
250
- $metadata: deserializeMetadata(parsedOutput),
251
- ...contents,
252
- });
253
- return __decorateServiceException(exception, parsedOutput.body);
254
- };
255
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
256
- const contents = map({});
257
- const data = parsedOutput.body;
258
- const doc = take(data, {
259
- error: __expectString,
260
- error_description: __expectString,
261
- });
262
- Object.assign(contents, doc);
263
- const exception = new InternalServerException({
264
- $metadata: deserializeMetadata(parsedOutput),
265
- ...contents,
266
- });
267
- return __decorateServiceException(exception, parsedOutput.body);
268
- };
269
- const de_InvalidClientExceptionRes = async (parsedOutput, context) => {
270
- const contents = map({});
271
- const data = parsedOutput.body;
272
- const doc = take(data, {
273
- error: __expectString,
274
- error_description: __expectString,
275
- });
276
- Object.assign(contents, doc);
277
- const exception = new InvalidClientException({
278
- $metadata: deserializeMetadata(parsedOutput),
279
- ...contents,
280
- });
281
- return __decorateServiceException(exception, parsedOutput.body);
282
- };
283
- const de_InvalidClientMetadataExceptionRes = async (parsedOutput, context) => {
284
- const contents = map({});
285
- const data = parsedOutput.body;
286
- const doc = take(data, {
287
- error: __expectString,
288
- error_description: __expectString,
289
- });
290
- Object.assign(contents, doc);
291
- const exception = new InvalidClientMetadataException({
292
- $metadata: deserializeMetadata(parsedOutput),
293
- ...contents,
294
- });
295
- return __decorateServiceException(exception, parsedOutput.body);
296
- };
297
- const de_InvalidGrantExceptionRes = async (parsedOutput, context) => {
298
- const contents = map({});
299
- const data = parsedOutput.body;
300
- const doc = take(data, {
301
- error: __expectString,
302
- error_description: __expectString,
303
- });
304
- Object.assign(contents, doc);
305
- const exception = new InvalidGrantException({
306
- $metadata: deserializeMetadata(parsedOutput),
307
- ...contents,
308
- });
309
- return __decorateServiceException(exception, parsedOutput.body);
310
- };
311
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
312
- const contents = map({});
313
- const data = parsedOutput.body;
314
- const doc = take(data, {
315
- error: __expectString,
316
- error_description: __expectString,
317
- });
318
- Object.assign(contents, doc);
319
- const exception = new InvalidRequestException({
320
- $metadata: deserializeMetadata(parsedOutput),
321
- ...contents,
322
- });
323
- return __decorateServiceException(exception, parsedOutput.body);
324
- };
325
- const de_InvalidRequestRegionExceptionRes = async (parsedOutput, context) => {
326
- const contents = map({});
327
- const data = parsedOutput.body;
328
- const doc = take(data, {
329
- endpoint: __expectString,
330
- error: __expectString,
331
- error_description: __expectString,
332
- region: __expectString,
333
- });
334
- Object.assign(contents, doc);
335
- const exception = new InvalidRequestRegionException({
336
- $metadata: deserializeMetadata(parsedOutput),
337
- ...contents,
338
- });
339
- return __decorateServiceException(exception, parsedOutput.body);
340
- };
341
- const de_InvalidScopeExceptionRes = async (parsedOutput, context) => {
342
- const contents = map({});
343
- const data = parsedOutput.body;
344
- const doc = take(data, {
345
- error: __expectString,
346
- error_description: __expectString,
347
- });
348
- Object.assign(contents, doc);
349
- const exception = new InvalidScopeException({
350
- $metadata: deserializeMetadata(parsedOutput),
351
- ...contents,
352
- });
353
- return __decorateServiceException(exception, parsedOutput.body);
354
- };
355
- const de_SlowDownExceptionRes = async (parsedOutput, context) => {
356
- const contents = map({});
357
- const data = parsedOutput.body;
358
- const doc = take(data, {
359
- error: __expectString,
360
- error_description: __expectString,
361
- });
362
- Object.assign(contents, doc);
363
- const exception = new SlowDownException({
364
- $metadata: deserializeMetadata(parsedOutput),
365
- ...contents,
366
- });
367
- return __decorateServiceException(exception, parsedOutput.body);
368
- };
369
- const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
370
- const contents = map({});
371
- const data = parsedOutput.body;
372
- const doc = take(data, {
373
- error: __expectString,
374
- error_description: __expectString,
375
- });
376
- Object.assign(contents, doc);
377
- const exception = new UnauthorizedClientException({
378
- $metadata: deserializeMetadata(parsedOutput),
379
- ...contents,
380
- });
381
- return __decorateServiceException(exception, parsedOutput.body);
382
- };
383
- const de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => {
384
- const contents = map({});
385
- const data = parsedOutput.body;
386
- const doc = take(data, {
387
- error: __expectString,
388
- error_description: __expectString,
389
- });
390
- Object.assign(contents, doc);
391
- const exception = new UnsupportedGrantTypeException({
392
- $metadata: deserializeMetadata(parsedOutput),
393
- ...contents,
394
- });
395
- return __decorateServiceException(exception, parsedOutput.body);
396
- };
397
- const deserializeMetadata = (output) => ({
398
- httpStatusCode: output.statusCode,
399
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
400
- extendedRequestId: output.headers["x-amz-id-2"],
401
- cfId: output.headers["x-amz-cf-id"],
402
- });
403
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
404
- const isSerializableHeaderValue = (value) => value !== undefined &&
405
- value !== null &&
406
- value !== "" &&
407
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
408
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
409
- const _ai = "aws_iam";
@@ -1,34 +0,0 @@
1
- import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
- import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
4
- import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
5
- import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
6
- import { invalidProvider } from "@smithy/invalid-dependency";
7
- import { calculateBodyLength } from "@smithy/util-body-length-browser";
8
- import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
9
- import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
11
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
12
- export const getRuntimeConfig = (config) => {
13
- const defaultsMode = resolveDefaultsModeConfig(config);
14
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
- const clientSharedValues = getSharedRuntimeConfig(config);
16
- return {
17
- ...clientSharedValues,
18
- ...config,
19
- runtime: "browser",
20
- defaultsMode,
21
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
- credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
- defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
- maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
- region: config?.region ?? invalidProvider("Region is missing"),
27
- requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
28
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
29
- sha256: config?.sha256 ?? Sha256,
30
- streamCollector: config?.streamCollector ?? streamCollector,
31
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
32
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
33
- };
34
- };