@aws-sdk/client-sts 3.35.0 → 3.38.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 (135) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/STS.js +0 -8
  3. package/dist-cjs/STSClient.js +0 -13
  4. package/dist-cjs/commands/AssumeRoleCommand.js +0 -108
  5. package/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +0 -156
  6. package/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +0 -160
  7. package/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +0 -60
  8. package/dist-cjs/commands/GetAccessKeyInfoCommand.js +0 -42
  9. package/dist-cjs/commands/GetCallerIdentityCommand.js +0 -34
  10. package/dist-cjs/commands/GetFederationTokenCommand.js +0 -163
  11. package/dist-cjs/commands/GetSessionTokenCommand.js +0 -76
  12. package/dist-cjs/commands/index.js +11 -0
  13. package/dist-cjs/defaultRoleAssumers.js +0 -17
  14. package/dist-cjs/defaultStsRoleAssumers.js +0 -21
  15. package/dist-cjs/endpoints.js +1 -2
  16. package/dist-cjs/index.js +3 -11
  17. package/dist-cjs/models/index.js +0 -1
  18. package/dist-cjs/models/models_0.js +0 -88
  19. package/dist-cjs/protocols/Aws_query.js +0 -3
  20. package/dist-cjs/runtimeConfig.browser.js +1 -6
  21. package/dist-cjs/runtimeConfig.js +3 -8
  22. package/dist-cjs/runtimeConfig.native.js +0 -4
  23. package/dist-cjs/runtimeConfig.shared.js +0 -4
  24. package/dist-es/STS.js +0 -1
  25. package/dist-es/STSClient.js +0 -1
  26. package/dist-es/commands/AssumeRoleCommand.js +0 -1
  27. package/dist-es/commands/AssumeRoleWithSAMLCommand.js +0 -1
  28. package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +0 -1
  29. package/dist-es/commands/DecodeAuthorizationMessageCommand.js +0 -1
  30. package/dist-es/commands/GetAccessKeyInfoCommand.js +0 -1
  31. package/dist-es/commands/GetCallerIdentityCommand.js +0 -1
  32. package/dist-es/commands/GetFederationTokenCommand.js +0 -1
  33. package/dist-es/commands/GetSessionTokenCommand.js +0 -1
  34. package/dist-es/commands/index.js +8 -0
  35. package/dist-es/defaultRoleAssumers.js +0 -1
  36. package/dist-es/defaultStsRoleAssumers.js +0 -1
  37. package/dist-es/endpoints.js +1 -2
  38. package/dist-es/index.js +3 -11
  39. package/dist-es/models/index.js +0 -1
  40. package/dist-es/models/models_0.js +0 -1
  41. package/dist-es/protocols/Aws_query.js +0 -1
  42. package/dist-es/runtimeConfig.browser.js +1 -2
  43. package/dist-es/runtimeConfig.js +3 -4
  44. package/dist-es/runtimeConfig.native.js +0 -1
  45. package/dist-es/runtimeConfig.shared.js +0 -1
  46. package/dist-types/commands/index.d.ts +8 -0
  47. package/dist-types/index.d.ts +3 -10
  48. package/dist-types/ts3.4/STS.d.ts +9 -630
  49. package/dist-types/ts3.4/STSClient.d.ts +24 -93
  50. package/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +2 -103
  51. package/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +2 -151
  52. package/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -155
  53. package/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +2 -55
  54. package/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +2 -37
  55. package/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +2 -29
  56. package/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +2 -158
  57. package/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +2 -71
  58. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  59. package/dist-types/ts3.4/defaultRoleAssumers.d.ts +3 -14
  60. package/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +6 -25
  61. package/dist-types/ts3.4/index.d.ts +3 -10
  62. package/dist-types/ts3.4/models/models_0.d.ts +123 -948
  63. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  64. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  65. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  66. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  67. package/package.json +33 -30
  68. package/dist-cjs/STS.js.map +0 -1
  69. package/dist-cjs/STSClient.js.map +0 -1
  70. package/dist-cjs/commands/AssumeRoleCommand.js.map +0 -1
  71. package/dist-cjs/commands/AssumeRoleWithSAMLCommand.js.map +0 -1
  72. package/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js.map +0 -1
  73. package/dist-cjs/commands/DecodeAuthorizationMessageCommand.js.map +0 -1
  74. package/dist-cjs/commands/GetAccessKeyInfoCommand.js.map +0 -1
  75. package/dist-cjs/commands/GetCallerIdentityCommand.js.map +0 -1
  76. package/dist-cjs/commands/GetFederationTokenCommand.js.map +0 -1
  77. package/dist-cjs/commands/GetSessionTokenCommand.js.map +0 -1
  78. package/dist-cjs/defaultRoleAssumers.js.map +0 -1
  79. package/dist-cjs/defaultStsRoleAssumers.js.map +0 -1
  80. package/dist-cjs/endpoints.js.map +0 -1
  81. package/dist-cjs/index.js.map +0 -1
  82. package/dist-cjs/models/index.js.map +0 -1
  83. package/dist-cjs/models/models_0.js.map +0 -1
  84. package/dist-cjs/protocols/Aws_query.js.map +0 -1
  85. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  86. package/dist-cjs/runtimeConfig.js.map +0 -1
  87. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  88. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  89. package/dist-es/STS.js.map +0 -1
  90. package/dist-es/STSClient.js.map +0 -1
  91. package/dist-es/commands/AssumeRoleCommand.js.map +0 -1
  92. package/dist-es/commands/AssumeRoleWithSAMLCommand.js.map +0 -1
  93. package/dist-es/commands/AssumeRoleWithWebIdentityCommand.js.map +0 -1
  94. package/dist-es/commands/DecodeAuthorizationMessageCommand.js.map +0 -1
  95. package/dist-es/commands/GetAccessKeyInfoCommand.js.map +0 -1
  96. package/dist-es/commands/GetCallerIdentityCommand.js.map +0 -1
  97. package/dist-es/commands/GetFederationTokenCommand.js.map +0 -1
  98. package/dist-es/commands/GetSessionTokenCommand.js.map +0 -1
  99. package/dist-es/defaultRoleAssumers.js.map +0 -1
  100. package/dist-es/defaultStsRoleAssumers.js.map +0 -1
  101. package/dist-es/endpoints.js.map +0 -1
  102. package/dist-es/index.js.map +0 -1
  103. package/dist-es/models/index.js.map +0 -1
  104. package/dist-es/models/models_0.js.map +0 -1
  105. package/dist-es/protocols/Aws_query.js.map +0 -1
  106. package/dist-es/runtimeConfig.browser.js.map +0 -1
  107. package/dist-es/runtimeConfig.js.map +0 -1
  108. package/dist-es/runtimeConfig.native.js.map +0 -1
  109. package/dist-es/runtimeConfig.shared.js.map +0 -1
  110. package/jest.config.js +0 -4
  111. package/src/STS.ts +0 -897
  112. package/src/STSClient.ts +0 -264
  113. package/src/commands/AssumeRoleCommand.ts +0 -177
  114. package/src/commands/AssumeRoleWithSAMLCommand.ts +0 -226
  115. package/src/commands/AssumeRoleWithWebIdentityCommand.ts +0 -233
  116. package/src/commands/DecodeAuthorizationMessageCommand.ts +0 -135
  117. package/src/commands/GetAccessKeyInfoCommand.ts +0 -114
  118. package/src/commands/GetCallerIdentityCommand.ts +0 -106
  119. package/src/commands/GetFederationTokenCommand.ts +0 -235
  120. package/src/commands/GetSessionTokenCommand.ts +0 -148
  121. package/src/defaultRoleAssumers.ts +0 -41
  122. package/src/defaultStsRoleAssumers.ts +0 -126
  123. package/src/endpoints.ts +0 -91
  124. package/src/index.ts +0 -12
  125. package/src/models/index.ts +0 -1
  126. package/src/models/models_0.ts +0 -1361
  127. package/src/protocols/Aws_query.ts +0 -1514
  128. package/src/runtimeConfig.browser.ts +0 -41
  129. package/src/runtimeConfig.native.ts +0 -17
  130. package/src/runtimeConfig.shared.ts +0 -17
  131. package/src/runtimeConfig.ts +0 -46
  132. package/test/defaultRoleAssumers.spec.ts +0 -149
  133. package/tsconfig.es.json +0 -10
  134. package/tsconfig.json +0 -33
  135. package/tsconfig.types.json +0 -9
