@aws-sdk/client-sts 3.31.0 → 3.35.0

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 (211) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/{dist/cjs → dist-cjs}/STS.js +1 -1
  3. package/dist-cjs/STS.js.map +1 -0
  4. package/{dist/cjs → dist-cjs}/STSClient.js +13 -13
  5. package/dist-cjs/STSClient.js.map +1 -0
  6. package/{dist/cjs → dist-cjs}/commands/AssumeRoleCommand.js +6 -6
  7. package/dist-cjs/commands/AssumeRoleCommand.js.map +1 -0
  8. package/{dist/cjs → dist-cjs}/commands/AssumeRoleWithSAMLCommand.js +5 -5
  9. package/dist-cjs/commands/AssumeRoleWithSAMLCommand.js.map +1 -0
  10. package/{dist/cjs → dist-cjs}/commands/AssumeRoleWithWebIdentityCommand.js +5 -5
  11. package/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js.map +1 -0
  12. package/{dist/cjs → dist-cjs}/commands/DecodeAuthorizationMessageCommand.js +6 -6
  13. package/dist-cjs/commands/DecodeAuthorizationMessageCommand.js.map +1 -0
  14. package/{dist/cjs → dist-cjs}/commands/GetAccessKeyInfoCommand.js +6 -6
  15. package/dist-cjs/commands/GetAccessKeyInfoCommand.js.map +1 -0
  16. package/{dist/cjs → dist-cjs}/commands/GetCallerIdentityCommand.js +6 -6
  17. package/dist-cjs/commands/GetCallerIdentityCommand.js.map +1 -0
  18. package/{dist/cjs → dist-cjs}/commands/GetFederationTokenCommand.js +6 -6
  19. package/dist-cjs/commands/GetFederationTokenCommand.js.map +1 -0
  20. package/{dist/cjs → dist-cjs}/commands/GetSessionTokenCommand.js +6 -6
  21. package/dist-cjs/commands/GetSessionTokenCommand.js.map +1 -0
  22. package/{dist/cjs → dist-cjs}/defaultRoleAssumers.js +4 -4
  23. package/dist-cjs/defaultRoleAssumers.js.map +1 -0
  24. package/{dist/cjs → dist-cjs}/defaultStsRoleAssumers.js +2 -2
  25. package/dist-cjs/defaultStsRoleAssumers.js.map +1 -0
  26. package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
  27. package/dist-cjs/endpoints.js.map +1 -0
  28. package/dist-cjs/index.js +16 -0
  29. package/dist-cjs/index.js.map +1 -0
  30. package/{dist/cjs → dist-cjs}/models/index.js +1 -1
  31. package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
  32. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
  33. package/dist-cjs/models/models_0.js.map +1 -0
  34. package/{dist/cjs → dist-cjs}/protocols/Aws_query.js +62 -62
  35. package/dist-cjs/protocols/Aws_query.js.map +1 -0
  36. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
  37. package/dist-cjs/runtimeConfig.browser.js.map +1 -0
  38. package/{dist/cjs → dist-cjs}/runtimeConfig.js +11 -10
  39. package/dist-cjs/runtimeConfig.js.map +1 -0
  40. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
  41. package/dist-cjs/runtimeConfig.native.js.map +1 -0
  42. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
  43. package/dist-cjs/runtimeConfig.shared.js.map +1 -0
  44. package/{dist/es → dist-es}/STS.js +2 -9
  45. package/dist-es/STS.js.map +1 -0
  46. package/{dist/es → dist-es}/STSClient.js +2 -14
  47. package/dist-es/STSClient.js.map +1 -0
  48. package/dist-es/commands/AssumeRoleCommand.js +42 -0
  49. package/dist-es/commands/AssumeRoleCommand.js.map +1 -0
  50. package/dist-es/commands/AssumeRoleWithSAMLCommand.js +40 -0
  51. package/dist-es/commands/AssumeRoleWithSAMLCommand.js.map +1 -0
  52. package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +40 -0
  53. package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js.map +1 -0
  54. package/dist-es/commands/DecodeAuthorizationMessageCommand.js +42 -0
  55. package/dist-es/commands/DecodeAuthorizationMessageCommand.js.map +1 -0
  56. package/dist-es/commands/GetAccessKeyInfoCommand.js +42 -0
  57. package/dist-es/commands/GetAccessKeyInfoCommand.js.map +1 -0
  58. package/{dist/es → dist-es}/commands/GetCallerIdentityCommand.js +4 -38
  59. package/dist-es/commands/GetCallerIdentityCommand.js.map +1 -0
  60. package/dist-es/commands/GetFederationTokenCommand.js +42 -0
  61. package/dist-es/commands/GetFederationTokenCommand.js.map +1 -0
  62. package/dist-es/commands/GetSessionTokenCommand.js +42 -0
  63. package/dist-es/commands/GetSessionTokenCommand.js.map +1 -0
  64. package/dist-es/defaultRoleAssumers.js +17 -0
  65. package/dist-es/defaultRoleAssumers.js.map +1 -0
  66. package/{dist/es → dist-es}/defaultStsRoleAssumers.js +10 -31
  67. package/dist-es/defaultStsRoleAssumers.js.map +1 -0
  68. package/{dist/es → dist-es}/endpoints.js +1 -1
  69. package/dist-es/endpoints.js.map +1 -0
  70. package/{dist/es → dist-es}/index.js +0 -0
  71. package/dist-es/index.js.map +1 -0
  72. package/{dist/es → dist-es}/models/index.js +0 -0
  73. package/dist-es/models/index.js.map +1 -0
  74. package/{dist/es → dist-es}/models/models_0.js +0 -87
  75. package/dist-es/models/models_0.js.map +1 -0
  76. package/{dist/es → dist-es}/protocols/Aws_query.js +152 -154
  77. package/dist-es/protocols/Aws_query.js.map +1 -0
  78. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
  79. package/dist-es/runtimeConfig.browser.js.map +1 -0
  80. package/{dist/es → dist-es}/runtimeConfig.js +3 -6
  81. package/dist-es/runtimeConfig.js.map +1 -0
  82. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
  83. package/dist-es/runtimeConfig.native.js.map +1 -0
  84. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
  85. package/dist-es/runtimeConfig.shared.js.map +1 -0
  86. package/{dist/types → dist-types}/STS.d.ts +2 -2
  87. package/{dist/types → dist-types}/STSClient.d.ts +8 -8
  88. package/{dist/types → dist-types}/commands/AssumeRoleCommand.d.ts +3 -3
  89. package/{dist/types → dist-types}/commands/AssumeRoleWithSAMLCommand.d.ts +3 -3
  90. package/{dist/types → dist-types}/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -3
  91. package/{dist/types → dist-types}/commands/DecodeAuthorizationMessageCommand.d.ts +3 -3
  92. package/{dist/types → dist-types}/commands/GetAccessKeyInfoCommand.d.ts +3 -3
  93. package/{dist/types → dist-types}/commands/GetCallerIdentityCommand.d.ts +3 -3
  94. package/{dist/types → dist-types}/commands/GetFederationTokenCommand.d.ts +3 -3
  95. package/{dist/types → dist-types}/commands/GetSessionTokenCommand.d.ts +3 -3
  96. package/{dist/types → dist-types}/defaultRoleAssumers.d.ts +0 -0
  97. package/{dist/types → dist-types}/defaultStsRoleAssumers.d.ts +0 -0
  98. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  99. package/{dist/types → dist-types}/index.d.ts +0 -0
  100. package/{dist/types → dist-types}/models/index.d.ts +0 -0
  101. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  102. package/{dist/types → dist-types}/protocols/Aws_query.d.ts +2 -2
  103. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
  104. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  105. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
  106. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  107. package/{dist/types → dist-types}/ts3.4/STS.d.ts +2 -2
  108. package/{dist/types → dist-types}/ts3.4/STSClient.d.ts +8 -8
  109. package/{dist/types → dist-types}/ts3.4/commands/AssumeRoleCommand.d.ts +3 -3
  110. package/{dist/types → dist-types}/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +3 -3
  111. package/{dist/types → dist-types}/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -3
  112. package/{dist/types → dist-types}/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +3 -3
  113. package/{dist/types → dist-types}/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +3 -3
  114. package/{dist/types → dist-types}/ts3.4/commands/GetCallerIdentityCommand.d.ts +3 -3
  115. package/{dist/types → dist-types}/ts3.4/commands/GetFederationTokenCommand.d.ts +3 -3
  116. package/{dist/types → dist-types}/ts3.4/commands/GetSessionTokenCommand.d.ts +3 -3
  117. package/{dist/types → dist-types}/ts3.4/defaultRoleAssumers.d.ts +0 -0
  118. package/{dist/types → dist-types}/ts3.4/defaultStsRoleAssumers.d.ts +0 -0
  119. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  120. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  121. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  122. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  123. package/{dist/types → dist-types}/ts3.4/protocols/Aws_query.d.ts +2 -2
  124. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
  125. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  126. package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
  127. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  128. package/package.json +50 -50
  129. package/{STS.ts → src/STS.ts} +3 -2
  130. package/{STSClient.ts → src/STSClient.ts} +30 -29
  131. package/{commands → src/commands}/AssumeRoleCommand.ts +5 -4
  132. package/{commands → src/commands}/AssumeRoleWithSAMLCommand.ts +8 -7
  133. package/{commands → src/commands}/AssumeRoleWithWebIdentityCommand.ts +8 -7
  134. package/{commands → src/commands}/DecodeAuthorizationMessageCommand.ts +8 -7
  135. package/{commands → src/commands}/GetAccessKeyInfoCommand.ts +8 -7
  136. package/{commands → src/commands}/GetCallerIdentityCommand.ts +8 -7
  137. package/{commands → src/commands}/GetFederationTokenCommand.ts +8 -7
  138. package/{commands → src/commands}/GetSessionTokenCommand.ts +8 -7
  139. package/{defaultRoleAssumers.ts → src/defaultRoleAssumers.ts} +0 -0
  140. package/{defaultStsRoleAssumers.ts → src/defaultStsRoleAssumers.ts} +0 -0
  141. package/{endpoints.ts → src/endpoints.ts} +1 -1
  142. package/{index.ts → src/index.ts} +0 -0
  143. package/{models → src/models}/index.ts +0 -0
  144. package/{models → src/models}/models_0.ts +0 -0
  145. package/{protocols → src/protocols}/Aws_query.ts +51 -50
  146. package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +4 -3
  147. package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +2 -1
  148. package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
  149. package/{runtimeConfig.ts → src/runtimeConfig.ts} +6 -5
  150. package/{defaultRoleAssumers.spec.ts → test/defaultRoleAssumers.spec.ts} +6 -5
  151. package/tsconfig.es.json +1 -3
  152. package/tsconfig.json +7 -7
  153. package/tsconfig.types.json +9 -0
  154. package/dist/cjs/STS.js.map +0 -1
  155. package/dist/cjs/STSClient.js.map +0 -1
  156. package/dist/cjs/commands/AssumeRoleCommand.js.map +0 -1
  157. package/dist/cjs/commands/AssumeRoleWithSAMLCommand.js.map +0 -1
  158. package/dist/cjs/commands/AssumeRoleWithWebIdentityCommand.js.map +0 -1
  159. package/dist/cjs/commands/DecodeAuthorizationMessageCommand.js.map +0 -1
  160. package/dist/cjs/commands/GetAccessKeyInfoCommand.js.map +0 -1
  161. package/dist/cjs/commands/GetCallerIdentityCommand.js.map +0 -1
  162. package/dist/cjs/commands/GetFederationTokenCommand.js.map +0 -1
  163. package/dist/cjs/commands/GetSessionTokenCommand.js.map +0 -1
  164. package/dist/cjs/defaultRoleAssumers.js.map +0 -1
  165. package/dist/cjs/defaultRoleAssumers.spec.js +0 -135
  166. package/dist/cjs/defaultRoleAssumers.spec.js.map +0 -1
  167. package/dist/cjs/defaultStsRoleAssumers.js.map +0 -1
  168. package/dist/cjs/endpoints.js.map +0 -1
  169. package/dist/cjs/index.js +0 -16
  170. package/dist/cjs/index.js.map +0 -1
  171. package/dist/cjs/models/models_0.js.map +0 -1
  172. package/dist/cjs/package.json +0 -93
  173. package/dist/cjs/protocols/Aws_query.js.map +0 -1
  174. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  175. package/dist/cjs/runtimeConfig.js.map +0 -1
  176. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  177. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  178. package/dist/es/STS.js.map +0 -1
  179. package/dist/es/STSClient.js.map +0 -1
  180. package/dist/es/commands/AssumeRoleCommand.js +0 -150
  181. package/dist/es/commands/AssumeRoleCommand.js.map +0 -1
  182. package/dist/es/commands/AssumeRoleWithSAMLCommand.js +0 -196
  183. package/dist/es/commands/AssumeRoleWithSAMLCommand.js.map +0 -1
  184. package/dist/es/commands/AssumeRoleWithWebIdentityCommand.js +0 -200
  185. package/dist/es/commands/AssumeRoleWithWebIdentityCommand.js.map +0 -1
  186. package/dist/es/commands/DecodeAuthorizationMessageCommand.js +0 -102
  187. package/dist/es/commands/DecodeAuthorizationMessageCommand.js.map +0 -1
  188. package/dist/es/commands/GetAccessKeyInfoCommand.js +0 -84
  189. package/dist/es/commands/GetAccessKeyInfoCommand.js.map +0 -1
  190. package/dist/es/commands/GetCallerIdentityCommand.js.map +0 -1
  191. package/dist/es/commands/GetFederationTokenCommand.js +0 -205
  192. package/dist/es/commands/GetFederationTokenCommand.js.map +0 -1
  193. package/dist/es/commands/GetSessionTokenCommand.js +0 -118
  194. package/dist/es/commands/GetSessionTokenCommand.js.map +0 -1
  195. package/dist/es/defaultRoleAssumers.js +0 -33
  196. package/dist/es/defaultRoleAssumers.js.map +0 -1
  197. package/dist/es/defaultRoleAssumers.spec.js +0 -142
  198. package/dist/es/defaultRoleAssumers.spec.js.map +0 -1
  199. package/dist/es/defaultStsRoleAssumers.js.map +0 -1
  200. package/dist/es/endpoints.js.map +0 -1
  201. package/dist/es/index.js.map +0 -1
  202. package/dist/es/models/index.js.map +0 -1
  203. package/dist/es/models/models_0.js.map +0 -1
  204. package/dist/es/package.json +0 -93
  205. package/dist/es/protocols/Aws_query.js.map +0 -1
  206. package/dist/es/runtimeConfig.browser.js.map +0 -1
  207. package/dist/es/runtimeConfig.js.map +0 -1
  208. package/dist/es/runtimeConfig.native.js.map +0 -1
  209. package/dist/es/runtimeConfig.shared.js.map +0 -1
  210. package/dist/types/defaultRoleAssumers.spec.d.ts +0 -1
  211. package/dist/types/ts3.4/defaultRoleAssumers.spec.d.ts +0 -1
