@cdk8s/awscdk-resolver 0.0.95 → 0.0.96

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 (187) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +4 -2
  4. package/node_modules/@aws-sdk/client-sso-oidc/LICENSE +201 -0
  5. package/node_modules/@aws-sdk/client-sso-oidc/README.md +274 -0
  6. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js +64 -0
  7. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js +14 -0
  8. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js +7 -0
  9. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +1024 -0
  10. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.browser.js +39 -0
  11. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +49 -0
  12. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.native.js +15 -0
  13. package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js +40 -0
  14. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDC.js +15 -0
  15. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/SSOOIDCClient.js +52 -0
  16. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  17. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/auth/httpAuthSchemeProvider.js +58 -0
  18. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenCommand.js +25 -0
  19. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/CreateTokenWithIAMCommand.js +25 -0
  20. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/RegisterClientCommand.js +25 -0
  21. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/StartDeviceAuthorizationCommand.js +25 -0
  22. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/commands/index.js +4 -0
  23. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/EndpointParameters.js +14 -0
  24. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/endpointResolver.js +10 -0
  25. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/endpoint/ruleset.js +4 -0
  26. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/extensionConfiguration.js +1 -0
  27. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/index.js +5 -0
  28. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/SSOOIDCServiceException.js +8 -0
  29. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/index.js +1 -0
  30. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/models/models_0.js +217 -0
  31. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +409 -0
  32. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.browser.js +34 -0
  33. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +44 -0
  34. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.native.js +11 -0
  35. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.shared.js +36 -0
  36. package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeExtensions.js +21 -0
  37. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDC.d.ts +75 -0
  38. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +212 -0
  39. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  40. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  41. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenCommand.d.ts +162 -0
  42. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/CreateTokenWithIAMCommand.d.ts +244 -0
  43. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/RegisterClientCommand.d.ts +108 -0
  44. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/StartDeviceAuthorizationCommand.d.ts +111 -0
  45. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/commands/index.d.ts +4 -0
  46. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  47. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/endpointResolver.d.ts +5 -0
  48. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/endpoint/ruleset.d.ts +2 -0
  49. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/extensionConfiguration.d.ts +9 -0
  50. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/index.d.ts +50 -0
  51. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/SSOOIDCServiceException.d.ts +13 -0
  52. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/index.d.ts +1 -0
  53. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/models/models_0.d.ts +734 -0
  54. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/protocols/Aws_restJson1.d.ts +38 -0
  55. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +53 -0
  56. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +53 -0
  57. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +52 -0
  58. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.shared.d.ts +32 -0
  59. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeExtensions.d.ts +17 -0
  60. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDC.d.ts +73 -0
  61. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +144 -0
  62. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  63. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  64. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +35 -0
  65. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/CreateTokenWithIAMCommand.d.ts +39 -0
  66. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/RegisterClientCommand.d.ts +38 -0
  67. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/StartDeviceAuthorizationCommand.d.ts +39 -0
  68. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/commands/index.d.ts +4 -0
  69. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  70. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  71. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  72. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  73. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/index.d.ts +8 -0
  74. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/SSOOIDCServiceException.d.ts +8 -0
  75. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/index.d.ts +1 -0
  76. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/models/models_0.d.ts +201 -0
  77. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +53 -0
  78. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +110 -0
  79. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +114 -0
  80. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
  81. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.shared.d.ts +49 -0
  82. package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  83. package/node_modules/@aws-sdk/client-sso-oidc/package.json +100 -0
  84. package/node_modules/@aws-sdk/client-sts/LICENSE +201 -0
  85. package/node_modules/@aws-sdk/client-sts/README.md +273 -0
  86. package/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +56 -0
  87. package/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  88. package/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js +67 -0
  89. package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js +20 -0
  90. package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js +14 -0
  91. package/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js +7 -0
  92. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1457 -0
  93. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.browser.js +39 -0
  94. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +63 -0
  95. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.native.js +15 -0
  96. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +40 -0
  97. package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js +25 -0
  98. package/node_modules/@aws-sdk/client-sts/dist-es/STS.js +23 -0
  99. package/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +52 -0
  100. package/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  101. package/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthSchemeProvider.js +60 -0
  102. package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js +25 -0
  103. package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js +25 -0
  104. package/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +25 -0
  105. package/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js +24 -0
  106. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js +24 -0
  107. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js +24 -0
  108. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js +25 -0
  109. package/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js +25 -0
  110. package/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js +8 -0
  111. package/node_modules/@aws-sdk/client-sts/dist-es/defaultRoleAssumers.js +22 -0
  112. package/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +67 -0
  113. package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/EndpointParameters.js +16 -0
  114. package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js +10 -0
  115. package/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js +4 -0
  116. package/node_modules/@aws-sdk/client-sts/dist-es/extensionConfiguration.js +1 -0
  117. package/node_modules/@aws-sdk/client-sts/dist-es/index.js +6 -0
  118. package/node_modules/@aws-sdk/client-sts/dist-es/models/STSServiceException.js +8 -0
  119. package/node_modules/@aws-sdk/client-sts/dist-es/models/index.js +1 -0
  120. package/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js +130 -0
  121. package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +885 -0
  122. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.browser.js +34 -0
  123. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +58 -0
  124. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.native.js +11 -0
  125. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js +36 -0
  126. package/node_modules/@aws-sdk/client-sts/dist-es/runtimeExtensions.js +21 -0
  127. package/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +71 -0
  128. package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +182 -0
  129. package/node_modules/@aws-sdk/client-sts/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  130. package/node_modules/@aws-sdk/client-sts/dist-types/auth/httpAuthSchemeProvider.d.ts +71 -0
  131. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +257 -0
  132. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +282 -0
  133. package/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +291 -0
  134. package/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +115 -0
  135. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetAccessKeyInfoCommand.d.ts +75 -0
  136. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts +116 -0
  137. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +230 -0
  138. package/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +154 -0
  139. package/node_modules/@aws-sdk/client-sts/dist-types/commands/index.d.ts +8 -0
  140. package/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +23 -0
  141. package/node_modules/@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers.d.ts +43 -0
  142. package/node_modules/@aws-sdk/client-sts/dist-types/endpoint/EndpointParameters.d.ts +46 -0
  143. package/node_modules/@aws-sdk/client-sts/dist-types/endpoint/endpointResolver.d.ts +5 -0
  144. package/node_modules/@aws-sdk/client-sts/dist-types/endpoint/ruleset.d.ts +2 -0
  145. package/node_modules/@aws-sdk/client-sts/dist-types/extensionConfiguration.d.ts +9 -0
  146. package/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts +17 -0
  147. package/node_modules/@aws-sdk/client-sts/dist-types/models/STSServiceException.d.ts +13 -0
  148. package/node_modules/@aws-sdk/client-sts/dist-types/models/index.d.ts +1 -0
  149. package/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +1213 -0
  150. package/node_modules/@aws-sdk/client-sts/dist-types/protocols/Aws_query.d.ts +74 -0
  151. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +54 -0
  152. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +52 -0
  153. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +53 -0
  154. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts +32 -0
  155. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeExtensions.d.ts +17 -0
  156. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +143 -0
  157. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +165 -0
  158. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  159. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +54 -0
  160. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +35 -0
  161. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +39 -0
  162. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +39 -0
  163. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +39 -0
  164. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +38 -0
  165. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +39 -0
  166. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +39 -0
  167. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +38 -0
  168. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/index.d.ts +8 -0
  169. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultRoleAssumers.d.ts +19 -0
  170. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +33 -0
  171. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +57 -0
  172. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  173. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  174. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  175. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/index.d.ts +9 -0
  176. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/STSServiceException.d.ts +8 -0
  177. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/index.d.ts +1 -0
  178. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/models_0.d.ts +206 -0
  179. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/protocols/Aws_query.d.ts +101 -0
  180. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +116 -0
  181. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +109 -0
  182. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +110 -0
  183. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts +51 -0
  184. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  185. package/node_modules/@aws-sdk/client-sts/package.json +102 -0
  186. package/node_modules/@aws-sdk/credential-provider-node/package.json +1 -1
  187. package/package.json +3 -3