@@ -3,263 +3,175 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetSessionTokenResponse = exports.GetSessionTokenRequest = exports.GetFederationTokenResponse = exports.FederatedUser = exports.GetFederationTokenRequest = exports.GetCallerIdentityResponse = exports.GetCallerIdentityRequest = exports.GetAccessKeyInfoResponse = exports.GetAccessKeyInfoRequest = exports.InvalidAuthorizationMessageException = exports.DecodeAuthorizationMessageResponse = exports.DecodeAuthorizationMessageRequest = exports.IDPCommunicationErrorException = exports.AssumeRoleWithWebIdentityResponse = exports.AssumeRoleWithWebIdentityRequest = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.AssumeRoleWithSAMLResponse = exports.AssumeRoleWithSAMLRequest = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = exports.AssumeRoleResponse = exports.Credentials = exports.AssumeRoleRequest = exports.Tag = exports.PolicyDescriptorType = exports.AssumedRoleUser = void 0;
4
4
  var AssumedRoleUser;
5
5
  (function (AssumedRoleUser) {
6
- /**
7
- * @internal
8
- */
9
6
  AssumedRoleUser.filterSensitiveLog = (obj) => ({
10
7
  ...obj,
11
8
  });
12
9
  })(AssumedRoleUser = exports.AssumedRoleUser || (exports.AssumedRoleUser = {}));
