@aws-sdk/client-sts 3.33.0 → 3.36.1

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 (189) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/STS.js +1 -9
  3. package/dist-cjs/STSClient.js +34 -0
  4. package/dist-cjs/commands/AssumeRoleCommand.js +38 -0
  5. package/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +36 -0
  6. package/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +36 -0
  7. package/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +38 -0
  8. package/dist-cjs/commands/GetAccessKeyInfoCommand.js +38 -0
  9. package/dist-cjs/commands/GetCallerIdentityCommand.js +38 -0
  10. package/dist-cjs/commands/GetFederationTokenCommand.js +38 -0
  11. package/dist-cjs/commands/GetSessionTokenCommand.js +38 -0
  12. package/{dist/cjs → dist-cjs}/defaultRoleAssumers.js +0 -17
  13. package/{dist/cjs → dist-cjs}/defaultStsRoleAssumers.js +0 -21
  14. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  15. package/{dist/cjs → dist-cjs}/index.js +0 -1
  16. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  17. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -88
  18. package/{dist/cjs → dist-cjs}/protocols/Aws_query.js +22 -25
  19. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  20. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  21. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  22. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  23. package/{dist/es → dist-es}/STS.js +2 -10
  24. package/{dist/es → dist-es}/STSClient.js +2 -15
  25. package/dist-es/commands/AssumeRoleCommand.js +41 -0
  26. package/dist-es/commands/AssumeRoleWithSAMLCommand.js +39 -0
  27. package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +39 -0
  28. package/dist-es/commands/DecodeAuthorizationMessageCommand.js +41 -0
  29. package/dist-es/commands/GetAccessKeyInfoCommand.js +41 -0
  30. package/{dist/es → dist-es}/commands/GetCallerIdentityCommand.js +4 -39
  31. package/dist-es/commands/GetFederationTokenCommand.js +41 -0
  32. package/dist-es/commands/GetSessionTokenCommand.js +41 -0
  33. package/dist-es/defaultRoleAssumers.js +16 -0
  34. package/{dist/es → dist-es}/defaultStsRoleAssumers.js +10 -32
  35. package/{dist/es → dist-es}/endpoints.js +1 -2
  36. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  37. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  38. package/{dist/es → dist-es}/models/models_0.js +0 -88
  39. package/{dist/es → dist-es}/protocols/Aws_query.js +152 -155
  40. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  41. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  42. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  43. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  44. package/{dist/types → dist-types}/STS.d.ts +2 -2
  45. package/{dist/types → dist-types}/STSClient.d.ts +8 -8
  46. package/{dist/types → dist-types}/commands/AssumeRoleCommand.d.ts +3 -3
  47. package/{dist/types → dist-types}/commands/AssumeRoleWithSAMLCommand.d.ts +3 -3
  48. package/{dist/types → dist-types}/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -3
  49. package/{dist/types → dist-types}/commands/DecodeAuthorizationMessageCommand.d.ts +3 -3
  50. package/{dist/types → dist-types}/commands/GetAccessKeyInfoCommand.d.ts +3 -3
  51. package/{dist/types → dist-types}/commands/GetCallerIdentityCommand.d.ts +3 -3
  52. package/{dist/types → dist-types}/commands/GetFederationTokenCommand.d.ts +3 -3
  53. package/{dist/types → dist-types}/commands/GetSessionTokenCommand.d.ts +3 -3
  54. package/{dist/types → dist-types}/defaultRoleAssumers.d.ts +0 -0
  55. package/{dist/types → dist-types}/defaultStsRoleAssumers.d.ts +0 -0
  56. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  57. package/{index.ts → dist-types/index.d.ts} +0 -0
  58. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  59. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  60. package/{dist/types → dist-types}/protocols/Aws_query.d.ts +2 -2
  61. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  62. package/{dist/types → dist-types}/runtimeConfig.d.ts +0 -0
  63. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  64. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  65. package/dist-types/ts3.4/STS.d.ts +45 -0
  66. package/{dist/types → dist-types}/ts3.4/STSClient.d.ts +32 -101
  67. package/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +17 -0
  69. package/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +17 -0
  70. package/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +17 -0
  71. package/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +17 -0
  72. package/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +17 -0
  73. package/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +17 -0
  74. package/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +17 -0
  75. package/dist-types/ts3.4/defaultRoleAssumers.d.ts +8 -0
  76. package/{dist/types → dist-types}/ts3.4/defaultStsRoleAssumers.d.ts +6 -25
  77. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  78. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  79. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  80. package/dist-types/ts3.4/models/models_0.d.ts +367 -0
  81. package/{dist/types → dist-types}/ts3.4/protocols/Aws_query.d.ts +2 -2
  82. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  83. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +1 -3
  84. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  85. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  86. package/package.json +52 -49
  87. package/STS.ts +0 -896
  88. package/STSClient.ts +0 -263
  89. package/commands/AssumeRoleCommand.ts +0 -176
  90. package/commands/AssumeRoleWithSAMLCommand.ts +0 -225
  91. package/commands/AssumeRoleWithWebIdentityCommand.ts +0 -232
  92. package/commands/DecodeAuthorizationMessageCommand.ts +0 -134
  93. package/commands/GetAccessKeyInfoCommand.ts +0 -113
  94. package/commands/GetCallerIdentityCommand.ts +0 -105
  95. package/commands/GetFederationTokenCommand.ts +0 -234
  96. package/commands/GetSessionTokenCommand.ts +0 -147
  97. package/defaultRoleAssumers.spec.ts +0 -148
  98. package/defaultRoleAssumers.ts +0 -41
  99. package/defaultStsRoleAssumers.ts +0 -126
  100. package/dist/cjs/STS.js.map +0 -1
  101. package/dist/cjs/STSClient.js +0 -47
  102. package/dist/cjs/STSClient.js.map +0 -1
  103. package/dist/cjs/commands/AssumeRoleCommand.js +0 -146
  104. package/dist/cjs/commands/AssumeRoleCommand.js.map +0 -1
  105. package/dist/cjs/commands/AssumeRoleWithSAMLCommand.js +0 -192
  106. package/dist/cjs/commands/AssumeRoleWithSAMLCommand.js.map +0 -1
  107. package/dist/cjs/commands/AssumeRoleWithWebIdentityCommand.js +0 -196
  108. package/dist/cjs/commands/AssumeRoleWithWebIdentityCommand.js.map +0 -1
  109. package/dist/cjs/commands/DecodeAuthorizationMessageCommand.js +0 -98
  110. package/dist/cjs/commands/DecodeAuthorizationMessageCommand.js.map +0 -1
  111. package/dist/cjs/commands/GetAccessKeyInfoCommand.js +0 -80
  112. package/dist/cjs/commands/GetAccessKeyInfoCommand.js.map +0 -1
  113. package/dist/cjs/commands/GetCallerIdentityCommand.js +0 -72
  114. package/dist/cjs/commands/GetCallerIdentityCommand.js.map +0 -1
  115. package/dist/cjs/commands/GetFederationTokenCommand.js +0 -201
  116. package/dist/cjs/commands/GetFederationTokenCommand.js.map +0 -1
  117. package/dist/cjs/commands/GetSessionTokenCommand.js +0 -114
  118. package/dist/cjs/commands/GetSessionTokenCommand.js.map +0 -1
  119. package/dist/cjs/defaultRoleAssumers.js.map +0 -1
  120. package/dist/cjs/defaultRoleAssumers.spec.js +0 -135
  121. package/dist/cjs/defaultRoleAssumers.spec.js.map +0 -1
  122. package/dist/cjs/defaultStsRoleAssumers.js.map +0 -1
  123. package/dist/cjs/endpoints.js.map +0 -1
  124. package/dist/cjs/index.js.map +0 -1
  125. package/dist/cjs/models/index.js.map +0 -1
  126. package/dist/cjs/models/models_0.js.map +0 -1
  127. package/dist/cjs/package.json +0 -93
  128. package/dist/cjs/protocols/Aws_query.js.map +0 -1
  129. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  130. package/dist/cjs/runtimeConfig.js.map +0 -1
  131. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  132. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  133. package/dist/es/STS.js.map +0 -1
  134. package/dist/es/STSClient.js.map +0 -1
  135. package/dist/es/commands/AssumeRoleCommand.js +0 -150
  136. package/dist/es/commands/AssumeRoleCommand.js.map +0 -1
  137. package/dist/es/commands/AssumeRoleWithSAMLCommand.js +0 -196
  138. package/dist/es/commands/AssumeRoleWithSAMLCommand.js.map +0 -1
  139. package/dist/es/commands/AssumeRoleWithWebIdentityCommand.js +0 -200
  140. package/dist/es/commands/AssumeRoleWithWebIdentityCommand.js.map +0 -1
  141. package/dist/es/commands/DecodeAuthorizationMessageCommand.js +0 -102
  142. package/dist/es/commands/DecodeAuthorizationMessageCommand.js.map +0 -1
  143. package/dist/es/commands/GetAccessKeyInfoCommand.js +0 -84
  144. package/dist/es/commands/GetAccessKeyInfoCommand.js.map +0 -1
  145. package/dist/es/commands/GetCallerIdentityCommand.js.map +0 -1
  146. package/dist/es/commands/GetFederationTokenCommand.js +0 -205
  147. package/dist/es/commands/GetFederationTokenCommand.js.map +0 -1
  148. package/dist/es/commands/GetSessionTokenCommand.js +0 -118
  149. package/dist/es/commands/GetSessionTokenCommand.js.map +0 -1
  150. package/dist/es/defaultRoleAssumers.js +0 -33
  151. package/dist/es/defaultRoleAssumers.js.map +0 -1
  152. package/dist/es/defaultRoleAssumers.spec.js +0 -142
  153. package/dist/es/defaultRoleAssumers.spec.js.map +0 -1
  154. package/dist/es/defaultStsRoleAssumers.js.map +0 -1
  155. package/dist/es/endpoints.js.map +0 -1
  156. package/dist/es/index.js +0 -13
  157. package/dist/es/index.js.map +0 -1
  158. package/dist/es/models/index.js +0 -2
  159. package/dist/es/models/index.js.map +0 -1
  160. package/dist/es/models/models_0.js.map +0 -1
  161. package/dist/es/package.json +0 -93
  162. package/dist/es/protocols/Aws_query.js.map +0 -1
  163. package/dist/es/runtimeConfig.browser.js.map +0 -1
  164. package/dist/es/runtimeConfig.js.map +0 -1
  165. package/dist/es/runtimeConfig.native.js.map +0 -1
  166. package/dist/es/runtimeConfig.shared.js.map +0 -1
  167. package/dist/types/defaultRoleAssumers.spec.d.ts +0 -1
  168. package/dist/types/ts3.4/STS.d.ts +0 -666
  169. package/dist/types/ts3.4/commands/AssumeRoleCommand.d.ts +0 -118
  170. package/dist/types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +0 -166
  171. package/dist/types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +0 -170
  172. package/dist/types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +0 -70
  173. package/dist/types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +0 -52
  174. package/dist/types/ts3.4/commands/GetCallerIdentityCommand.d.ts +0 -44
  175. package/dist/types/ts3.4/commands/GetFederationTokenCommand.d.ts +0 -173
  176. package/dist/types/ts3.4/commands/GetSessionTokenCommand.d.ts +0 -86
  177. package/dist/types/ts3.4/defaultRoleAssumers.d.ts +0 -19
  178. package/dist/types/ts3.4/defaultRoleAssumers.spec.d.ts +0 -1
  179. package/dist/types/ts3.4/models/models_0.d.ts +0 -1192
  180. package/endpoints.ts +0 -91
  181. package/jest.config.js +0 -4
  182. package/models/models_0.ts +0 -1361
  183. package/protocols/Aws_query.ts +0 -1513
  184. package/runtimeConfig.browser.ts +0 -40
  185. package/runtimeConfig.native.ts +0 -16
  186. package/runtimeConfig.shared.ts +0 -16
  187. package/runtimeConfig.ts +0 -45
  188. package/tsconfig.es.json +0 -12
  189. package/tsconfig.json +0 -32