@@ -0,0 +1,44 @@
1
+ import packageInfo from "../package.json";
2
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
3
+ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
5
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
6
+ import { Hash } from "@smithy/hash-node";
7
+ import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
8
+ import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
+ import { calculateBodyLength } from "@smithy/util-body-length-node";
11
+ import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
12
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
15
+ import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
16
+ export const getRuntimeConfig = (config) => {
17
+ emitWarningIfUnsupportedVersion(process.version);
18
+ const defaultsMode = resolveDefaultsModeConfig(config);
19
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
20
+ const clientSharedValues = getSharedRuntimeConfig(config);
21
+ awsCheckVersion(process.version);
22
+ return {
23
+ ...clientSharedValues,
24
+ ...config,
25
+ runtime: "node",
26
+ defaultsMode,
27
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
30
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
31
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
32
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
33
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
34
+ retryMode: config?.retryMode ??
35
+ loadNodeConfig({
36
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
37
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
38
+ }),
39
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
40
+ streamCollector: config?.streamCollector ?? streamCollector,
41
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
42
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
43
+ };
44
+ };
@@ -0,0 +1,11 @@
1
+ import { Sha256 } from "@aws-crypto/sha256-js";
2
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
11
+ };
@@ -0,0 +1,36 @@
1
+ import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { NoAuthSigner } from "@smithy/core";
3
+ import { NoOpLogger } from "@smithy/smithy-client";
4
+ import { parseUrl } from "@smithy/url-parser";
5
+ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
+ import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
+ import { defaultSSOOIDCHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ export const getRuntimeConfig = (config) => {
10
+ return {
11
+ apiVersion: "2019-06-10",
12
+ base64Decoder: config?.base64Decoder ?? fromBase64,
13
+ base64Encoder: config?.base64Encoder ?? toBase64,
14
+ disableHostPrefix: config?.disableHostPrefix ?? false,
15
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
16
+ extensions: config?.extensions ?? [],
17
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultSSOOIDCHttpAuthSchemeProvider,
18
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
19
+ {
20
+ schemeId: "aws.auth#sigv4",
21
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
22
+ signer: new AwsSdkSigV4Signer(),
23
+ },
24
+ {
25
+ schemeId: "smithy.api#noAuth",
26
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
27
+ signer: new NoAuthSigner(),
28
+ },
29
+ ],
30
+ logger: config?.logger ?? new NoOpLogger(),
31
+ serviceId: config?.serviceId ?? "SSO OIDC",
32
+ urlParser: config?.urlParser ?? parseUrl,
33
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
34
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
35
+ };
36
+ };
@@ -0,0 +1,21 @@
1
+ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
2
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
4
+ import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
5
+ const asPartial = (t) => t;
6
+ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
+ const extensionConfiguration = {
8
+ ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
9
+ ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
10
+ ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
11
+ ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
12
+ };
13
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
14
+ return {
15
+ ...runtimeConfig,
16
+ ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
17
+ ...resolveDefaultRuntimeConfig(extensionConfiguration),
18
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
19
+ ...resolveHttpAuthRuntimeConfig(extensionConfiguration),
20
+ };
21
+ };
@@ -0,0 +1,75 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { CreateTokenCommandInput, CreateTokenCommandOutput } from "./commands/CreateTokenCommand";
3
+ import { CreateTokenWithIAMCommandInput, CreateTokenWithIAMCommandOutput } from "./commands/CreateTokenWithIAMCommand";
4
+ import { RegisterClientCommandInput, RegisterClientCommandOutput } from "./commands/RegisterClientCommand";
5
+ import { StartDeviceAuthorizationCommandInput, StartDeviceAuthorizationCommandOutput } from "./commands/StartDeviceAuthorizationCommand";
6
+ import { SSOOIDCClient } from "./SSOOIDCClient";
7
+ export interface SSOOIDC {
8
+ /**
9
+ * @see {@link CreateTokenCommand}
10
+ */
11
+ createToken(args: CreateTokenCommandInput, options?: __HttpHandlerOptions): Promise<CreateTokenCommandOutput>;
12
+ createToken(args: CreateTokenCommandInput, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
13
+ createToken(args: CreateTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
14
+ /**
15
+ * @see {@link CreateTokenWithIAMCommand}
16
+ */
17
+ createTokenWithIAM(args: CreateTokenWithIAMCommandInput, options?: __HttpHandlerOptions): Promise<CreateTokenWithIAMCommandOutput>;
18
+ createTokenWithIAM(args: CreateTokenWithIAMCommandInput, cb: (err: any, data?: CreateTokenWithIAMCommandOutput) => void): void;
19
+ createTokenWithIAM(args: CreateTokenWithIAMCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTokenWithIAMCommandOutput) => void): void;
20
+ /**
21
+ * @see {@link RegisterClientCommand}
22
+ */
23
+ registerClient(args: RegisterClientCommandInput, options?: __HttpHandlerOptions): Promise<RegisterClientCommandOutput>;
24
+ registerClient(args: RegisterClientCommandInput, cb: (err: any, data?: RegisterClientCommandOutput) => void): void;
25
+ registerClient(args: RegisterClientCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterClientCommandOutput) => void): void;
26
+ /**
27
+ * @see {@link StartDeviceAuthorizationCommand}
28
+ */
29
+ startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, options?: __HttpHandlerOptions): Promise<StartDeviceAuthorizationCommandOutput>;
30
+ startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void): void;
31
+ startDeviceAuthorization(args: StartDeviceAuthorizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDeviceAuthorizationCommandOutput) => void): void;
32
+ }
33
+ /**
34
+ * <p>IAM Identity Center OpenID Connect (OIDC) is a web service that enables a client (such as CLI
35
+ * or a native application) to register with IAM Identity Center. The service also enables the client to
36
+ * fetch the user’s access token upon successful authentication and authorization with
37
+ * IAM Identity Center.</p>
38
+ * <note>
39
+ * <p>IAM Identity Center uses the <code>sso</code> and <code>identitystore</code> API namespaces.</p>
40
+ * </note>
41
+ * <p>
42
+ * <b>Considerations for Using This Guide</b>
43
+ * </p>
44
+ * <p>Before you begin using this guide, we recommend that you first review the following
45
+ * important information about how the IAM Identity Center OIDC service works.</p>
46
+ * <ul>
47
+ * <li>
48
+ * <p>The IAM Identity Center OIDC service currently implements only the portions of the OAuth 2.0 Device
49
+ * Authorization Grant standard (<a href="https://tools.ietf.org/html/rfc8628">https://tools.ietf.org/html/rfc8628</a>) that are necessary to enable single
50
+ * sign-on authentication with the CLI. </p>
51
+ * </li>
52
+ * <li>
53
+ * <p>With older versions of the CLI, the service only emits OIDC access tokens, so to
54
+ * obtain a new token, users must explicitly re-authenticate. To access the OIDC flow that
55
+ * supports token refresh and doesn’t require re-authentication, update to the latest CLI
56
+ * version (1.27.10 for CLI V1 and 2.9.0 for CLI V2) with support for OIDC token refresh and
57
+ * configurable IAM Identity Center session durations. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/configure-user-session.html">Configure Amazon Web Services access portal session duration </a>. </p>
58
+ * </li>
59
+ * <li>
60
+ * <p>The access tokens provided by this service grant access to all Amazon Web Services account
61
+ * entitlements assigned to an IAM Identity Center user, not just a particular application.</p>
62
+ * </li>
63
+ * <li>
64
+ * <p>The documentation in this guide does not describe the mechanism to convert the access
65
+ * token into Amazon Web Services Auth (“sigv4”) credentials for use with IAM-protected Amazon Web Services service
66
+ * endpoints. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/PortalAPIReference/API_GetRoleCredentials.html">GetRoleCredentials</a> in the <i>IAM Identity Center Portal API Reference
67
+ * Guide</i>.</p>
68
+ * </li>
69
+ * </ul>
70
+ * <p>For general information about IAM Identity Center, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is
71
+ * IAM Identity Center?</a> in the <i>IAM Identity Center User Guide</i>.</p>
72
+ * @public
73
+ */
74
+ export declare class SSOOIDC extends SSOOIDCClient implements SSOOIDC {
75
+ }
@@ -0,0 +1,212 @@
1
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
3
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
4
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
5
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
+ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
+ import { CreateTokenCommandInput, CreateTokenCommandOutput } from "./commands/CreateTokenCommand";
11
+ import { CreateTokenWithIAMCommandInput, CreateTokenWithIAMCommandOutput } from "./commands/CreateTokenWithIAMCommand";
12
+ import { RegisterClientCommandInput, RegisterClientCommandOutput } from "./commands/RegisterClientCommand";
13
+ import { StartDeviceAuthorizationCommandInput, StartDeviceAuthorizationCommandOutput } from "./commands/StartDeviceAuthorizationCommand";
14
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
15
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
16
+ export { __Client };
17
+ /**
18
+ * @public
19
+ */
20
+ export type ServiceInputTypes = CreateTokenCommandInput | CreateTokenWithIAMCommandInput | RegisterClientCommandInput | StartDeviceAuthorizationCommandInput;
21
+ /**
22
+ * @public
23
+ */
24
+ export type ServiceOutputTypes = CreateTokenCommandOutput | CreateTokenWithIAMCommandOutput | RegisterClientCommandOutput | StartDeviceAuthorizationCommandOutput;
25
+ /**
26
+ * @public
27
+ */
28
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
29
+ /**
30
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
31
+ */
32
+ requestHandler?: __HttpHandlerUserInput;
33
+ /**
34
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
35
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
36
+ * @internal
37
+ */
38
+ sha256?: __ChecksumConstructor | __HashConstructor;
39
+ /**
40
+ * The function that will be used to convert strings into HTTP endpoints.
41
+ * @internal
42
+ */
43
+ urlParser?: __UrlParser;
44
+ /**
45
+ * A function that can calculate the length of a request body.
46
+ * @internal
47
+ */
48
+ bodyLengthChecker?: __BodyLengthCalculator;
49
+ /**
50
+ * A function that converts a stream into an array of bytes.
51
+ * @internal
52
+ */
53
+ streamCollector?: __StreamCollector;
54
+ /**
55
+ * The function that will be used to convert a base64-encoded string to a byte array.
56
+ * @internal
57
+ */
58
+ base64Decoder?: __Decoder;
59
+ /**
60
+ * The function that will be used to convert binary data to a base64-encoded string.
61
+ * @internal
62
+ */
63
+ base64Encoder?: __Encoder;
64
+ /**
65
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
66
+ * @internal
67
+ */
68
+ utf8Decoder?: __Decoder;
69
+ /**
70
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
71
+ * @internal
72
+ */
73
+ utf8Encoder?: __Encoder;
74
+ /**
75
+ * The runtime environment.
76
+ * @internal
77
+ */
78
+ runtime?: string;
79
+ /**
80
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
81
+ * trait of an operation.
82
+ */
83
+ disableHostPrefix?: boolean;
84
+ /**
85
+ * Unique service identifier.
86
+ * @internal
87
+ */
88
+ serviceId?: string;
89
+ /**
90
+ * Enables IPv6/IPv4 dualstack endpoint.
91
+ */
92
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
93
+ /**
94
+ * Enables FIPS compatible endpoints.
95
+ */
96
+ useFipsEndpoint?: boolean | __Provider<boolean>;
97
+ /**
98
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
99
+ * @internal
100
+ */
101
+ defaultUserAgentProvider?: Provider<__UserAgent>;
102
+ /**
103
+ * The AWS region to which this client will send requests
104
+ */
105
+ region?: string | __Provider<string>;
106
+ /**
107
+ * Default credentials provider; Not available in browser runtime.
108
+ * @deprecated
109
+ * @internal
110
+ */
111
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
112
+ /**
113
+ * Value for how many times a request will be made at most in case of retry.
114
+ */
115
+ maxAttempts?: number | __Provider<number>;
116
+ /**
117
+ * Specifies which retry algorithm to use.
118
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
119
+ *
120
+ */
121
+ retryMode?: string | __Provider<string>;
122
+ /**
123
+ * Optional logger for logging debug/info/warn/error.
124
+ */
125
+ logger?: __Logger;
126
+ /**
127
+ * Optional extensions
128
+ */
129
+ extensions?: RuntimeExtension[];
130
+ /**
131
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
132
+ */
133
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
134
+ }
135
+ /**
136
+ * @public
137
+ */
138
+ export type SSOOIDCClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
139
+ /**
140
+ * @public
141
+ *
142
+ * The configuration interface of SSOOIDCClient class constructor that set the region, credentials and other options.
143
+ */
144
+ export interface SSOOIDCClientConfig extends SSOOIDCClientConfigType {
145
+ }
146
+ /**
147
+ * @public
148
+ */
149
+ export type SSOOIDCClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
150
+ /**
151
+ * @public
152
+ *
153
+ * The resolved configuration interface of SSOOIDCClient class. This is resolved and normalized from the {@link SSOOIDCClientConfig | constructor configuration interface}.
154
+ */
155
+ export interface SSOOIDCClientResolvedConfig extends SSOOIDCClientResolvedConfigType {
156
+ }
157
+ /**
158
+ * <p>IAM Identity Center OpenID Connect (OIDC) is a web service that enables a client (such as CLI
159
+ * or a native application) to register with IAM Identity Center. The service also enables the client to
160
+ * fetch the user’s access token upon successful authentication and authorization with
161
+ * IAM Identity Center.</p>
162
+ * <note>
163
+ * <p>IAM Identity Center uses the <code>sso</code> and <code>identitystore</code> API namespaces.</p>
164
+ * </note>
165
+ * <p>
166
+ * <b>Considerations for Using This Guide</b>
167
+ * </p>
168
+ * <p>Before you begin using this guide, we recommend that you first review the following
169
+ * important information about how the IAM Identity Center OIDC service works.</p>
170
+ * <ul>
171
+ * <li>
172
+ * <p>The IAM Identity Center OIDC service currently implements only the portions of the OAuth 2.0 Device
173
+ * Authorization Grant standard (<a href="https://tools.ietf.org/html/rfc8628">https://tools.ietf.org/html/rfc8628</a>) that are necessary to enable single
174
+ * sign-on authentication with the CLI. </p>
175
+ * </li>
176
+ * <li>
177
+ * <p>With older versions of the CLI, the service only emits OIDC access tokens, so to
178
+ * obtain a new token, users must explicitly re-authenticate. To access the OIDC flow that
179
+ * supports token refresh and doesn’t require re-authentication, update to the latest CLI
180
+ * version (1.27.10 for CLI V1 and 2.9.0 for CLI V2) with support for OIDC token refresh and
181
+ * configurable IAM Identity Center session durations. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/configure-user-session.html">Configure Amazon Web Services access portal session duration </a>. </p>
182
+ * </li>
183
+ * <li>
184
+ * <p>The access tokens provided by this service grant access to all Amazon Web Services account
185
+ * entitlements assigned to an IAM Identity Center user, not just a particular application.</p>
186
+ * </li>
187
+ * <li>
188
+ * <p>The documentation in this guide does not describe the mechanism to convert the access
189
+ * token into Amazon Web Services Auth (“sigv4”) credentials for use with IAM-protected Amazon Web Services service
190
+ * endpoints. For more information, see <a href="https://docs.aws.amazon.com/singlesignon/latest/PortalAPIReference/API_GetRoleCredentials.html">GetRoleCredentials</a> in the <i>IAM Identity Center Portal API Reference
191
+ * Guide</i>.</p>
192
+ * </li>
193
+ * </ul>
194
+ * <p>For general information about IAM Identity Center, see <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html">What is
195
+ * IAM Identity Center?</a> in the <i>IAM Identity Center User Guide</i>.</p>
196
+ * @public
197
+ */
198
+ export declare class SSOOIDCClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SSOOIDCClientResolvedConfig> {
199
+ /**
200
+ * The resolved configuration of SSOOIDCClient class. This is resolved and normalized from the {@link SSOOIDCClientConfig | constructor configuration interface}.
201
+ */
202
+ readonly config: SSOOIDCClientResolvedConfig;
203
+ constructor(...[configuration]: __CheckOptionalClientConfig<SSOOIDCClientConfig>);
204
+ /**
205
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
206
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
207
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
208
+ */
209
+ destroy(): void;
210
+ private getDefaultHttpAuthSchemeParametersProvider;
211
+ private getIdentityProviderConfigProvider;
212
+ }
@@ -0,0 +1,29 @@
1
+ import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
+ import { SSOOIDCHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: SSOOIDCHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): SSOOIDCHttpAuthSchemeProvider;
11
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
12
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: SSOOIDCHttpAuthSchemeProvider;
20
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,61 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
+ import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
3
+ import { SSOOIDCClientResolvedConfig } from "../SSOOIDCClient";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface SSOOIDCHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface SSOOIDCHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<SSOOIDCClientResolvedConfig, HandlerExecutionContext, SSOOIDCHttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultSSOOIDCHttpAuthSchemeParametersProvider: (config: SSOOIDCClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<SSOOIDCHttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface SSOOIDCHttpAuthSchemeProvider extends HttpAuthSchemeProvider<SSOOIDCHttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultSSOOIDCHttpAuthSchemeProvider: SSOOIDCHttpAuthSchemeProvider;
28
+ /**
29
+ * @internal
30
+ */
31
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
+ /**
33
+ * experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
34
+ * @internal
35
+ */
36
+ httpAuthSchemes?: HttpAuthScheme[];
37
+ /**
38
+ * experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
39
+ * @internal
40
+ */
41
+ httpAuthSchemeProvider?: SSOOIDCHttpAuthSchemeProvider;
42
+ }
43
+ /**
44
+ * @internal
45
+ */
46
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
47
+ /**
48
+ * experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
49
+ * @internal
50
+ */
51
+ readonly httpAuthSchemes: HttpAuthScheme[];
52
+ /**
53
+ * experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
54
+ * @internal
55
+ */
56
+ readonly httpAuthSchemeProvider: SSOOIDCHttpAuthSchemeProvider;
57
+ }
58
+ /**
59
+ * @internal
60
+ */
61
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
@@ -0,0 +1,162 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CreateTokenRequest, CreateTokenResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SSOOIDCClientResolvedConfig } from "../SSOOIDCClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link CreateTokenCommand}.
13
+ */
14
+ export interface CreateTokenCommandInput extends CreateTokenRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link CreateTokenCommand}.
20
+ */
21
+ export interface CreateTokenCommandOutput extends CreateTokenResponse, __MetadataBearer {
22
+ }
23
+ declare const CreateTokenCommand_base: {
24
+ new (input: CreateTokenCommandInput): import("@smithy/smithy-client").CommandImpl<CreateTokenCommandInput, CreateTokenCommandOutput, SSOOIDCClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: CreateTokenCommandInput): import("@smithy/smithy-client").CommandImpl<CreateTokenCommandInput, CreateTokenCommandOutput, SSOOIDCClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Creates and returns access and refresh tokens for clients that are authenticated using
30
+ * client secrets. The access token can be used to fetch short-term credentials for the assigned
31
+ * AWS accounts or to access application APIs using <code>bearer</code> authentication.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { SSOOIDCClient, CreateTokenCommand } from "@aws-sdk/client-sso-oidc"; // ES Modules import
36
+ * // const { SSOOIDCClient, CreateTokenCommand } = require("@aws-sdk/client-sso-oidc"); // CommonJS import
37
+ * const client = new SSOOIDCClient(config);
38
+ * const input = { // CreateTokenRequest
39
+ * clientId: "STRING_VALUE", // required
40
+ * clientSecret: "STRING_VALUE", // required
41
+ * grantType: "STRING_VALUE", // required
42
+ * deviceCode: "STRING_VALUE",
43
+ * code: "STRING_VALUE",
44
+ * refreshToken: "STRING_VALUE",
45
+ * scope: [ // Scopes
46
+ * "STRING_VALUE",
47
+ * ],
48
+ * redirectUri: "STRING_VALUE",
49
+ * };
50
+ * const command = new CreateTokenCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // CreateTokenResponse
53
+ * // accessToken: "STRING_VALUE",
54
+ * // tokenType: "STRING_VALUE",
55
+ * // expiresIn: Number("int"),
56
+ * // refreshToken: "STRING_VALUE",
57
+ * // idToken: "STRING_VALUE",
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param CreateTokenCommandInput - {@link CreateTokenCommandInput}
63
+ * @returns {@link CreateTokenCommandOutput}
64
+ * @see {@link CreateTokenCommandInput} for command's `input` shape.
65
+ * @see {@link CreateTokenCommandOutput} for command's `response` shape.
66
+ * @see {@link SSOOIDCClientResolvedConfig | config} for SSOOIDCClient's `config` shape.
67
+ *
68
+ * @throws {@link AccessDeniedException} (client fault)
69
+ * <p>You do not have sufficient access to perform this action.</p>
70
+ *
71
+ * @throws {@link AuthorizationPendingException} (client fault)
72
+ * <p>Indicates that a request to authorize a client with an access user session token is
73
+ * pending.</p>
74
+ *
75
+ * @throws {@link ExpiredTokenException} (client fault)
76
+ * <p>Indicates that the token issued by the service is expired and is no longer valid.</p>
77
+ *
78
+ * @throws {@link InternalServerException} (server fault)
79
+ * <p>Indicates that an error from the service occurred while trying to process a
80
+ * request.</p>
81
+ *
82
+ * @throws {@link InvalidClientException} (client fault)
83
+ * <p>Indicates that the <code>clientId</code> or <code>clientSecret</code> in the request is
84
+ * invalid. For example, this can occur when a client sends an incorrect <code>clientId</code> or
85
+ * an expired <code>clientSecret</code>.</p>
86
+ *
87
+ * @throws {@link InvalidGrantException} (client fault)
88
+ * <p>Indicates that a request contains an invalid grant. This can occur if a client makes a
89
+ * <a>CreateToken</a> request with an invalid grant type.</p>
90
+ *
91
+ * @throws {@link InvalidRequestException} (client fault)
92
+ * <p>Indicates that something is wrong with the input to the request. For example, a required
93
+ * parameter might be missing or out of range.</p>
94
+ *
95
+ * @throws {@link InvalidScopeException} (client fault)
96
+ * <p>Indicates that the scope provided in the request is invalid.</p>
97
+ *
98
+ * @throws {@link SlowDownException} (client fault)
99
+ * <p>Indicates that the client is making the request too frequently and is more than the
100
+ * service can handle. </p>
101
+ *
102
+ * @throws {@link UnauthorizedClientException} (client fault)
103
+ * <p>Indicates that the client is not currently authorized to make the request. This can happen
104
+ * when a <code>clientId</code> is not issued for a public client.</p>
105
+ *
106
+ * @throws {@link UnsupportedGrantTypeException} (client fault)
107
+ * <p>Indicates that the grant type in the request is not supported by the service.</p>
108
+ *
109
+ * @throws {@link SSOOIDCServiceException}
110
+ * <p>Base exception class for all service exceptions from SSOOIDC service.</p>
111
+ *
112
+ * @public
113
+ * @example Call OAuth/OIDC /token endpoint for Device Code grant with Secret authentication
114
+ * ```javascript
115
+ * //
116
+ * const input = {
117
+ * "clientId": "_yzkThXVzLWVhc3QtMQEXAMPLECLIENTID",
118
+ * "clientSecret": "VERYLONGSECRETeyJraWQiOiJrZXktMTU2NDAyODA5OSIsImFsZyI6IkhTMzg0In0",
119
+ * "deviceCode": "yJraWQiOiJrZXktMTU2Njk2ODA4OCIsImFsZyI6IkhTMzIn0EXAMPLEDEVICECODE",
120
+ * "grantType": "urn:ietf:params:oauth:grant-type:device-code"
121
+ * };
122
+ * const command = new CreateTokenCommand(input);
123
+ * const response = await client.send(command);
124
+ * /* response ==
125
+ * {
126
+ * "accessToken": "aoal-YigITUDiNX1xZwOMXM5MxOWDL0E0jg9P6_C_jKQPxS_SKCP6f0kh1Up4g7TtvQqkMnD-GJiU_S1gvug6SrggAkc0:MGYCMQD3IatVjV7jAJU91kK3PkS/SfA2wtgWzOgZWDOR7sDGN9t0phCZz5It/aes/3C1Zj0CMQCKWOgRaiz6AIhza3DSXQNMLjRKXC8F8ceCsHlgYLMZ7hZidEXAMPLEACCESSTOKEN",
127
+ * "expiresIn": 1579729529,
128
+ * "refreshToken": "aorvJYubGpU6i91YnH7Mfo-AT2fIVa1zCfA_Rvq9yjVKIP3onFmmykuQ7E93y2I-9Nyj-A_sVvMufaLNL0bqnDRtgAkc0:MGUCMFrRsktMRVlWaOR70XGMFGLL0SlcCw4DiYveIiOVx1uK9BbD0gvAddsW3UTLozXKMgIxAJ3qxUvjpnlLIOaaKOoa/FuNgqJVvr9GMwDtnAtlh9iZzAkEXAMPLEREFRESHTOKEN",
129
+ * "tokenType": "Bearer"
130
+ * }
131
+ * *\/
132
+ * // example id: create-token-for-device-code
133
+ * ```
134
+ *
135
+ * @example Call OAuth/OIDC /token endpoint for Refresh Token grant with Secret authentication
136
+ * ```javascript
137
+ * //
138
+ * const input = {
139
+ * "clientId": "_yzkThXVzLWVhc3QtMQEXAMPLECLIENTID",
140
+ * "clientSecret": "VERYLONGSECRETeyJraWQiOiJrZXktMTU2NDAyODA5OSIsImFsZyI6IkhTMzg0In0",
141
+ * "grantType": "refresh_token",
142
+ * "refreshToken": "aorvJYubGpU6i91YnH7Mfo-AT2fIVa1zCfA_Rvq9yjVKIP3onFmmykuQ7E93y2I-9Nyj-A_sVvMufaLNL0bqnDRtgAkc0:MGUCMFrRsktMRVlWaOR70XGMFGLL0SlcCw4DiYveIiOVx1uK9BbD0gvAddsW3UTLozXKMgIxAJ3qxUvjpnlLIOaaKOoa/FuNgqJVvr9GMwDtnAtlh9iZzAkEXAMPLEREFRESHTOKEN",
143
+ * "scope": [
144
+ * "codewhisperer:completions"
145
+ * ]
146
+ * };
147
+ * const command = new CreateTokenCommand(input);
148
+ * const response = await client.send(command);
149
+ * /* response ==
150
+ * {
151
+ * "accessToken": "aoal-YigITUDiNX1xZwOMXM5MxOWDL0E0jg9P6_C_jKQPxS_SKCP6f0kh1Up4g7TtvQqkMnD-GJiU_S1gvug6SrggAkc0:MGYCMQD3IatVjV7jAJU91kK3PkS/SfA2wtgWzOgZWDOR7sDGN9t0phCZz5It/aes/3C1Zj0CMQCKWOgRaiz6AIhza3DSXQNMLjRKXC8F8ceCsHlgYLMZ7hZidEXAMPLEACCESSTOKEN",
152
+ * "expiresIn": 1579729529,
153
+ * "refreshToken": "aorvJYubGpU6i91YnH7Mfo-AT2fIVa1zCfA_Rvq9yjVKIP3onFmmykuQ7E93y2I-9Nyj-A_sVvMufaLNL0bqnDRtgAkc0:MGUCMFrRsktMRVlWaOR70XGMFGLL0SlcCw4DiYveIiOVx1uK9BbD0gvAddsW3UTLozXKMgIxAJ3qxUvjpnlLIOaaKOoa/FuNgqJVvr9GMwDtnAtlh9iZzAkEXAMPLEREFRESHTOKEN",
154
+ * "tokenType": "Bearer"
155
+ * }
156
+ * *\/
157
+ * // example id: create-token-for-refresh-token
158
+ * ```
159
+ *
160
+ */
161
+ export declare class CreateTokenCommand extends CreateTokenCommand_base {
162
+ }