13
10
  var PolicyDescriptorType;
14
11
  (function (PolicyDescriptorType) {
15
- /**
16
- * @internal
17
- */
18
12
  PolicyDescriptorType.filterSensitiveLog = (obj) => ({
19
13
  ...obj,
20
14
  });
21
15
  })(PolicyDescriptorType = exports.PolicyDescriptorType || (exports.PolicyDescriptorType = {}));
22
16
  var Tag;
23
17
  (function (Tag) {
24
- /**
25
- * @internal
26
- */
27
18
  Tag.filterSensitiveLog = (obj) => ({
28
19
  ...obj,
29
20
  });
30
21
  })(Tag = exports.Tag || (exports.Tag = {}));
31
22
  var AssumeRoleRequest;
32
23
  (function (AssumeRoleRequest) {
33
- /**
34
- * @internal
35
- */
36
24
  AssumeRoleRequest.filterSensitiveLog = (obj) => ({
37
25
  ...obj,
38
26
  });
39
27
  })(AssumeRoleRequest = exports.AssumeRoleRequest || (exports.AssumeRoleRequest = {}));
40
28
  var Credentials;
41
29
  (function (Credentials) {
42
- /**
43
- * @internal
44
- */
45
30
  Credentials.filterSensitiveLog = (obj) => ({
46
31
  ...obj,
47
32
  });
48
33
  })(Credentials = exports.Credentials || (exports.Credentials = {}));
49
34
  var AssumeRoleResponse;
50
35
  (function (AssumeRoleResponse) {
51
- /**
52
- * @internal
53
- */
54
36
  AssumeRoleResponse.filterSensitiveLog = (obj) => ({
55
37
  ...obj,
56
38
  });
57
39
  })(AssumeRoleResponse = exports.AssumeRoleResponse || (exports.AssumeRoleResponse = {}));
58
40
  var ExpiredTokenException;
59
41
  (function (ExpiredTokenException) {
60
- /**
61
- * @internal
62
- */
63
42
  ExpiredTokenException.filterSensitiveLog = (obj) => ({
64
43
  ...obj,
65
44
  });
66
45
  })(ExpiredTokenException = exports.ExpiredTokenException || (exports.ExpiredTokenException = {}));
67
46
  var MalformedPolicyDocumentException;
68
47
  (function (MalformedPolicyDocumentException) {
69
- /**
70
- * @internal
71
- */
72
48
  MalformedPolicyDocumentException.filterSensitiveLog = (obj) => ({
73
49
  ...obj,
74
50
  });
75
51
  })(MalformedPolicyDocumentException = exports.MalformedPolicyDocumentException || (exports.MalformedPolicyDocumentException = {}));
76
52
  var PackedPolicyTooLargeException;
77
53
  (function (PackedPolicyTooLargeException) {
78
- /**
79
- * @internal
80
- */
81
54
  PackedPolicyTooLargeException.filterSensitiveLog = (obj) => ({
82
55
  ...obj,
83
56
  });
84
57
  })(PackedPolicyTooLargeException = exports.PackedPolicyTooLargeException || (exports.PackedPolicyTooLargeException = {}));
85
58
  var RegionDisabledException;
