@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,291 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { AssumeRoleWithWebIdentityRequest, AssumeRoleWithWebIdentityResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link AssumeRoleWithWebIdentityCommand}.
13
+ */
14
+ export interface AssumeRoleWithWebIdentityCommandInput extends AssumeRoleWithWebIdentityRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link AssumeRoleWithWebIdentityCommand}.
20
+ */
21
+ export interface AssumeRoleWithWebIdentityCommandOutput extends AssumeRoleWithWebIdentityResponse, __MetadataBearer {
22
+ }
23
+ declare const AssumeRoleWithWebIdentityCommand_base: {
24
+ new (input: AssumeRoleWithWebIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: AssumeRoleWithWebIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Returns a set of temporary security credentials for users who have been authenticated in
30
+ * a mobile or web application with a web identity provider. Example providers include the
31
+ * OAuth 2.0 providers Login with Amazon and Facebook, or any OpenID Connect-compatible
32
+ * identity provider such as Google or <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html">Amazon Cognito federated identities</a>.</p>
33
+ * <note>
34
+ * <p>For mobile applications, we recommend that you use Amazon Cognito. You can use Amazon Cognito with the
35
+ * <a href="http://aws.amazon.com/sdkforios/">Amazon Web Services SDK for iOS Developer Guide</a> and the <a href="http://aws.amazon.com/sdkforandroid/">Amazon Web Services SDK for Android Developer Guide</a> to uniquely
36
+ * identify a user. You can also supply the user with a consistent identity throughout the
37
+ * lifetime of an application.</p>
38
+ * <p>To learn more about Amazon Cognito, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html">Amazon Cognito identity
39
+ * pools</a> in <i>Amazon Cognito Developer Guide</i>.</p>
40
+ * </note>
41
+ * <p>Calling <code>AssumeRoleWithWebIdentity</code> does not require the use of Amazon Web Services
42
+ * security credentials. Therefore, you can distribute an application (for example, on mobile
43
+ * devices) that requests temporary security credentials without including long-term Amazon Web Services
44
+ * credentials in the application. You also don't need to deploy server-based proxy services
45
+ * that use long-term Amazon Web Services credentials. Instead, the identity of the caller is validated by
46
+ * using a token from the web identity provider. For a comparison of
47
+ * <code>AssumeRoleWithWebIdentity</code> with the other API operations that produce
48
+ * temporary credentials, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html">Requesting Temporary Security
49
+ * Credentials</a> and <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison">Comparing the
50
+ * Amazon Web Services STS API operations</a> in the <i>IAM User Guide</i>.</p>
51
+ * <p>The temporary security credentials returned by this API consist of an access key ID, a
52
+ * secret access key, and a security token. Applications can use these temporary security
53
+ * credentials to sign calls to Amazon Web Services service API operations.</p>
54
+ * <p>
55
+ * <b>Session Duration</b>
56
+ * </p>
57
+ * <p>By default, the temporary security credentials created by
58
+ * <code>AssumeRoleWithWebIdentity</code> last for one hour. However, you can use the
59
+ * optional <code>DurationSeconds</code> parameter to specify the duration of your session.
60
+ * You can provide a value from 900 seconds (15 minutes) up to the maximum session duration
61
+ * setting for the role. This setting can have a value from 1 hour to 12 hours. To learn how
62
+ * to view the maximum value for your role, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html#id_roles_use_view-role-max-session">View the
63
+ * Maximum Session Duration Setting for a Role</a> in the
64
+ * <i>IAM User Guide</i>. The maximum session duration limit applies when
65
+ * you use the <code>AssumeRole*</code> API operations or the <code>assume-role*</code> CLI
66
+ * commands. However the limit does not apply when you use those operations to create a
67
+ * console URL. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html">Using IAM Roles</a> in the
68
+ * <i>IAM User Guide</i>. </p>
69
+ * <p>
70
+ * <b>Permissions</b>
71
+ * </p>
72
+ * <p>The temporary security credentials created by <code>AssumeRoleWithWebIdentity</code> can
73
+ * be used to make API calls to any Amazon Web Services service with the following exception: you cannot
74
+ * call the STS <code>GetFederationToken</code> or <code>GetSessionToken</code> API
75
+ * operations.</p>
76
+ * <p>(Optional) You can pass inline or managed <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">session policies</a> to
77
+ * this operation. You can pass a single JSON policy document to use as an inline session
78
+ * policy. You can also specify up to 10 managed policy Amazon Resource Names (ARNs) to use as
79
+ * managed session policies. The plaintext that you use for both inline and managed session
80
+ * policies can't exceed 2,048 characters. Passing policies to this operation returns new
81
+ * temporary credentials. The resulting session's permissions are the intersection of the
82
+ * role's identity-based policy and the session policies. You can use the role's temporary
83
+ * credentials in subsequent Amazon Web Services API calls to access resources in the account that owns
84
+ * the role. You cannot use session policies to grant more permissions than those allowed
85
+ * by the identity-based policy of the role that is being assumed. For more information, see
86
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session
87
+ * Policies</a> in the <i>IAM User Guide</i>.</p>
88
+ * <p>
89
+ * <b>Tags</b>
90
+ * </p>
91
+ * <p>(Optional) You can configure your IdP to pass attributes into your web identity token as
92
+ * session tags. Each session tag consists of a key name and an associated value. For more
93
+ * information about session tags, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in the
94
+ * <i>IAM User Guide</i>.</p>
95
+ * <p>You can pass up to 50 session tags. The plaintext session tag keys can’t exceed 128
96
+ * characters and the values can’t exceed 256 characters. For these and additional limits, see
97
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length">IAM
98
+ * and STS Character Limits</a> in the <i>IAM User Guide</i>.</p>
99
+ * <note>
100
+ * <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
101
+ * and session tags into a packed binary format that has a separate limit. Your request can
102
+ * fail for this limit even if your plaintext meets the other requirements. The
103
+ * <code>PackedPolicySize</code> response element indicates by percentage how close the
104
+ * policies and tags for your request are to the upper size limit.</p>
105
+ * </note>
106
+ * <p>You can pass a session tag with the same key as a tag that is attached to the role. When
107
+ * you do, the session tag overrides the role tag with the same key.</p>
108
+ * <p>An administrator must grant you the permissions necessary to pass session tags. The
109
+ * administrator can also create granular permissions to allow you to pass only specific
110
+ * session tags. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html">Tutorial: Using Tags
111
+ * for Attribute-Based Access Control</a> in the
112
+ * <i>IAM User Guide</i>.</p>
113
+ * <p>You can set the session tags as transitive. Transitive tags persist during role
114
+ * chaining. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html#id_session-tags_role-chaining">Chaining Roles
115
+ * with Session Tags</a> in the <i>IAM User Guide</i>.</p>
116
+ * <p>
117
+ * <b>Identities</b>
118
+ * </p>
119
+ * <p>Before your application can call <code>AssumeRoleWithWebIdentity</code>, you must have
120
+ * an identity token from a supported identity provider and create a role that the application
121
+ * can assume. The role that your application assumes must trust the identity provider that is
122
+ * associated with the identity token. In other words, the identity provider must be specified
123
+ * in the role's trust policy. </p>
124
+ * <important>
125
+ * <p>Calling <code>AssumeRoleWithWebIdentity</code> can result in an entry in your
126
+ * CloudTrail logs. The entry includes the <a href="http://openid.net/specs/openid-connect-core-1_0.html#Claims">Subject</a> of
127
+ * the provided web identity token. We recommend that you avoid using any personally
128
+ * identifiable information (PII) in this field. For example, you could instead use a GUID
129
+ * or a pairwise identifier, as <a href="http://openid.net/specs/openid-connect-core-1_0.html#SubjectIDTypes">suggested
130
+ * in the OIDC specification</a>.</p>
131
+ * </important>
132
+ * <p>For more information about how to use web identity federation and the
133
+ * <code>AssumeRoleWithWebIdentity</code> API, see the following resources: </p>
134
+ * <ul>
135
+ * <li>
136
+ * <p>
137
+ * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc_manual.html">Using Web Identity Federation API Operations for Mobile Apps</a> and <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity">Federation Through a Web-based Identity Provider</a>. </p>
138
+ * </li>
139
+ * <li>
140
+ * <p>
141
+ * <a href="https://aws.amazon.com/blogs/aws/the-aws-web-identity-federation-playground/"> Web Identity Federation Playground</a>. Walk through the process of
142
+ * authenticating through Login with Amazon, Facebook, or Google, getting temporary
143
+ * security credentials, and then using those credentials to make a request to Amazon Web Services.
144
+ * </p>
145
+ * </li>
146
+ * <li>
147
+ * <p>
148
+ * <a href="http://aws.amazon.com/sdkforios/">Amazon Web Services SDK for iOS Developer Guide</a> and <a href="http://aws.amazon.com/sdkforandroid/">Amazon Web Services SDK for Android Developer Guide</a>. These toolkits
149
+ * contain sample apps that show how to invoke the identity providers. The toolkits then
150
+ * show how to use the information from these providers to get and use temporary
151
+ * security credentials. </p>
152
+ * </li>
153
+ * <li>
154
+ * <p>
155
+ * <a href="http://aws.amazon.com/articles/web-identity-federation-with-mobile-applications">Web Identity
156
+ * Federation with Mobile Applications</a>. This article discusses web identity
157
+ * federation and shows an example of how to use web identity federation to get access
158
+ * to content in Amazon S3. </p>
159
+ * </li>
160
+ * </ul>
161
+ * @example
162
+ * Use a bare-bones client and the command you need to make an API call.
163
+ * ```javascript
164
+ * import { STSClient, AssumeRoleWithWebIdentityCommand } from "@aws-sdk/client-sts"; // ES Modules import
165
+ * // const { STSClient, AssumeRoleWithWebIdentityCommand } = require("@aws-sdk/client-sts"); // CommonJS import
166
+ * const client = new STSClient(config);
167
+ * const input = { // AssumeRoleWithWebIdentityRequest
168
+ * RoleArn: "STRING_VALUE", // required
169
+ * RoleSessionName: "STRING_VALUE", // required
170
+ * WebIdentityToken: "STRING_VALUE", // required
171
+ * ProviderId: "STRING_VALUE",
172
+ * PolicyArns: [ // policyDescriptorListType
173
+ * { // PolicyDescriptorType
174
+ * arn: "STRING_VALUE",
175
+ * },
176
+ * ],
177
+ * Policy: "STRING_VALUE",
178
+ * DurationSeconds: Number("int"),
179
+ * };
180
+ * const command = new AssumeRoleWithWebIdentityCommand(input);
181
+ * const response = await client.send(command);
182
+ * // { // AssumeRoleWithWebIdentityResponse
183
+ * // Credentials: { // Credentials
184
+ * // AccessKeyId: "STRING_VALUE", // required
185
+ * // SecretAccessKey: "STRING_VALUE", // required
186
+ * // SessionToken: "STRING_VALUE", // required
187
+ * // Expiration: new Date("TIMESTAMP"), // required
188
+ * // },
189
+ * // SubjectFromWebIdentityToken: "STRING_VALUE",
190
+ * // AssumedRoleUser: { // AssumedRoleUser
191
+ * // AssumedRoleId: "STRING_VALUE", // required
192
+ * // Arn: "STRING_VALUE", // required
193
+ * // },
194
+ * // PackedPolicySize: Number("int"),
195
+ * // Provider: "STRING_VALUE",
196
+ * // Audience: "STRING_VALUE",
197
+ * // SourceIdentity: "STRING_VALUE",
198
+ * // };
199
+ *
200
+ * ```
201
+ *
202
+ * @param AssumeRoleWithWebIdentityCommandInput - {@link AssumeRoleWithWebIdentityCommandInput}
203
+ * @returns {@link AssumeRoleWithWebIdentityCommandOutput}
204
+ * @see {@link AssumeRoleWithWebIdentityCommandInput} for command's `input` shape.
205
+ * @see {@link AssumeRoleWithWebIdentityCommandOutput} for command's `response` shape.
206
+ * @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape.
207
+ *
208
+ * @throws {@link ExpiredTokenException} (client fault)
209
+ * <p>The web identity token that was passed is expired or is not valid. Get a new identity
210
+ * token from the identity provider and then retry the request.</p>
211
+ *
212
+ * @throws {@link IDPCommunicationErrorException} (client fault)
213
+ * <p>The request could not be fulfilled because the identity provider (IDP) that
214
+ * was asked to verify the incoming identity token could not be reached. This is often a
215
+ * transient error caused by network conditions. Retry the request a limited number of
216
+ * times so that you don't exceed the request rate. If the error persists, the
217
+ * identity provider might be down or not responding.</p>
218
+ *
219
+ * @throws {@link IDPRejectedClaimException} (client fault)
220
+ * <p>The identity provider (IdP) reported that authentication failed. This might be because
221
+ * the claim is invalid.</p>
222
+ * <p>If this error is returned for the <code>AssumeRoleWithWebIdentity</code> operation, it
223
+ * can also mean that the claim has expired or has been explicitly revoked. </p>
224
+ *
225
+ * @throws {@link InvalidIdentityTokenException} (client fault)
226
+ * <p>The web identity token that was passed could not be validated by Amazon Web Services. Get a new
227
+ * identity token from the identity provider and then retry the request.</p>
228
+ *
229
+ * @throws {@link MalformedPolicyDocumentException} (client fault)
230
+ * <p>The request was rejected because the policy document was malformed. The error message
231
+ * describes the specific error.</p>
232
+ *
233
+ * @throws {@link PackedPolicyTooLargeException} (client fault)
234
+ * <p>The request was rejected because the total packed size of the session policies and
235
+ * session tags combined was too large. An Amazon Web Services conversion compresses the session policy
236
+ * document, session policy ARNs, and session tags into a packed binary format that has a
237
+ * separate limit. The error message indicates by percentage how close the policies and
238
+ * tags are to the upper size limit. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in
239
+ * the <i>IAM User Guide</i>.</p>
240
+ * <p>You could receive this error even though you meet other defined session policy and
241
+ * session tag limits. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length">IAM and STS Entity
242
+ * Character Limits</a> in the <i>IAM User Guide</i>.</p>
243
+ *
244
+ * @throws {@link RegionDisabledException} (client fault)
245
+ * <p>STS is not activated in the requested region for the account that is being asked to
246
+ * generate credentials. The account administrator must use the IAM console to activate STS
247
+ * in that region. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html">Activating and
248
+ * Deactivating Amazon Web Services STS in an Amazon Web Services Region</a> in the <i>IAM User
249
+ * Guide</i>.</p>
250
+ *
251
+ * @throws {@link STSServiceException}
252
+ * <p>Base exception class for all service exceptions from STS service.</p>
253
+ *
254
+ * @public
255
+ * @example To assume a role as an OpenID Connect-federated user
256
+ * ```javascript
257
+ * //
258
+ * const input = {
259
+ * "DurationSeconds": 3600,
260
+ * "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Stmt1\",\"Effect\":\"Allow\",\"Action\":\"s3:ListAllMyBuckets\",\"Resource\":\"*\"}]}",
261
+ * "ProviderId": "www.amazon.com",
262
+ * "RoleArn": "arn:aws:iam::123456789012:role/FederatedWebIdentityRole",
263
+ * "RoleSessionName": "app1",
264
+ * "WebIdentityToken": "Atza%7CIQEBLjAsAhRFiXuWpUXuRvQ9PZL3GMFcYevydwIUFAHZwXZXXXXXXXXJnrulxKDHwy87oGKPznh0D6bEQZTSCzyoCtL_8S07pLpr0zMbn6w1lfVZKNTBdDansFBmtGnIsIapjI6xKR02Yc_2bQ8LZbUXSGm6Ry6_BG7PrtLZtj_dfCTj92xNGed-CrKqjG7nPBjNIL016GGvuS5gSvPRUxWES3VYfm1wl7WTI7jn-Pcb6M-buCgHhFOzTQxod27L9CqnOLio7N3gZAGpsp6n1-AJBOCJckcyXe2c6uD0srOJeZlKUm2eTDVMf8IehDVI0r1QOnTV6KzzAI3OY87Vd_cVMQ"
265
+ * };
266
+ * const command = new AssumeRoleWithWebIdentityCommand(input);
267
+ * const response = await client.send(command);
268
+ * /* response ==
269
+ * {
270
+ * "AssumedRoleUser": {
271
+ * "Arn": "arn:aws:sts::123456789012:assumed-role/FederatedWebIdentityRole/app1",
272
+ * "AssumedRoleId": "AROACLKWSDQRAOEXAMPLE:app1"
273
+ * },
274
+ * "Audience": "client.5498841531868486423.1548@apps.example.com",
275
+ * "Credentials": {
276
+ * "AccessKeyId": "AKIAIOSFODNN7EXAMPLE",
277
+ * "Expiration": "2014-10-24T23:00:23Z",
278
+ * "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
279
+ * "SessionToken": "AQoDYXdzEE0a8ANXXXXXXXXNO1ewxE5TijQyp+IEXAMPLE"
280
+ * },
281
+ * "PackedPolicySize": 123,
282
+ * "Provider": "www.amazon.com",
283
+ * "SubjectFromWebIdentityToken": "amzn1.account.AF6RHO7KZU5XRVQJGXK6HEXAMPLE"
284
+ * }
285
+ * *\/
286
+ * // example id: to-assume-a-role-as-an-openid-connect-federated-user-1480533445696
287
+ * ```
288
+ *
289
+ */
290
+ export declare class AssumeRoleWithWebIdentityCommand extends AssumeRoleWithWebIdentityCommand_base {
291
+ }
@@ -0,0 +1,115 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DecodeAuthorizationMessageRequest, DecodeAuthorizationMessageResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link DecodeAuthorizationMessageCommand}.
13
+ */
14
+ export interface DecodeAuthorizationMessageCommandInput extends DecodeAuthorizationMessageRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link DecodeAuthorizationMessageCommand}.
20
+ */
21
+ export interface DecodeAuthorizationMessageCommandOutput extends DecodeAuthorizationMessageResponse, __MetadataBearer {
22
+ }
23
+ declare const DecodeAuthorizationMessageCommand_base: {
24
+ new (input: DecodeAuthorizationMessageCommandInput): import("@smithy/smithy-client").CommandImpl<DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: DecodeAuthorizationMessageCommandInput): import("@smithy/smithy-client").CommandImpl<DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Decodes additional information about the authorization status of a request from an
30
+ * encoded message returned in response to an Amazon Web Services request.</p>
31
+ * <p>For example, if a user is not authorized to perform an operation that he or she has
32
+ * requested, the request returns a <code>Client.UnauthorizedOperation</code> response (an
33
+ * HTTP 403 response). Some Amazon Web Services operations additionally return an encoded message that can
34
+ * provide details about this authorization failure. </p>
35
+ * <note>
36
+ * <p>Only certain Amazon Web Services operations return an encoded authorization message. The
37
+ * documentation for an individual operation indicates whether that operation returns an
38
+ * encoded message in addition to returning an HTTP code.</p>
39
+ * </note>
40
+ * <p>The message is encoded because the details of the authorization status can contain
41
+ * privileged information that the user who requested the operation should not see. To decode
42
+ * an authorization status message, a user must be granted permissions through an IAM <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html">policy</a> to
43
+ * request the <code>DecodeAuthorizationMessage</code>
44
+ * (<code>sts:DecodeAuthorizationMessage</code>) action. </p>
45
+ * <p>The decoded message includes the following type of information:</p>
46
+ * <ul>
47
+ * <li>
48
+ * <p>Whether the request was denied due to an explicit deny or due to the absence of an
49
+ * explicit allow. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html#policy-eval-denyallow">Determining Whether a Request is Allowed or Denied</a> in the
50
+ * <i>IAM User Guide</i>. </p>
51
+ * </li>
52
+ * <li>
53
+ * <p>The principal who made the request.</p>
54
+ * </li>
55
+ * <li>
56
+ * <p>The requested action.</p>
57
+ * </li>
58
+ * <li>
59
+ * <p>The requested resource.</p>
60
+ * </li>
61
+ * <li>
62
+ * <p>The values of condition keys in the context of the user's request.</p>
63
+ * </li>
64
+ * </ul>
65
+ * @example
66
+ * Use a bare-bones client and the command you need to make an API call.
67
+ * ```javascript
68
+ * import { STSClient, DecodeAuthorizationMessageCommand } from "@aws-sdk/client-sts"; // ES Modules import
69
+ * // const { STSClient, DecodeAuthorizationMessageCommand } = require("@aws-sdk/client-sts"); // CommonJS import
70
+ * const client = new STSClient(config);
71
+ * const input = { // DecodeAuthorizationMessageRequest
72
+ * EncodedMessage: "STRING_VALUE", // required
73
+ * };
74
+ * const command = new DecodeAuthorizationMessageCommand(input);
75
+ * const response = await client.send(command);
76
+ * // { // DecodeAuthorizationMessageResponse
77
+ * // DecodedMessage: "STRING_VALUE",
78
+ * // };
79
+ *
80
+ * ```
81
+ *
82
+ * @param DecodeAuthorizationMessageCommandInput - {@link DecodeAuthorizationMessageCommandInput}
83
+ * @returns {@link DecodeAuthorizationMessageCommandOutput}
84
+ * @see {@link DecodeAuthorizationMessageCommandInput} for command's `input` shape.
85
+ * @see {@link DecodeAuthorizationMessageCommandOutput} for command's `response` shape.
86
+ * @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape.
87
+ *
88
+ * @throws {@link InvalidAuthorizationMessageException} (client fault)
89
+ * <p>The error returned if the message passed to <code>DecodeAuthorizationMessage</code>
90
+ * was invalid. This can happen if the token contains invalid characters, such as
91
+ * linebreaks. </p>
92
+ *
93
+ * @throws {@link STSServiceException}
94
+ * <p>Base exception class for all service exceptions from STS service.</p>
95
+ *
96
+ * @public
97
+ * @example To decode information about an authorization status of a request
98
+ * ```javascript
99
+ * //
100
+ * const input = {
101
+ * "EncodedMessage": "<encoded-message>"
102
+ * };
103
+ * const command = new DecodeAuthorizationMessageCommand(input);
104
+ * const response = await client.send(command);
105
+ * /* response ==
106
+ * {
107
+ * "DecodedMessage": "{\"allowed\": \"false\",\"explicitDeny\": \"false\",\"matchedStatements\": \"\",\"failures\": \"\",\"context\": {\"principal\": {\"id\": \"AIDACKCEVSQ6C2EXAMPLE\",\"name\": \"Bob\",\"arn\": \"arn:aws:iam::123456789012:user/Bob\"},\"action\": \"ec2:StopInstances\",\"resource\": \"arn:aws:ec2:us-east-1:123456789012:instance/i-dd01c9bd\",\"conditions\": [{\"item\": {\"key\": \"ec2:Tenancy\",\"values\": [\"default\"]},{\"item\": {\"key\": \"ec2:ResourceTag/elasticbeanstalk:environment-name\",\"values\": [\"Default-Environment\"]}},(Additional items ...)]}}"
108
+ * }
109
+ * *\/
110
+ * // example id: to-decode-information-about-an-authorization-status-of-a-request-1480533854499
111
+ * ```
112
+ *
113
+ */
114
+ export declare class DecodeAuthorizationMessageCommand extends DecodeAuthorizationMessageCommand_base {
115
+ }
@@ -0,0 +1,75 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetAccessKeyInfoRequest, GetAccessKeyInfoResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link GetAccessKeyInfoCommand}.
13
+ */
14
+ export interface GetAccessKeyInfoCommandInput extends GetAccessKeyInfoRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link GetAccessKeyInfoCommand}.
20
+ */
21
+ export interface GetAccessKeyInfoCommandOutput extends GetAccessKeyInfoResponse, __MetadataBearer {
22
+ }
23
+ declare const GetAccessKeyInfoCommand_base: {
24
+ new (input: GetAccessKeyInfoCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: GetAccessKeyInfoCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Returns the account identifier for the specified access key ID.</p>
30
+ * <p>Access keys consist of two parts: an access key ID (for example,
31
+ * <code>AKIAIOSFODNN7EXAMPLE</code>) and a secret access key (for example,
32
+ * <code>wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY</code>). For more information about
33
+ * access keys, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html">Managing Access Keys for IAM
34
+ * Users</a> in the <i>IAM User Guide</i>.</p>
35
+ * <p>When you pass an access key ID to this operation, it returns the ID of the Amazon Web Services account
36
+ * to which the keys belong. Access key IDs beginning with <code>AKIA</code> are long-term
37
+ * credentials for an IAM user or the Amazon Web Services account root user. Access key IDs
38
+ * beginning with <code>ASIA</code> are temporary credentials that are created using STS
39
+ * operations. If the account in the response belongs to you, you can sign in as the root user and review your root user access keys. Then, you can pull a <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_getting-report.html">credentials
40
+ * report</a> to learn which IAM user owns the keys. To learn who
41
+ * requested the temporary credentials for an <code>ASIA</code> access key, view the STS
42
+ * events in your <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html">CloudTrail logs</a> in the <i>IAM User Guide</i>.</p>
43
+ * <p>This operation does not indicate the state of the access key. The key might be active,
44
+ * inactive, or deleted. Active keys might not have permissions to perform an operation.
45
+ * Providing a deleted access key might return an error that the key doesn't exist.</p>
46
+ * @example
47
+ * Use a bare-bones client and the command you need to make an API call.
48
+ * ```javascript
49
+ * import { STSClient, GetAccessKeyInfoCommand } from "@aws-sdk/client-sts"; // ES Modules import
50
+ * // const { STSClient, GetAccessKeyInfoCommand } = require("@aws-sdk/client-sts"); // CommonJS import
51
+ * const client = new STSClient(config);
52
+ * const input = { // GetAccessKeyInfoRequest
53
+ * AccessKeyId: "STRING_VALUE", // required
54
+ * };
55
+ * const command = new GetAccessKeyInfoCommand(input);
56
+ * const response = await client.send(command);
57
+ * // { // GetAccessKeyInfoResponse
58
+ * // Account: "STRING_VALUE",
59
+ * // };
60
+ *
61
+ * ```
62
+ *
63
+ * @param GetAccessKeyInfoCommandInput - {@link GetAccessKeyInfoCommandInput}
64
+ * @returns {@link GetAccessKeyInfoCommandOutput}
65
+ * @see {@link GetAccessKeyInfoCommandInput} for command's `input` shape.
66
+ * @see {@link GetAccessKeyInfoCommandOutput} for command's `response` shape.
67
+ * @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape.
68
+ *
69
+ * @throws {@link STSServiceException}
70
+ * <p>Base exception class for all service exceptions from STS service.</p>
71
+ *
72
+ * @public
73
+ */
74
+ export declare class GetAccessKeyInfoCommand extends GetAccessKeyInfoCommand_base {
75
+ }
@@ -0,0 +1,116 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetCallerIdentityRequest, GetCallerIdentityResponse } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link GetCallerIdentityCommand}.
13
+ */
14
+ export interface GetCallerIdentityCommandInput extends GetCallerIdentityRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link GetCallerIdentityCommand}.
20
+ */
21
+ export interface GetCallerIdentityCommandOutput extends GetCallerIdentityResponse, __MetadataBearer {
22
+ }
23
+ declare const GetCallerIdentityCommand_base: {
24
+ new (input: GetCallerIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (...[input]: [] | [GetCallerIdentityCommandInput]): import("@smithy/smithy-client").CommandImpl<GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput, STSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Returns details about the IAM user or role whose credentials are used to
30
+ * call the operation.</p>
31
+ * <note>
32
+ * <p>No permissions are required to perform this operation. If an administrator attaches a
33
+ * policy to your identity that explicitly denies access to the
34
+ * <code>sts:GetCallerIdentity</code> action, you can still perform this operation.
35
+ * Permissions are not required because the same information is returned when access is
36
+ * denied. To view an example response, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_access-denied-delete-mfa">I Am Not Authorized to Perform: iam:DeleteVirtualMFADevice</a> in the
37
+ * <i>IAM User Guide</i>.</p>
38
+ * </note>
39
+ * @example
40
+ * Use a bare-bones client and the command you need to make an API call.
41
+ * ```javascript
42
+ * import { STSClient, GetCallerIdentityCommand } from "@aws-sdk/client-sts"; // ES Modules import
43
+ * // const { STSClient, GetCallerIdentityCommand } = require("@aws-sdk/client-sts"); // CommonJS import
44
+ * const client = new STSClient(config);
45
+ * const input = {};
46
+ * const command = new GetCallerIdentityCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // GetCallerIdentityResponse
49
+ * // UserId: "STRING_VALUE",
50
+ * // Account: "STRING_VALUE",
51
+ * // Arn: "STRING_VALUE",
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param GetCallerIdentityCommandInput - {@link GetCallerIdentityCommandInput}
57
+ * @returns {@link GetCallerIdentityCommandOutput}
58
+ * @see {@link GetCallerIdentityCommandInput} for command's `input` shape.
59
+ * @see {@link GetCallerIdentityCommandOutput} for command's `response` shape.
60
+ * @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape.
61
+ *
62
+ * @throws {@link STSServiceException}
63
+ * <p>Base exception class for all service exceptions from STS service.</p>
64
+ *
65
+ * @public
66
+ * @example To get details about a calling IAM user
67
+ * ```javascript
68
+ * // This example shows a request and response made with the credentials for a user named Alice in the AWS account 123456789012.
69
+ * const input = {};
70
+ * const command = new GetCallerIdentityCommand(input);
71
+ * const response = await client.send(command);
72
+ * /* response ==
73
+ * {
74
+ * "Account": "123456789012",
75
+ * "Arn": "arn:aws:iam::123456789012:user/Alice",
76
+ * "UserId": "AKIAI44QH8DHBEXAMPLE"
77
+ * }
78
+ * *\/
79
+ * // example id: to-get-details-about-a-calling-iam-user-1480540050376
80
+ * ```
81
+ *
82
+ * @example To get details about a calling user federated with AssumeRole
83
+ * ```javascript
84
+ * // This example shows a request and response made with temporary credentials created by AssumeRole. The name of the assumed role is my-role-name, and the RoleSessionName is set to my-role-session-name.
85
+ * const input = {};
86
+ * const command = new GetCallerIdentityCommand(input);
87
+ * const response = await client.send(command);
88
+ * /* response ==
89
+ * {
90
+ * "Account": "123456789012",
91
+ * "Arn": "arn:aws:sts::123456789012:assumed-role/my-role-name/my-role-session-name",
92
+ * "UserId": "AKIAI44QH8DHBEXAMPLE:my-role-session-name"
93
+ * }
94
+ * *\/
95
+ * // example id: to-get-details-about-a-calling-user-federated-with-assumerole-1480540158545
96
+ * ```
97
+ *
98
+ * @example To get details about a calling user federated with GetFederationToken
99
+ * ```javascript
100
+ * // This example shows a request and response made with temporary credentials created by using GetFederationToken. The Name parameter is set to my-federated-user-name.
101
+ * const input = {};
102
+ * const command = new GetCallerIdentityCommand(input);
103
+ * const response = await client.send(command);
104
+ * /* response ==
105
+ * {
106
+ * "Account": "123456789012",
107
+ * "Arn": "arn:aws:sts::123456789012:federated-user/my-federated-user-name",
108
+ * "UserId": "123456789012:my-federated-user-name"
109
+ * }
110
+ * *\/
111
+ * // example id: to-get-details-about-a-calling-user-federated-with-getfederationtoken-1480540231316
112
+ * ```
113
+ *
114
+ */
115
+ export declare class GetCallerIdentityCommand extends GetCallerIdentityCommand_base {
116
+ }