@@ -1,196 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AssumeRoleWithWebIdentityCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_query_1 = require("../protocols/Aws_query");
6
- const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
- const smithy_client_1 = require("@aws-sdk/smithy-client");
8
- /**
9
- * <p>Returns a set of temporary security credentials for users who have been authenticated in
10
- * a mobile or web application with a web identity provider. Example providers include Amazon Cognito,
11
- * Login with Amazon, Facebook, Google, or any OpenID Connect-compatible identity
12
- * provider.</p>
13
- * <note>
14
- * <p>For mobile applications, we recommend that you use Amazon Cognito. You can use Amazon Cognito with the
15
- * <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
16
- * identify a user. You can also supply the user with a consistent identity throughout the
17
- * lifetime of an application.</p>
18
- * <p>To learn more about Amazon Cognito, see <a href="https://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/cognito-auth.html#d0e840">Amazon Cognito Overview</a> in
19
- * <i>Amazon Web Services SDK for Android Developer Guide</i> and <a href="https://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-auth.html#d0e664">Amazon Cognito Overview</a> in the
20
- * <i>Amazon Web Services SDK for iOS Developer Guide</i>.</p>
21
- * </note>
22
- * <p>Calling <code>AssumeRoleWithWebIdentity</code> does not require the use of Amazon Web Services
23
- * security credentials. Therefore, you can distribute an application (for example, on mobile
24
- * devices) that requests temporary security credentials without including long-term Amazon Web Services
25
- * credentials in the application. You also don't need to deploy server-based proxy services
26
- * that use long-term Amazon Web Services credentials. Instead, the identity of the caller is validated by
27
- * using a token from the web identity provider. For a comparison of
28
- * <code>AssumeRoleWithWebIdentity</code> with the other API operations that produce
29
- * temporary credentials, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html">Requesting Temporary Security
30
- * Credentials</a> and <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#stsapi_comparison">Comparing the
31
- * STS API operations</a> in the <i>IAM User Guide</i>.</p>
32
- * <p>The temporary security credentials returned by this API consist of an access key ID, a
33
- * secret access key, and a security token. Applications can use these temporary security
34
- * credentials to sign calls to Amazon Web Services service API operations.</p>
35
- * <p>
36
- * <b>Session Duration</b>
37
- * </p>
38
- * <p>By default, the temporary security credentials created by
39
- * <code>AssumeRoleWithWebIdentity</code> last for one hour. However, you can use the
40
- * optional <code>DurationSeconds</code> parameter to specify the duration of your session.
41
- * You can provide a value from 900 seconds (15 minutes) up to the maximum session duration
42
- * setting for the role. This setting can have a value from 1 hour to 12 hours. To learn how
43
- * 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
44
- * Maximum Session Duration Setting for a Role</a> in the
45
- * <i>IAM User Guide</i>. The maximum session duration limit applies when
46
- * you use the <code>AssumeRole*</code> API operations or the <code>assume-role*</code> CLI
47
- * commands. However the limit does not apply when you use those operations to create a
48
- * 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
49
- * <i>IAM User Guide</i>. </p>
50
- * <p>
51
- * <b>Permissions</b>
52
- * </p>
53
- * <p>The temporary security credentials created by <code>AssumeRoleWithWebIdentity</code> can
54
- * be used to make API calls to any Amazon Web Services service with the following exception: you cannot
55
- * call the STS <code>GetFederationToken</code> or <code>GetSessionToken</code> API
56
- * operations.</p>
57
- * <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
58
- * this operation. You can pass a single JSON policy document to use as an inline session
59
- * policy. You can also specify up to 10 managed policies to use as managed session policies.
60
- * The plaintext that you use for both inline and managed session policies can't exceed 2,048
61
- * characters. Passing policies to this operation returns new
62
- * temporary credentials. The resulting session's permissions are the intersection of the
63
- * role's identity-based policy and the session policies. You can use the role's temporary
64
- * credentials in subsequent Amazon Web Services API calls to access resources in the account that owns
65
- * the role. You cannot use session policies to grant more permissions than those allowed
66
- * by the identity-based policy of the role that is being assumed. For more information, see
67
- * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session
68
- * Policies</a> in the <i>IAM User Guide</i>.</p>
69
- * <p>
70
- * <b>Tags</b>
71
- * </p>
72
- * <p>(Optional) You can configure your IdP to pass attributes into your web identity token as
73
- * session tags. Each session tag consists of a key name and an associated value. For more
74
- * 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
75
- * <i>IAM User Guide</i>.</p>
76
- * <p>You can pass up to 50 session tags. The plaintext session tag keys can’t exceed 128
77
- * characters and the values can’t exceed 256 characters. For these and additional limits, see
78
- * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length">IAM
79
- * and STS Character Limits</a> in the <i>IAM User Guide</i>.</p>
80
- *
81
- * <note>
82
- * <p>An Amazon Web Services conversion compresses the passed session policies and session tags into a
83
- * packed binary format that has a separate limit. Your request can fail for this limit
84
- * even if your plaintext meets the other requirements. The <code>PackedPolicySize</code>
85
- * response element indicates by percentage how close the policies and tags for your
86
- * request are to the upper size limit.
87
- * </p>
88
- * </note>
89
- * <p>You can pass a session tag with the same key as a tag that is
90
- * attached to the role. When you do, the session tag overrides the role tag with the same
91
- * key.</p>
92
- * <p>An administrator must grant you the permissions necessary to pass session tags. The
93
- * administrator can also create granular permissions to allow you to pass only specific
94
- * 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
95
- * for Attribute-Based Access Control</a> in the
96
- * <i>IAM User Guide</i>.</p>
97
- * <p>You can set the session tags as transitive. Transitive tags persist during role
98
- * 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
99
- * with Session Tags</a> in the <i>IAM User Guide</i>.</p>
100
- * <p>
101
- * <b>Identities</b>
102
- * </p>
103
- * <p>Before your application can call <code>AssumeRoleWithWebIdentity</code>, you must have
104
- * an identity token from a supported identity provider and create a role that the application
105
- * can assume. The role that your application assumes must trust the identity provider that is
106
- * associated with the identity token. In other words, the identity provider must be specified
107
- * in the role's trust policy. </p>
108
- * <important>
109
- * <p>Calling <code>AssumeRoleWithWebIdentity</code> can result in an entry in your
110
- * CloudTrail logs. The entry includes the <a href="http://openid.net/specs/openid-connect-core-1_0.html#Claims">Subject</a> of
111
- * the provided web identity token. We recommend that you avoid using any personally
112
- * identifiable information (PII) in this field. For example, you could instead use a GUID
113
- * or a pairwise identifier, as <a href="http://openid.net/specs/openid-connect-core-1_0.html#SubjectIDTypes">suggested
114
- * in the OIDC specification</a>.</p>
115
- * </important>
116
- * <p>For more information about how to use web identity federation and the
117
- * <code>AssumeRoleWithWebIdentity</code> API, see the following resources: </p>
118
- * <ul>
119
- * <li>
120
- * <p>
121
- * <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>
122
- * </li>
123
- * <li>
124
- * <p>
125
- * <a href="https://aws.amazon.com/blogs/aws/the-aws-web-identity-federation-playground/"> Web Identity Federation Playground</a>. Walk through the process of
126
- * authenticating through Login with Amazon, Facebook, or Google, getting temporary
127
- * security credentials, and then using those credentials to make a request to Amazon Web Services.
128
- * </p>
129
- * </li>
130
- * <li>
131
- * <p>
132
- * <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
133
- * contain sample apps that show how to invoke the identity providers. The toolkits then
134
- * show how to use the information from these providers to get and use temporary
135
- * security credentials. </p>
136
- * </li>
137
- * <li>
138
- * <p>
139
- * <a href="http://aws.amazon.com/articles/web-identity-federation-with-mobile-applications">Web Identity
140
- * Federation with Mobile Applications</a>. This article discusses web identity
141
- * federation and shows an example of how to use web identity federation to get access
142
- * to content in Amazon S3. </p>
143
- * </li>
144
- * </ul>
145
- * @example
146
- * Use a bare-bones client and the command you need to make an API call.
147
- * ```javascript
148
- * import { STSClient, AssumeRoleWithWebIdentityCommand } from "@aws-sdk/client-sts"; // ES Modules import
149
- * // const { STSClient, AssumeRoleWithWebIdentityCommand } = require("@aws-sdk/client-sts"); // CommonJS import
150
- * const client = new STSClient(config);
151
- * const command = new AssumeRoleWithWebIdentityCommand(input);
152
- * const response = await client.send(command);
153
- * ```
154
- *
155
- * @see {@link AssumeRoleWithWebIdentityCommandInput} for command's `input` shape.
156
- * @see {@link AssumeRoleWithWebIdentityCommandOutput} for command's `response` shape.
157
- * @see {@link STSClientResolvedConfig | config} for command's `input` shape.
158
- *
159
- */
160
- class AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command {
161
- // Start section: command_properties
162
- // End section: command_properties
163
- constructor(input) {
164
- // Start section: command_constructor
165
- super();
166
- this.input = input;
167
- // End section: command_constructor
168
- }
169
- /**
170
- * @internal
171
- */
172
- resolveMiddleware(clientStack, configuration, options) {
173
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
174
- const stack = clientStack.concat(this.middlewareStack);
175
- const { logger } = configuration;
176
- const clientName = "STSClient";
177
- const commandName = "AssumeRoleWithWebIdentityCommand";
178
- const handlerExecutionContext = {
179
- logger,
180
- clientName,
181
- commandName,
182
- inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,
183
- outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponse.filterSensitiveLog,
184
- };
185
- const { requestHandler } = configuration;
186
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
187
- }
188
- serialize(input, context) {
189
- return Aws_query_1.serializeAws_queryAssumeRoleWithWebIdentityCommand(input, context);
190
- }
191
- deserialize(output, context) {
192
- return Aws_query_1.deserializeAws_queryAssumeRoleWithWebIdentityCommand(output, context);
193
- }
194
- }
195
- exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand;
196
- //# sourceMappingURL=AssumeRoleWithWebIdentityCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AssumeRoleWithWebIdentityCommand.js","sourceRoot":"","sources":["../../../commands/AssumeRoleWithWebIdentityCommand.ts"],"names":[],"mappings":";;;AACA,iDAAyG;AACzG,sDAGgC;AAChC,gEAA2D;AAE3D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuJG;AACH,MAAa,gCAAiC,SAAQ,uBAIrD;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAA4C;QAC/D,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAAuC;QAG/D,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,MAAM,WAAW,GAAG,kCAAkC,CAAC;QACvD,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,2CAAgC,CAAC,kBAAkB;YAC5E,wBAAwB,EAAE,4CAAiC,CAAC,kBAAkB;SAC/E,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAA4C,EAAE,OAAuB;QACrF,OAAO,8DAAkD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAEO,WAAW,CACjB,MAAsB,EACtB,OAAuB;QAEvB,OAAO,gEAAoD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CAIF;AAzDD,4EAyDC"}
@@ -1,98 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DecodeAuthorizationMessageCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_query_1 = require("../protocols/Aws_query");
6
- const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
- const middleware_signing_1 = require("@aws-sdk/middleware-signing");
8
- const smithy_client_1 = require("@aws-sdk/smithy-client");
9
- /**
10
- * <p>Decodes additional information about the authorization status of a request from an
11
- * encoded message returned in response to an Amazon Web Services request.</p>
12
- * <p>For example, if a user is not authorized to perform an operation that he or she has
13
- * requested, the request returns a <code>Client.UnauthorizedOperation</code> response (an
14
- * HTTP 403 response). Some Amazon Web Services operations additionally return an encoded message that can
15
- * provide details about this authorization failure. </p>
16
- * <note>
17
- * <p>Only certain Amazon Web Services operations return an encoded authorization message. The
18
- * documentation for an individual operation indicates whether that operation returns an
19
- * encoded message in addition to returning an HTTP code.</p>
20
- * </note>
21
- * <p>The message is encoded because the details of the authorization status can constitute
22
- * privileged information that the user who requested the operation should not see. To decode
23
- * an authorization status message, a user must be granted permissions via an IAM policy to
24
- * request the <code>DecodeAuthorizationMessage</code>
25
- * (<code>sts:DecodeAuthorizationMessage</code>) action. </p>
26
- * <p>The decoded message includes the following type of information:</p>
27
- * <ul>
28
- * <li>
29
- * <p>Whether the request was denied due to an explicit deny or due to the absence of an
30
- * 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
31
- * <i>IAM User Guide</i>. </p>
32
- * </li>
33
- * <li>
34
- * <p>The principal who made the request.</p>
35
- * </li>
36
- * <li>
37
- * <p>The requested action.</p>
38
- * </li>
39
- * <li>
40
- * <p>The requested resource.</p>
41
- * </li>
42
- * <li>
43
- * <p>The values of condition keys in the context of the user's request.</p>
44
- * </li>
45
- * </ul>
46
- * @example
47
- * Use a bare-bones client and the command you need to make an API call.
48
- * ```javascript
49
- * import { STSClient, DecodeAuthorizationMessageCommand } from "@aws-sdk/client-sts"; // ES Modules import
50
- * // const { STSClient, DecodeAuthorizationMessageCommand } = require("@aws-sdk/client-sts"); // CommonJS import
51
- * const client = new STSClient(config);
52
- * const command = new DecodeAuthorizationMessageCommand(input);
53
- * const response = await client.send(command);
54
- * ```
55
- *
56
- * @see {@link DecodeAuthorizationMessageCommandInput} for command's `input` shape.
57
- * @see {@link DecodeAuthorizationMessageCommandOutput} for command's `response` shape.
58
- * @see {@link STSClientResolvedConfig | config} for command's `input` shape.
59
- *
60
- */
61
- class DecodeAuthorizationMessageCommand extends smithy_client_1.Command {
62
- // Start section: command_properties
63
- // End section: command_properties
64
- constructor(input) {
65
- // Start section: command_constructor
66
- super();
67
- this.input = input;
68
- // End section: command_constructor
69
- }
70
- /**
71
- * @internal
72
- */
73
- resolveMiddleware(clientStack, configuration, options) {
74
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
75
- this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
76
- const stack = clientStack.concat(this.middlewareStack);
77
- const { logger } = configuration;
78
- const clientName = "STSClient";
79
- const commandName = "DecodeAuthorizationMessageCommand";
80
- const handlerExecutionContext = {
81
- logger,
82
- clientName,
83
- commandName,
84
- inputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageRequest.filterSensitiveLog,
85
- outputFilterSensitiveLog: models_0_1.DecodeAuthorizationMessageResponse.filterSensitiveLog,
86
- };
87
- const { requestHandler } = configuration;
88
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
89
- }
90
- serialize(input, context) {
91
- return Aws_query_1.serializeAws_queryDecodeAuthorizationMessageCommand(input, context);
92
- }
93
- deserialize(output, context) {
94
- return Aws_query_1.deserializeAws_queryDecodeAuthorizationMessageCommand(output, context);
95
- }
96
- }
97
- exports.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand;
98
- //# sourceMappingURL=DecodeAuthorizationMessageCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DecodeAuthorizationMessageCommand.js","sourceRoot":"","sources":["../../../commands/DecodeAuthorizationMessageCommand.ts"],"names":[],"mappings":";;;AACA,iDAA2G;AAC3G,sDAGgC;AAChC,gEAA2D;AAC3D,oEAA+D;AAE/D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAa,iCAAkC,SAAQ,uBAItD;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAA6C;QAChE,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAAwC;QAGhE,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAC1F,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,qCAAgB,CAAC,aAAa,CAAC,CAAC,CAAC;QAE1D,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,MAAM,WAAW,GAAG,mCAAmC,CAAC;QACxD,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,4CAAiC,CAAC,kBAAkB;YAC7E,wBAAwB,EAAE,6CAAkC,CAAC,kBAAkB;SAChF,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAA6C,EAAE,OAAuB;QACtF,OAAO,+DAAmD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAEO,WAAW,CACjB,MAAsB,EACtB,OAAuB;QAEvB,OAAO,iEAAqD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CAIF;AA1DD,8EA0DC"}
@@ -1,80 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetAccessKeyInfoCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_query_1 = require("../protocols/Aws_query");
6
- const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
- const middleware_signing_1 = require("@aws-sdk/middleware-signing");
8
- const smithy_client_1 = require("@aws-sdk/smithy-client");
9
- /**
10
- * <p>Returns the account identifier for the specified access key ID.</p>
11
- * <p>Access keys consist of two parts: an access key ID (for example,
12
- * <code>AKIAIOSFODNN7EXAMPLE</code>) and a secret access key (for example,
13
- * <code>wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY</code>). For more information about
14
- * access keys, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html">Managing Access Keys for IAM
15
- * Users</a> in the <i>IAM User Guide</i>.</p>
16
- * <p>When you pass an access key ID to this operation, it returns the ID of the Amazon Web Services
17
- * account to which the keys belong. Access key IDs beginning with <code>AKIA</code> are
18
- * long-term credentials for an IAM user or the Amazon Web Services account root user. Access key IDs
19
- * beginning with <code>ASIA</code> are temporary credentials that are created using STS
20
- * operations. If the account in the response belongs to you, you can sign in as the root
21
- * 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
22
- * requested the temporary credentials for an <code>ASIA</code> access key, view the STS
23
- * events in your <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html">CloudTrail logs</a> in the
24
- * <i>IAM User Guide</i>.</p>
25
- * <p>This operation does not indicate the state of the access key. The key might be active,
26
- * inactive, or deleted. Active keys might not have permissions to perform an operation.
27
- * Providing a deleted access key might return an error that the key doesn't exist.</p>
28
- * @example
29
- * Use a bare-bones client and the command you need to make an API call.
30
- * ```javascript
31
- * import { STSClient, GetAccessKeyInfoCommand } from "@aws-sdk/client-sts"; // ES Modules import
32
- * // const { STSClient, GetAccessKeyInfoCommand } = require("@aws-sdk/client-sts"); // CommonJS import
33
- * const client = new STSClient(config);
34
- * const command = new GetAccessKeyInfoCommand(input);
35
- * const response = await client.send(command);
36
- * ```
37
- *
38
- * @see {@link GetAccessKeyInfoCommandInput} for command's `input` shape.
39
- * @see {@link GetAccessKeyInfoCommandOutput} for command's `response` shape.
40
- * @see {@link STSClientResolvedConfig | config} for command's `input` shape.
41
- *
42
- */
43
- class GetAccessKeyInfoCommand extends smithy_client_1.Command {
44
- // Start section: command_properties
45
- // End section: command_properties
46
- constructor(input) {
47
- // Start section: command_constructor
48
- super();
49
- this.input = input;
50
- // End section: command_constructor
51
- }
52
- /**
53
- * @internal
54
- */
55
- resolveMiddleware(clientStack, configuration, options) {
56
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
57
- this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
58
- const stack = clientStack.concat(this.middlewareStack);
59
- const { logger } = configuration;
60
- const clientName = "STSClient";
61
- const commandName = "GetAccessKeyInfoCommand";
62
- const handlerExecutionContext = {
63
- logger,
64
- clientName,
65
- commandName,
66
- inputFilterSensitiveLog: models_0_1.GetAccessKeyInfoRequest.filterSensitiveLog,
67
- outputFilterSensitiveLog: models_0_1.GetAccessKeyInfoResponse.filterSensitiveLog,
68
- };
69
- const { requestHandler } = configuration;
70
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
71
- }
72
- serialize(input, context) {
73
- return Aws_query_1.serializeAws_queryGetAccessKeyInfoCommand(input, context);
74
- }
75
- deserialize(output, context) {
76
- return Aws_query_1.deserializeAws_queryGetAccessKeyInfoCommand(output, context);
77
- }
78
- }
79
- exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand;
80
- //# sourceMappingURL=GetAccessKeyInfoCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GetAccessKeyInfoCommand.js","sourceRoot":"","sources":["../../../commands/GetAccessKeyInfoCommand.ts"],"names":[],"mappings":";;;AACA,iDAAuF;AACvF,sDAGgC;AAChC,gEAA2D;AAC3D,oEAA+D;AAE/D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAa,uBAAwB,SAAQ,uBAI5C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAmC;QACtD,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAA8B;QAGtD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAC1F,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,qCAAgB,CAAC,aAAa,CAAC,CAAC,CAAC;QAE1D,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,MAAM,WAAW,GAAG,yBAAyB,CAAC;QAC9C,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,kCAAuB,CAAC,kBAAkB;YACnE,wBAAwB,EAAE,mCAAwB,CAAC,kBAAkB;SACtE,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAAmC,EAAE,OAAuB;QAC5E,OAAO,qDAAyC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAEO,WAAW,CAAC,MAAsB,EAAE,OAAuB;QACjE,OAAO,uDAA2C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CAIF;AAvDD,0DAuDC"}
@@ -1,72 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetCallerIdentityCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_query_1 = require("../protocols/Aws_query");
6
- const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
- const middleware_signing_1 = require("@aws-sdk/middleware-signing");
8
- const smithy_client_1 = require("@aws-sdk/smithy-client");
9
- /**
10
- * <p>Returns details about the IAM user or role whose credentials are used to call the
11
- * operation.</p>
12
- * <note>
13
- * <p>No permissions are required to perform this operation. If an administrator adds a
14
- * policy to your IAM user or role that explicitly denies access to the
15
- * <code>sts:GetCallerIdentity</code> action, you can still perform this operation.
16
- * Permissions are not required because the same information is returned when an IAM
17
- * user or role is denied access. 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
18
- * <i>IAM User Guide</i>.</p>
19
- * </note>
20
- * @example
21
- * Use a bare-bones client and the command you need to make an API call.
22
- * ```javascript
23
- * import { STSClient, GetCallerIdentityCommand } from "@aws-sdk/client-sts"; // ES Modules import
24
- * // const { STSClient, GetCallerIdentityCommand } = require("@aws-sdk/client-sts"); // CommonJS import
25
- * const client = new STSClient(config);
26
- * const command = new GetCallerIdentityCommand(input);
27
- * const response = await client.send(command);
28
- * ```
29
- *
30
- * @see {@link GetCallerIdentityCommandInput} for command's `input` shape.
31
- * @see {@link GetCallerIdentityCommandOutput} for command's `response` shape.
32
- * @see {@link STSClientResolvedConfig | config} for command's `input` shape.
33
- *
34
- */
35
- class GetCallerIdentityCommand extends smithy_client_1.Command {
36
- // Start section: command_properties
37
- // End section: command_properties
38
- constructor(input) {
39
- // Start section: command_constructor
40
- super();
41
- this.input = input;
42
- // End section: command_constructor
43
- }
44
- /**
45
- * @internal
46
- */
47
- resolveMiddleware(clientStack, configuration, options) {
48
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
49
- this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
50
- const stack = clientStack.concat(this.middlewareStack);
51
- const { logger } = configuration;
52
- const clientName = "STSClient";
53
- const commandName = "GetCallerIdentityCommand";
54
- const handlerExecutionContext = {
55
- logger,
56
- clientName,
57
- commandName,
58
- inputFilterSensitiveLog: models_0_1.GetCallerIdentityRequest.filterSensitiveLog,
59
- outputFilterSensitiveLog: models_0_1.GetCallerIdentityResponse.filterSensitiveLog,
60
- };
61
- const { requestHandler } = configuration;
62
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
63
- }
64
- serialize(input, context) {
65
- return Aws_query_1.serializeAws_queryGetCallerIdentityCommand(input, context);
66
- }
67
- deserialize(output, context) {
68
- return Aws_query_1.deserializeAws_queryGetCallerIdentityCommand(output, context);
69
- }
70
- }
71
- exports.GetCallerIdentityCommand = GetCallerIdentityCommand;
72
- //# sourceMappingURL=GetCallerIdentityCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GetCallerIdentityCommand.js","sourceRoot":"","sources":["../../../commands/GetCallerIdentityCommand.ts"],"names":[],"mappings":";;;AACA,iDAAyF;AACzF,sDAGgC;AAChC,gEAA2D;AAC3D,oEAA+D;AAE/D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,wBAAyB,SAAQ,uBAI7C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAoC;QACvD,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAA+B;QAGvD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAsC,EACtC,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAC1F,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,qCAAgB,CAAC,aAAa,CAAC,CAAC,CAAC;QAE1D,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,WAAW,CAAC;QAC/B,MAAM,WAAW,GAAG,0BAA0B,CAAC;QAC/C,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,mCAAwB,CAAC,kBAAkB;YACpE,wBAAwB,EAAE,oCAAyB,CAAC,kBAAkB;SACvE,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAAoC,EAAE,OAAuB;QAC7E,OAAO,sDAA0C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAEO,WAAW,CAAC,MAAsB,EAAE,OAAuB;QACjE,OAAO,wDAA4C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;CAIF;AAvDD,4DAuDC"}