86
59
  (function (RegionDisabledException) {
87
- /**
88
- * @internal
89
- */
90
60
  RegionDisabledException.filterSensitiveLog = (obj) => ({
91
61
  ...obj,
92
62
  });
93
63
  })(RegionDisabledException = exports.RegionDisabledException || (exports.RegionDisabledException = {}));
94
64
  var AssumeRoleWithSAMLRequest;
95
65
  (function (AssumeRoleWithSAMLRequest) {
96
- /**
97
- * @internal
98
- */
99
66
  AssumeRoleWithSAMLRequest.filterSensitiveLog = (obj) => ({
100
67
  ...obj,
101
68
  });
102
69
  })(AssumeRoleWithSAMLRequest = exports.AssumeRoleWithSAMLRequest || (exports.AssumeRoleWithSAMLRequest = {}));
103
70
  var AssumeRoleWithSAMLResponse;
104
71
  (function (AssumeRoleWithSAMLResponse) {
105
- /**
106
- * @internal
107
- */
108
72
  AssumeRoleWithSAMLResponse.filterSensitiveLog = (obj) => ({
109
73
  ...obj,
110
74
  });
111
75
  })(AssumeRoleWithSAMLResponse = exports.AssumeRoleWithSAMLResponse || (exports.AssumeRoleWithSAMLResponse = {}));
112
76
  var IDPRejectedClaimException;
113
77
  (function (IDPRejectedClaimException) {
114
- /**
115
- * @internal
116
- */
117
78
  IDPRejectedClaimException.filterSensitiveLog = (obj) => ({
118
79
  ...obj,
119
80
  });
120
81
  })(IDPRejectedClaimException = exports.IDPRejectedClaimException || (exports.IDPRejectedClaimException = {}));
121
82
  var InvalidIdentityTokenException;
122
83
  (function (InvalidIdentityTokenException) {
123
- /**
124
- * @internal
125
- */
126
84
  InvalidIdentityTokenException.filterSensitiveLog = (obj) => ({
127
85
  ...obj,
128
86
  });
129
87
  })(InvalidIdentityTokenException = exports.InvalidIdentityTokenException || (exports.InvalidIdentityTokenException = {}));
130
88
  var AssumeRoleWithWebIdentityRequest;
131
89
  (function (AssumeRoleWithWebIdentityRequest) {
132
- /**
133
- * @internal
134
- */
135
90
  AssumeRoleWithWebIdentityRequest.filterSensitiveLog = (obj) => ({
136
91
  ...obj,
137
92
  });
138
93
  })(AssumeRoleWithWebIdentityRequest = exports.AssumeRoleWithWebIdentityRequest || (exports.AssumeRoleWithWebIdentityRequest = {}));
139
94
  var AssumeRoleWithWebIdentityResponse;
140
95
  (function (AssumeRoleWithWebIdentityResponse) {
141
- /**
142
- * @internal
143
- */
144
96
  AssumeRoleWithWebIdentityResponse.filterSensitiveLog = (obj) => ({
145
97
  ...obj,
146
98
  });
147
99
  })(AssumeRoleWithWebIdentityResponse = exports.AssumeRoleWithWebIdentityResponse || (exports.AssumeRoleWithWebIdentityResponse = {}));
148
100
  var IDPCommunicationErrorException;
149
101
  (function (IDPCommunicationErrorException) {
150
- /**
151
- * @internal
152
- */
153
102
  IDPCommunicationErrorException.filterSensitiveLog = (obj) => ({
154
103
  ...obj,
155
104
  });
156
105
  })(IDPCommunicationErrorException = exports.IDPCommunicationErrorException || (exports.IDPCommunicationErrorException = {}));
157
106
  var DecodeAuthorizationMessageRequest;
158
107
  (function (DecodeAuthorizationMessageRequest) {
159
- /**
160
- * @internal
161
- */
162
108
  DecodeAuthorizationMessageRequest.filterSensitiveLog = (obj) => ({
163
109
  ...obj,
164
110
  });
165
111
  })(DecodeAuthorizationMessageRequest = exports.DecodeAuthorizationMessageRequest || (exports.DecodeAuthorizationMessageRequest = {}));
166
112
  var DecodeAuthorizationMessageResponse;
167
113
  (function (DecodeAuthorizationMessageResponse) {
168
- /**
169
- * @internal
170
- */
171
114
  DecodeAuthorizationMessageResponse.filterSensitiveLog = (obj) => ({
172
115
  ...obj,
173
116
  });
174
117
  })(DecodeAuthorizationMessageResponse = exports.DecodeAuthorizationMessageResponse || (exports.DecodeAuthorizationMessageResponse = {}));