@@ -1,102 +0,0 @@
1
- import { __extends } from "tslib";
2
- import { DecodeAuthorizationMessageRequest, DecodeAuthorizationMessageResponse } from "../models/models_0";
3
- import { deserializeAws_queryDecodeAuthorizationMessageCommand, serializeAws_queryDecodeAuthorizationMessageCommand, } from "../protocols/Aws_query";
4
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
- import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
6
- import { Command as $Command } from "@aws-sdk/smithy-client";
7
- /**
8
- * <p>Decodes additional information about the authorization status of a request from an
9
- * encoded message returned in response to an Amazon Web Services request.</p>
10
- * <p>For example, if a user is not authorized to perform an operation that he or she has
11
- * requested, the request returns a <code>Client.UnauthorizedOperation</code> response (an
12
- * HTTP 403 response). Some Amazon Web Services operations additionally return an encoded message that can
13
- * provide details about this authorization failure. </p>
14
- * <note>
15
- * <p>Only certain Amazon Web Services operations return an encoded authorization message. The
16
- * documentation for an individual operation indicates whether that operation returns an
17
- * encoded message in addition to returning an HTTP code.</p>
18
- * </note>
19
- * <p>The message is encoded because the details of the authorization status can constitute
20
- * privileged information that the user who requested the operation should not see. To decode
21
- * an authorization status message, a user must be granted permissions via an IAM policy to
22
- * request the <code>DecodeAuthorizationMessage</code>
23
- * (<code>sts:DecodeAuthorizationMessage</code>) action. </p>
24
- * <p>The decoded message includes the following type of information:</p>
25
- * <ul>
26
- * <li>
27
- * <p>Whether the request was denied due to an explicit deny or due to the absence of an
28
- * 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
29
- * <i>IAM User Guide</i>. </p>
30
- * </li>
31
- * <li>
32
- * <p>The principal who made the request.</p>
33
- * </li>
34
- * <li>
35
- * <p>The requested action.</p>
36
- * </li>
37
- * <li>
38
- * <p>The requested resource.</p>
39
- * </li>
40
- * <li>
41
- * <p>The values of condition keys in the context of the user's request.</p>
42
- * </li>
43
- * </ul>
44
- * @example
45
- * Use a bare-bones client and the command you need to make an API call.
46
- * ```javascript
47
- * import { STSClient, DecodeAuthorizationMessageCommand } from "@aws-sdk/client-sts"; // ES Modules import
48
- * // const { STSClient, DecodeAuthorizationMessageCommand } = require("@aws-sdk/client-sts"); // CommonJS import
49
- * const client = new STSClient(config);
50
- * const command = new DecodeAuthorizationMessageCommand(input);
51
- * const response = await client.send(command);
52
- * ```
53
- *
54
- * @see {@link DecodeAuthorizationMessageCommandInput} for command's `input` shape.
55
- * @see {@link DecodeAuthorizationMessageCommandOutput} for command's `response` shape.
56
- * @see {@link STSClientResolvedConfig | config} for command's `input` shape.
57
- *
58
- */
59
- var DecodeAuthorizationMessageCommand = /** @class */ (function (_super) {
60
- __extends(DecodeAuthorizationMessageCommand, _super);
61
- // Start section: command_properties
62
- // End section: command_properties
63
- function DecodeAuthorizationMessageCommand(input) {
64
- var _this =
65
- // Start section: command_constructor
66
- _super.call(this) || this;
67
- _this.input = input;
68
- return _this;
69
- // End section: command_constructor
70
- }
71
- /**
72
- * @internal
73
- */
74
- DecodeAuthorizationMessageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
75
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
76
- this.middlewareStack.use(getAwsAuthPlugin(configuration));
77
- var stack = clientStack.concat(this.middlewareStack);
78
- var logger = configuration.logger;
79
- var clientName = "STSClient";
80
- var commandName = "DecodeAuthorizationMessageCommand";
81
- var handlerExecutionContext = {
82
- logger: logger,
83
- clientName: clientName,
84
- commandName: commandName,
85
- inputFilterSensitiveLog: DecodeAuthorizationMessageRequest.filterSensitiveLog,
86
- outputFilterSensitiveLog: DecodeAuthorizationMessageResponse.filterSensitiveLog,
87
- };
88
- var requestHandler = configuration.requestHandler;
89
- return stack.resolve(function (request) {
90
- return requestHandler.handle(request.request, options || {});
91
- }, handlerExecutionContext);
92
- };
93
- DecodeAuthorizationMessageCommand.prototype.serialize = function (input, context) {
94
- return serializeAws_queryDecodeAuthorizationMessageCommand(input, context);
95
- };
96
- DecodeAuthorizationMessageCommand.prototype.deserialize = function (output, context) {
97
- return deserializeAws_queryDecodeAuthorizationMessageCommand(output, context);
98
- };
99
- return DecodeAuthorizationMessageCommand;
100
- }($Command));
101
- export { DecodeAuthorizationMessageCommand };
102
- //# sourceMappingURL=DecodeAuthorizationMessageCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DecodeAuthorizationMessageCommand.js","sourceRoot":"","sources":["../../../commands/DecodeAuthorizationMessageCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iCAAiC,EAAE,kCAAkC,EAAE,MAAM,oBAAoB,CAAC;AAC3G,OAAO,EACL,qDAAqD,EACrD,mDAAmD,GACpD,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH;IAAuD,qDAItD;IACC,oCAAoC;IACpC,kCAAkC;IAElC,2CAAqB,KAA6C;QAAlE;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAwC;;QAGhE,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,6DAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAC1F,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC;QAE1D,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,IAAM,WAAW,GAAG,mCAAmC,CAAC;QACxD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,iCAAiC,CAAC,kBAAkB;YAC7E,wBAAwB,EAAE,kCAAkC,CAAC,kBAAkB;SAChF,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,qDAAS,GAAjB,UAAkB,KAA6C,EAAE,OAAuB;QACtF,OAAO,mDAAmD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAEO,uDAAW,GAAnB,UACE,MAAsB,EACtB,OAAuB;QAEvB,OAAO,qDAAqD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAIH,wCAAC;AAAD,CAAC,AA1DD,CAAuD,QAAQ,GA0D9D"}
@@ -1,84 +0,0 @@
1
- import { __extends } from "tslib";
2
- import { GetAccessKeyInfoRequest, GetAccessKeyInfoResponse } from "../models/models_0";
3
- import { deserializeAws_queryGetAccessKeyInfoCommand, serializeAws_queryGetAccessKeyInfoCommand, } from "../protocols/Aws_query";
4
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
- import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
6
- import { Command as $Command } from "@aws-sdk/smithy-client";
7
- /**
8
- * <p>Returns the account identifier for the specified access key ID.</p>
9
- * <p>Access keys consist of two parts: an access key ID (for example,
10
- * <code>AKIAIOSFODNN7EXAMPLE</code>) and a secret access key (for example,
11
- * <code>wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY</code>). For more information about
12
- * access keys, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html">Managing Access Keys for IAM
13
- * Users</a> in the <i>IAM User Guide</i>.</p>
14
- * <p>When you pass an access key ID to this operation, it returns the ID of the Amazon Web Services
15
- * account to which the keys belong. Access key IDs beginning with <code>AKIA</code> are
16
- * long-term credentials for an IAM user or the Amazon Web Services account root user. Access key IDs
17
- * beginning with <code>ASIA</code> are temporary credentials that are created using STS
18
- * operations. If the account in the response belongs to you, you can sign in as the root
19
- * 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 report</a> to learn which IAM user owns the keys. To learn who
20
- * requested the temporary credentials for an <code>ASIA</code> access key, view the STS
21
- * events in your <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html">CloudTrail logs</a> in the
22
- * <i>IAM User Guide</i>.</p>
23
- * <p>This operation does not indicate the state of the access key. The key might be active,
24
- * inactive, or deleted. Active keys might not have permissions to perform an operation.
25
- * Providing a deleted access key might return an error that the key doesn't exist.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { STSClient, GetAccessKeyInfoCommand } from "@aws-sdk/client-sts"; // ES Modules import
30
- * // const { STSClient, GetAccessKeyInfoCommand } = require("@aws-sdk/client-sts"); // CommonJS import
31
- * const client = new STSClient(config);
32
- * const command = new GetAccessKeyInfoCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link GetAccessKeyInfoCommandInput} for command's `input` shape.
37
- * @see {@link GetAccessKeyInfoCommandOutput} for command's `response` shape.
38
- * @see {@link STSClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- var GetAccessKeyInfoCommand = /** @class */ (function (_super) {
42
- __extends(GetAccessKeyInfoCommand, _super);
43
- // Start section: command_properties
44
- // End section: command_properties
45
- function GetAccessKeyInfoCommand(input) {
46
- var _this =
47
- // Start section: command_constructor
48
- _super.call(this) || this;
49
- _this.input = input;
50
- return _this;
51
- // End section: command_constructor
52
- }
53
- /**
54
- * @internal
55
- */
56
- GetAccessKeyInfoCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
57
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
58
- this.middlewareStack.use(getAwsAuthPlugin(configuration));
59
- var stack = clientStack.concat(this.middlewareStack);
60
- var logger = configuration.logger;
61
- var clientName = "STSClient";
62
- var commandName = "GetAccessKeyInfoCommand";
63
- var handlerExecutionContext = {
64
- logger: logger,
65
- clientName: clientName,
66
- commandName: commandName,
67
- inputFilterSensitiveLog: GetAccessKeyInfoRequest.filterSensitiveLog,
68
- outputFilterSensitiveLog: GetAccessKeyInfoResponse.filterSensitiveLog,
69
- };
70
- var requestHandler = configuration.requestHandler;
71
- return stack.resolve(function (request) {
72
- return requestHandler.handle(request.request, options || {});
73
- }, handlerExecutionContext);
74
- };
75
- GetAccessKeyInfoCommand.prototype.serialize = function (input, context) {
76
- return serializeAws_queryGetAccessKeyInfoCommand(input, context);
77
- };
78
- GetAccessKeyInfoCommand.prototype.deserialize = function (output, context) {
79
- return deserializeAws_queryGetAccessKeyInfoCommand(output, context);
80
- };
81
- return GetAccessKeyInfoCommand;
82
- }($Command));
83
- export { GetAccessKeyInfoCommand };
84
- //# sourceMappingURL=GetAccessKeyInfoCommand.js.map
@@ -1 +0,0 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_0";
3
- import { deserializeAws_queryGetFederationTokenCommand, serializeAws_queryGetFederationTokenCommand, } from "../protocols/Aws_query";
4
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
- import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
6
- import { Command as $Command } from "@aws-sdk/smithy-client";
7
- /**
8
- * <p>Returns a set of temporary security credentials (consisting of an access key ID, a
9
- * secret access key, and a security token) for a federated user. A typical use is in a proxy
10
- * application that gets temporary security credentials on behalf of distributed applications
11
- * inside a corporate network. You must call the <code>GetFederationToken</code> operation
12
- * using the long-term security credentials of an IAM user. As a result, this call is
13
- * appropriate in contexts where those credentials can be safely stored, usually in a
14
- * server-based application. For a comparison of <code>GetFederationToken</code> with the
15
- * other API operations that produce temporary credentials, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html">Requesting Temporary Security
16
- * Credentials</a> and <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison">Comparing the
17
- * STS API operations</a> in the <i>IAM User Guide</i>.</p>
18
- * <note>
19
- * <p>You can create a mobile-based or browser-based app that can authenticate users using
20
- * a web identity provider like Login with Amazon, Facebook, Google, or an OpenID
21
- * Connect-compatible identity provider. In this case, we recommend that you use <a href="http://aws.amazon.com/cognito/">Amazon Cognito</a> or
22
- * <code>AssumeRoleWithWebIdentity</code>. For more information, see <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> in the
23
- * <i>IAM User Guide</i>.</p>
24
- * </note>
25
- * <p>You can also call <code>GetFederationToken</code> using the security credentials of an
26
- * Amazon Web Services account root user, but we do not recommend it. Instead, we recommend that you create
27
- * an IAM user for the purpose of the proxy application. Then attach a policy to the IAM
28
- * user that limits federated users to only the actions and resources that they need to
29
- * access. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html">IAM Best Practices</a> in the
30
- * <i>IAM User Guide</i>. </p>
31
- * <p>
32
- * <b>Session duration</b>
33
- * </p>
34
- * <p>The temporary credentials are valid for the specified duration, from 900 seconds (15
35
- * minutes) up to a maximum of 129,600 seconds (36 hours). The default session duration is
36
- * 43,200 seconds (12 hours). Temporary credentials that are obtained by using Amazon Web Services account
37
- * root user credentials have a maximum duration of 3,600 seconds (1 hour).</p>
38
- * <p>
39
- * <b>Permissions</b>
40
- * </p>
41
- * <p>You can use the temporary credentials created by <code>GetFederationToken</code> in any
42
- * Amazon Web Services service except the following:</p>
43
- * <ul>
44
- * <li>
45
- * <p>You cannot call any IAM operations using the CLI or the Amazon Web Services API. </p>
46
- * </li>
47
- * <li>
48
- * <p>You cannot call any STS operations except <code>GetCallerIdentity</code>.</p>
49
- * </li>
50
- * </ul>
51
- * <p>You must pass an inline or managed <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">session policy</a> to
52
- * this operation. You can pass a single JSON policy document to use as an inline session
53
- * policy. You can also specify up to 10 managed policies to use as managed session policies.
54
- * The plaintext that you use for both inline and managed session policies can't exceed 2,048
55
- * characters.</p>
56
- * <p>Though the session policy parameters are optional, if you do not pass a policy, then the
57
- * resulting federated user session has no permissions. When you pass session policies, the
58
- * session permissions are the intersection of the IAM user policies and the session
59
- * policies that you pass. This gives you a way to further restrict the permissions for a
60
- * federated user. You cannot use session policies to grant more permissions than those that
61
- * are defined in the permissions policy of the IAM user. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session
62
- * Policies</a> in the <i>IAM User Guide</i>. For information about
63
- * using <code>GetFederationToken</code> to create temporary security credentials, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getfederationtoken">GetFederationToken—Federation Through a Custom Identity Broker</a>. </p>
64
- * <p>You can use the credentials to access a resource that has a resource-based policy. If
65
- * that policy specifically references the federated user session in the
66
- * <code>Principal</code> element of the policy, the session has the permissions allowed by
67
- * the policy. These permissions are granted in addition to the permissions granted by the
68
- * session policies.</p>
69
- * <p>
70
- * <b>Tags</b>
71
- * </p>
72
- * <p>(Optional) You can pass tag key-value pairs to your session. These are called session
73
- * tags. For more 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
74
- * <i>IAM User Guide</i>.</p>
75
- * <note>
76
- * <p>You can create a mobile-based or browser-based app that can authenticate users
77
- * using a web identity provider like Login with Amazon, Facebook, Google, or an OpenID
78
- * Connect-compatible identity provider. In this case, we recommend that you use <a href="http://aws.amazon.com/cognito/">Amazon Cognito</a> or
79
- * <code>AssumeRoleWithWebIdentity</code>. For more information, see <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> in the
80
- * <i>IAM User Guide</i>.</p>
81
- * </note>
82
- * <p>You can also call <code>GetFederationToken</code> using the security credentials of an
83
- * Amazon Web Services account root user, but we do not recommend it. Instead, we recommend that you
84
- * create an IAM user for the purpose of the proxy application. Then attach a policy to
85
- * the IAM user that limits federated users to only the actions and resources that they
86
- * need to access. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html">IAM Best Practices</a> in the
87
- * <i>IAM User Guide</i>. </p>
88
- * <p>
89
- * <b>Session duration</b>
90
- * </p>
91
- * <p>The temporary credentials are valid for the specified duration, from 900 seconds (15
92
- * minutes) up to a maximum of 129,600 seconds (36 hours). The default session duration is
93
- * 43,200 seconds (12 hours). Temporary credentials that are obtained by using Amazon Web Services
94
- * account root user credentials have a maximum duration of 3,600 seconds (1 hour).</p>
95
- * <p>
96
- * <b>Permissions</b>
97
- * </p>
98
- * <p>You can use the temporary credentials created by <code>GetFederationToken</code> in
99
- * any Amazon Web Services service except the following:</p>
100
- * <ul>
101
- * <li>
102
- * <p>You cannot call any IAM operations using the CLI or the Amazon Web Services API.
103
- * </p>
104
- * </li>
105
- * <li>
106
- * <p>You cannot call any STS operations except
107
- * <code>GetCallerIdentity</code>.</p>
108
- * </li>
109
- * </ul>
110
- * <p>You must pass an inline or managed <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">session policy</a> to
111
- * this operation. You can pass a single JSON policy document to use as an inline session
112
- * policy. You can also specify up to 10 managed policies to use as managed session
113
- * policies. The plain text that you use for both inline and managed session policies can't
114
- * exceed 2,048 characters.</p>
115
- * <p>Though the session policy parameters are optional, if you do not pass a policy, then
116
- * the resulting federated user session has no permissions. When you pass session policies,
117
- * the session permissions are the intersection of the IAM user policies and the session
118
- * policies that you pass. This gives you a way to further restrict the permissions for a
119
- * federated user. You cannot use session policies to grant more permissions than those
120
- * that are defined in the permissions policy of the IAM user. For more information, see
121
- * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session Policies</a>
122
- * in the <i>IAM User Guide</i>. For information about using
123
- * <code>GetFederationToken</code> to create temporary security credentials, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getfederationtoken">GetFederationToken—Federation Through a Custom Identity Broker</a>. </p>
124
- * <p>You can use the credentials to access a resource that has a resource-based policy. If
125
- * that policy specifically references the federated user session in the
126
- * <code>Principal</code> element of the policy, the session has the permissions
127
- * allowed by the policy. These permissions are granted in addition to the permissions
128
- * granted by the session policies.</p>
129
- * <p>
130
- * <b>Tags</b>
131
- * </p>
132
- * <p>(Optional) You can pass tag key-value pairs to your session. These are called session
133
- * tags. For more 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
134
- * the <i>IAM User Guide</i>.</p>
135
- * <p>An administrator must grant you the permissions necessary to pass session tags. The
136
- * administrator can also create granular permissions to allow you to pass only specific
137
- * session tags. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_attribute-based-access-control.html">Tutorial: Using
138
- * Tags for Attribute-Based Access Control</a> in the
139
- * <i>IAM User Guide</i>.</p>
140
- * <p>Tag key–value pairs are not case sensitive, but case is preserved. This means that you
141
- * cannot have separate <code>Department</code> and <code>department</code> tag keys.
142
- * Assume that the user that you are federating has the
143
- * <code>Department</code>=<code>Marketing</code> tag and you pass the
144
- * <code>department</code>=<code>engineering</code> session tag.
145
- * <code>Department</code> and <code>department</code> are not saved as separate tags,
146
- * and the session tag passed in the request takes precedence over the user tag.</p>
147
- * @example
148
- * Use a bare-bones client and the command you need to make an API call.
149
- * ```javascript
150
- * import { STSClient, GetFederationTokenCommand } from "@aws-sdk/client-sts"; // ES Modules import
151
- * // const { STSClient, GetFederationTokenCommand } = require("@aws-sdk/client-sts"); // CommonJS import
152
- * const client = new STSClient(config);
153
- * const command = new GetFederationTokenCommand(input);
154
- * const response = await client.send(command);
155
- * ```
156
- *
157
- * @see {@link GetFederationTokenCommandInput} for command's `input` shape.
158
- * @see {@link GetFederationTokenCommandOutput} for command's `response` shape.
159
- * @see {@link STSClientResolvedConfig | config} for command's `input` shape.
160
- *
161
- */
162
- var GetFederationTokenCommand = /** @class */ (function (_super) {
163
- __extends(GetFederationTokenCommand, _super);
164
- // Start section: command_properties
165
- // End section: command_properties
166
- function GetFederationTokenCommand(input) {
167
- var _this =
168
- // Start section: command_constructor
169
- _super.call(this) || this;
170
- _this.input = input;
171
- return _this;
172
- // End section: command_constructor
173
- }
174
- /**
175
- * @internal
176
- */
177
- GetFederationTokenCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
178
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
179
- this.middlewareStack.use(getAwsAuthPlugin(configuration));
180
- var stack = clientStack.concat(this.middlewareStack);
181
- var logger = configuration.logger;
182
- var clientName = "STSClient";
183
- var commandName = "GetFederationTokenCommand";
184
- var handlerExecutionContext = {
185
- logger: logger,
186
- clientName: clientName,
187
- commandName: commandName,
188
- inputFilterSensitiveLog: GetFederationTokenRequest.filterSensitiveLog,
189
- outputFilterSensitiveLog: GetFederationTokenResponse.filterSensitiveLog,
190
- };
191
- var requestHandler = configuration.requestHandler;
192
- return stack.resolve(function (request) {
193
- return requestHandler.handle(request.request, options || {});
194
- }, handlerExecutionContext);
195
- };
196
- GetFederationTokenCommand.prototype.serialize = function (input, context) {
197
- return serializeAws_queryGetFederationTokenCommand(input, context);
198
- };
199
- GetFederationTokenCommand.prototype.deserialize = function (output, context) {
200
- return deserializeAws_queryGetFederationTokenCommand(output, context);
201
- };
202
- return GetFederationTokenCommand;
203
- }($Command));
204
- export { GetFederationTokenCommand };
205
- //# sourceMappingURL=GetFederationTokenCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GetFederationTokenCommand.js","sourceRoot":"","sources":["../../../commands/GetFederationTokenCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EACL,6CAA6C,EAC7C,2CAA2C,GAC5C,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0JG;AACH;IAA+C,6CAI9C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,mCAAqB,KAAqC;QAA1D;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAgC;;QAGxD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,qDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAC1F,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC;QAE1D,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,IAAM,WAAW,GAAG,2BAA2B,CAAC;QAChD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,yBAAyB,CAAC,kBAAkB;YACrE,wBAAwB,EAAE,0BAA0B,CAAC,kBAAkB;SACxE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,6CAAS,GAAjB,UAAkB,KAAqC,EAAE,OAAuB;QAC9E,OAAO,2CAA2C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAEO,+CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,6CAA6C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAIH,gCAAC;AAAD,CAAC,AAvDD,CAA+C,QAAQ,GAuDtD"}
@@ -1,118 +0,0 @@
1
- import { __extends } from "tslib";
2
- import { GetSessionTokenRequest, GetSessionTokenResponse } from "../models/models_0";
3
- import { deserializeAws_queryGetSessionTokenCommand, serializeAws_queryGetSessionTokenCommand, } from "../protocols/Aws_query";
4
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
- import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
6
- import { Command as $Command } from "@aws-sdk/smithy-client";
7
- /**
8
- * <p>Returns a set of temporary credentials for an Amazon Web Services account or IAM user. The
9
- * credentials consist of an access key ID, a secret access key, and a security token.
10
- * Typically, you use <code>GetSessionToken</code> if you want to use MFA to protect
11
- * programmatic calls to specific Amazon Web Services API operations like Amazon EC2 <code>StopInstances</code>.
12
- * MFA-enabled IAM users would need to call <code>GetSessionToken</code> and submit an MFA
13
- * code that is associated with their MFA device. Using the temporary security credentials
14
- * that are returned from the call, IAM users can then make programmatic calls to API
15
- * operations that require MFA authentication. If you do not supply a correct MFA code, then
16
- * the API returns an access denied error. For a comparison of <code>GetSessionToken</code>
17
- * with the other API operations that produce temporary credentials, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html">Requesting
18
- * Temporary Security Credentials</a> and <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison">Comparing the
19
- * STS API operations</a> in the <i>IAM User Guide</i>.</p>
20
- * <p>
21
- * <b>Session Duration</b>
22
- * </p>
23
- * <p>The <code>GetSessionToken</code> operation must be called by using the long-term Amazon Web Services
24
- * security credentials of the Amazon Web Services account root user or an IAM user. Credentials that are
25
- * created by IAM users are valid for the duration that you specify. This duration can range
26
- * from 900 seconds (15 minutes) up to a maximum of 129,600 seconds (36 hours), with a default
27
- * of 43,200 seconds (12 hours). Credentials based on account credentials can range from 900
28
- * seconds (15 minutes) up to 3,600 seconds (1 hour), with a default of 1 hour. </p>
29
- * <p>
30
- * <b>Permissions</b>
31
- * </p>
32
- * <p>The temporary security credentials created by <code>GetSessionToken</code> can be used
33
- * to make API calls to any Amazon Web Services service with the following exceptions:</p>
34
- * <ul>
35
- * <li>
36
- * <p>You cannot call any IAM API operations unless MFA authentication information is
37
- * included in the request.</p>
38
- * </li>
39
- * <li>
40
- * <p>You cannot call any STS API <i>except</i>
41
- * <code>AssumeRole</code> or <code>GetCallerIdentity</code>.</p>
42
- * </li>
43
- * </ul>
44
- * <note>
45
- * <p>We recommend that you do not call <code>GetSessionToken</code> with Amazon Web Services account
46
- * root user credentials. Instead, follow our <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#create-iam-users">best practices</a> by
47
- * creating one or more IAM users, giving them the necessary permissions, and using IAM
48
- * users for everyday interaction with Amazon Web Services. </p>
49
- * </note>
50
- * <p>The credentials that are returned by <code>GetSessionToken</code> are based on
51
- * permissions associated with the user whose credentials were used to call the operation. If
52
- * <code>GetSessionToken</code> is called using Amazon Web Services account root user credentials, the
53
- * temporary credentials have root user permissions. Similarly, if
54
- * <code>GetSessionToken</code> is called using the credentials of an IAM user, the
55
- * temporary credentials have the same permissions as the IAM user. </p>
56
- * <p>For more information about using <code>GetSessionToken</code> to create temporary
57
- * credentials, go to <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_getsessiontoken">Temporary
58
- * Credentials for Users in Untrusted Environments</a> in the
59
- * <i>IAM User Guide</i>. </p>
60
- * @example
61
- * Use a bare-bones client and the command you need to make an API call.
62
- * ```javascript
63
- * import { STSClient, GetSessionTokenCommand } from "@aws-sdk/client-sts"; // ES Modules import
64
- * // const { STSClient, GetSessionTokenCommand } = require("@aws-sdk/client-sts"); // CommonJS import
65
- * const client = new STSClient(config);
66
- * const command = new GetSessionTokenCommand(input);
67
- * const response = await client.send(command);
68
- * ```
69
- *
70
- * @see {@link GetSessionTokenCommandInput} for command's `input` shape.
71
- * @see {@link GetSessionTokenCommandOutput} for command's `response` shape.
72
- * @see {@link STSClientResolvedConfig | config} for command's `input` shape.
73
- *
74
- */
75
- var GetSessionTokenCommand = /** @class */ (function (_super) {
76
- __extends(GetSessionTokenCommand, _super);
77
- // Start section: command_properties
78
- // End section: command_properties
79
- function GetSessionTokenCommand(input) {
80
- var _this =
81
- // Start section: command_constructor
82
- _super.call(this) || this;
83
- _this.input = input;
84
- return _this;
85
- // End section: command_constructor
86
- }
87
- /**
88
- * @internal
89
- */
90
- GetSessionTokenCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
91
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
92
- this.middlewareStack.use(getAwsAuthPlugin(configuration));
93
- var stack = clientStack.concat(this.middlewareStack);
94
- var logger = configuration.logger;
95
- var clientName = "STSClient";
96
- var commandName = "GetSessionTokenCommand";
97
- var handlerExecutionContext = {
98
- logger: logger,
99
- clientName: clientName,
100
- commandName: commandName,
101
- inputFilterSensitiveLog: GetSessionTokenRequest.filterSensitiveLog,
102
- outputFilterSensitiveLog: GetSessionTokenResponse.filterSensitiveLog,
103
- };
104
- var requestHandler = configuration.requestHandler;
105
- return stack.resolve(function (request) {
106
- return requestHandler.handle(request.request, options || {});
107
- }, handlerExecutionContext);
108
- };
109
- GetSessionTokenCommand.prototype.serialize = function (input, context) {
110
- return serializeAws_queryGetSessionTokenCommand(input, context);
111
- };
112
- GetSessionTokenCommand.prototype.deserialize = function (output, context) {
113
- return deserializeAws_queryGetSessionTokenCommand(output, context);
114
- };
115
- return GetSessionTokenCommand;
116
- }($Command));
117
- export { GetSessionTokenCommand };
118
- //# sourceMappingURL=GetSessionTokenCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GetSessionTokenCommand.js","sourceRoot":"","sources":["../../../commands/GetSessionTokenCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EACL,0CAA0C,EAC1C,wCAAwC,GACzC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,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AO,wCAAwC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAEO,4CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,0CAA0C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAIH,6BAAC;AAAD,CAAC,AAvDD,CAA4C,QAAQ,GAuDnD"}
@@ -1,33 +0,0 @@
1
- import { __assign } from "tslib";
2
- // Please do not touch this file. It's generated from template in:
3
- // https://github.com/aws/aws-sdk-js-v3/blob/main/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/sts-client-defaultRoleAssumers.ts
4
- import { getDefaultRoleAssumer as StsGetDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity as StsGetDefaultRoleAssumerWithWebIdentity, } from "./defaultStsRoleAssumers";
5
- import { STSClient } from "./STSClient";
6
- /**
7
- * The default role assumer that used by credential providers when sts:AssumeRole API is needed.
8
- */
9
- export var getDefaultRoleAssumer = function (stsOptions) {
10
- if (stsOptions === void 0) { stsOptions = {}; }
11
- return StsGetDefaultRoleAssumer(stsOptions, STSClient);
12
- };
13
- /**
14
- * The default role assumer that used by credential providers when sts:AssumeRoleWithWebIdentity API is needed.
15
- */
16
- export var getDefaultRoleAssumerWithWebIdentity = function (stsOptions) {
17
- if (stsOptions === void 0) { stsOptions = {}; }
18
- return StsGetDefaultRoleAssumerWithWebIdentity(stsOptions, STSClient);
19
- };
20
- /**
21
- * The default credential providers depend STS client to assume role with desired API: sts:assumeRole,
22
- * sts:assumeRoleWithWebIdentity, etc. This function decorates the default credential provider with role assumers which
23
- * encapsulates the process of calling STS commands. This can only be imported by AWS client packages to avoid circular
24
- * dependencies.
25
- *
26
- * @internal
27
- */
28
- export var decorateDefaultCredentialProvider = function (provider) {
29
- return function (input) {
30
- return provider(__assign({ roleAssumer: getDefaultRoleAssumer(input), roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input) }, input));
31
- };
32
- };
33
- //# sourceMappingURL=defaultRoleAssumers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"defaultRoleAssumers.js","sourceRoot":"","sources":["../../defaultRoleAssumers.ts"],"names":[],"mappings":";AAAA,kEAAkE;AAClE,0LAA0L;AAC1L,OAAO,EAEL,qBAAqB,IAAI,wBAAwB,EACjD,oCAAoC,IAAI,uCAAuC,GAGhF,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,SAAS,EAAmB,MAAM,aAAa,CAAC;AAEzD;;GAEG;AACH,MAAM,CAAC,IAAM,qBAAqB,GAAG,UACnC,UAA8E;IAA9E,2BAAA,EAAA,eAA8E;IAC9D,OAAA,wBAAwB,CAAC,UAAU,EAAE,SAAS,CAAC;AAA/C,CAA+C,CAAC;AAElE;;GAEG;AACH,MAAM,CAAC,IAAM,oCAAoC,GAAG,UAClD,UAA8E;IAA9E,2BAAA,EAAA,eAA8E;IAC/C,OAAA,uCAAuC,CAAC,UAAU,EAAE,SAAS,CAAC;AAA9D,CAA8D,CAAC;AAEhG;;;;;;;GAOG;AACH,MAAM,CAAC,IAAM,iCAAiC,GAC5C,UAAC,QAAmC;IACpC,OAAA,UAAC,KAAU;QACT,OAAA,QAAQ,YACN,WAAW,EAAE,qBAAqB,CAAC,KAAK,CAAC,EACzC,0BAA0B,EAAE,oCAAoC,CAAC,KAAK,CAAC,IACpE,KAAK,EACR;IAJF,CAIE;AALJ,CAKI,CAAC"}