175
118
  var InvalidAuthorizationMessageException;
176
119
  (function (InvalidAuthorizationMessageException) {
177
- /**
178
- * @internal
179
- */
180
120
  InvalidAuthorizationMessageException.filterSensitiveLog = (obj) => ({
181
121
  ...obj,
182
122
  });
183
123
  })(InvalidAuthorizationMessageException = exports.InvalidAuthorizationMessageException || (exports.InvalidAuthorizationMessageException = {}));
184
124
  var GetAccessKeyInfoRequest;
185
125
  (function (GetAccessKeyInfoRequest) {
186
- /**
187
- * @internal
188
- */
189
126
  GetAccessKeyInfoRequest.filterSensitiveLog = (obj) => ({
190
127
  ...obj,
191
128
  });
192
129
  })(GetAccessKeyInfoRequest = exports.GetAccessKeyInfoRequest || (exports.GetAccessKeyInfoRequest = {}));
193
130
  var GetAccessKeyInfoResponse;
194
131
  (function (GetAccessKeyInfoResponse) {
195
- /**
196
- * @internal
197
- */
198
132
  GetAccessKeyInfoResponse.filterSensitiveLog = (obj) => ({
199
133
  ...obj,
200
134
  });
201
135
  })(GetAccessKeyInfoResponse = exports.GetAccessKeyInfoResponse || (exports.GetAccessKeyInfoResponse = {}));
202
136
  var GetCallerIdentityRequest;
203
137
  (function (GetCallerIdentityRequest) {
204
- /**
205
- * @internal
206
- */
207
138
  GetCallerIdentityRequest.filterSensitiveLog = (obj) => ({
208
139
  ...obj,
209
140
  });
210
141
  })(GetCallerIdentityRequest = exports.GetCallerIdentityRequest || (exports.GetCallerIdentityRequest = {}));
211
142
  var GetCallerIdentityResponse;
212
143
  (function (GetCallerIdentityResponse) {
213
- /**
214
- * @internal
215
- */
216
144
  GetCallerIdentityResponse.filterSensitiveLog = (obj) => ({
217
145
  ...obj,
218
146
  });
219
147
  })(GetCallerIdentityResponse = exports.GetCallerIdentityResponse || (exports.GetCallerIdentityResponse = {}));
220
148
  var GetFederationTokenRequest;
221
149
  (function (GetFederationTokenRequest) {
222
- /**
223
- * @internal
224
- */
225
150
  GetFederationTokenRequest.filterSensitiveLog = (obj) => ({
226
151
  ...obj,
227
152
  });
228
153
  })(GetFederationTokenRequest = exports.GetFederationTokenRequest || (exports.GetFederationTokenRequest = {}));
229
154
  var FederatedUser;
230
155
  (function (FederatedUser) {
231
- /**
232
- * @internal
233
- */
234
156
  FederatedUser.filterSensitiveLog = (obj) => ({
235
157
  ...obj,
236
158
  });
237
159
  })(FederatedUser = exports.FederatedUser || (exports.FederatedUser = {}));
238
160
  var GetFederationTokenResponse;
239
161
  (function (GetFederationTokenResponse) {
240
- /**
241
- * @internal
242
- */
243
162
  GetFederationTokenResponse.filterSensitiveLog = (obj) => ({
244
163
  ...obj,
245
164
  });
246
165
  })(GetFederationTokenResponse = exports.GetFederationTokenResponse || (exports.GetFederationTokenResponse = {}));
247
166
  var GetSessionTokenRequest;
248
167
  (function (GetSessionTokenRequest) {
249
- /**
250
- * @internal
251
- */
252
168
  GetSessionTokenRequest.filterSensitiveLog = (obj) => ({
253
169
  ...obj,
254
170
  });
255
171
  })(GetSessionTokenRequest = exports.GetSessionTokenRequest || (exports.GetSessionTokenRequest = {}));
256
172
  var GetSessionTokenResponse;
257
173
  (function (GetSessionTokenResponse) {
258
- /**
259
- * @internal
260
- */
261
174
  GetSessionTokenResponse.filterSensitiveLog = (obj) => ({
262
175
  ...obj,
263
176
  });
264
177
  })(GetSessionTokenResponse = exports.GetSessionTokenResponse || (exports.GetSessionTokenResponse = {}));
265
- //# sourceMappingURL=models_0.js.map
@@ -1190,14 +1190,12 @@ const deserializeMetadata = (output) => {
1190
1190
  cfId: output.headers["x-amz-cf-id"],
1191
1191
  });
1192
1192
  };
1193
- // Collect low-level response body stream to Uint8Array.
1194
1193
  const collectBody = (streamBody = new Uint8Array(), context) => {
1195
1194
  if (streamBody instanceof Uint8Array) {
1196
1195
  return Promise.resolve(streamBody);
1197
1196
  }
1198
1197
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1199
1198
  };
1200
- // Encode Uint8Array data into string with utf-8.
1201
1199
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1202
1200
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1203
1201
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -1249,4 +1247,3 @@ const loadQueryErrorCode = (output, data) => {
1249
1247
  }
1250
1248
  return "";
1251
1249
  };
1252
- //# sourceMappingURL=Aws_query.js.map
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
5
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
6
7
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
7
8
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -10,12 +11,7 @@ const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
10
11
  const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
11
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
12
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
13
- // @ts-ignore: package.json will be imported from dist folders
14
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
15
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
- /**
17
- * @internal
18
- */
19
15
  const getRuntimeConfig = (config) => {
20
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
21
17
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
@@ -39,4 +35,3 @@ const getRuntimeConfig = (config) => {
39
35
  };
40
36
  };
41
37
  exports.getRuntimeConfig = getRuntimeConfig;
42
- //# sourceMappingURL=runtimeConfig.browser.js.map
@@ -2,24 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const defaultStsRoleAssumers_1 = require("./defaultStsRoleAssumers");
5
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
6
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
7
9
  const hash_node_1 = require("@aws-sdk/hash-node");
8
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
9
11
  const node_config_provider_1 = require("@aws-sdk/node-config-provider");
10
12
  const node_http_handler_1 = require("@aws-sdk/node-http-handler");
11
- const smithy_client_1 = require("@aws-sdk/smithy-client");
12
13
  const util_base64_node_1 = require("@aws-sdk/util-base64-node");
13
14
  const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
14
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
15
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
16
- // @ts-ignore: package.json will be imported from dist folders
17
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
18
- const defaultStsRoleAssumers_1 = require("./defaultStsRoleAssumers");
19
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
20
- /**
21
- * @internal
22
- */
18
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
23
19
  const getRuntimeConfig = (config) => {
24
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
25
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -44,4 +40,3 @@ const getRuntimeConfig = (config) => {
44
40
  };
45
41
  };
46
42
  exports.getRuntimeConfig = getRuntimeConfig;
47
- //# sourceMappingURL=runtimeConfig.js.map
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -17,4 +14,3 @@ const getRuntimeConfig = (config) => {
17
14
  };
18
15
  };
19
16
  exports.getRuntimeConfig = getRuntimeConfig;
20
- //# sourceMappingURL=runtimeConfig.native.js.map
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpoints_1 = require("./endpoints");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -18,4 +15,3 @@ const getRuntimeConfig = (config) => {
18
15
  });
19
16
  };
20
17
  exports.getRuntimeConfig = getRuntimeConfig;
21
- //# sourceMappingURL=runtimeConfig.shared.js.map
package/dist-es/STS.js CHANGED
@@ -128,4 +128,3 @@ var STS = (function (_super) {
128
128
  return STS;
129
129
  }(STSClient));
130
130
  export { STS };
131
- //# sourceMappingURL=STS.js.map
@@ -34,4 +34,3 @@ var STSClient = (function (_super) {
34
34
  return STSClient;
35
35
  }(__Client));
36
36
  export { STSClient };
37
- //# sourceMappingURL=STSClient.js.map
@@ -39,4 +39,3 @@ var AssumeRoleCommand = (function (_super) {
39
39
  return AssumeRoleCommand;
40
40
  }($Command));
41
41
  export { AssumeRoleCommand };
42
- //# sourceMappingURL=AssumeRoleCommand.js.map
@@ -37,4 +37,3 @@ var AssumeRoleWithSAMLCommand = (function (_super) {
37
37
  return AssumeRoleWithSAMLCommand;
38
38
  }($Command));
39
39
  export { AssumeRoleWithSAMLCommand };
40
- //# sourceMappingURL=AssumeRoleWithSAMLCommand.js.map
@@ -37,4 +37,3 @@ var AssumeRoleWithWebIdentityCommand = (function (_super) {
37
37
  return AssumeRoleWithWebIdentityCommand;
38
38
  }($Command));
39
39
  export { AssumeRoleWithWebIdentityCommand };
40
- //# sourceMappingURL=AssumeRoleWithWebIdentityCommand.js.map
@@ -39,4 +39,3 @@ var DecodeAuthorizationMessageCommand = (function (_super) {
39
39
  return DecodeAuthorizationMessageCommand;
40
40
  }($Command));
41
41
  export { DecodeAuthorizationMessageCommand };
42
- //# sourceMappingURL=DecodeAuthorizationMessageCommand.js.map
@@ -39,4 +39,3 @@ var GetAccessKeyInfoCommand = (function (_super) {
39
39
  return GetAccessKeyInfoCommand;
40
40
  }($Command));
41
41
  export { GetAccessKeyInfoCommand };
42
- //# sourceMappingURL=GetAccessKeyInfoCommand.js.map
@@ -39,4 +39,3 @@ var GetCallerIdentityCommand = (function (_super) {
39
39
  return GetCallerIdentityCommand;
40
40
  }($Command));
41
41
  export { GetCallerIdentityCommand };
42
- //# sourceMappingURL=GetCallerIdentityCommand.js.map
@@ -39,4 +39,3 @@ var GetFederationTokenCommand = (function (_super) {
39
39
  return GetFederationTokenCommand;
40
40
  }($Command));
41
41
  export { GetFederationTokenCommand };
42
- //# sourceMappingURL=GetFederationTokenCommand.js.map
@@ -39,4 +39,3 @@ var GetSessionTokenCommand = (function (_super) {
39
39
  return GetSessionTokenCommand;
40
40
  }($Command));
41
41
  export { GetSessionTokenCommand };
42
- //# sourceMappingURL=GetSessionTokenCommand.js.map
@@ -0,0 +1,8 @@
1
+ export * from "./AssumeRoleCommand";
2
+ export * from "./AssumeRoleWithSAMLCommand";
3
+ export * from "./AssumeRoleWithWebIdentityCommand";
4
+ export * from "./DecodeAuthorizationMessageCommand";
5
+ export * from "./GetAccessKeyInfoCommand";
6
+ export * from "./GetCallerIdentityCommand";
7
+ export * from "./GetFederationTokenCommand";
8
+ export * from "./GetSessionTokenCommand";
@@ -14,4 +14,3 @@ export var decorateDefaultCredentialProvider = function (provider) {
14
14
  return provider(__assign({ roleAssumer: getDefaultRoleAssumer(input), roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input) }, input));
15
15
  };
16
16
  };
17
- //# sourceMappingURL=defaultRoleAssumers.js.map
@@ -85,4 +85,3 @@ export var decorateDefaultCredentialProvider = function (provider) {
85
85
  return provider(__assign({ roleAssumer: getDefaultRoleAssumer(input, input.stsClientCtor), roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input, input.stsClientCtor) }, input));
86
86
  };
87
87
  };
88
- //# sourceMappingURL=defaultStsRoleAssumers.js.map
@@ -67,7 +67,7 @@ var partitionHash = {
67
67
  hostname: "sts.{region}.amazonaws.com.cn",
68
68
  },
69
69
  "aws-iso": {
70
- regions: ["us-iso-east-1"],
70
+ regions: ["us-iso-east-1", "us-iso-west-1"],
71
71
  hostname: "sts.{region}.c2s.ic.gov",
72
72
  },
73
73
  "aws-iso-b": {
@@ -84,4 +84,3 @@ export var defaultRegionInfoProvider = function (region, options) { return __awa
84
84
  return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "sts", regionHash: regionHash, partitionHash: partitionHash }))];
85
85
  });
86
86
  }); };
87
- //# sourceMappingURL=endpoints.js.map
package/dist-es/index.js CHANGED
@@ -1,13 +1,5 @@
1
- export * from "./STSClient";
2
1
  export * from "./STS";
3
- export * from "./commands/AssumeRoleCommand";
4
- export * from "./commands/AssumeRoleWithSAMLCommand";
5
- export * from "./commands/AssumeRoleWithWebIdentityCommand";
6
- export * from "./commands/DecodeAuthorizationMessageCommand";
7
- export * from "./commands/GetAccessKeyInfoCommand";
8
- export * from "./commands/GetCallerIdentityCommand";
9
- export * from "./commands/GetFederationTokenCommand";
10
- export * from "./commands/GetSessionTokenCommand";
2
+ export * from "./STSClient";
3
+ export * from "./commands";
11
4
  export * from "./defaultRoleAssumers";
12
- export * from "./models/index";
13
- //# sourceMappingURL=index.js.map
5
+ export * from "./models";
@@ -1,2 +1 @@
1
1
  export * from "./models_0";
2
- //# sourceMappingURL=index.js.map
@@ -115,4 +115,3 @@ export var GetSessionTokenResponse;
115
115
  (function (GetSessionTokenResponse) {
116
116
  GetSessionTokenResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
117
117
  })(GetSessionTokenResponse || (GetSessionTokenResponse = {}));
118
- //# sourceMappingURL=models_0.js.map
@@ -1328,4 +1328,3 @@ var loadQueryErrorCode = function (output, data) {
1328
1328
  }
1329
1329
  return "";
1330
1330
  };
1331
- //# sourceMappingURL=Aws_query.js.map
@@ -1,4 +1,5 @@
1
1
  import { __assign } from "tslib";
2
+ import packageInfo from "../package.json";
2
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
3
4
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
4
5
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
@@ -7,11 +8,9 @@ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
7
8
  import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
8
9
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
9
10
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
10
- import packageInfo from "../package.json";
11
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
12
  export var getRuntimeConfig = function (config) {
13
13
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
14
14
  var clientSharedValues = getSharedRuntimeConfig(config);
15
15
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
16
16
  };
17
- //# sourceMappingURL=runtimeConfig.browser.js.map
@@ -1,22 +1,21 @@
1
1
  import { __assign } from "tslib";
2
+ import packageInfo from "../package.json";
3
+ import { decorateDefaultCredentialProvider } from "./defaultStsRoleAssumers";
2
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
3
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
6
  import { Hash } from "@aws-sdk/hash-node";
5
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
6
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
7
9
  import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
8
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
9
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
10
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
11
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
12
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
13
- import packageInfo from "../package.json";
14
- import { decorateDefaultCredentialProvider } from "./defaultStsRoleAssumers";
15
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
16
  export var getRuntimeConfig = function (config) {
17
17
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
18
18
  emitWarningIfUnsupportedVersion(process.version);
19
19
  var clientSharedValues = getSharedRuntimeConfig(config);
20
20
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
21
21
  };
22
- //# sourceMappingURL=runtimeConfig.js.map
@@ -6,4 +6,3 @@ export var getRuntimeConfig = function (config) {
6
6
  var browserDefaults = getBrowserRuntimeConfig(config);
7
7
  return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
8
8
  };
9
- //# sourceMappingURL=runtimeConfig.native.js.map
@@ -11,4 +11,3 @@ export var getRuntimeConfig = function (config) {
11
11
  urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
12
12
  });
13
13
  };
14
- //# sourceMappingURL=runtimeConfig.shared.js.map
@@ -0,0 +1,8 @@
1
+ export * from "./AssumeRoleCommand";
2
+ export * from "./AssumeRoleWithSAMLCommand";
3
+ export * from "./AssumeRoleWithWebIdentityCommand";
4
+ export * from "./DecodeAuthorizationMessageCommand";
5
+ export * from "./GetAccessKeyInfoCommand";
6
+ export * from "./GetCallerIdentityCommand";
7
+ export * from "./GetFederationTokenCommand";
8
+ export * from "./GetSessionTokenCommand";
@@ -1,12 +1,5 @@
1
- export * from "./STSClient";
2
1
  export * from "./STS";
3
- export * from "./commands/AssumeRoleCommand";
4
- export * from "./commands/AssumeRoleWithSAMLCommand";
5
- export * from "./commands/AssumeRoleWithWebIdentityCommand";
6
- export * from "./commands/DecodeAuthorizationMessageCommand";
7
- export * from "./commands/GetAccessKeyInfoCommand";
8
- export * from "./commands/GetCallerIdentityCommand";
9
- export * from "./commands/GetFederationTokenCommand";
10
- export * from "./commands/GetSessionTokenCommand";
2
+ export * from "./STSClient";
3
+ export * from "./commands";
11
4
  export * from "./defaultRoleAssumers";
12
- export * from "./models/index";
5
+ export * from "./models";