@aws-sdk/client-iam 3.310.0 → 3.315.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.
@@ -1,13 +1,11 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  import { IAMServiceException as __BaseException } from "../models/IAMServiceException";
5
5
  import { ConcurrentModificationException, CredentialReportExpiredException, CredentialReportNotPresentException, CredentialReportNotReadyException, DeleteConflictException, EntityAlreadyExistsException, EntityTemporarilyUnmodifiableException, InvalidAuthenticationCodeException, InvalidInputException, InvalidUserTypeException, LimitExceededException, MalformedPolicyDocumentException, NoSuchEntityException, PasswordPolicyViolationException, PolicyEvaluationException, PolicyNotAttachableException, ReportGenerationLimitExceededException, ServiceFailureException, ServiceNotSupportedException, UnmodifiableEntityException, UnrecognizedPublicKeyEncodingException, } from "../models/models_0";
6
6
  import { DuplicateCertificateException, DuplicateSSHPublicKeyException, InvalidCertificateException, InvalidPublicKeyException, KeyPairMismatchException, MalformedCertificateException, } from "../models/models_1";
7
7
  export const se_AddClientIDToOpenIDConnectProviderCommand = async (input, context) => {
8
- const headers = {
9
- "content-type": "application/x-www-form-urlencoded",
10
- };
8
+ const headers = SHARED_HEADERS;
11
9
  let body;
12
10
  body = buildFormUrlencodedString({
13
11
  ...se_AddClientIDToOpenIDConnectProviderRequest(input, context),
@@ -17,9 +15,7 @@ export const se_AddClientIDToOpenIDConnectProviderCommand = async (input, contex
17
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
16
  };
19
17
  export const se_AddRoleToInstanceProfileCommand = async (input, context) => {
20
- const headers = {
21
- "content-type": "application/x-www-form-urlencoded",
22
- };
18
+ const headers = SHARED_HEADERS;
23
19
  let body;
24
20
  body = buildFormUrlencodedString({
25
21
  ...se_AddRoleToInstanceProfileRequest(input, context),
@@ -29,9 +25,7 @@ export const se_AddRoleToInstanceProfileCommand = async (input, context) => {
29
25
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
26
  };
31
27
  export const se_AddUserToGroupCommand = async (input, context) => {
32
- const headers = {
33
- "content-type": "application/x-www-form-urlencoded",
34
- };
28
+ const headers = SHARED_HEADERS;
35
29
  let body;
36
30
  body = buildFormUrlencodedString({
37
31
  ...se_AddUserToGroupRequest(input, context),
@@ -41,9 +35,7 @@ export const se_AddUserToGroupCommand = async (input, context) => {
41
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
36
  };
43
37
  export const se_AttachGroupPolicyCommand = async (input, context) => {
44
- const headers = {
45
- "content-type": "application/x-www-form-urlencoded",
46
- };
38
+ const headers = SHARED_HEADERS;
47
39
  let body;
48
40
  body = buildFormUrlencodedString({
49
41
  ...se_AttachGroupPolicyRequest(input, context),
@@ -53,9 +45,7 @@ export const se_AttachGroupPolicyCommand = async (input, context) => {
53
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
54
46
  };
55
47
  export const se_AttachRolePolicyCommand = async (input, context) => {
56
- const headers = {
57
- "content-type": "application/x-www-form-urlencoded",
58
- };
48
+ const headers = SHARED_HEADERS;
59
49
  let body;
60
50
  body = buildFormUrlencodedString({
61
51
  ...se_AttachRolePolicyRequest(input, context),
@@ -65,9 +55,7 @@ export const se_AttachRolePolicyCommand = async (input, context) => {
65
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
56
  };
67
57
  export const se_AttachUserPolicyCommand = async (input, context) => {
68
- const headers = {
69
- "content-type": "application/x-www-form-urlencoded",
70
- };
58
+ const headers = SHARED_HEADERS;
71
59
  let body;
72
60
  body = buildFormUrlencodedString({
73
61
  ...se_AttachUserPolicyRequest(input, context),
@@ -77,9 +65,7 @@ export const se_AttachUserPolicyCommand = async (input, context) => {
77
65
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
66
  };
79
67
  export const se_ChangePasswordCommand = async (input, context) => {
80
- const headers = {
81
- "content-type": "application/x-www-form-urlencoded",
82
- };
68
+ const headers = SHARED_HEADERS;
83
69
  let body;
84
70
  body = buildFormUrlencodedString({
85
71
  ...se_ChangePasswordRequest(input, context),
@@ -89,9 +75,7 @@ export const se_ChangePasswordCommand = async (input, context) => {
89
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
76
  };
91
77
  export const se_CreateAccessKeyCommand = async (input, context) => {
92
- const headers = {
93
- "content-type": "application/x-www-form-urlencoded",
94
- };
78
+ const headers = SHARED_HEADERS;
95
79
  let body;
96
80
  body = buildFormUrlencodedString({
97
81
  ...se_CreateAccessKeyRequest(input, context),
@@ -101,9 +85,7 @@ export const se_CreateAccessKeyCommand = async (input, context) => {
101
85
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
102
86
  };
103
87
  export const se_CreateAccountAliasCommand = async (input, context) => {
104
- const headers = {
105
- "content-type": "application/x-www-form-urlencoded",
106
- };
88
+ const headers = SHARED_HEADERS;
107
89
  let body;
108
90
  body = buildFormUrlencodedString({
109
91
  ...se_CreateAccountAliasRequest(input, context),
@@ -113,9 +95,7 @@ export const se_CreateAccountAliasCommand = async (input, context) => {
113
95
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
114
96
  };
115
97
  export const se_CreateGroupCommand = async (input, context) => {
116
- const headers = {
117
- "content-type": "application/x-www-form-urlencoded",
118
- };
98
+ const headers = SHARED_HEADERS;
119
99
  let body;
120
100
  body = buildFormUrlencodedString({
121
101
  ...se_CreateGroupRequest(input, context),
@@ -125,9 +105,7 @@ export const se_CreateGroupCommand = async (input, context) => {
125
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
106
  };
127
107
  export const se_CreateInstanceProfileCommand = async (input, context) => {
128
- const headers = {
129
- "content-type": "application/x-www-form-urlencoded",
130
- };
108
+ const headers = SHARED_HEADERS;
131
109
  let body;
132
110
  body = buildFormUrlencodedString({
133
111
  ...se_CreateInstanceProfileRequest(input, context),
@@ -137,9 +115,7 @@ export const se_CreateInstanceProfileCommand = async (input, context) => {
137
115
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
116
  };
139
117
  export const se_CreateLoginProfileCommand = async (input, context) => {
140
- const headers = {
141
- "content-type": "application/x-www-form-urlencoded",
142
- };
118
+ const headers = SHARED_HEADERS;
143
119
  let body;
144
120
  body = buildFormUrlencodedString({
145
121
  ...se_CreateLoginProfileRequest(input, context),
@@ -149,9 +125,7 @@ export const se_CreateLoginProfileCommand = async (input, context) => {
149
125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
150
126
  };
151
127
  export const se_CreateOpenIDConnectProviderCommand = async (input, context) => {
152
- const headers = {
153
- "content-type": "application/x-www-form-urlencoded",
154
- };
128
+ const headers = SHARED_HEADERS;
155
129
  let body;
156
130
  body = buildFormUrlencodedString({
157
131
  ...se_CreateOpenIDConnectProviderRequest(input, context),
@@ -161,9 +135,7 @@ export const se_CreateOpenIDConnectProviderCommand = async (input, context) => {
161
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
136
  };
163
137
  export const se_CreatePolicyCommand = async (input, context) => {
164
- const headers = {
165
- "content-type": "application/x-www-form-urlencoded",
166
- };
138
+ const headers = SHARED_HEADERS;
167
139
  let body;
168
140
  body = buildFormUrlencodedString({
169
141
  ...se_CreatePolicyRequest(input, context),
@@ -173,9 +145,7 @@ export const se_CreatePolicyCommand = async (input, context) => {
173
145
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
174
146
  };
175
147
  export const se_CreatePolicyVersionCommand = async (input, context) => {
176
- const headers = {
177
- "content-type": "application/x-www-form-urlencoded",
178
- };
148
+ const headers = SHARED_HEADERS;
179
149
  let body;
180
150
  body = buildFormUrlencodedString({
181
151
  ...se_CreatePolicyVersionRequest(input, context),
@@ -185,9 +155,7 @@ export const se_CreatePolicyVersionCommand = async (input, context) => {
185
155
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
156
  };
187
157
  export const se_CreateRoleCommand = async (input, context) => {
188
- const headers = {
189
- "content-type": "application/x-www-form-urlencoded",
190
- };
158
+ const headers = SHARED_HEADERS;
191
159
  let body;
192
160
  body = buildFormUrlencodedString({
193
161
  ...se_CreateRoleRequest(input, context),
@@ -197,9 +165,7 @@ export const se_CreateRoleCommand = async (input, context) => {
197
165
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
166
  };
199
167
  export const se_CreateSAMLProviderCommand = async (input, context) => {
200
- const headers = {
201
- "content-type": "application/x-www-form-urlencoded",
202
- };
168
+ const headers = SHARED_HEADERS;
203
169
  let body;
204
170
  body = buildFormUrlencodedString({
205
171
  ...se_CreateSAMLProviderRequest(input, context),
@@ -209,9 +175,7 @@ export const se_CreateSAMLProviderCommand = async (input, context) => {
209
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
176
  };
211
177
  export const se_CreateServiceLinkedRoleCommand = async (input, context) => {
212
- const headers = {
213
- "content-type": "application/x-www-form-urlencoded",
214
- };
178
+ const headers = SHARED_HEADERS;
215
179
  let body;
216
180
  body = buildFormUrlencodedString({
217
181
  ...se_CreateServiceLinkedRoleRequest(input, context),
@@ -221,9 +185,7 @@ export const se_CreateServiceLinkedRoleCommand = async (input, context) => {
221
185
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
222
186
  };
223
187
  export const se_CreateServiceSpecificCredentialCommand = async (input, context) => {
224
- const headers = {
225
- "content-type": "application/x-www-form-urlencoded",
226
- };
188
+ const headers = SHARED_HEADERS;
227
189
  let body;
228
190
  body = buildFormUrlencodedString({
229
191
  ...se_CreateServiceSpecificCredentialRequest(input, context),
@@ -233,9 +195,7 @@ export const se_CreateServiceSpecificCredentialCommand = async (input, context)
233
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
234
196
  };
235
197
  export const se_CreateUserCommand = async (input, context) => {
236
- const headers = {
237
- "content-type": "application/x-www-form-urlencoded",
238
- };
198
+ const headers = SHARED_HEADERS;
239
199
  let body;
240
200
  body = buildFormUrlencodedString({
241
201
  ...se_CreateUserRequest(input, context),
@@ -245,9 +205,7 @@ export const se_CreateUserCommand = async (input, context) => {
245
205
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
206
  };
247
207
  export const se_CreateVirtualMFADeviceCommand = async (input, context) => {
248
- const headers = {
249
- "content-type": "application/x-www-form-urlencoded",
250
- };
208
+ const headers = SHARED_HEADERS;
251
209
  let body;
252
210
  body = buildFormUrlencodedString({
253
211
  ...se_CreateVirtualMFADeviceRequest(input, context),
@@ -257,9 +215,7 @@ export const se_CreateVirtualMFADeviceCommand = async (input, context) => {
257
215
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
258
216
  };
259
217
  export const se_DeactivateMFADeviceCommand = async (input, context) => {
260
- const headers = {
261
- "content-type": "application/x-www-form-urlencoded",
262
- };
218
+ const headers = SHARED_HEADERS;
263
219
  let body;
264
220
  body = buildFormUrlencodedString({
265
221
  ...se_DeactivateMFADeviceRequest(input, context),
@@ -269,9 +225,7 @@ export const se_DeactivateMFADeviceCommand = async (input, context) => {
269
225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
270
226
  };
271
227
  export const se_DeleteAccessKeyCommand = async (input, context) => {
272
- const headers = {
273
- "content-type": "application/x-www-form-urlencoded",
274
- };
228
+ const headers = SHARED_HEADERS;
275
229
  let body;
276
230
  body = buildFormUrlencodedString({
277
231
  ...se_DeleteAccessKeyRequest(input, context),
@@ -281,9 +235,7 @@ export const se_DeleteAccessKeyCommand = async (input, context) => {
281
235
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
282
236
  };
283
237
  export const se_DeleteAccountAliasCommand = async (input, context) => {
284
- const headers = {
285
- "content-type": "application/x-www-form-urlencoded",
286
- };
238
+ const headers = SHARED_HEADERS;
287
239
  let body;
288
240
  body = buildFormUrlencodedString({
289
241
  ...se_DeleteAccountAliasRequest(input, context),
@@ -293,9 +245,7 @@ export const se_DeleteAccountAliasCommand = async (input, context) => {
293
245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
246
  };
295
247
  export const se_DeleteAccountPasswordPolicyCommand = async (input, context) => {
296
- const headers = {
297
- "content-type": "application/x-www-form-urlencoded",
298
- };
248
+ const headers = SHARED_HEADERS;
299
249
  const body = buildFormUrlencodedString({
300
250
  Action: "DeleteAccountPasswordPolicy",
301
251
  Version: "2010-05-08",
@@ -303,9 +253,7 @@ export const se_DeleteAccountPasswordPolicyCommand = async (input, context) => {
303
253
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
304
254
  };
305
255
  export const se_DeleteGroupCommand = async (input, context) => {
306
- const headers = {
307
- "content-type": "application/x-www-form-urlencoded",
308
- };
256
+ const headers = SHARED_HEADERS;
309
257
  let body;
310
258
  body = buildFormUrlencodedString({
311
259
  ...se_DeleteGroupRequest(input, context),
@@ -315,9 +263,7 @@ export const se_DeleteGroupCommand = async (input, context) => {
315
263
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
316
264
  };
317
265
  export const se_DeleteGroupPolicyCommand = async (input, context) => {
318
- const headers = {
319
- "content-type": "application/x-www-form-urlencoded",
320
- };
266
+ const headers = SHARED_HEADERS;
321
267
  let body;
322
268
  body = buildFormUrlencodedString({
323
269
  ...se_DeleteGroupPolicyRequest(input, context),
@@ -327,9 +273,7 @@ export const se_DeleteGroupPolicyCommand = async (input, context) => {
327
273
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
274
  };
329
275
  export const se_DeleteInstanceProfileCommand = async (input, context) => {
330
- const headers = {
331
- "content-type": "application/x-www-form-urlencoded",
332
- };
276
+ const headers = SHARED_HEADERS;
333
277
  let body;
334
278
  body = buildFormUrlencodedString({
335
279
  ...se_DeleteInstanceProfileRequest(input, context),
@@ -339,9 +283,7 @@ export const se_DeleteInstanceProfileCommand = async (input, context) => {
339
283
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
340
284
  };
341
285
  export const se_DeleteLoginProfileCommand = async (input, context) => {
342
- const headers = {
343
- "content-type": "application/x-www-form-urlencoded",
344
- };
286
+ const headers = SHARED_HEADERS;
345
287
  let body;
346
288
  body = buildFormUrlencodedString({
347
289
  ...se_DeleteLoginProfileRequest(input, context),
@@ -351,9 +293,7 @@ export const se_DeleteLoginProfileCommand = async (input, context) => {
351
293
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
352
294
  };
353
295
  export const se_DeleteOpenIDConnectProviderCommand = async (input, context) => {
354
- const headers = {
355
- "content-type": "application/x-www-form-urlencoded",
356
- };
296
+ const headers = SHARED_HEADERS;
357
297
  let body;
358
298
  body = buildFormUrlencodedString({
359
299
  ...se_DeleteOpenIDConnectProviderRequest(input, context),
@@ -363,9 +303,7 @@ export const se_DeleteOpenIDConnectProviderCommand = async (input, context) => {
363
303
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
364
304
  };
365
305
  export const se_DeletePolicyCommand = async (input, context) => {
366
- const headers = {
367
- "content-type": "application/x-www-form-urlencoded",
368
- };
306
+ const headers = SHARED_HEADERS;
369
307
  let body;
370
308
  body = buildFormUrlencodedString({
371
309
  ...se_DeletePolicyRequest(input, context),
@@ -375,9 +313,7 @@ export const se_DeletePolicyCommand = async (input, context) => {
375
313
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
376
314
  };
377
315
  export const se_DeletePolicyVersionCommand = async (input, context) => {
378
- const headers = {
379
- "content-type": "application/x-www-form-urlencoded",
380
- };
316
+ const headers = SHARED_HEADERS;
381
317
  let body;
382
318
  body = buildFormUrlencodedString({
383
319
  ...se_DeletePolicyVersionRequest(input, context),
@@ -387,9 +323,7 @@ export const se_DeletePolicyVersionCommand = async (input, context) => {
387
323
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
388
324
  };
389
325
  export const se_DeleteRoleCommand = async (input, context) => {
390
- const headers = {
391
- "content-type": "application/x-www-form-urlencoded",
392
- };
326
+ const headers = SHARED_HEADERS;
393
327
  let body;
394
328
  body = buildFormUrlencodedString({
395
329
  ...se_DeleteRoleRequest(input, context),
@@ -399,9 +333,7 @@ export const se_DeleteRoleCommand = async (input, context) => {
399
333
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
400
334
  };
401
335
  export const se_DeleteRolePermissionsBoundaryCommand = async (input, context) => {
402
- const headers = {
403
- "content-type": "application/x-www-form-urlencoded",
404
- };
336
+ const headers = SHARED_HEADERS;
405
337
  let body;
406
338
  body = buildFormUrlencodedString({
407
339
  ...se_DeleteRolePermissionsBoundaryRequest(input, context),
@@ -411,9 +343,7 @@ export const se_DeleteRolePermissionsBoundaryCommand = async (input, context) =>
411
343
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
412
344
  };
413
345
  export const se_DeleteRolePolicyCommand = async (input, context) => {
414
- const headers = {
415
- "content-type": "application/x-www-form-urlencoded",
416
- };
346
+ const headers = SHARED_HEADERS;
417
347
  let body;
418
348
  body = buildFormUrlencodedString({
419
349
  ...se_DeleteRolePolicyRequest(input, context),
@@ -423,9 +353,7 @@ export const se_DeleteRolePolicyCommand = async (input, context) => {
423
353
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
424
354
  };
425
355
  export const se_DeleteSAMLProviderCommand = async (input, context) => {
426
- const headers = {
427
- "content-type": "application/x-www-form-urlencoded",
428
- };
356
+ const headers = SHARED_HEADERS;
429
357
  let body;
430
358
  body = buildFormUrlencodedString({
431
359
  ...se_DeleteSAMLProviderRequest(input, context),
@@ -435,9 +363,7 @@ export const se_DeleteSAMLProviderCommand = async (input, context) => {
435
363
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
436
364
  };
437
365
  export const se_DeleteServerCertificateCommand = async (input, context) => {
438
- const headers = {
439
- "content-type": "application/x-www-form-urlencoded",
440
- };
366
+ const headers = SHARED_HEADERS;
441
367
  let body;
442
368
  body = buildFormUrlencodedString({
443
369
  ...se_DeleteServerCertificateRequest(input, context),
@@ -447,9 +373,7 @@ export const se_DeleteServerCertificateCommand = async (input, context) => {
447
373
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
448
374
  };
449
375
  export const se_DeleteServiceLinkedRoleCommand = async (input, context) => {
450
- const headers = {
451
- "content-type": "application/x-www-form-urlencoded",
452
- };
376
+ const headers = SHARED_HEADERS;
453
377
  let body;
454
378
  body = buildFormUrlencodedString({
455
379
  ...se_DeleteServiceLinkedRoleRequest(input, context),
@@ -459,9 +383,7 @@ export const se_DeleteServiceLinkedRoleCommand = async (input, context) => {
459
383
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
460
384
  };
461
385
  export const se_DeleteServiceSpecificCredentialCommand = async (input, context) => {
462
- const headers = {
463
- "content-type": "application/x-www-form-urlencoded",
464
- };
386
+ const headers = SHARED_HEADERS;
465
387
  let body;
466
388
  body = buildFormUrlencodedString({
467
389
  ...se_DeleteServiceSpecificCredentialRequest(input, context),
@@ -471,9 +393,7 @@ export const se_DeleteServiceSpecificCredentialCommand = async (input, context)
471
393
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
472
394
  };
473
395
  export const se_DeleteSigningCertificateCommand = async (input, context) => {
474
- const headers = {
475
- "content-type": "application/x-www-form-urlencoded",
476
- };
396
+ const headers = SHARED_HEADERS;
477
397
  let body;
478
398
  body = buildFormUrlencodedString({
479
399
  ...se_DeleteSigningCertificateRequest(input, context),
@@ -483,9 +403,7 @@ export const se_DeleteSigningCertificateCommand = async (input, context) => {
483
403
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
484
404
  };
485
405
  export const se_DeleteSSHPublicKeyCommand = async (input, context) => {
486
- const headers = {
487
- "content-type": "application/x-www-form-urlencoded",
488
- };
406
+ const headers = SHARED_HEADERS;
489
407
  let body;
490
408
  body = buildFormUrlencodedString({
491
409
  ...se_DeleteSSHPublicKeyRequest(input, context),
@@ -495,9 +413,7 @@ export const se_DeleteSSHPublicKeyCommand = async (input, context) => {
495
413
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
496
414
  };
497
415
  export const se_DeleteUserCommand = async (input, context) => {
498
- const headers = {
499
- "content-type": "application/x-www-form-urlencoded",
500
- };
416
+ const headers = SHARED_HEADERS;
501
417
  let body;
502
418
  body = buildFormUrlencodedString({
503
419
  ...se_DeleteUserRequest(input, context),
@@ -507,9 +423,7 @@ export const se_DeleteUserCommand = async (input, context) => {
507
423
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
508
424
  };
509
425
  export const se_DeleteUserPermissionsBoundaryCommand = async (input, context) => {
510
- const headers = {
511
- "content-type": "application/x-www-form-urlencoded",
512
- };
426
+ const headers = SHARED_HEADERS;
513
427
  let body;
514
428
  body = buildFormUrlencodedString({
515
429
  ...se_DeleteUserPermissionsBoundaryRequest(input, context),
@@ -519,9 +433,7 @@ export const se_DeleteUserPermissionsBoundaryCommand = async (input, context) =>
519
433
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
520
434
  };
521
435
  export const se_DeleteUserPolicyCommand = async (input, context) => {
522
- const headers = {
523
- "content-type": "application/x-www-form-urlencoded",
524
- };
436
+ const headers = SHARED_HEADERS;
525
437
  let body;
526
438
  body = buildFormUrlencodedString({
527
439
  ...se_DeleteUserPolicyRequest(input, context),
@@ -531,9 +443,7 @@ export const se_DeleteUserPolicyCommand = async (input, context) => {
531
443
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
532
444
  };
533
445
  export const se_DeleteVirtualMFADeviceCommand = async (input, context) => {
534
- const headers = {
535
- "content-type": "application/x-www-form-urlencoded",
536
- };
446
+ const headers = SHARED_HEADERS;
537
447
  let body;
538
448
  body = buildFormUrlencodedString({
539
449
  ...se_DeleteVirtualMFADeviceRequest(input, context),
@@ -543,9 +453,7 @@ export const se_DeleteVirtualMFADeviceCommand = async (input, context) => {
543
453
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
544
454
  };
545
455
  export const se_DetachGroupPolicyCommand = async (input, context) => {
546
- const headers = {
547
- "content-type": "application/x-www-form-urlencoded",
548
- };
456
+ const headers = SHARED_HEADERS;
549
457
  let body;
550
458
  body = buildFormUrlencodedString({
551
459
  ...se_DetachGroupPolicyRequest(input, context),
@@ -555,9 +463,7 @@ export const se_DetachGroupPolicyCommand = async (input, context) => {
555
463
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
556
464
  };
557
465
  export const se_DetachRolePolicyCommand = async (input, context) => {
558
- const headers = {
559
- "content-type": "application/x-www-form-urlencoded",
560
- };
466
+ const headers = SHARED_HEADERS;
561
467
  let body;
562
468
  body = buildFormUrlencodedString({
563
469
  ...se_DetachRolePolicyRequest(input, context),
@@ -567,9 +473,7 @@ export const se_DetachRolePolicyCommand = async (input, context) => {
567
473
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
568
474
  };
569
475
  export const se_DetachUserPolicyCommand = async (input, context) => {
570
- const headers = {
571
- "content-type": "application/x-www-form-urlencoded",
572
- };
476
+ const headers = SHARED_HEADERS;
573
477
  let body;
574
478
  body = buildFormUrlencodedString({
575
479
  ...se_DetachUserPolicyRequest(input, context),
@@ -579,9 +483,7 @@ export const se_DetachUserPolicyCommand = async (input, context) => {
579
483
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
580
484
  };
581
485
  export const se_EnableMFADeviceCommand = async (input, context) => {
582
- const headers = {
583
- "content-type": "application/x-www-form-urlencoded",
584
- };
486
+ const headers = SHARED_HEADERS;
585
487
  let body;
586
488
  body = buildFormUrlencodedString({
587
489
  ...se_EnableMFADeviceRequest(input, context),
@@ -591,9 +493,7 @@ export const se_EnableMFADeviceCommand = async (input, context) => {
591
493
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
592
494
  };
593
495
  export const se_GenerateCredentialReportCommand = async (input, context) => {
594
- const headers = {
595
- "content-type": "application/x-www-form-urlencoded",
596
- };
496
+ const headers = SHARED_HEADERS;
597
497
  const body = buildFormUrlencodedString({
598
498
  Action: "GenerateCredentialReport",
599
499
  Version: "2010-05-08",
@@ -601,9 +501,7 @@ export const se_GenerateCredentialReportCommand = async (input, context) => {
601
501
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
602
502
  };
603
503
  export const se_GenerateOrganizationsAccessReportCommand = async (input, context) => {
604
- const headers = {
605
- "content-type": "application/x-www-form-urlencoded",
606
- };
504
+ const headers = SHARED_HEADERS;
607
505
  let body;
608
506
  body = buildFormUrlencodedString({
609
507
  ...se_GenerateOrganizationsAccessReportRequest(input, context),
@@ -613,9 +511,7 @@ export const se_GenerateOrganizationsAccessReportCommand = async (input, context
613
511
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
614
512
  };
615
513
  export const se_GenerateServiceLastAccessedDetailsCommand = async (input, context) => {
616
- const headers = {
617
- "content-type": "application/x-www-form-urlencoded",
618
- };
514
+ const headers = SHARED_HEADERS;
619
515
  let body;
620
516
  body = buildFormUrlencodedString({
621
517
  ...se_GenerateServiceLastAccessedDetailsRequest(input, context),
@@ -625,9 +521,7 @@ export const se_GenerateServiceLastAccessedDetailsCommand = async (input, contex
625
521
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
626
522
  };
627
523
  export const se_GetAccessKeyLastUsedCommand = async (input, context) => {
628
- const headers = {
629
- "content-type": "application/x-www-form-urlencoded",
630
- };
524
+ const headers = SHARED_HEADERS;
631
525
  let body;
632
526
  body = buildFormUrlencodedString({
633
527
  ...se_GetAccessKeyLastUsedRequest(input, context),
@@ -637,9 +531,7 @@ export const se_GetAccessKeyLastUsedCommand = async (input, context) => {
637
531
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
638
532
  };
639
533
  export const se_GetAccountAuthorizationDetailsCommand = async (input, context) => {
640
- const headers = {
641
- "content-type": "application/x-www-form-urlencoded",
642
- };
534
+ const headers = SHARED_HEADERS;
643
535
  let body;
644
536
  body = buildFormUrlencodedString({
645
537
  ...se_GetAccountAuthorizationDetailsRequest(input, context),
@@ -649,9 +541,7 @@ export const se_GetAccountAuthorizationDetailsCommand = async (input, context) =
649
541
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
650
542
  };
651
543
  export const se_GetAccountPasswordPolicyCommand = async (input, context) => {
652
- const headers = {
653
- "content-type": "application/x-www-form-urlencoded",
654
- };
544
+ const headers = SHARED_HEADERS;
655
545
  const body = buildFormUrlencodedString({
656
546
  Action: "GetAccountPasswordPolicy",
657
547
  Version: "2010-05-08",
@@ -659,9 +549,7 @@ export const se_GetAccountPasswordPolicyCommand = async (input, context) => {
659
549
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
660
550
  };
661
551
  export const se_GetAccountSummaryCommand = async (input, context) => {
662
- const headers = {
663
- "content-type": "application/x-www-form-urlencoded",
664
- };
552
+ const headers = SHARED_HEADERS;
665
553
  const body = buildFormUrlencodedString({
666
554
  Action: "GetAccountSummary",
667
555
  Version: "2010-05-08",
@@ -669,9 +557,7 @@ export const se_GetAccountSummaryCommand = async (input, context) => {
669
557
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
670
558
  };
671
559
  export const se_GetContextKeysForCustomPolicyCommand = async (input, context) => {
672
- const headers = {
673
- "content-type": "application/x-www-form-urlencoded",
674
- };
560
+ const headers = SHARED_HEADERS;
675
561
  let body;
676
562
  body = buildFormUrlencodedString({
677
563
  ...se_GetContextKeysForCustomPolicyRequest(input, context),
@@ -681,9 +567,7 @@ export const se_GetContextKeysForCustomPolicyCommand = async (input, context) =>
681
567
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
682
568
  };
683
569
  export const se_GetContextKeysForPrincipalPolicyCommand = async (input, context) => {
684
- const headers = {
685
- "content-type": "application/x-www-form-urlencoded",
686
- };
570
+ const headers = SHARED_HEADERS;
687
571
  let body;
688
572
  body = buildFormUrlencodedString({
689
573
  ...se_GetContextKeysForPrincipalPolicyRequest(input, context),
@@ -693,9 +577,7 @@ export const se_GetContextKeysForPrincipalPolicyCommand = async (input, context)
693
577
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
694
578
  };
695
579
  export const se_GetCredentialReportCommand = async (input, context) => {
696
- const headers = {
697
- "content-type": "application/x-www-form-urlencoded",
698
- };
580
+ const headers = SHARED_HEADERS;
699
581
  const body = buildFormUrlencodedString({
700
582
  Action: "GetCredentialReport",
701
583
  Version: "2010-05-08",
@@ -703,9 +585,7 @@ export const se_GetCredentialReportCommand = async (input, context) => {
703
585
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
704
586
  };
705
587
  export const se_GetGroupCommand = async (input, context) => {
706
- const headers = {
707
- "content-type": "application/x-www-form-urlencoded",
708
- };
588
+ const headers = SHARED_HEADERS;
709
589
  let body;
710
590
  body = buildFormUrlencodedString({
711
591
  ...se_GetGroupRequest(input, context),
@@ -715,9 +595,7 @@ export const se_GetGroupCommand = async (input, context) => {
715
595
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
716
596
  };
717
597
  export const se_GetGroupPolicyCommand = async (input, context) => {
718
- const headers = {
719
- "content-type": "application/x-www-form-urlencoded",
720
- };
598
+ const headers = SHARED_HEADERS;
721
599
  let body;
722
600
  body = buildFormUrlencodedString({
723
601
  ...se_GetGroupPolicyRequest(input, context),
@@ -727,9 +605,7 @@ export const se_GetGroupPolicyCommand = async (input, context) => {
727
605
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
728
606
  };
729
607
  export const se_GetInstanceProfileCommand = async (input, context) => {
730
- const headers = {
731
- "content-type": "application/x-www-form-urlencoded",
732
- };
608
+ const headers = SHARED_HEADERS;
733
609
  let body;
734
610
  body = buildFormUrlencodedString({
735
611
  ...se_GetInstanceProfileRequest(input, context),
@@ -739,9 +615,7 @@ export const se_GetInstanceProfileCommand = async (input, context) => {
739
615
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
740
616
  };
741
617
  export const se_GetLoginProfileCommand = async (input, context) => {
742
- const headers = {
743
- "content-type": "application/x-www-form-urlencoded",
744
- };
618
+ const headers = SHARED_HEADERS;
745
619
  let body;
746
620
  body = buildFormUrlencodedString({
747
621
  ...se_GetLoginProfileRequest(input, context),
@@ -751,9 +625,7 @@ export const se_GetLoginProfileCommand = async (input, context) => {
751
625
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
752
626
  };
753
627
  export const se_GetOpenIDConnectProviderCommand = async (input, context) => {
754
- const headers = {
755
- "content-type": "application/x-www-form-urlencoded",
756
- };
628
+ const headers = SHARED_HEADERS;
757
629
  let body;
758
630
  body = buildFormUrlencodedString({
759
631
  ...se_GetOpenIDConnectProviderRequest(input, context),
@@ -763,9 +635,7 @@ export const se_GetOpenIDConnectProviderCommand = async (input, context) => {
763
635
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
764
636
  };
765
637
  export const se_GetOrganizationsAccessReportCommand = async (input, context) => {
766
- const headers = {
767
- "content-type": "application/x-www-form-urlencoded",
768
- };
638
+ const headers = SHARED_HEADERS;
769
639
  let body;
770
640
  body = buildFormUrlencodedString({
771
641
  ...se_GetOrganizationsAccessReportRequest(input, context),
@@ -775,9 +645,7 @@ export const se_GetOrganizationsAccessReportCommand = async (input, context) =>
775
645
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
776
646
  };
777
647
  export const se_GetPolicyCommand = async (input, context) => {
778
- const headers = {
779
- "content-type": "application/x-www-form-urlencoded",
780
- };
648
+ const headers = SHARED_HEADERS;
781
649
  let body;
782
650
  body = buildFormUrlencodedString({
783
651
  ...se_GetPolicyRequest(input, context),
@@ -787,9 +655,7 @@ export const se_GetPolicyCommand = async (input, context) => {
787
655
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
788
656
  };
789
657
  export const se_GetPolicyVersionCommand = async (input, context) => {
790
- const headers = {
791
- "content-type": "application/x-www-form-urlencoded",
792
- };
658
+ const headers = SHARED_HEADERS;
793
659
  let body;
794
660
  body = buildFormUrlencodedString({
795
661
  ...se_GetPolicyVersionRequest(input, context),
@@ -799,9 +665,7 @@ export const se_GetPolicyVersionCommand = async (input, context) => {
799
665
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
800
666
  };
801
667
  export const se_GetRoleCommand = async (input, context) => {
802
- const headers = {
803
- "content-type": "application/x-www-form-urlencoded",
804
- };
668
+ const headers = SHARED_HEADERS;
805
669
  let body;
806
670
  body = buildFormUrlencodedString({
807
671
  ...se_GetRoleRequest(input, context),
@@ -811,9 +675,7 @@ export const se_GetRoleCommand = async (input, context) => {
811
675
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
812
676
  };
813
677
  export const se_GetRolePolicyCommand = async (input, context) => {
814
- const headers = {
815
- "content-type": "application/x-www-form-urlencoded",
816
- };
678
+ const headers = SHARED_HEADERS;
817
679
  let body;
818
680
  body = buildFormUrlencodedString({
819
681
  ...se_GetRolePolicyRequest(input, context),
@@ -823,9 +685,7 @@ export const se_GetRolePolicyCommand = async (input, context) => {
823
685
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
824
686
  };
825
687
  export const se_GetSAMLProviderCommand = async (input, context) => {
826
- const headers = {
827
- "content-type": "application/x-www-form-urlencoded",
828
- };
688
+ const headers = SHARED_HEADERS;
829
689
  let body;
830
690
  body = buildFormUrlencodedString({
831
691
  ...se_GetSAMLProviderRequest(input, context),
@@ -835,9 +695,7 @@ export const se_GetSAMLProviderCommand = async (input, context) => {
835
695
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
836
696
  };
837
697
  export const se_GetServerCertificateCommand = async (input, context) => {
838
- const headers = {
839
- "content-type": "application/x-www-form-urlencoded",
840
- };
698
+ const headers = SHARED_HEADERS;
841
699
  let body;
842
700
  body = buildFormUrlencodedString({
843
701
  ...se_GetServerCertificateRequest(input, context),
@@ -847,9 +705,7 @@ export const se_GetServerCertificateCommand = async (input, context) => {
847
705
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
848
706
  };
849
707
  export const se_GetServiceLastAccessedDetailsCommand = async (input, context) => {
850
- const headers = {
851
- "content-type": "application/x-www-form-urlencoded",
852
- };
708
+ const headers = SHARED_HEADERS;
853
709
  let body;
854
710
  body = buildFormUrlencodedString({
855
711
  ...se_GetServiceLastAccessedDetailsRequest(input, context),
@@ -859,9 +715,7 @@ export const se_GetServiceLastAccessedDetailsCommand = async (input, context) =>
859
715
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
860
716
  };
861
717
  export const se_GetServiceLastAccessedDetailsWithEntitiesCommand = async (input, context) => {
862
- const headers = {
863
- "content-type": "application/x-www-form-urlencoded",
864
- };
718
+ const headers = SHARED_HEADERS;
865
719
  let body;
866
720
  body = buildFormUrlencodedString({
867
721
  ...se_GetServiceLastAccessedDetailsWithEntitiesRequest(input, context),
@@ -871,9 +725,7 @@ export const se_GetServiceLastAccessedDetailsWithEntitiesCommand = async (input,
871
725
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
872
726
  };
873
727
  export const se_GetServiceLinkedRoleDeletionStatusCommand = async (input, context) => {
874
- const headers = {
875
- "content-type": "application/x-www-form-urlencoded",
876
- };
728
+ const headers = SHARED_HEADERS;
877
729
  let body;
878
730
  body = buildFormUrlencodedString({
879
731
  ...se_GetServiceLinkedRoleDeletionStatusRequest(input, context),
@@ -883,9 +735,7 @@ export const se_GetServiceLinkedRoleDeletionStatusCommand = async (input, contex
883
735
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
884
736
  };
885
737
  export const se_GetSSHPublicKeyCommand = async (input, context) => {
886
- const headers = {
887
- "content-type": "application/x-www-form-urlencoded",
888
- };
738
+ const headers = SHARED_HEADERS;
889
739
  let body;
890
740
  body = buildFormUrlencodedString({
891
741
  ...se_GetSSHPublicKeyRequest(input, context),
@@ -895,9 +745,7 @@ export const se_GetSSHPublicKeyCommand = async (input, context) => {
895
745
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
896
746
  };
897
747
  export const se_GetUserCommand = async (input, context) => {
898
- const headers = {
899
- "content-type": "application/x-www-form-urlencoded",
900
- };
748
+ const headers = SHARED_HEADERS;
901
749
  let body;
902
750
  body = buildFormUrlencodedString({
903
751
  ...se_GetUserRequest(input, context),
@@ -907,9 +755,7 @@ export const se_GetUserCommand = async (input, context) => {
907
755
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
908
756
  };
909
757
  export const se_GetUserPolicyCommand = async (input, context) => {
910
- const headers = {
911
- "content-type": "application/x-www-form-urlencoded",
912
- };
758
+ const headers = SHARED_HEADERS;
913
759
  let body;
914
760
  body = buildFormUrlencodedString({
915
761
  ...se_GetUserPolicyRequest(input, context),
@@ -919,9 +765,7 @@ export const se_GetUserPolicyCommand = async (input, context) => {
919
765
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
920
766
  };
921
767
  export const se_ListAccessKeysCommand = async (input, context) => {
922
- const headers = {
923
- "content-type": "application/x-www-form-urlencoded",
924
- };
768
+ const headers = SHARED_HEADERS;
925
769
  let body;
926
770
  body = buildFormUrlencodedString({
927
771
  ...se_ListAccessKeysRequest(input, context),
@@ -931,9 +775,7 @@ export const se_ListAccessKeysCommand = async (input, context) => {
931
775
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
932
776
  };
933
777
  export const se_ListAccountAliasesCommand = async (input, context) => {
934
- const headers = {
935
- "content-type": "application/x-www-form-urlencoded",
936
- };
778
+ const headers = SHARED_HEADERS;
937
779
  let body;
938
780
  body = buildFormUrlencodedString({
939
781
  ...se_ListAccountAliasesRequest(input, context),
@@ -943,9 +785,7 @@ export const se_ListAccountAliasesCommand = async (input, context) => {
943
785
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
944
786
  };
945
787
  export const se_ListAttachedGroupPoliciesCommand = async (input, context) => {
946
- const headers = {
947
- "content-type": "application/x-www-form-urlencoded",
948
- };
788
+ const headers = SHARED_HEADERS;
949
789
  let body;
950
790
  body = buildFormUrlencodedString({
951
791
  ...se_ListAttachedGroupPoliciesRequest(input, context),
@@ -955,9 +795,7 @@ export const se_ListAttachedGroupPoliciesCommand = async (input, context) => {
955
795
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
956
796
  };
957
797
  export const se_ListAttachedRolePoliciesCommand = async (input, context) => {
958
- const headers = {
959
- "content-type": "application/x-www-form-urlencoded",
960
- };
798
+ const headers = SHARED_HEADERS;
961
799
  let body;
962
800
  body = buildFormUrlencodedString({
963
801
  ...se_ListAttachedRolePoliciesRequest(input, context),
@@ -967,9 +805,7 @@ export const se_ListAttachedRolePoliciesCommand = async (input, context) => {
967
805
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
968
806
  };
969
807
  export const se_ListAttachedUserPoliciesCommand = async (input, context) => {
970
- const headers = {
971
- "content-type": "application/x-www-form-urlencoded",
972
- };
808
+ const headers = SHARED_HEADERS;
973
809
  let body;
974
810
  body = buildFormUrlencodedString({
975
811
  ...se_ListAttachedUserPoliciesRequest(input, context),
@@ -979,9 +815,7 @@ export const se_ListAttachedUserPoliciesCommand = async (input, context) => {
979
815
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
980
816
  };
981
817
  export const se_ListEntitiesForPolicyCommand = async (input, context) => {
982
- const headers = {
983
- "content-type": "application/x-www-form-urlencoded",
984
- };
818
+ const headers = SHARED_HEADERS;
985
819
  let body;
986
820
  body = buildFormUrlencodedString({
987
821
  ...se_ListEntitiesForPolicyRequest(input, context),
@@ -991,9 +825,7 @@ export const se_ListEntitiesForPolicyCommand = async (input, context) => {
991
825
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
992
826
  };
993
827
  export const se_ListGroupPoliciesCommand = async (input, context) => {
994
- const headers = {
995
- "content-type": "application/x-www-form-urlencoded",
996
- };
828
+ const headers = SHARED_HEADERS;
997
829
  let body;
998
830
  body = buildFormUrlencodedString({
999
831
  ...se_ListGroupPoliciesRequest(input, context),
@@ -1003,9 +835,7 @@ export const se_ListGroupPoliciesCommand = async (input, context) => {
1003
835
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1004
836
  };
1005
837
  export const se_ListGroupsCommand = async (input, context) => {
1006
- const headers = {
1007
- "content-type": "application/x-www-form-urlencoded",
1008
- };
838
+ const headers = SHARED_HEADERS;
1009
839
  let body;
1010
840
  body = buildFormUrlencodedString({
1011
841
  ...se_ListGroupsRequest(input, context),
@@ -1015,9 +845,7 @@ export const se_ListGroupsCommand = async (input, context) => {
1015
845
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1016
846
  };
1017
847
  export const se_ListGroupsForUserCommand = async (input, context) => {
1018
- const headers = {
1019
- "content-type": "application/x-www-form-urlencoded",
1020
- };
848
+ const headers = SHARED_HEADERS;
1021
849
  let body;
1022
850
  body = buildFormUrlencodedString({
1023
851
  ...se_ListGroupsForUserRequest(input, context),
@@ -1027,9 +855,7 @@ export const se_ListGroupsForUserCommand = async (input, context) => {
1027
855
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1028
856
  };
1029
857
  export const se_ListInstanceProfilesCommand = async (input, context) => {
1030
- const headers = {
1031
- "content-type": "application/x-www-form-urlencoded",
1032
- };
858
+ const headers = SHARED_HEADERS;
1033
859
  let body;
1034
860
  body = buildFormUrlencodedString({
1035
861
  ...se_ListInstanceProfilesRequest(input, context),
@@ -1039,9 +865,7 @@ export const se_ListInstanceProfilesCommand = async (input, context) => {
1039
865
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1040
866
  };
1041
867
  export const se_ListInstanceProfilesForRoleCommand = async (input, context) => {
1042
- const headers = {
1043
- "content-type": "application/x-www-form-urlencoded",
1044
- };
868
+ const headers = SHARED_HEADERS;
1045
869
  let body;
1046
870
  body = buildFormUrlencodedString({
1047
871
  ...se_ListInstanceProfilesForRoleRequest(input, context),
@@ -1051,9 +875,7 @@ export const se_ListInstanceProfilesForRoleCommand = async (input, context) => {
1051
875
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1052
876
  };
1053
877
  export const se_ListInstanceProfileTagsCommand = async (input, context) => {
1054
- const headers = {
1055
- "content-type": "application/x-www-form-urlencoded",
1056
- };
878
+ const headers = SHARED_HEADERS;
1057
879
  let body;
1058
880
  body = buildFormUrlencodedString({
1059
881
  ...se_ListInstanceProfileTagsRequest(input, context),
@@ -1063,9 +885,7 @@ export const se_ListInstanceProfileTagsCommand = async (input, context) => {
1063
885
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1064
886
  };
1065
887
  export const se_ListMFADevicesCommand = async (input, context) => {
1066
- const headers = {
1067
- "content-type": "application/x-www-form-urlencoded",
1068
- };
888
+ const headers = SHARED_HEADERS;
1069
889
  let body;
1070
890
  body = buildFormUrlencodedString({
1071
891
  ...se_ListMFADevicesRequest(input, context),
@@ -1075,9 +895,7 @@ export const se_ListMFADevicesCommand = async (input, context) => {
1075
895
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1076
896
  };
1077
897
  export const se_ListMFADeviceTagsCommand = async (input, context) => {
1078
- const headers = {
1079
- "content-type": "application/x-www-form-urlencoded",
1080
- };
898
+ const headers = SHARED_HEADERS;
1081
899
  let body;
1082
900
  body = buildFormUrlencodedString({
1083
901
  ...se_ListMFADeviceTagsRequest(input, context),
@@ -1087,9 +905,7 @@ export const se_ListMFADeviceTagsCommand = async (input, context) => {
1087
905
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1088
906
  };
1089
907
  export const se_ListOpenIDConnectProvidersCommand = async (input, context) => {
1090
- const headers = {
1091
- "content-type": "application/x-www-form-urlencoded",
1092
- };
908
+ const headers = SHARED_HEADERS;
1093
909
  let body;
1094
910
  body = buildFormUrlencodedString({
1095
911
  ...se_ListOpenIDConnectProvidersRequest(input, context),
@@ -1099,9 +915,7 @@ export const se_ListOpenIDConnectProvidersCommand = async (input, context) => {
1099
915
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1100
916
  };
1101
917
  export const se_ListOpenIDConnectProviderTagsCommand = async (input, context) => {
1102
- const headers = {
1103
- "content-type": "application/x-www-form-urlencoded",
1104
- };
918
+ const headers = SHARED_HEADERS;
1105
919
  let body;
1106
920
  body = buildFormUrlencodedString({
1107
921
  ...se_ListOpenIDConnectProviderTagsRequest(input, context),
@@ -1111,9 +925,7 @@ export const se_ListOpenIDConnectProviderTagsCommand = async (input, context) =>
1111
925
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1112
926
  };
1113
927
  export const se_ListPoliciesCommand = async (input, context) => {
1114
- const headers = {
1115
- "content-type": "application/x-www-form-urlencoded",
1116
- };
928
+ const headers = SHARED_HEADERS;
1117
929
  let body;
1118
930
  body = buildFormUrlencodedString({
1119
931
  ...se_ListPoliciesRequest(input, context),
@@ -1123,9 +935,7 @@ export const se_ListPoliciesCommand = async (input, context) => {
1123
935
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1124
936
  };
1125
937
  export const se_ListPoliciesGrantingServiceAccessCommand = async (input, context) => {
1126
- const headers = {
1127
- "content-type": "application/x-www-form-urlencoded",
1128
- };
938
+ const headers = SHARED_HEADERS;
1129
939
  let body;
1130
940
  body = buildFormUrlencodedString({
1131
941
  ...se_ListPoliciesGrantingServiceAccessRequest(input, context),
@@ -1135,9 +945,7 @@ export const se_ListPoliciesGrantingServiceAccessCommand = async (input, context
1135
945
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1136
946
  };
1137
947
  export const se_ListPolicyTagsCommand = async (input, context) => {
1138
- const headers = {
1139
- "content-type": "application/x-www-form-urlencoded",
1140
- };
948
+ const headers = SHARED_HEADERS;
1141
949
  let body;
1142
950
  body = buildFormUrlencodedString({
1143
951
  ...se_ListPolicyTagsRequest(input, context),
@@ -1147,9 +955,7 @@ export const se_ListPolicyTagsCommand = async (input, context) => {
1147
955
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1148
956
  };
1149
957
  export const se_ListPolicyVersionsCommand = async (input, context) => {
1150
- const headers = {
1151
- "content-type": "application/x-www-form-urlencoded",
1152
- };
958
+ const headers = SHARED_HEADERS;
1153
959
  let body;
1154
960
  body = buildFormUrlencodedString({
1155
961
  ...se_ListPolicyVersionsRequest(input, context),
@@ -1159,9 +965,7 @@ export const se_ListPolicyVersionsCommand = async (input, context) => {
1159
965
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1160
966
  };
1161
967
  export const se_ListRolePoliciesCommand = async (input, context) => {
1162
- const headers = {
1163
- "content-type": "application/x-www-form-urlencoded",
1164
- };
968
+ const headers = SHARED_HEADERS;
1165
969
  let body;
1166
970
  body = buildFormUrlencodedString({
1167
971
  ...se_ListRolePoliciesRequest(input, context),
@@ -1171,9 +975,7 @@ export const se_ListRolePoliciesCommand = async (input, context) => {
1171
975
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1172
976
  };
1173
977
  export const se_ListRolesCommand = async (input, context) => {
1174
- const headers = {
1175
- "content-type": "application/x-www-form-urlencoded",
1176
- };
978
+ const headers = SHARED_HEADERS;
1177
979
  let body;
1178
980
  body = buildFormUrlencodedString({
1179
981
  ...se_ListRolesRequest(input, context),
@@ -1183,9 +985,7 @@ export const se_ListRolesCommand = async (input, context) => {
1183
985
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1184
986
  };
1185
987
  export const se_ListRoleTagsCommand = async (input, context) => {
1186
- const headers = {
1187
- "content-type": "application/x-www-form-urlencoded",
1188
- };
988
+ const headers = SHARED_HEADERS;
1189
989
  let body;
1190
990
  body = buildFormUrlencodedString({
1191
991
  ...se_ListRoleTagsRequest(input, context),
@@ -1195,9 +995,7 @@ export const se_ListRoleTagsCommand = async (input, context) => {
1195
995
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1196
996
  };
1197
997
  export const se_ListSAMLProvidersCommand = async (input, context) => {
1198
- const headers = {
1199
- "content-type": "application/x-www-form-urlencoded",
1200
- };
998
+ const headers = SHARED_HEADERS;
1201
999
  let body;
1202
1000
  body = buildFormUrlencodedString({
1203
1001
  ...se_ListSAMLProvidersRequest(input, context),
@@ -1207,9 +1005,7 @@ export const se_ListSAMLProvidersCommand = async (input, context) => {
1207
1005
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1208
1006
  };
1209
1007
  export const se_ListSAMLProviderTagsCommand = async (input, context) => {
1210
- const headers = {
1211
- "content-type": "application/x-www-form-urlencoded",
1212
- };
1008
+ const headers = SHARED_HEADERS;
1213
1009
  let body;
1214
1010
  body = buildFormUrlencodedString({
1215
1011
  ...se_ListSAMLProviderTagsRequest(input, context),
@@ -1219,9 +1015,7 @@ export const se_ListSAMLProviderTagsCommand = async (input, context) => {
1219
1015
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1220
1016
  };
1221
1017
  export const se_ListServerCertificatesCommand = async (input, context) => {
1222
- const headers = {
1223
- "content-type": "application/x-www-form-urlencoded",
1224
- };
1018
+ const headers = SHARED_HEADERS;
1225
1019
  let body;
1226
1020
  body = buildFormUrlencodedString({
1227
1021
  ...se_ListServerCertificatesRequest(input, context),
@@ -1231,9 +1025,7 @@ export const se_ListServerCertificatesCommand = async (input, context) => {
1231
1025
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1232
1026
  };
1233
1027
  export const se_ListServerCertificateTagsCommand = async (input, context) => {
1234
- const headers = {
1235
- "content-type": "application/x-www-form-urlencoded",
1236
- };
1028
+ const headers = SHARED_HEADERS;
1237
1029
  let body;
1238
1030
  body = buildFormUrlencodedString({
1239
1031
  ...se_ListServerCertificateTagsRequest(input, context),
@@ -1243,9 +1035,7 @@ export const se_ListServerCertificateTagsCommand = async (input, context) => {
1243
1035
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1244
1036
  };
1245
1037
  export const se_ListServiceSpecificCredentialsCommand = async (input, context) => {
1246
- const headers = {
1247
- "content-type": "application/x-www-form-urlencoded",
1248
- };
1038
+ const headers = SHARED_HEADERS;
1249
1039
  let body;
1250
1040
  body = buildFormUrlencodedString({
1251
1041
  ...se_ListServiceSpecificCredentialsRequest(input, context),
@@ -1255,9 +1045,7 @@ export const se_ListServiceSpecificCredentialsCommand = async (input, context) =
1255
1045
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1256
1046
  };
1257
1047
  export const se_ListSigningCertificatesCommand = async (input, context) => {
1258
- const headers = {
1259
- "content-type": "application/x-www-form-urlencoded",
1260
- };
1048
+ const headers = SHARED_HEADERS;
1261
1049
  let body;
1262
1050
  body = buildFormUrlencodedString({
1263
1051
  ...se_ListSigningCertificatesRequest(input, context),
@@ -1267,9 +1055,7 @@ export const se_ListSigningCertificatesCommand = async (input, context) => {
1267
1055
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1268
1056
  };
1269
1057
  export const se_ListSSHPublicKeysCommand = async (input, context) => {
1270
- const headers = {
1271
- "content-type": "application/x-www-form-urlencoded",
1272
- };
1058
+ const headers = SHARED_HEADERS;
1273
1059
  let body;
1274
1060
  body = buildFormUrlencodedString({
1275
1061
  ...se_ListSSHPublicKeysRequest(input, context),
@@ -1279,9 +1065,7 @@ export const se_ListSSHPublicKeysCommand = async (input, context) => {
1279
1065
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1280
1066
  };
1281
1067
  export const se_ListUserPoliciesCommand = async (input, context) => {
1282
- const headers = {
1283
- "content-type": "application/x-www-form-urlencoded",
1284
- };
1068
+ const headers = SHARED_HEADERS;
1285
1069
  let body;
1286
1070
  body = buildFormUrlencodedString({
1287
1071
  ...se_ListUserPoliciesRequest(input, context),
@@ -1291,9 +1075,7 @@ export const se_ListUserPoliciesCommand = async (input, context) => {
1291
1075
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1292
1076
  };
1293
1077
  export const se_ListUsersCommand = async (input, context) => {
1294
- const headers = {
1295
- "content-type": "application/x-www-form-urlencoded",
1296
- };
1078
+ const headers = SHARED_HEADERS;
1297
1079
  let body;
1298
1080
  body = buildFormUrlencodedString({
1299
1081
  ...se_ListUsersRequest(input, context),
@@ -1303,9 +1085,7 @@ export const se_ListUsersCommand = async (input, context) => {
1303
1085
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1304
1086
  };
1305
1087
  export const se_ListUserTagsCommand = async (input, context) => {
1306
- const headers = {
1307
- "content-type": "application/x-www-form-urlencoded",
1308
- };
1088
+ const headers = SHARED_HEADERS;
1309
1089
  let body;
1310
1090
  body = buildFormUrlencodedString({
1311
1091
  ...se_ListUserTagsRequest(input, context),
@@ -1315,9 +1095,7 @@ export const se_ListUserTagsCommand = async (input, context) => {
1315
1095
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1316
1096
  };
1317
1097
  export const se_ListVirtualMFADevicesCommand = async (input, context) => {
1318
- const headers = {
1319
- "content-type": "application/x-www-form-urlencoded",
1320
- };
1098
+ const headers = SHARED_HEADERS;
1321
1099
  let body;
1322
1100
  body = buildFormUrlencodedString({
1323
1101
  ...se_ListVirtualMFADevicesRequest(input, context),
@@ -1327,9 +1105,7 @@ export const se_ListVirtualMFADevicesCommand = async (input, context) => {
1327
1105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1328
1106
  };
1329
1107
  export const se_PutGroupPolicyCommand = async (input, context) => {
1330
- const headers = {
1331
- "content-type": "application/x-www-form-urlencoded",
1332
- };
1108
+ const headers = SHARED_HEADERS;
1333
1109
  let body;
1334
1110
  body = buildFormUrlencodedString({
1335
1111
  ...se_PutGroupPolicyRequest(input, context),
@@ -1339,9 +1115,7 @@ export const se_PutGroupPolicyCommand = async (input, context) => {
1339
1115
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1340
1116
  };
1341
1117
  export const se_PutRolePermissionsBoundaryCommand = async (input, context) => {
1342
- const headers = {
1343
- "content-type": "application/x-www-form-urlencoded",
1344
- };
1118
+ const headers = SHARED_HEADERS;
1345
1119
  let body;
1346
1120
  body = buildFormUrlencodedString({
1347
1121
  ...se_PutRolePermissionsBoundaryRequest(input, context),
@@ -1351,9 +1125,7 @@ export const se_PutRolePermissionsBoundaryCommand = async (input, context) => {
1351
1125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1352
1126
  };
1353
1127
  export const se_PutRolePolicyCommand = async (input, context) => {
1354
- const headers = {
1355
- "content-type": "application/x-www-form-urlencoded",
1356
- };
1128
+ const headers = SHARED_HEADERS;
1357
1129
  let body;
1358
1130
  body = buildFormUrlencodedString({
1359
1131
  ...se_PutRolePolicyRequest(input, context),
@@ -1363,9 +1135,7 @@ export const se_PutRolePolicyCommand = async (input, context) => {
1363
1135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1364
1136
  };
1365
1137
  export const se_PutUserPermissionsBoundaryCommand = async (input, context) => {
1366
- const headers = {
1367
- "content-type": "application/x-www-form-urlencoded",
1368
- };
1138
+ const headers = SHARED_HEADERS;
1369
1139
  let body;
1370
1140
  body = buildFormUrlencodedString({
1371
1141
  ...se_PutUserPermissionsBoundaryRequest(input, context),
@@ -1375,9 +1145,7 @@ export const se_PutUserPermissionsBoundaryCommand = async (input, context) => {
1375
1145
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1376
1146
  };
1377
1147
  export const se_PutUserPolicyCommand = async (input, context) => {
1378
- const headers = {
1379
- "content-type": "application/x-www-form-urlencoded",
1380
- };
1148
+ const headers = SHARED_HEADERS;
1381
1149
  let body;
1382
1150
  body = buildFormUrlencodedString({
1383
1151
  ...se_PutUserPolicyRequest(input, context),
@@ -1387,9 +1155,7 @@ export const se_PutUserPolicyCommand = async (input, context) => {
1387
1155
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1388
1156
  };
1389
1157
  export const se_RemoveClientIDFromOpenIDConnectProviderCommand = async (input, context) => {
1390
- const headers = {
1391
- "content-type": "application/x-www-form-urlencoded",
1392
- };
1158
+ const headers = SHARED_HEADERS;
1393
1159
  let body;
1394
1160
  body = buildFormUrlencodedString({
1395
1161
  ...se_RemoveClientIDFromOpenIDConnectProviderRequest(input, context),
@@ -1399,9 +1165,7 @@ export const se_RemoveClientIDFromOpenIDConnectProviderCommand = async (input, c
1399
1165
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1400
1166
  };
1401
1167
  export const se_RemoveRoleFromInstanceProfileCommand = async (input, context) => {
1402
- const headers = {
1403
- "content-type": "application/x-www-form-urlencoded",
1404
- };
1168
+ const headers = SHARED_HEADERS;
1405
1169
  let body;
1406
1170
  body = buildFormUrlencodedString({
1407
1171
  ...se_RemoveRoleFromInstanceProfileRequest(input, context),
@@ -1411,9 +1175,7 @@ export const se_RemoveRoleFromInstanceProfileCommand = async (input, context) =>
1411
1175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1412
1176
  };
1413
1177
  export const se_RemoveUserFromGroupCommand = async (input, context) => {
1414
- const headers = {
1415
- "content-type": "application/x-www-form-urlencoded",
1416
- };
1178
+ const headers = SHARED_HEADERS;
1417
1179
  let body;
1418
1180
  body = buildFormUrlencodedString({
1419
1181
  ...se_RemoveUserFromGroupRequest(input, context),
@@ -1423,9 +1185,7 @@ export const se_RemoveUserFromGroupCommand = async (input, context) => {
1423
1185
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1424
1186
  };
1425
1187
  export const se_ResetServiceSpecificCredentialCommand = async (input, context) => {
1426
- const headers = {
1427
- "content-type": "application/x-www-form-urlencoded",
1428
- };
1188
+ const headers = SHARED_HEADERS;
1429
1189
  let body;
1430
1190
  body = buildFormUrlencodedString({
1431
1191
  ...se_ResetServiceSpecificCredentialRequest(input, context),
@@ -1435,9 +1195,7 @@ export const se_ResetServiceSpecificCredentialCommand = async (input, context) =
1435
1195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1436
1196
  };
1437
1197
  export const se_ResyncMFADeviceCommand = async (input, context) => {
1438
- const headers = {
1439
- "content-type": "application/x-www-form-urlencoded",
1440
- };
1198
+ const headers = SHARED_HEADERS;
1441
1199
  let body;
1442
1200
  body = buildFormUrlencodedString({
1443
1201
  ...se_ResyncMFADeviceRequest(input, context),
@@ -1447,9 +1205,7 @@ export const se_ResyncMFADeviceCommand = async (input, context) => {
1447
1205
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1448
1206
  };
1449
1207
  export const se_SetDefaultPolicyVersionCommand = async (input, context) => {
1450
- const headers = {
1451
- "content-type": "application/x-www-form-urlencoded",
1452
- };
1208
+ const headers = SHARED_HEADERS;
1453
1209
  let body;
1454
1210
  body = buildFormUrlencodedString({
1455
1211
  ...se_SetDefaultPolicyVersionRequest(input, context),
@@ -1459,9 +1215,7 @@ export const se_SetDefaultPolicyVersionCommand = async (input, context) => {
1459
1215
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1460
1216
  };
1461
1217
  export const se_SetSecurityTokenServicePreferencesCommand = async (input, context) => {
1462
- const headers = {
1463
- "content-type": "application/x-www-form-urlencoded",
1464
- };
1218
+ const headers = SHARED_HEADERS;
1465
1219
  let body;
1466
1220
  body = buildFormUrlencodedString({
1467
1221
  ...se_SetSecurityTokenServicePreferencesRequest(input, context),
@@ -1471,9 +1225,7 @@ export const se_SetSecurityTokenServicePreferencesCommand = async (input, contex
1471
1225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1472
1226
  };
1473
1227
  export const se_SimulateCustomPolicyCommand = async (input, context) => {
1474
- const headers = {
1475
- "content-type": "application/x-www-form-urlencoded",
1476
- };
1228
+ const headers = SHARED_HEADERS;
1477
1229
  let body;
1478
1230
  body = buildFormUrlencodedString({
1479
1231
  ...se_SimulateCustomPolicyRequest(input, context),
@@ -1483,9 +1235,7 @@ export const se_SimulateCustomPolicyCommand = async (input, context) => {
1483
1235
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1484
1236
  };
1485
1237
  export const se_SimulatePrincipalPolicyCommand = async (input, context) => {
1486
- const headers = {
1487
- "content-type": "application/x-www-form-urlencoded",
1488
- };
1238
+ const headers = SHARED_HEADERS;
1489
1239
  let body;
1490
1240
  body = buildFormUrlencodedString({
1491
1241
  ...se_SimulatePrincipalPolicyRequest(input, context),
@@ -1495,9 +1245,7 @@ export const se_SimulatePrincipalPolicyCommand = async (input, context) => {
1495
1245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1496
1246
  };
1497
1247
  export const se_TagInstanceProfileCommand = async (input, context) => {
1498
- const headers = {
1499
- "content-type": "application/x-www-form-urlencoded",
1500
- };
1248
+ const headers = SHARED_HEADERS;
1501
1249
  let body;
1502
1250
  body = buildFormUrlencodedString({
1503
1251
  ...se_TagInstanceProfileRequest(input, context),
@@ -1507,9 +1255,7 @@ export const se_TagInstanceProfileCommand = async (input, context) => {
1507
1255
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1508
1256
  };
1509
1257
  export const se_TagMFADeviceCommand = async (input, context) => {
1510
- const headers = {
1511
- "content-type": "application/x-www-form-urlencoded",
1512
- };
1258
+ const headers = SHARED_HEADERS;
1513
1259
  let body;
1514
1260
  body = buildFormUrlencodedString({
1515
1261
  ...se_TagMFADeviceRequest(input, context),
@@ -1519,9 +1265,7 @@ export const se_TagMFADeviceCommand = async (input, context) => {
1519
1265
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1520
1266
  };
1521
1267
  export const se_TagOpenIDConnectProviderCommand = async (input, context) => {
1522
- const headers = {
1523
- "content-type": "application/x-www-form-urlencoded",
1524
- };
1268
+ const headers = SHARED_HEADERS;
1525
1269
  let body;
1526
1270
  body = buildFormUrlencodedString({
1527
1271
  ...se_TagOpenIDConnectProviderRequest(input, context),
@@ -1531,9 +1275,7 @@ export const se_TagOpenIDConnectProviderCommand = async (input, context) => {
1531
1275
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1532
1276
  };
1533
1277
  export const se_TagPolicyCommand = async (input, context) => {
1534
- const headers = {
1535
- "content-type": "application/x-www-form-urlencoded",
1536
- };
1278
+ const headers = SHARED_HEADERS;
1537
1279
  let body;
1538
1280
  body = buildFormUrlencodedString({
1539
1281
  ...se_TagPolicyRequest(input, context),
@@ -1543,9 +1285,7 @@ export const se_TagPolicyCommand = async (input, context) => {
1543
1285
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1544
1286
  };
1545
1287
  export const se_TagRoleCommand = async (input, context) => {
1546
- const headers = {
1547
- "content-type": "application/x-www-form-urlencoded",
1548
- };
1288
+ const headers = SHARED_HEADERS;
1549
1289
  let body;
1550
1290
  body = buildFormUrlencodedString({
1551
1291
  ...se_TagRoleRequest(input, context),
@@ -1555,9 +1295,7 @@ export const se_TagRoleCommand = async (input, context) => {
1555
1295
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1556
1296
  };
1557
1297
  export const se_TagSAMLProviderCommand = async (input, context) => {
1558
- const headers = {
1559
- "content-type": "application/x-www-form-urlencoded",
1560
- };
1298
+ const headers = SHARED_HEADERS;
1561
1299
  let body;
1562
1300
  body = buildFormUrlencodedString({
1563
1301
  ...se_TagSAMLProviderRequest(input, context),
@@ -1567,9 +1305,7 @@ export const se_TagSAMLProviderCommand = async (input, context) => {
1567
1305
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1568
1306
  };
1569
1307
  export const se_TagServerCertificateCommand = async (input, context) => {
1570
- const headers = {
1571
- "content-type": "application/x-www-form-urlencoded",
1572
- };
1308
+ const headers = SHARED_HEADERS;
1573
1309
  let body;
1574
1310
  body = buildFormUrlencodedString({
1575
1311
  ...se_TagServerCertificateRequest(input, context),
@@ -1579,9 +1315,7 @@ export const se_TagServerCertificateCommand = async (input, context) => {
1579
1315
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1580
1316
  };
1581
1317
  export const se_TagUserCommand = async (input, context) => {
1582
- const headers = {
1583
- "content-type": "application/x-www-form-urlencoded",
1584
- };
1318
+ const headers = SHARED_HEADERS;
1585
1319
  let body;
1586
1320
  body = buildFormUrlencodedString({
1587
1321
  ...se_TagUserRequest(input, context),
@@ -1591,9 +1325,7 @@ export const se_TagUserCommand = async (input, context) => {
1591
1325
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1592
1326
  };
1593
1327
  export const se_UntagInstanceProfileCommand = async (input, context) => {
1594
- const headers = {
1595
- "content-type": "application/x-www-form-urlencoded",
1596
- };
1328
+ const headers = SHARED_HEADERS;
1597
1329
  let body;
1598
1330
  body = buildFormUrlencodedString({
1599
1331
  ...se_UntagInstanceProfileRequest(input, context),
@@ -1603,9 +1335,7 @@ export const se_UntagInstanceProfileCommand = async (input, context) => {
1603
1335
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1604
1336
  };
1605
1337
  export const se_UntagMFADeviceCommand = async (input, context) => {
1606
- const headers = {
1607
- "content-type": "application/x-www-form-urlencoded",
1608
- };
1338
+ const headers = SHARED_HEADERS;
1609
1339
  let body;
1610
1340
  body = buildFormUrlencodedString({
1611
1341
  ...se_UntagMFADeviceRequest(input, context),
@@ -1615,9 +1345,7 @@ export const se_UntagMFADeviceCommand = async (input, context) => {
1615
1345
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1616
1346
  };
1617
1347
  export const se_UntagOpenIDConnectProviderCommand = async (input, context) => {
1618
- const headers = {
1619
- "content-type": "application/x-www-form-urlencoded",
1620
- };
1348
+ const headers = SHARED_HEADERS;
1621
1349
  let body;
1622
1350
  body = buildFormUrlencodedString({
1623
1351
  ...se_UntagOpenIDConnectProviderRequest(input, context),
@@ -1627,9 +1355,7 @@ export const se_UntagOpenIDConnectProviderCommand = async (input, context) => {
1627
1355
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1628
1356
  };
1629
1357
  export const se_UntagPolicyCommand = async (input, context) => {
1630
- const headers = {
1631
- "content-type": "application/x-www-form-urlencoded",
1632
- };
1358
+ const headers = SHARED_HEADERS;
1633
1359
  let body;
1634
1360
  body = buildFormUrlencodedString({
1635
1361
  ...se_UntagPolicyRequest(input, context),
@@ -1639,9 +1365,7 @@ export const se_UntagPolicyCommand = async (input, context) => {
1639
1365
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1640
1366
  };
1641
1367
  export const se_UntagRoleCommand = async (input, context) => {
1642
- const headers = {
1643
- "content-type": "application/x-www-form-urlencoded",
1644
- };
1368
+ const headers = SHARED_HEADERS;
1645
1369
  let body;
1646
1370
  body = buildFormUrlencodedString({
1647
1371
  ...se_UntagRoleRequest(input, context),
@@ -1651,9 +1375,7 @@ export const se_UntagRoleCommand = async (input, context) => {
1651
1375
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1652
1376
  };
1653
1377
  export const se_UntagSAMLProviderCommand = async (input, context) => {
1654
- const headers = {
1655
- "content-type": "application/x-www-form-urlencoded",
1656
- };
1378
+ const headers = SHARED_HEADERS;
1657
1379
  let body;
1658
1380
  body = buildFormUrlencodedString({
1659
1381
  ...se_UntagSAMLProviderRequest(input, context),
@@ -1663,9 +1385,7 @@ export const se_UntagSAMLProviderCommand = async (input, context) => {
1663
1385
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1664
1386
  };
1665
1387
  export const se_UntagServerCertificateCommand = async (input, context) => {
1666
- const headers = {
1667
- "content-type": "application/x-www-form-urlencoded",
1668
- };
1388
+ const headers = SHARED_HEADERS;
1669
1389
  let body;
1670
1390
  body = buildFormUrlencodedString({
1671
1391
  ...se_UntagServerCertificateRequest(input, context),
@@ -1675,9 +1395,7 @@ export const se_UntagServerCertificateCommand = async (input, context) => {
1675
1395
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1676
1396
  };
1677
1397
  export const se_UntagUserCommand = async (input, context) => {
1678
- const headers = {
1679
- "content-type": "application/x-www-form-urlencoded",
1680
- };
1398
+ const headers = SHARED_HEADERS;
1681
1399
  let body;
1682
1400
  body = buildFormUrlencodedString({
1683
1401
  ...se_UntagUserRequest(input, context),
@@ -1687,9 +1405,7 @@ export const se_UntagUserCommand = async (input, context) => {
1687
1405
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1688
1406
  };
1689
1407
  export const se_UpdateAccessKeyCommand = async (input, context) => {
1690
- const headers = {
1691
- "content-type": "application/x-www-form-urlencoded",
1692
- };
1408
+ const headers = SHARED_HEADERS;
1693
1409
  let body;
1694
1410
  body = buildFormUrlencodedString({
1695
1411
  ...se_UpdateAccessKeyRequest(input, context),
@@ -1699,9 +1415,7 @@ export const se_UpdateAccessKeyCommand = async (input, context) => {
1699
1415
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1700
1416
  };
1701
1417
  export const se_UpdateAccountPasswordPolicyCommand = async (input, context) => {
1702
- const headers = {
1703
- "content-type": "application/x-www-form-urlencoded",
1704
- };
1418
+ const headers = SHARED_HEADERS;
1705
1419
  let body;
1706
1420
  body = buildFormUrlencodedString({
1707
1421
  ...se_UpdateAccountPasswordPolicyRequest(input, context),
@@ -1711,9 +1425,7 @@ export const se_UpdateAccountPasswordPolicyCommand = async (input, context) => {
1711
1425
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1712
1426
  };
1713
1427
  export const se_UpdateAssumeRolePolicyCommand = async (input, context) => {
1714
- const headers = {
1715
- "content-type": "application/x-www-form-urlencoded",
1716
- };
1428
+ const headers = SHARED_HEADERS;
1717
1429
  let body;
1718
1430
  body = buildFormUrlencodedString({
1719
1431
  ...se_UpdateAssumeRolePolicyRequest(input, context),
@@ -1723,9 +1435,7 @@ export const se_UpdateAssumeRolePolicyCommand = async (input, context) => {
1723
1435
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1724
1436
  };
1725
1437
  export const se_UpdateGroupCommand = async (input, context) => {
1726
- const headers = {
1727
- "content-type": "application/x-www-form-urlencoded",
1728
- };
1438
+ const headers = SHARED_HEADERS;
1729
1439
  let body;
1730
1440
  body = buildFormUrlencodedString({
1731
1441
  ...se_UpdateGroupRequest(input, context),
@@ -1735,9 +1445,7 @@ export const se_UpdateGroupCommand = async (input, context) => {
1735
1445
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1736
1446
  };
1737
1447
  export const se_UpdateLoginProfileCommand = async (input, context) => {
1738
- const headers = {
1739
- "content-type": "application/x-www-form-urlencoded",
1740
- };
1448
+ const headers = SHARED_HEADERS;
1741
1449
  let body;
1742
1450
  body = buildFormUrlencodedString({
1743
1451
  ...se_UpdateLoginProfileRequest(input, context),
@@ -1747,9 +1455,7 @@ export const se_UpdateLoginProfileCommand = async (input, context) => {
1747
1455
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1748
1456
  };
1749
1457
  export const se_UpdateOpenIDConnectProviderThumbprintCommand = async (input, context) => {
1750
- const headers = {
1751
- "content-type": "application/x-www-form-urlencoded",
1752
- };
1458
+ const headers = SHARED_HEADERS;
1753
1459
  let body;
1754
1460
  body = buildFormUrlencodedString({
1755
1461
  ...se_UpdateOpenIDConnectProviderThumbprintRequest(input, context),
@@ -1759,9 +1465,7 @@ export const se_UpdateOpenIDConnectProviderThumbprintCommand = async (input, con
1759
1465
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1760
1466
  };
1761
1467
  export const se_UpdateRoleCommand = async (input, context) => {
1762
- const headers = {
1763
- "content-type": "application/x-www-form-urlencoded",
1764
- };
1468
+ const headers = SHARED_HEADERS;
1765
1469
  let body;
1766
1470
  body = buildFormUrlencodedString({
1767
1471
  ...se_UpdateRoleRequest(input, context),
@@ -1771,9 +1475,7 @@ export const se_UpdateRoleCommand = async (input, context) => {
1771
1475
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1772
1476
  };
1773
1477
  export const se_UpdateRoleDescriptionCommand = async (input, context) => {
1774
- const headers = {
1775
- "content-type": "application/x-www-form-urlencoded",
1776
- };
1478
+ const headers = SHARED_HEADERS;
1777
1479
  let body;
1778
1480
  body = buildFormUrlencodedString({
1779
1481
  ...se_UpdateRoleDescriptionRequest(input, context),
@@ -1783,9 +1485,7 @@ export const se_UpdateRoleDescriptionCommand = async (input, context) => {
1783
1485
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1784
1486
  };
1785
1487
  export const se_UpdateSAMLProviderCommand = async (input, context) => {
1786
- const headers = {
1787
- "content-type": "application/x-www-form-urlencoded",
1788
- };
1488
+ const headers = SHARED_HEADERS;
1789
1489
  let body;
1790
1490
  body = buildFormUrlencodedString({
1791
1491
  ...se_UpdateSAMLProviderRequest(input, context),
@@ -1795,9 +1495,7 @@ export const se_UpdateSAMLProviderCommand = async (input, context) => {
1795
1495
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1796
1496
  };
1797
1497
  export const se_UpdateServerCertificateCommand = async (input, context) => {
1798
- const headers = {
1799
- "content-type": "application/x-www-form-urlencoded",
1800
- };
1498
+ const headers = SHARED_HEADERS;
1801
1499
  let body;
1802
1500
  body = buildFormUrlencodedString({
1803
1501
  ...se_UpdateServerCertificateRequest(input, context),
@@ -1807,9 +1505,7 @@ export const se_UpdateServerCertificateCommand = async (input, context) => {
1807
1505
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1808
1506
  };
1809
1507
  export const se_UpdateServiceSpecificCredentialCommand = async (input, context) => {
1810
- const headers = {
1811
- "content-type": "application/x-www-form-urlencoded",
1812
- };
1508
+ const headers = SHARED_HEADERS;
1813
1509
  let body;
1814
1510
  body = buildFormUrlencodedString({
1815
1511
  ...se_UpdateServiceSpecificCredentialRequest(input, context),
@@ -1819,9 +1515,7 @@ export const se_UpdateServiceSpecificCredentialCommand = async (input, context)
1819
1515
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1820
1516
  };
1821
1517
  export const se_UpdateSigningCertificateCommand = async (input, context) => {
1822
- const headers = {
1823
- "content-type": "application/x-www-form-urlencoded",
1824
- };
1518
+ const headers = SHARED_HEADERS;
1825
1519
  let body;
1826
1520
  body = buildFormUrlencodedString({
1827
1521
  ...se_UpdateSigningCertificateRequest(input, context),
@@ -1831,9 +1525,7 @@ export const se_UpdateSigningCertificateCommand = async (input, context) => {
1831
1525
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1832
1526
  };
1833
1527
  export const se_UpdateSSHPublicKeyCommand = async (input, context) => {
1834
- const headers = {
1835
- "content-type": "application/x-www-form-urlencoded",
1836
- };
1528
+ const headers = SHARED_HEADERS;
1837
1529
  let body;
1838
1530
  body = buildFormUrlencodedString({
1839
1531
  ...se_UpdateSSHPublicKeyRequest(input, context),
@@ -1843,9 +1535,7 @@ export const se_UpdateSSHPublicKeyCommand = async (input, context) => {
1843
1535
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1844
1536
  };
1845
1537
  export const se_UpdateUserCommand = async (input, context) => {
1846
- const headers = {
1847
- "content-type": "application/x-www-form-urlencoded",
1848
- };
1538
+ const headers = SHARED_HEADERS;
1849
1539
  let body;
1850
1540
  body = buildFormUrlencodedString({
1851
1541
  ...se_UpdateUserRequest(input, context),
@@ -1855,9 +1545,7 @@ export const se_UpdateUserCommand = async (input, context) => {
1855
1545
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1856
1546
  };
1857
1547
  export const se_UploadServerCertificateCommand = async (input, context) => {
1858
- const headers = {
1859
- "content-type": "application/x-www-form-urlencoded",
1860
- };
1548
+ const headers = SHARED_HEADERS;
1861
1549
  let body;
1862
1550
  body = buildFormUrlencodedString({
1863
1551
  ...se_UploadServerCertificateRequest(input, context),
@@ -1867,9 +1555,7 @@ export const se_UploadServerCertificateCommand = async (input, context) => {
1867
1555
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1868
1556
  };
1869
1557
  export const se_UploadSigningCertificateCommand = async (input, context) => {
1870
- const headers = {
1871
- "content-type": "application/x-www-form-urlencoded",
1872
- };
1558
+ const headers = SHARED_HEADERS;
1873
1559
  let body;
1874
1560
  body = buildFormUrlencodedString({
1875
1561
  ...se_UploadSigningCertificateRequest(input, context),
@@ -1879,9 +1565,7 @@ export const se_UploadSigningCertificateCommand = async (input, context) => {
1879
1565
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
1880
1566
  };
1881
1567
  export const se_UploadSSHPublicKeyCommand = async (input, context) => {
1882
- const headers = {
1883
- "content-type": "application/x-www-form-urlencoded",
1884
- };
1568
+ const headers = SHARED_HEADERS;
1885
1569
  let body;
1886
1570
  body = buildFormUrlencodedString({
1887
1571
  ...se_UploadSSHPublicKeyRequest(input, context),
@@ -1898,7 +1582,7 @@ export const de_AddClientIDToOpenIDConnectProviderCommand = async (output, conte
1898
1582
  const response = {
1899
1583
  $metadata: deserializeMetadata(output),
1900
1584
  };
1901
- return Promise.resolve(response);
1585
+ return response;
1902
1586
  };
1903
1587
  const de_AddClientIDToOpenIDConnectProviderCommandError = async (output, context) => {
1904
1588
  const parsedOutput = {
@@ -1921,10 +1605,9 @@ const de_AddClientIDToOpenIDConnectProviderCommandError = async (output, context
1921
1605
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1922
1606
  default:
1923
1607
  const parsedBody = parsedOutput.body;
1924
- throwDefaultError({
1608
+ return throwDefaultError({
1925
1609
  output,
1926
1610
  parsedBody: parsedBody.Error,
1927
- exceptionCtor: __BaseException,
1928
1611
  errorCode,
1929
1612
  });
1930
1613
  }
@@ -1937,7 +1620,7 @@ export const de_AddRoleToInstanceProfileCommand = async (output, context) => {
1937
1620
  const response = {
1938
1621
  $metadata: deserializeMetadata(output),
1939
1622
  };
1940
- return Promise.resolve(response);
1623
+ return response;
1941
1624
  };
1942
1625
  const de_AddRoleToInstanceProfileCommandError = async (output, context) => {
1943
1626
  const parsedOutput = {
@@ -1963,10 +1646,9 @@ const de_AddRoleToInstanceProfileCommandError = async (output, context) => {
1963
1646
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
1964
1647
  default:
1965
1648
  const parsedBody = parsedOutput.body;
1966
- throwDefaultError({
1649
+ return throwDefaultError({
1967
1650
  output,
1968
1651
  parsedBody: parsedBody.Error,
1969
- exceptionCtor: __BaseException,
1970
1652
  errorCode,
1971
1653
  });
1972
1654
  }
@@ -1979,7 +1661,7 @@ export const de_AddUserToGroupCommand = async (output, context) => {
1979
1661
  const response = {
1980
1662
  $metadata: deserializeMetadata(output),
1981
1663
  };
1982
- return Promise.resolve(response);
1664
+ return response;
1983
1665
  };
1984
1666
  const de_AddUserToGroupCommandError = async (output, context) => {
1985
1667
  const parsedOutput = {
@@ -1999,10 +1681,9 @@ const de_AddUserToGroupCommandError = async (output, context) => {
1999
1681
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2000
1682
  default:
2001
1683
  const parsedBody = parsedOutput.body;
2002
- throwDefaultError({
1684
+ return throwDefaultError({
2003
1685
  output,
2004
1686
  parsedBody: parsedBody.Error,
2005
- exceptionCtor: __BaseException,
2006
1687
  errorCode,
2007
1688
  });
2008
1689
  }
@@ -2015,7 +1696,7 @@ export const de_AttachGroupPolicyCommand = async (output, context) => {
2015
1696
  const response = {
2016
1697
  $metadata: deserializeMetadata(output),
2017
1698
  };
2018
- return Promise.resolve(response);
1699
+ return response;
2019
1700
  };
2020
1701
  const de_AttachGroupPolicyCommandError = async (output, context) => {
2021
1702
  const parsedOutput = {
@@ -2041,10 +1722,9 @@ const de_AttachGroupPolicyCommandError = async (output, context) => {
2041
1722
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2042
1723
  default:
2043
1724
  const parsedBody = parsedOutput.body;
2044
- throwDefaultError({
1725
+ return throwDefaultError({
2045
1726
  output,
2046
1727
  parsedBody: parsedBody.Error,
2047
- exceptionCtor: __BaseException,
2048
1728
  errorCode,
2049
1729
  });
2050
1730
  }
@@ -2057,7 +1737,7 @@ export const de_AttachRolePolicyCommand = async (output, context) => {
2057
1737
  const response = {
2058
1738
  $metadata: deserializeMetadata(output),
2059
1739
  };
2060
- return Promise.resolve(response);
1740
+ return response;
2061
1741
  };
2062
1742
  const de_AttachRolePolicyCommandError = async (output, context) => {
2063
1743
  const parsedOutput = {
@@ -2086,10 +1766,9 @@ const de_AttachRolePolicyCommandError = async (output, context) => {
2086
1766
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
2087
1767
  default:
2088
1768
  const parsedBody = parsedOutput.body;
2089
- throwDefaultError({
1769
+ return throwDefaultError({
2090
1770
  output,
2091
1771
  parsedBody: parsedBody.Error,
2092
- exceptionCtor: __BaseException,
2093
1772
  errorCode,
2094
1773
  });
2095
1774
  }
@@ -2102,7 +1781,7 @@ export const de_AttachUserPolicyCommand = async (output, context) => {
2102
1781
  const response = {
2103
1782
  $metadata: deserializeMetadata(output),
2104
1783
  };
2105
- return Promise.resolve(response);
1784
+ return response;
2106
1785
  };
2107
1786
  const de_AttachUserPolicyCommandError = async (output, context) => {
2108
1787
  const parsedOutput = {
@@ -2128,10 +1807,9 @@ const de_AttachUserPolicyCommandError = async (output, context) => {
2128
1807
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2129
1808
  default:
2130
1809
  const parsedBody = parsedOutput.body;
2131
- throwDefaultError({
1810
+ return throwDefaultError({
2132
1811
  output,
2133
1812
  parsedBody: parsedBody.Error,
2134
- exceptionCtor: __BaseException,
2135
1813
  errorCode,
2136
1814
  });
2137
1815
  }
@@ -2144,7 +1822,7 @@ export const de_ChangePasswordCommand = async (output, context) => {
2144
1822
  const response = {
2145
1823
  $metadata: deserializeMetadata(output),
2146
1824
  };
2147
- return Promise.resolve(response);
1825
+ return response;
2148
1826
  };
2149
1827
  const de_ChangePasswordCommandError = async (output, context) => {
2150
1828
  const parsedOutput = {
@@ -2173,10 +1851,9 @@ const de_ChangePasswordCommandError = async (output, context) => {
2173
1851
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2174
1852
  default:
2175
1853
  const parsedBody = parsedOutput.body;
2176
- throwDefaultError({
1854
+ return throwDefaultError({
2177
1855
  output,
2178
1856
  parsedBody: parsedBody.Error,
2179
- exceptionCtor: __BaseException,
2180
1857
  errorCode,
2181
1858
  });
2182
1859
  }
@@ -2192,7 +1869,7 @@ export const de_CreateAccessKeyCommand = async (output, context) => {
2192
1869
  $metadata: deserializeMetadata(output),
2193
1870
  ...contents,
2194
1871
  };
2195
- return Promise.resolve(response);
1872
+ return response;
2196
1873
  };
2197
1874
  const de_CreateAccessKeyCommandError = async (output, context) => {
2198
1875
  const parsedOutput = {
@@ -2212,10 +1889,9 @@ const de_CreateAccessKeyCommandError = async (output, context) => {
2212
1889
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2213
1890
  default:
2214
1891
  const parsedBody = parsedOutput.body;
2215
- throwDefaultError({
1892
+ return throwDefaultError({
2216
1893
  output,
2217
1894
  parsedBody: parsedBody.Error,
2218
- exceptionCtor: __BaseException,
2219
1895
  errorCode,
2220
1896
  });
2221
1897
  }
@@ -2228,7 +1904,7 @@ export const de_CreateAccountAliasCommand = async (output, context) => {
2228
1904
  const response = {
2229
1905
  $metadata: deserializeMetadata(output),
2230
1906
  };
2231
- return Promise.resolve(response);
1907
+ return response;
2232
1908
  };
2233
1909
  const de_CreateAccountAliasCommandError = async (output, context) => {
2234
1910
  const parsedOutput = {
@@ -2248,10 +1924,9 @@ const de_CreateAccountAliasCommandError = async (output, context) => {
2248
1924
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2249
1925
  default:
2250
1926
  const parsedBody = parsedOutput.body;
2251
- throwDefaultError({
1927
+ return throwDefaultError({
2252
1928
  output,
2253
1929
  parsedBody: parsedBody.Error,
2254
- exceptionCtor: __BaseException,
2255
1930
  errorCode,
2256
1931
  });
2257
1932
  }
@@ -2267,7 +1942,7 @@ export const de_CreateGroupCommand = async (output, context) => {
2267
1942
  $metadata: deserializeMetadata(output),
2268
1943
  ...contents,
2269
1944
  };
2270
- return Promise.resolve(response);
1945
+ return response;
2271
1946
  };
2272
1947
  const de_CreateGroupCommandError = async (output, context) => {
2273
1948
  const parsedOutput = {
@@ -2290,10 +1965,9 @@ const de_CreateGroupCommandError = async (output, context) => {
2290
1965
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2291
1966
  default:
2292
1967
  const parsedBody = parsedOutput.body;
2293
- throwDefaultError({
1968
+ return throwDefaultError({
2294
1969
  output,
2295
1970
  parsedBody: parsedBody.Error,
2296
- exceptionCtor: __BaseException,
2297
1971
  errorCode,
2298
1972
  });
2299
1973
  }
@@ -2309,7 +1983,7 @@ export const de_CreateInstanceProfileCommand = async (output, context) => {
2309
1983
  $metadata: deserializeMetadata(output),
2310
1984
  ...contents,
2311
1985
  };
2312
- return Promise.resolve(response);
1986
+ return response;
2313
1987
  };
2314
1988
  const de_CreateInstanceProfileCommandError = async (output, context) => {
2315
1989
  const parsedOutput = {
@@ -2335,10 +2009,9 @@ const de_CreateInstanceProfileCommandError = async (output, context) => {
2335
2009
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2336
2010
  default:
2337
2011
  const parsedBody = parsedOutput.body;
2338
- throwDefaultError({
2012
+ return throwDefaultError({
2339
2013
  output,
2340
2014
  parsedBody: parsedBody.Error,
2341
- exceptionCtor: __BaseException,
2342
2015
  errorCode,
2343
2016
  });
2344
2017
  }
@@ -2354,7 +2027,7 @@ export const de_CreateLoginProfileCommand = async (output, context) => {
2354
2027
  $metadata: deserializeMetadata(output),
2355
2028
  ...contents,
2356
2029
  };
2357
- return Promise.resolve(response);
2030
+ return response;
2358
2031
  };
2359
2032
  const de_CreateLoginProfileCommandError = async (output, context) => {
2360
2033
  const parsedOutput = {
@@ -2380,10 +2053,9 @@ const de_CreateLoginProfileCommandError = async (output, context) => {
2380
2053
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2381
2054
  default:
2382
2055
  const parsedBody = parsedOutput.body;
2383
- throwDefaultError({
2056
+ return throwDefaultError({
2384
2057
  output,
2385
2058
  parsedBody: parsedBody.Error,
2386
- exceptionCtor: __BaseException,
2387
2059
  errorCode,
2388
2060
  });
2389
2061
  }
@@ -2399,7 +2071,7 @@ export const de_CreateOpenIDConnectProviderCommand = async (output, context) =>
2399
2071
  $metadata: deserializeMetadata(output),
2400
2072
  ...contents,
2401
2073
  };
2402
- return Promise.resolve(response);
2074
+ return response;
2403
2075
  };
2404
2076
  const de_CreateOpenIDConnectProviderCommandError = async (output, context) => {
2405
2077
  const parsedOutput = {
@@ -2425,10 +2097,9 @@ const de_CreateOpenIDConnectProviderCommandError = async (output, context) => {
2425
2097
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2426
2098
  default:
2427
2099
  const parsedBody = parsedOutput.body;
2428
- throwDefaultError({
2100
+ return throwDefaultError({
2429
2101
  output,
2430
2102
  parsedBody: parsedBody.Error,
2431
- exceptionCtor: __BaseException,
2432
2103
  errorCode,
2433
2104
  });
2434
2105
  }
@@ -2444,7 +2115,7 @@ export const de_CreatePolicyCommand = async (output, context) => {
2444
2115
  $metadata: deserializeMetadata(output),
2445
2116
  ...contents,
2446
2117
  };
2447
- return Promise.resolve(response);
2118
+ return response;
2448
2119
  };
2449
2120
  const de_CreatePolicyCommandError = async (output, context) => {
2450
2121
  const parsedOutput = {
@@ -2473,10 +2144,9 @@ const de_CreatePolicyCommandError = async (output, context) => {
2473
2144
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2474
2145
  default:
2475
2146
  const parsedBody = parsedOutput.body;
2476
- throwDefaultError({
2147
+ return throwDefaultError({
2477
2148
  output,
2478
2149
  parsedBody: parsedBody.Error,
2479
- exceptionCtor: __BaseException,
2480
2150
  errorCode,
2481
2151
  });
2482
2152
  }
@@ -2492,7 +2162,7 @@ export const de_CreatePolicyVersionCommand = async (output, context) => {
2492
2162
  $metadata: deserializeMetadata(output),
2493
2163
  ...contents,
2494
2164
  };
2495
- return Promise.resolve(response);
2165
+ return response;
2496
2166
  };
2497
2167
  const de_CreatePolicyVersionCommandError = async (output, context) => {
2498
2168
  const parsedOutput = {
@@ -2518,10 +2188,9 @@ const de_CreatePolicyVersionCommandError = async (output, context) => {
2518
2188
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2519
2189
  default:
2520
2190
  const parsedBody = parsedOutput.body;
2521
- throwDefaultError({
2191
+ return throwDefaultError({
2522
2192
  output,
2523
2193
  parsedBody: parsedBody.Error,
2524
- exceptionCtor: __BaseException,
2525
2194
  errorCode,
2526
2195
  });
2527
2196
  }
@@ -2537,7 +2206,7 @@ export const de_CreateRoleCommand = async (output, context) => {
2537
2206
  $metadata: deserializeMetadata(output),
2538
2207
  ...contents,
2539
2208
  };
2540
- return Promise.resolve(response);
2209
+ return response;
2541
2210
  };
2542
2211
  const de_CreateRoleCommandError = async (output, context) => {
2543
2212
  const parsedOutput = {
@@ -2566,10 +2235,9 @@ const de_CreateRoleCommandError = async (output, context) => {
2566
2235
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2567
2236
  default:
2568
2237
  const parsedBody = parsedOutput.body;
2569
- throwDefaultError({
2238
+ return throwDefaultError({
2570
2239
  output,
2571
2240
  parsedBody: parsedBody.Error,
2572
- exceptionCtor: __BaseException,
2573
2241
  errorCode,
2574
2242
  });
2575
2243
  }
@@ -2585,7 +2253,7 @@ export const de_CreateSAMLProviderCommand = async (output, context) => {
2585
2253
  $metadata: deserializeMetadata(output),
2586
2254
  ...contents,
2587
2255
  };
2588
- return Promise.resolve(response);
2256
+ return response;
2589
2257
  };
2590
2258
  const de_CreateSAMLProviderCommandError = async (output, context) => {
2591
2259
  const parsedOutput = {
@@ -2611,10 +2279,9 @@ const de_CreateSAMLProviderCommandError = async (output, context) => {
2611
2279
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2612
2280
  default:
2613
2281
  const parsedBody = parsedOutput.body;
2614
- throwDefaultError({
2282
+ return throwDefaultError({
2615
2283
  output,
2616
2284
  parsedBody: parsedBody.Error,
2617
- exceptionCtor: __BaseException,
2618
2285
  errorCode,
2619
2286
  });
2620
2287
  }
@@ -2630,7 +2297,7 @@ export const de_CreateServiceLinkedRoleCommand = async (output, context) => {
2630
2297
  $metadata: deserializeMetadata(output),
2631
2298
  ...contents,
2632
2299
  };
2633
- return Promise.resolve(response);
2300
+ return response;
2634
2301
  };
2635
2302
  const de_CreateServiceLinkedRoleCommandError = async (output, context) => {
2636
2303
  const parsedOutput = {
@@ -2653,10 +2320,9 @@ const de_CreateServiceLinkedRoleCommandError = async (output, context) => {
2653
2320
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2654
2321
  default:
2655
2322
  const parsedBody = parsedOutput.body;
2656
- throwDefaultError({
2323
+ return throwDefaultError({
2657
2324
  output,
2658
2325
  parsedBody: parsedBody.Error,
2659
- exceptionCtor: __BaseException,
2660
2326
  errorCode,
2661
2327
  });
2662
2328
  }
@@ -2672,7 +2338,7 @@ export const de_CreateServiceSpecificCredentialCommand = async (output, context)
2672
2338
  $metadata: deserializeMetadata(output),
2673
2339
  ...contents,
2674
2340
  };
2675
- return Promise.resolve(response);
2341
+ return response;
2676
2342
  };
2677
2343
  const de_CreateServiceSpecificCredentialCommandError = async (output, context) => {
2678
2344
  const parsedOutput = {
@@ -2692,10 +2358,9 @@ const de_CreateServiceSpecificCredentialCommandError = async (output, context) =
2692
2358
  throw await de_ServiceNotSupportedExceptionRes(parsedOutput, context);
2693
2359
  default:
2694
2360
  const parsedBody = parsedOutput.body;
2695
- throwDefaultError({
2361
+ return throwDefaultError({
2696
2362
  output,
2697
2363
  parsedBody: parsedBody.Error,
2698
- exceptionCtor: __BaseException,
2699
2364
  errorCode,
2700
2365
  });
2701
2366
  }
@@ -2711,7 +2376,7 @@ export const de_CreateUserCommand = async (output, context) => {
2711
2376
  $metadata: deserializeMetadata(output),
2712
2377
  ...contents,
2713
2378
  };
2714
- return Promise.resolve(response);
2379
+ return response;
2715
2380
  };
2716
2381
  const de_CreateUserCommandError = async (output, context) => {
2717
2382
  const parsedOutput = {
@@ -2740,10 +2405,9 @@ const de_CreateUserCommandError = async (output, context) => {
2740
2405
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2741
2406
  default:
2742
2407
  const parsedBody = parsedOutput.body;
2743
- throwDefaultError({
2408
+ return throwDefaultError({
2744
2409
  output,
2745
2410
  parsedBody: parsedBody.Error,
2746
- exceptionCtor: __BaseException,
2747
2411
  errorCode,
2748
2412
  });
2749
2413
  }
@@ -2759,7 +2423,7 @@ export const de_CreateVirtualMFADeviceCommand = async (output, context) => {
2759
2423
  $metadata: deserializeMetadata(output),
2760
2424
  ...contents,
2761
2425
  };
2762
- return Promise.resolve(response);
2426
+ return response;
2763
2427
  };
2764
2428
  const de_CreateVirtualMFADeviceCommandError = async (output, context) => {
2765
2429
  const parsedOutput = {
@@ -2785,10 +2449,9 @@ const de_CreateVirtualMFADeviceCommandError = async (output, context) => {
2785
2449
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2786
2450
  default:
2787
2451
  const parsedBody = parsedOutput.body;
2788
- throwDefaultError({
2452
+ return throwDefaultError({
2789
2453
  output,
2790
2454
  parsedBody: parsedBody.Error,
2791
- exceptionCtor: __BaseException,
2792
2455
  errorCode,
2793
2456
  });
2794
2457
  }
@@ -2801,7 +2464,7 @@ export const de_DeactivateMFADeviceCommand = async (output, context) => {
2801
2464
  const response = {
2802
2465
  $metadata: deserializeMetadata(output),
2803
2466
  };
2804
- return Promise.resolve(response);
2467
+ return response;
2805
2468
  };
2806
2469
  const de_DeactivateMFADeviceCommandError = async (output, context) => {
2807
2470
  const parsedOutput = {
@@ -2824,10 +2487,9 @@ const de_DeactivateMFADeviceCommandError = async (output, context) => {
2824
2487
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2825
2488
  default:
2826
2489
  const parsedBody = parsedOutput.body;
2827
- throwDefaultError({
2490
+ return throwDefaultError({
2828
2491
  output,
2829
2492
  parsedBody: parsedBody.Error,
2830
- exceptionCtor: __BaseException,
2831
2493
  errorCode,
2832
2494
  });
2833
2495
  }
@@ -2840,7 +2502,7 @@ export const de_DeleteAccessKeyCommand = async (output, context) => {
2840
2502
  const response = {
2841
2503
  $metadata: deserializeMetadata(output),
2842
2504
  };
2843
- return Promise.resolve(response);
2505
+ return response;
2844
2506
  };
2845
2507
  const de_DeleteAccessKeyCommandError = async (output, context) => {
2846
2508
  const parsedOutput = {
@@ -2860,10 +2522,9 @@ const de_DeleteAccessKeyCommandError = async (output, context) => {
2860
2522
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2861
2523
  default:
2862
2524
  const parsedBody = parsedOutput.body;
2863
- throwDefaultError({
2525
+ return throwDefaultError({
2864
2526
  output,
2865
2527
  parsedBody: parsedBody.Error,
2866
- exceptionCtor: __BaseException,
2867
2528
  errorCode,
2868
2529
  });
2869
2530
  }
@@ -2876,7 +2537,7 @@ export const de_DeleteAccountAliasCommand = async (output, context) => {
2876
2537
  const response = {
2877
2538
  $metadata: deserializeMetadata(output),
2878
2539
  };
2879
- return Promise.resolve(response);
2540
+ return response;
2880
2541
  };
2881
2542
  const de_DeleteAccountAliasCommandError = async (output, context) => {
2882
2543
  const parsedOutput = {
@@ -2896,10 +2557,9 @@ const de_DeleteAccountAliasCommandError = async (output, context) => {
2896
2557
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2897
2558
  default:
2898
2559
  const parsedBody = parsedOutput.body;
2899
- throwDefaultError({
2560
+ return throwDefaultError({
2900
2561
  output,
2901
2562
  parsedBody: parsedBody.Error,
2902
- exceptionCtor: __BaseException,
2903
2563
  errorCode,
2904
2564
  });
2905
2565
  }
@@ -2912,7 +2572,7 @@ export const de_DeleteAccountPasswordPolicyCommand = async (output, context) =>
2912
2572
  const response = {
2913
2573
  $metadata: deserializeMetadata(output),
2914
2574
  };
2915
- return Promise.resolve(response);
2575
+ return response;
2916
2576
  };
2917
2577
  const de_DeleteAccountPasswordPolicyCommandError = async (output, context) => {
2918
2578
  const parsedOutput = {
@@ -2932,10 +2592,9 @@ const de_DeleteAccountPasswordPolicyCommandError = async (output, context) => {
2932
2592
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2933
2593
  default:
2934
2594
  const parsedBody = parsedOutput.body;
2935
- throwDefaultError({
2595
+ return throwDefaultError({
2936
2596
  output,
2937
2597
  parsedBody: parsedBody.Error,
2938
- exceptionCtor: __BaseException,
2939
2598
  errorCode,
2940
2599
  });
2941
2600
  }
@@ -2948,7 +2607,7 @@ export const de_DeleteGroupCommand = async (output, context) => {
2948
2607
  const response = {
2949
2608
  $metadata: deserializeMetadata(output),
2950
2609
  };
2951
- return Promise.resolve(response);
2610
+ return response;
2952
2611
  };
2953
2612
  const de_DeleteGroupCommandError = async (output, context) => {
2954
2613
  const parsedOutput = {
@@ -2971,10 +2630,9 @@ const de_DeleteGroupCommandError = async (output, context) => {
2971
2630
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2972
2631
  default:
2973
2632
  const parsedBody = parsedOutput.body;
2974
- throwDefaultError({
2633
+ return throwDefaultError({
2975
2634
  output,
2976
2635
  parsedBody: parsedBody.Error,
2977
- exceptionCtor: __BaseException,
2978
2636
  errorCode,
2979
2637
  });
2980
2638
  }
@@ -2987,7 +2645,7 @@ export const de_DeleteGroupPolicyCommand = async (output, context) => {
2987
2645
  const response = {
2988
2646
  $metadata: deserializeMetadata(output),
2989
2647
  };
2990
- return Promise.resolve(response);
2648
+ return response;
2991
2649
  };
2992
2650
  const de_DeleteGroupPolicyCommandError = async (output, context) => {
2993
2651
  const parsedOutput = {
@@ -3007,10 +2665,9 @@ const de_DeleteGroupPolicyCommandError = async (output, context) => {
3007
2665
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3008
2666
  default:
3009
2667
  const parsedBody = parsedOutput.body;
3010
- throwDefaultError({
2668
+ return throwDefaultError({
3011
2669
  output,
3012
2670
  parsedBody: parsedBody.Error,
3013
- exceptionCtor: __BaseException,
3014
2671
  errorCode,
3015
2672
  });
3016
2673
  }
@@ -3023,7 +2680,7 @@ export const de_DeleteInstanceProfileCommand = async (output, context) => {
3023
2680
  const response = {
3024
2681
  $metadata: deserializeMetadata(output),
3025
2682
  };
3026
- return Promise.resolve(response);
2683
+ return response;
3027
2684
  };
3028
2685
  const de_DeleteInstanceProfileCommandError = async (output, context) => {
3029
2686
  const parsedOutput = {
@@ -3046,10 +2703,9 @@ const de_DeleteInstanceProfileCommandError = async (output, context) => {
3046
2703
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3047
2704
  default:
3048
2705
  const parsedBody = parsedOutput.body;
3049
- throwDefaultError({
2706
+ return throwDefaultError({
3050
2707
  output,
3051
2708
  parsedBody: parsedBody.Error,
3052
- exceptionCtor: __BaseException,
3053
2709
  errorCode,
3054
2710
  });
3055
2711
  }
@@ -3062,7 +2718,7 @@ export const de_DeleteLoginProfileCommand = async (output, context) => {
3062
2718
  const response = {
3063
2719
  $metadata: deserializeMetadata(output),
3064
2720
  };
3065
- return Promise.resolve(response);
2721
+ return response;
3066
2722
  };
3067
2723
  const de_DeleteLoginProfileCommandError = async (output, context) => {
3068
2724
  const parsedOutput = {
@@ -3085,10 +2741,9 @@ const de_DeleteLoginProfileCommandError = async (output, context) => {
3085
2741
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3086
2742
  default:
3087
2743
  const parsedBody = parsedOutput.body;
3088
- throwDefaultError({
2744
+ return throwDefaultError({
3089
2745
  output,
3090
2746
  parsedBody: parsedBody.Error,
3091
- exceptionCtor: __BaseException,
3092
2747
  errorCode,
3093
2748
  });
3094
2749
  }
@@ -3101,7 +2756,7 @@ export const de_DeleteOpenIDConnectProviderCommand = async (output, context) =>
3101
2756
  const response = {
3102
2757
  $metadata: deserializeMetadata(output),
3103
2758
  };
3104
- return Promise.resolve(response);
2759
+ return response;
3105
2760
  };
3106
2761
  const de_DeleteOpenIDConnectProviderCommandError = async (output, context) => {
3107
2762
  const parsedOutput = {
@@ -3121,10 +2776,9 @@ const de_DeleteOpenIDConnectProviderCommandError = async (output, context) => {
3121
2776
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3122
2777
  default:
3123
2778
  const parsedBody = parsedOutput.body;
3124
- throwDefaultError({
2779
+ return throwDefaultError({
3125
2780
  output,
3126
2781
  parsedBody: parsedBody.Error,
3127
- exceptionCtor: __BaseException,
3128
2782
  errorCode,
3129
2783
  });
3130
2784
  }
@@ -3137,7 +2791,7 @@ export const de_DeletePolicyCommand = async (output, context) => {
3137
2791
  const response = {
3138
2792
  $metadata: deserializeMetadata(output),
3139
2793
  };
3140
- return Promise.resolve(response);
2794
+ return response;
3141
2795
  };
3142
2796
  const de_DeletePolicyCommandError = async (output, context) => {
3143
2797
  const parsedOutput = {
@@ -3163,10 +2817,9 @@ const de_DeletePolicyCommandError = async (output, context) => {
3163
2817
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3164
2818
  default:
3165
2819
  const parsedBody = parsedOutput.body;
3166
- throwDefaultError({
2820
+ return throwDefaultError({
3167
2821
  output,
3168
2822
  parsedBody: parsedBody.Error,
3169
- exceptionCtor: __BaseException,
3170
2823
  errorCode,
3171
2824
  });
3172
2825
  }
@@ -3179,7 +2832,7 @@ export const de_DeletePolicyVersionCommand = async (output, context) => {
3179
2832
  const response = {
3180
2833
  $metadata: deserializeMetadata(output),
3181
2834
  };
3182
- return Promise.resolve(response);
2835
+ return response;
3183
2836
  };
3184
2837
  const de_DeletePolicyVersionCommandError = async (output, context) => {
3185
2838
  const parsedOutput = {
@@ -3205,10 +2858,9 @@ const de_DeletePolicyVersionCommandError = async (output, context) => {
3205
2858
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3206
2859
  default:
3207
2860
  const parsedBody = parsedOutput.body;
3208
- throwDefaultError({
2861
+ return throwDefaultError({
3209
2862
  output,
3210
2863
  parsedBody: parsedBody.Error,
3211
- exceptionCtor: __BaseException,
3212
2864
  errorCode,
3213
2865
  });
3214
2866
  }
@@ -3221,7 +2873,7 @@ export const de_DeleteRoleCommand = async (output, context) => {
3221
2873
  const response = {
3222
2874
  $metadata: deserializeMetadata(output),
3223
2875
  };
3224
- return Promise.resolve(response);
2876
+ return response;
3225
2877
  };
3226
2878
  const de_DeleteRoleCommandError = async (output, context) => {
3227
2879
  const parsedOutput = {
@@ -3250,10 +2902,9 @@ const de_DeleteRoleCommandError = async (output, context) => {
3250
2902
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
3251
2903
  default:
3252
2904
  const parsedBody = parsedOutput.body;
3253
- throwDefaultError({
2905
+ return throwDefaultError({
3254
2906
  output,
3255
2907
  parsedBody: parsedBody.Error,
3256
- exceptionCtor: __BaseException,
3257
2908
  errorCode,
3258
2909
  });
3259
2910
  }
@@ -3266,7 +2917,7 @@ export const de_DeleteRolePermissionsBoundaryCommand = async (output, context) =
3266
2917
  const response = {
3267
2918
  $metadata: deserializeMetadata(output),
3268
2919
  };
3269
- return Promise.resolve(response);
2920
+ return response;
3270
2921
  };
3271
2922
  const de_DeleteRolePermissionsBoundaryCommandError = async (output, context) => {
3272
2923
  const parsedOutput = {
@@ -3286,10 +2937,9 @@ const de_DeleteRolePermissionsBoundaryCommandError = async (output, context) =>
3286
2937
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
3287
2938
  default:
3288
2939
  const parsedBody = parsedOutput.body;
3289
- throwDefaultError({
2940
+ return throwDefaultError({
3290
2941
  output,
3291
2942
  parsedBody: parsedBody.Error,
3292
- exceptionCtor: __BaseException,
3293
2943
  errorCode,
3294
2944
  });
3295
2945
  }
@@ -3302,7 +2952,7 @@ export const de_DeleteRolePolicyCommand = async (output, context) => {
3302
2952
  const response = {
3303
2953
  $metadata: deserializeMetadata(output),
3304
2954
  };
3305
- return Promise.resolve(response);
2955
+ return response;
3306
2956
  };
3307
2957
  const de_DeleteRolePolicyCommandError = async (output, context) => {
3308
2958
  const parsedOutput = {
@@ -3325,10 +2975,9 @@ const de_DeleteRolePolicyCommandError = async (output, context) => {
3325
2975
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
3326
2976
  default:
3327
2977
  const parsedBody = parsedOutput.body;
3328
- throwDefaultError({
2978
+ return throwDefaultError({
3329
2979
  output,
3330
2980
  parsedBody: parsedBody.Error,
3331
- exceptionCtor: __BaseException,
3332
2981
  errorCode,
3333
2982
  });
3334
2983
  }
@@ -3341,7 +2990,7 @@ export const de_DeleteSAMLProviderCommand = async (output, context) => {
3341
2990
  const response = {
3342
2991
  $metadata: deserializeMetadata(output),
3343
2992
  };
3344
- return Promise.resolve(response);
2993
+ return response;
3345
2994
  };
3346
2995
  const de_DeleteSAMLProviderCommandError = async (output, context) => {
3347
2996
  const parsedOutput = {
@@ -3364,10 +3013,9 @@ const de_DeleteSAMLProviderCommandError = async (output, context) => {
3364
3013
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3365
3014
  default:
3366
3015
  const parsedBody = parsedOutput.body;
3367
- throwDefaultError({
3016
+ return throwDefaultError({
3368
3017
  output,
3369
3018
  parsedBody: parsedBody.Error,
3370
- exceptionCtor: __BaseException,
3371
3019
  errorCode,
3372
3020
  });
3373
3021
  }
@@ -3380,7 +3028,7 @@ export const de_DeleteServerCertificateCommand = async (output, context) => {
3380
3028
  const response = {
3381
3029
  $metadata: deserializeMetadata(output),
3382
3030
  };
3383
- return Promise.resolve(response);
3031
+ return response;
3384
3032
  };
3385
3033
  const de_DeleteServerCertificateCommandError = async (output, context) => {
3386
3034
  const parsedOutput = {
@@ -3403,10 +3051,9 @@ const de_DeleteServerCertificateCommandError = async (output, context) => {
3403
3051
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3404
3052
  default:
3405
3053
  const parsedBody = parsedOutput.body;
3406
- throwDefaultError({
3054
+ return throwDefaultError({
3407
3055
  output,
3408
3056
  parsedBody: parsedBody.Error,
3409
- exceptionCtor: __BaseException,
3410
3057
  errorCode,
3411
3058
  });
3412
3059
  }
@@ -3422,7 +3069,7 @@ export const de_DeleteServiceLinkedRoleCommand = async (output, context) => {
3422
3069
  $metadata: deserializeMetadata(output),
3423
3070
  ...contents,
3424
3071
  };
3425
- return Promise.resolve(response);
3072
+ return response;
3426
3073
  };
3427
3074
  const de_DeleteServiceLinkedRoleCommandError = async (output, context) => {
3428
3075
  const parsedOutput = {
@@ -3442,10 +3089,9 @@ const de_DeleteServiceLinkedRoleCommandError = async (output, context) => {
3442
3089
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3443
3090
  default:
3444
3091
  const parsedBody = parsedOutput.body;
3445
- throwDefaultError({
3092
+ return throwDefaultError({
3446
3093
  output,
3447
3094
  parsedBody: parsedBody.Error,
3448
- exceptionCtor: __BaseException,
3449
3095
  errorCode,
3450
3096
  });
3451
3097
  }
@@ -3458,7 +3104,7 @@ export const de_DeleteServiceSpecificCredentialCommand = async (output, context)
3458
3104
  const response = {
3459
3105
  $metadata: deserializeMetadata(output),
3460
3106
  };
3461
- return Promise.resolve(response);
3107
+ return response;
3462
3108
  };
3463
3109
  const de_DeleteServiceSpecificCredentialCommandError = async (output, context) => {
3464
3110
  const parsedOutput = {
@@ -3472,10 +3118,9 @@ const de_DeleteServiceSpecificCredentialCommandError = async (output, context) =
3472
3118
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
3473
3119
  default:
3474
3120
  const parsedBody = parsedOutput.body;
3475
- throwDefaultError({
3121
+ return throwDefaultError({
3476
3122
  output,
3477
3123
  parsedBody: parsedBody.Error,
3478
- exceptionCtor: __BaseException,
3479
3124
  errorCode,
3480
3125
  });
3481
3126
  }
@@ -3488,7 +3133,7 @@ export const de_DeleteSigningCertificateCommand = async (output, context) => {
3488
3133
  const response = {
3489
3134
  $metadata: deserializeMetadata(output),
3490
3135
  };
3491
- return Promise.resolve(response);
3136
+ return response;
3492
3137
  };
3493
3138
  const de_DeleteSigningCertificateCommandError = async (output, context) => {
3494
3139
  const parsedOutput = {
@@ -3508,10 +3153,9 @@ const de_DeleteSigningCertificateCommandError = async (output, context) => {
3508
3153
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3509
3154
  default:
3510
3155
  const parsedBody = parsedOutput.body;
3511
- throwDefaultError({
3156
+ return throwDefaultError({
3512
3157
  output,
3513
3158
  parsedBody: parsedBody.Error,
3514
- exceptionCtor: __BaseException,
3515
3159
  errorCode,
3516
3160
  });
3517
3161
  }
@@ -3524,7 +3168,7 @@ export const de_DeleteSSHPublicKeyCommand = async (output, context) => {
3524
3168
  const response = {
3525
3169
  $metadata: deserializeMetadata(output),
3526
3170
  };
3527
- return Promise.resolve(response);
3171
+ return response;
3528
3172
  };
3529
3173
  const de_DeleteSSHPublicKeyCommandError = async (output, context) => {
3530
3174
  const parsedOutput = {
@@ -3538,10 +3182,9 @@ const de_DeleteSSHPublicKeyCommandError = async (output, context) => {
3538
3182
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
3539
3183
  default:
3540
3184
  const parsedBody = parsedOutput.body;
3541
- throwDefaultError({
3185
+ return throwDefaultError({
3542
3186
  output,
3543
3187
  parsedBody: parsedBody.Error,
3544
- exceptionCtor: __BaseException,
3545
3188
  errorCode,
3546
3189
  });
3547
3190
  }
@@ -3554,7 +3197,7 @@ export const de_DeleteUserCommand = async (output, context) => {
3554
3197
  const response = {
3555
3198
  $metadata: deserializeMetadata(output),
3556
3199
  };
3557
- return Promise.resolve(response);
3200
+ return response;
3558
3201
  };
3559
3202
  const de_DeleteUserCommandError = async (output, context) => {
3560
3203
  const parsedOutput = {
@@ -3580,10 +3223,9 @@ const de_DeleteUserCommandError = async (output, context) => {
3580
3223
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3581
3224
  default:
3582
3225
  const parsedBody = parsedOutput.body;
3583
- throwDefaultError({
3226
+ return throwDefaultError({
3584
3227
  output,
3585
3228
  parsedBody: parsedBody.Error,
3586
- exceptionCtor: __BaseException,
3587
3229
  errorCode,
3588
3230
  });
3589
3231
  }
@@ -3596,7 +3238,7 @@ export const de_DeleteUserPermissionsBoundaryCommand = async (output, context) =
3596
3238
  const response = {
3597
3239
  $metadata: deserializeMetadata(output),
3598
3240
  };
3599
- return Promise.resolve(response);
3241
+ return response;
3600
3242
  };
3601
3243
  const de_DeleteUserPermissionsBoundaryCommandError = async (output, context) => {
3602
3244
  const parsedOutput = {
@@ -3613,10 +3255,9 @@ const de_DeleteUserPermissionsBoundaryCommandError = async (output, context) =>
3613
3255
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3614
3256
  default:
3615
3257
  const parsedBody = parsedOutput.body;
3616
- throwDefaultError({
3258
+ return throwDefaultError({
3617
3259
  output,
3618
3260
  parsedBody: parsedBody.Error,
3619
- exceptionCtor: __BaseException,
3620
3261
  errorCode,
3621
3262
  });
3622
3263
  }
@@ -3629,7 +3270,7 @@ export const de_DeleteUserPolicyCommand = async (output, context) => {
3629
3270
  const response = {
3630
3271
  $metadata: deserializeMetadata(output),
3631
3272
  };
3632
- return Promise.resolve(response);
3273
+ return response;
3633
3274
  };
3634
3275
  const de_DeleteUserPolicyCommandError = async (output, context) => {
3635
3276
  const parsedOutput = {
@@ -3649,10 +3290,9 @@ const de_DeleteUserPolicyCommandError = async (output, context) => {
3649
3290
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3650
3291
  default:
3651
3292
  const parsedBody = parsedOutput.body;
3652
- throwDefaultError({
3293
+ return throwDefaultError({
3653
3294
  output,
3654
3295
  parsedBody: parsedBody.Error,
3655
- exceptionCtor: __BaseException,
3656
3296
  errorCode,
3657
3297
  });
3658
3298
  }
@@ -3665,7 +3305,7 @@ export const de_DeleteVirtualMFADeviceCommand = async (output, context) => {
3665
3305
  const response = {
3666
3306
  $metadata: deserializeMetadata(output),
3667
3307
  };
3668
- return Promise.resolve(response);
3308
+ return response;
3669
3309
  };
3670
3310
  const de_DeleteVirtualMFADeviceCommandError = async (output, context) => {
3671
3311
  const parsedOutput = {
@@ -3688,10 +3328,9 @@ const de_DeleteVirtualMFADeviceCommandError = async (output, context) => {
3688
3328
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3689
3329
  default:
3690
3330
  const parsedBody = parsedOutput.body;
3691
- throwDefaultError({
3331
+ return throwDefaultError({
3692
3332
  output,
3693
3333
  parsedBody: parsedBody.Error,
3694
- exceptionCtor: __BaseException,
3695
3334
  errorCode,
3696
3335
  });
3697
3336
  }
@@ -3704,7 +3343,7 @@ export const de_DetachGroupPolicyCommand = async (output, context) => {
3704
3343
  const response = {
3705
3344
  $metadata: deserializeMetadata(output),
3706
3345
  };
3707
- return Promise.resolve(response);
3346
+ return response;
3708
3347
  };
3709
3348
  const de_DetachGroupPolicyCommandError = async (output, context) => {
3710
3349
  const parsedOutput = {
@@ -3727,10 +3366,9 @@ const de_DetachGroupPolicyCommandError = async (output, context) => {
3727
3366
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3728
3367
  default:
3729
3368
  const parsedBody = parsedOutput.body;
3730
- throwDefaultError({
3369
+ return throwDefaultError({
3731
3370
  output,
3732
3371
  parsedBody: parsedBody.Error,
3733
- exceptionCtor: __BaseException,
3734
3372
  errorCode,
3735
3373
  });
3736
3374
  }
@@ -3743,7 +3381,7 @@ export const de_DetachRolePolicyCommand = async (output, context) => {
3743
3381
  const response = {
3744
3382
  $metadata: deserializeMetadata(output),
3745
3383
  };
3746
- return Promise.resolve(response);
3384
+ return response;
3747
3385
  };
3748
3386
  const de_DetachRolePolicyCommandError = async (output, context) => {
3749
3387
  const parsedOutput = {
@@ -3769,10 +3407,9 @@ const de_DetachRolePolicyCommandError = async (output, context) => {
3769
3407
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
3770
3408
  default:
3771
3409
  const parsedBody = parsedOutput.body;
3772
- throwDefaultError({
3410
+ return throwDefaultError({
3773
3411
  output,
3774
3412
  parsedBody: parsedBody.Error,
3775
- exceptionCtor: __BaseException,
3776
3413
  errorCode,
3777
3414
  });
3778
3415
  }
@@ -3785,7 +3422,7 @@ export const de_DetachUserPolicyCommand = async (output, context) => {
3785
3422
  const response = {
3786
3423
  $metadata: deserializeMetadata(output),
3787
3424
  };
3788
- return Promise.resolve(response);
3425
+ return response;
3789
3426
  };
3790
3427
  const de_DetachUserPolicyCommandError = async (output, context) => {
3791
3428
  const parsedOutput = {
@@ -3808,10 +3445,9 @@ const de_DetachUserPolicyCommandError = async (output, context) => {
3808
3445
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3809
3446
  default:
3810
3447
  const parsedBody = parsedOutput.body;
3811
- throwDefaultError({
3448
+ return throwDefaultError({
3812
3449
  output,
3813
3450
  parsedBody: parsedBody.Error,
3814
- exceptionCtor: __BaseException,
3815
3451
  errorCode,
3816
3452
  });
3817
3453
  }
@@ -3824,7 +3460,7 @@ export const de_EnableMFADeviceCommand = async (output, context) => {
3824
3460
  const response = {
3825
3461
  $metadata: deserializeMetadata(output),
3826
3462
  };
3827
- return Promise.resolve(response);
3463
+ return response;
3828
3464
  };
3829
3465
  const de_EnableMFADeviceCommandError = async (output, context) => {
3830
3466
  const parsedOutput = {
@@ -3853,10 +3489,9 @@ const de_EnableMFADeviceCommandError = async (output, context) => {
3853
3489
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3854
3490
  default:
3855
3491
  const parsedBody = parsedOutput.body;
3856
- throwDefaultError({
3492
+ return throwDefaultError({
3857
3493
  output,
3858
3494
  parsedBody: parsedBody.Error,
3859
- exceptionCtor: __BaseException,
3860
3495
  errorCode,
3861
3496
  });
3862
3497
  }
@@ -3872,7 +3507,7 @@ export const de_GenerateCredentialReportCommand = async (output, context) => {
3872
3507
  $metadata: deserializeMetadata(output),
3873
3508
  ...contents,
3874
3509
  };
3875
- return Promise.resolve(response);
3510
+ return response;
3876
3511
  };
3877
3512
  const de_GenerateCredentialReportCommandError = async (output, context) => {
3878
3513
  const parsedOutput = {
@@ -3889,10 +3524,9 @@ const de_GenerateCredentialReportCommandError = async (output, context) => {
3889
3524
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3890
3525
  default:
3891
3526
  const parsedBody = parsedOutput.body;
3892
- throwDefaultError({
3527
+ return throwDefaultError({
3893
3528
  output,
3894
3529
  parsedBody: parsedBody.Error,
3895
- exceptionCtor: __BaseException,
3896
3530
  errorCode,
3897
3531
  });
3898
3532
  }
@@ -3908,7 +3542,7 @@ export const de_GenerateOrganizationsAccessReportCommand = async (output, contex
3908
3542
  $metadata: deserializeMetadata(output),
3909
3543
  ...contents,
3910
3544
  };
3911
- return Promise.resolve(response);
3545
+ return response;
3912
3546
  };
3913
3547
  const de_GenerateOrganizationsAccessReportCommandError = async (output, context) => {
3914
3548
  const parsedOutput = {
@@ -3922,10 +3556,9 @@ const de_GenerateOrganizationsAccessReportCommandError = async (output, context)
3922
3556
  throw await de_ReportGenerationLimitExceededExceptionRes(parsedOutput, context);
3923
3557
  default:
3924
3558
  const parsedBody = parsedOutput.body;
3925
- throwDefaultError({
3559
+ return throwDefaultError({
3926
3560
  output,
3927
3561
  parsedBody: parsedBody.Error,
3928
- exceptionCtor: __BaseException,
3929
3562
  errorCode,
3930
3563
  });
3931
3564
  }
@@ -3941,7 +3574,7 @@ export const de_GenerateServiceLastAccessedDetailsCommand = async (output, conte
3941
3574
  $metadata: deserializeMetadata(output),
3942
3575
  ...contents,
3943
3576
  };
3944
- return Promise.resolve(response);
3577
+ return response;
3945
3578
  };
3946
3579
  const de_GenerateServiceLastAccessedDetailsCommandError = async (output, context) => {
3947
3580
  const parsedOutput = {
@@ -3958,10 +3591,9 @@ const de_GenerateServiceLastAccessedDetailsCommandError = async (output, context
3958
3591
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
3959
3592
  default:
3960
3593
  const parsedBody = parsedOutput.body;
3961
- throwDefaultError({
3594
+ return throwDefaultError({
3962
3595
  output,
3963
3596
  parsedBody: parsedBody.Error,
3964
- exceptionCtor: __BaseException,
3965
3597
  errorCode,
3966
3598
  });
3967
3599
  }
@@ -3977,7 +3609,7 @@ export const de_GetAccessKeyLastUsedCommand = async (output, context) => {
3977
3609
  $metadata: deserializeMetadata(output),
3978
3610
  ...contents,
3979
3611
  };
3980
- return Promise.resolve(response);
3612
+ return response;
3981
3613
  };
3982
3614
  const de_GetAccessKeyLastUsedCommandError = async (output, context) => {
3983
3615
  const parsedOutput = {
@@ -3991,10 +3623,9 @@ const de_GetAccessKeyLastUsedCommandError = async (output, context) => {
3991
3623
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
3992
3624
  default:
3993
3625
  const parsedBody = parsedOutput.body;
3994
- throwDefaultError({
3626
+ return throwDefaultError({
3995
3627
  output,
3996
3628
  parsedBody: parsedBody.Error,
3997
- exceptionCtor: __BaseException,
3998
3629
  errorCode,
3999
3630
  });
4000
3631
  }
@@ -4010,7 +3641,7 @@ export const de_GetAccountAuthorizationDetailsCommand = async (output, context)
4010
3641
  $metadata: deserializeMetadata(output),
4011
3642
  ...contents,
4012
3643
  };
4013
- return Promise.resolve(response);
3644
+ return response;
4014
3645
  };
4015
3646
  const de_GetAccountAuthorizationDetailsCommandError = async (output, context) => {
4016
3647
  const parsedOutput = {
@@ -4024,10 +3655,9 @@ const de_GetAccountAuthorizationDetailsCommandError = async (output, context) =>
4024
3655
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4025
3656
  default:
4026
3657
  const parsedBody = parsedOutput.body;
4027
- throwDefaultError({
3658
+ return throwDefaultError({
4028
3659
  output,
4029
3660
  parsedBody: parsedBody.Error,
4030
- exceptionCtor: __BaseException,
4031
3661
  errorCode,
4032
3662
  });
4033
3663
  }
@@ -4043,7 +3673,7 @@ export const de_GetAccountPasswordPolicyCommand = async (output, context) => {
4043
3673
  $metadata: deserializeMetadata(output),
4044
3674
  ...contents,
4045
3675
  };
4046
- return Promise.resolve(response);
3676
+ return response;
4047
3677
  };
4048
3678
  const de_GetAccountPasswordPolicyCommandError = async (output, context) => {
4049
3679
  const parsedOutput = {
@@ -4060,10 +3690,9 @@ const de_GetAccountPasswordPolicyCommandError = async (output, context) => {
4060
3690
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4061
3691
  default:
4062
3692
  const parsedBody = parsedOutput.body;
4063
- throwDefaultError({
3693
+ return throwDefaultError({
4064
3694
  output,
4065
3695
  parsedBody: parsedBody.Error,
4066
- exceptionCtor: __BaseException,
4067
3696
  errorCode,
4068
3697
  });
4069
3698
  }
@@ -4079,7 +3708,7 @@ export const de_GetAccountSummaryCommand = async (output, context) => {
4079
3708
  $metadata: deserializeMetadata(output),
4080
3709
  ...contents,
4081
3710
  };
4082
- return Promise.resolve(response);
3711
+ return response;
4083
3712
  };
4084
3713
  const de_GetAccountSummaryCommandError = async (output, context) => {
4085
3714
  const parsedOutput = {
@@ -4093,10 +3722,9 @@ const de_GetAccountSummaryCommandError = async (output, context) => {
4093
3722
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4094
3723
  default:
4095
3724
  const parsedBody = parsedOutput.body;
4096
- throwDefaultError({
3725
+ return throwDefaultError({
4097
3726
  output,
4098
3727
  parsedBody: parsedBody.Error,
4099
- exceptionCtor: __BaseException,
4100
3728
  errorCode,
4101
3729
  });
4102
3730
  }
@@ -4112,7 +3740,7 @@ export const de_GetContextKeysForCustomPolicyCommand = async (output, context) =
4112
3740
  $metadata: deserializeMetadata(output),
4113
3741
  ...contents,
4114
3742
  };
4115
- return Promise.resolve(response);
3743
+ return response;
4116
3744
  };
4117
3745
  const de_GetContextKeysForCustomPolicyCommandError = async (output, context) => {
4118
3746
  const parsedOutput = {
@@ -4126,10 +3754,9 @@ const de_GetContextKeysForCustomPolicyCommandError = async (output, context) =>
4126
3754
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
4127
3755
  default:
4128
3756
  const parsedBody = parsedOutput.body;
4129
- throwDefaultError({
3757
+ return throwDefaultError({
4130
3758
  output,
4131
3759
  parsedBody: parsedBody.Error,
4132
- exceptionCtor: __BaseException,
4133
3760
  errorCode,
4134
3761
  });
4135
3762
  }
@@ -4145,7 +3772,7 @@ export const de_GetContextKeysForPrincipalPolicyCommand = async (output, context
4145
3772
  $metadata: deserializeMetadata(output),
4146
3773
  ...contents,
4147
3774
  };
4148
- return Promise.resolve(response);
3775
+ return response;
4149
3776
  };
4150
3777
  const de_GetContextKeysForPrincipalPolicyCommandError = async (output, context) => {
4151
3778
  const parsedOutput = {
@@ -4162,10 +3789,9 @@ const de_GetContextKeysForPrincipalPolicyCommandError = async (output, context)
4162
3789
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
4163
3790
  default:
4164
3791
  const parsedBody = parsedOutput.body;
4165
- throwDefaultError({
3792
+ return throwDefaultError({
4166
3793
  output,
4167
3794
  parsedBody: parsedBody.Error,
4168
- exceptionCtor: __BaseException,
4169
3795
  errorCode,
4170
3796
  });
4171
3797
  }
@@ -4181,7 +3807,7 @@ export const de_GetCredentialReportCommand = async (output, context) => {
4181
3807
  $metadata: deserializeMetadata(output),
4182
3808
  ...contents,
4183
3809
  };
4184
- return Promise.resolve(response);
3810
+ return response;
4185
3811
  };
4186
3812
  const de_GetCredentialReportCommandError = async (output, context) => {
4187
3813
  const parsedOutput = {
@@ -4204,10 +3830,9 @@ const de_GetCredentialReportCommandError = async (output, context) => {
4204
3830
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4205
3831
  default:
4206
3832
  const parsedBody = parsedOutput.body;
4207
- throwDefaultError({
3833
+ return throwDefaultError({
4208
3834
  output,
4209
3835
  parsedBody: parsedBody.Error,
4210
- exceptionCtor: __BaseException,
4211
3836
  errorCode,
4212
3837
  });
4213
3838
  }
@@ -4223,7 +3848,7 @@ export const de_GetGroupCommand = async (output, context) => {
4223
3848
  $metadata: deserializeMetadata(output),
4224
3849
  ...contents,
4225
3850
  };
4226
- return Promise.resolve(response);
3851
+ return response;
4227
3852
  };
4228
3853
  const de_GetGroupCommandError = async (output, context) => {
4229
3854
  const parsedOutput = {
@@ -4240,10 +3865,9 @@ const de_GetGroupCommandError = async (output, context) => {
4240
3865
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4241
3866
  default:
4242
3867
  const parsedBody = parsedOutput.body;
4243
- throwDefaultError({
3868
+ return throwDefaultError({
4244
3869
  output,
4245
3870
  parsedBody: parsedBody.Error,
4246
- exceptionCtor: __BaseException,
4247
3871
  errorCode,
4248
3872
  });
4249
3873
  }
@@ -4259,7 +3883,7 @@ export const de_GetGroupPolicyCommand = async (output, context) => {
4259
3883
  $metadata: deserializeMetadata(output),
4260
3884
  ...contents,
4261
3885
  };
4262
- return Promise.resolve(response);
3886
+ return response;
4263
3887
  };
4264
3888
  const de_GetGroupPolicyCommandError = async (output, context) => {
4265
3889
  const parsedOutput = {
@@ -4276,10 +3900,9 @@ const de_GetGroupPolicyCommandError = async (output, context) => {
4276
3900
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4277
3901
  default:
4278
3902
  const parsedBody = parsedOutput.body;
4279
- throwDefaultError({
3903
+ return throwDefaultError({
4280
3904
  output,
4281
3905
  parsedBody: parsedBody.Error,
4282
- exceptionCtor: __BaseException,
4283
3906
  errorCode,
4284
3907
  });
4285
3908
  }
@@ -4295,7 +3918,7 @@ export const de_GetInstanceProfileCommand = async (output, context) => {
4295
3918
  $metadata: deserializeMetadata(output),
4296
3919
  ...contents,
4297
3920
  };
4298
- return Promise.resolve(response);
3921
+ return response;
4299
3922
  };
4300
3923
  const de_GetInstanceProfileCommandError = async (output, context) => {
4301
3924
  const parsedOutput = {
@@ -4312,10 +3935,9 @@ const de_GetInstanceProfileCommandError = async (output, context) => {
4312
3935
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4313
3936
  default:
4314
3937
  const parsedBody = parsedOutput.body;
4315
- throwDefaultError({
3938
+ return throwDefaultError({
4316
3939
  output,
4317
3940
  parsedBody: parsedBody.Error,
4318
- exceptionCtor: __BaseException,
4319
3941
  errorCode,
4320
3942
  });
4321
3943
  }
@@ -4331,7 +3953,7 @@ export const de_GetLoginProfileCommand = async (output, context) => {
4331
3953
  $metadata: deserializeMetadata(output),
4332
3954
  ...contents,
4333
3955
  };
4334
- return Promise.resolve(response);
3956
+ return response;
4335
3957
  };
4336
3958
  const de_GetLoginProfileCommandError = async (output, context) => {
4337
3959
  const parsedOutput = {
@@ -4348,10 +3970,9 @@ const de_GetLoginProfileCommandError = async (output, context) => {
4348
3970
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4349
3971
  default:
4350
3972
  const parsedBody = parsedOutput.body;
4351
- throwDefaultError({
3973
+ return throwDefaultError({
4352
3974
  output,
4353
3975
  parsedBody: parsedBody.Error,
4354
- exceptionCtor: __BaseException,
4355
3976
  errorCode,
4356
3977
  });
4357
3978
  }
@@ -4367,7 +3988,7 @@ export const de_GetOpenIDConnectProviderCommand = async (output, context) => {
4367
3988
  $metadata: deserializeMetadata(output),
4368
3989
  ...contents,
4369
3990
  };
4370
- return Promise.resolve(response);
3991
+ return response;
4371
3992
  };
4372
3993
  const de_GetOpenIDConnectProviderCommandError = async (output, context) => {
4373
3994
  const parsedOutput = {
@@ -4387,10 +4008,9 @@ const de_GetOpenIDConnectProviderCommandError = async (output, context) => {
4387
4008
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4388
4009
  default:
4389
4010
  const parsedBody = parsedOutput.body;
4390
- throwDefaultError({
4011
+ return throwDefaultError({
4391
4012
  output,
4392
4013
  parsedBody: parsedBody.Error,
4393
- exceptionCtor: __BaseException,
4394
4014
  errorCode,
4395
4015
  });
4396
4016
  }
@@ -4406,7 +4026,7 @@ export const de_GetOrganizationsAccessReportCommand = async (output, context) =>
4406
4026
  $metadata: deserializeMetadata(output),
4407
4027
  ...contents,
4408
4028
  };
4409
- return Promise.resolve(response);
4029
+ return response;
4410
4030
  };
4411
4031
  const de_GetOrganizationsAccessReportCommandError = async (output, context) => {
4412
4032
  const parsedOutput = {
@@ -4420,10 +4040,9 @@ const de_GetOrganizationsAccessReportCommandError = async (output, context) => {
4420
4040
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
4421
4041
  default:
4422
4042
  const parsedBody = parsedOutput.body;
4423
- throwDefaultError({
4043
+ return throwDefaultError({
4424
4044
  output,
4425
4045
  parsedBody: parsedBody.Error,
4426
- exceptionCtor: __BaseException,
4427
4046
  errorCode,
4428
4047
  });
4429
4048
  }
@@ -4439,7 +4058,7 @@ export const de_GetPolicyCommand = async (output, context) => {
4439
4058
  $metadata: deserializeMetadata(output),
4440
4059
  ...contents,
4441
4060
  };
4442
- return Promise.resolve(response);
4061
+ return response;
4443
4062
  };
4444
4063
  const de_GetPolicyCommandError = async (output, context) => {
4445
4064
  const parsedOutput = {
@@ -4459,10 +4078,9 @@ const de_GetPolicyCommandError = async (output, context) => {
4459
4078
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4460
4079
  default:
4461
4080
  const parsedBody = parsedOutput.body;
4462
- throwDefaultError({
4081
+ return throwDefaultError({
4463
4082
  output,
4464
4083
  parsedBody: parsedBody.Error,
4465
- exceptionCtor: __BaseException,
4466
4084
  errorCode,
4467
4085
  });
4468
4086
  }
@@ -4478,7 +4096,7 @@ export const de_GetPolicyVersionCommand = async (output, context) => {
4478
4096
  $metadata: deserializeMetadata(output),
4479
4097
  ...contents,
4480
4098
  };
4481
- return Promise.resolve(response);
4099
+ return response;
4482
4100
  };
4483
4101
  const de_GetPolicyVersionCommandError = async (output, context) => {
4484
4102
  const parsedOutput = {
@@ -4498,10 +4116,9 @@ const de_GetPolicyVersionCommandError = async (output, context) => {
4498
4116
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4499
4117
  default:
4500
4118
  const parsedBody = parsedOutput.body;
4501
- throwDefaultError({
4119
+ return throwDefaultError({
4502
4120
  output,
4503
4121
  parsedBody: parsedBody.Error,
4504
- exceptionCtor: __BaseException,
4505
4122
  errorCode,
4506
4123
  });
4507
4124
  }
@@ -4517,7 +4134,7 @@ export const de_GetRoleCommand = async (output, context) => {
4517
4134
  $metadata: deserializeMetadata(output),
4518
4135
  ...contents,
4519
4136
  };
4520
- return Promise.resolve(response);
4137
+ return response;
4521
4138
  };
4522
4139
  const de_GetRoleCommandError = async (output, context) => {
4523
4140
  const parsedOutput = {
@@ -4534,10 +4151,9 @@ const de_GetRoleCommandError = async (output, context) => {
4534
4151
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4535
4152
  default:
4536
4153
  const parsedBody = parsedOutput.body;
4537
- throwDefaultError({
4154
+ return throwDefaultError({
4538
4155
  output,
4539
4156
  parsedBody: parsedBody.Error,
4540
- exceptionCtor: __BaseException,
4541
4157
  errorCode,
4542
4158
  });
4543
4159
  }
@@ -4553,7 +4169,7 @@ export const de_GetRolePolicyCommand = async (output, context) => {
4553
4169
  $metadata: deserializeMetadata(output),
4554
4170
  ...contents,
4555
4171
  };
4556
- return Promise.resolve(response);
4172
+ return response;
4557
4173
  };
4558
4174
  const de_GetRolePolicyCommandError = async (output, context) => {
4559
4175
  const parsedOutput = {
@@ -4570,10 +4186,9 @@ const de_GetRolePolicyCommandError = async (output, context) => {
4570
4186
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4571
4187
  default:
4572
4188
  const parsedBody = parsedOutput.body;
4573
- throwDefaultError({
4189
+ return throwDefaultError({
4574
4190
  output,
4575
4191
  parsedBody: parsedBody.Error,
4576
- exceptionCtor: __BaseException,
4577
4192
  errorCode,
4578
4193
  });
4579
4194
  }
@@ -4589,7 +4204,7 @@ export const de_GetSAMLProviderCommand = async (output, context) => {
4589
4204
  $metadata: deserializeMetadata(output),
4590
4205
  ...contents,
4591
4206
  };
4592
- return Promise.resolve(response);
4207
+ return response;
4593
4208
  };
4594
4209
  const de_GetSAMLProviderCommandError = async (output, context) => {
4595
4210
  const parsedOutput = {
@@ -4609,10 +4224,9 @@ const de_GetSAMLProviderCommandError = async (output, context) => {
4609
4224
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4610
4225
  default:
4611
4226
  const parsedBody = parsedOutput.body;
4612
- throwDefaultError({
4227
+ return throwDefaultError({
4613
4228
  output,
4614
4229
  parsedBody: parsedBody.Error,
4615
- exceptionCtor: __BaseException,
4616
4230
  errorCode,
4617
4231
  });
4618
4232
  }
@@ -4628,7 +4242,7 @@ export const de_GetServerCertificateCommand = async (output, context) => {
4628
4242
  $metadata: deserializeMetadata(output),
4629
4243
  ...contents,
4630
4244
  };
4631
- return Promise.resolve(response);
4245
+ return response;
4632
4246
  };
4633
4247
  const de_GetServerCertificateCommandError = async (output, context) => {
4634
4248
  const parsedOutput = {
@@ -4645,10 +4259,9 @@ const de_GetServerCertificateCommandError = async (output, context) => {
4645
4259
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4646
4260
  default:
4647
4261
  const parsedBody = parsedOutput.body;
4648
- throwDefaultError({
4262
+ return throwDefaultError({
4649
4263
  output,
4650
4264
  parsedBody: parsedBody.Error,
4651
- exceptionCtor: __BaseException,
4652
4265
  errorCode,
4653
4266
  });
4654
4267
  }
@@ -4664,7 +4277,7 @@ export const de_GetServiceLastAccessedDetailsCommand = async (output, context) =
4664
4277
  $metadata: deserializeMetadata(output),
4665
4278
  ...contents,
4666
4279
  };
4667
- return Promise.resolve(response);
4280
+ return response;
4668
4281
  };
4669
4282
  const de_GetServiceLastAccessedDetailsCommandError = async (output, context) => {
4670
4283
  const parsedOutput = {
@@ -4681,10 +4294,9 @@ const de_GetServiceLastAccessedDetailsCommandError = async (output, context) =>
4681
4294
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
4682
4295
  default:
4683
4296
  const parsedBody = parsedOutput.body;
4684
- throwDefaultError({
4297
+ return throwDefaultError({
4685
4298
  output,
4686
4299
  parsedBody: parsedBody.Error,
4687
- exceptionCtor: __BaseException,
4688
4300
  errorCode,
4689
4301
  });
4690
4302
  }
@@ -4700,7 +4312,7 @@ export const de_GetServiceLastAccessedDetailsWithEntitiesCommand = async (output
4700
4312
  $metadata: deserializeMetadata(output),
4701
4313
  ...contents,
4702
4314
  };
4703
- return Promise.resolve(response);
4315
+ return response;
4704
4316
  };
4705
4317
  const de_GetServiceLastAccessedDetailsWithEntitiesCommandError = async (output, context) => {
4706
4318
  const parsedOutput = {
@@ -4717,10 +4329,9 @@ const de_GetServiceLastAccessedDetailsWithEntitiesCommandError = async (output,
4717
4329
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
4718
4330
  default:
4719
4331
  const parsedBody = parsedOutput.body;
4720
- throwDefaultError({
4332
+ return throwDefaultError({
4721
4333
  output,
4722
4334
  parsedBody: parsedBody.Error,
4723
- exceptionCtor: __BaseException,
4724
4335
  errorCode,
4725
4336
  });
4726
4337
  }
@@ -4736,7 +4347,7 @@ export const de_GetServiceLinkedRoleDeletionStatusCommand = async (output, conte
4736
4347
  $metadata: deserializeMetadata(output),
4737
4348
  ...contents,
4738
4349
  };
4739
- return Promise.resolve(response);
4350
+ return response;
4740
4351
  };
4741
4352
  const de_GetServiceLinkedRoleDeletionStatusCommandError = async (output, context) => {
4742
4353
  const parsedOutput = {
@@ -4756,10 +4367,9 @@ const de_GetServiceLinkedRoleDeletionStatusCommandError = async (output, context
4756
4367
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4757
4368
  default:
4758
4369
  const parsedBody = parsedOutput.body;
4759
- throwDefaultError({
4370
+ return throwDefaultError({
4760
4371
  output,
4761
4372
  parsedBody: parsedBody.Error,
4762
- exceptionCtor: __BaseException,
4763
4373
  errorCode,
4764
4374
  });
4765
4375
  }
@@ -4775,7 +4385,7 @@ export const de_GetSSHPublicKeyCommand = async (output, context) => {
4775
4385
  $metadata: deserializeMetadata(output),
4776
4386
  ...contents,
4777
4387
  };
4778
- return Promise.resolve(response);
4388
+ return response;
4779
4389
  };
4780
4390
  const de_GetSSHPublicKeyCommandError = async (output, context) => {
4781
4391
  const parsedOutput = {
@@ -4792,10 +4402,9 @@ const de_GetSSHPublicKeyCommandError = async (output, context) => {
4792
4402
  throw await de_UnrecognizedPublicKeyEncodingExceptionRes(parsedOutput, context);
4793
4403
  default:
4794
4404
  const parsedBody = parsedOutput.body;
4795
- throwDefaultError({
4405
+ return throwDefaultError({
4796
4406
  output,
4797
4407
  parsedBody: parsedBody.Error,
4798
- exceptionCtor: __BaseException,
4799
4408
  errorCode,
4800
4409
  });
4801
4410
  }
@@ -4811,7 +4420,7 @@ export const de_GetUserCommand = async (output, context) => {
4811
4420
  $metadata: deserializeMetadata(output),
4812
4421
  ...contents,
4813
4422
  };
4814
- return Promise.resolve(response);
4423
+ return response;
4815
4424
  };
4816
4425
  const de_GetUserCommandError = async (output, context) => {
4817
4426
  const parsedOutput = {
@@ -4828,10 +4437,9 @@ const de_GetUserCommandError = async (output, context) => {
4828
4437
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4829
4438
  default:
4830
4439
  const parsedBody = parsedOutput.body;
4831
- throwDefaultError({
4440
+ return throwDefaultError({
4832
4441
  output,
4833
4442
  parsedBody: parsedBody.Error,
4834
- exceptionCtor: __BaseException,
4835
4443
  errorCode,
4836
4444
  });
4837
4445
  }
@@ -4847,7 +4455,7 @@ export const de_GetUserPolicyCommand = async (output, context) => {
4847
4455
  $metadata: deserializeMetadata(output),
4848
4456
  ...contents,
4849
4457
  };
4850
- return Promise.resolve(response);
4458
+ return response;
4851
4459
  };
4852
4460
  const de_GetUserPolicyCommandError = async (output, context) => {
4853
4461
  const parsedOutput = {
@@ -4864,10 +4472,9 @@ const de_GetUserPolicyCommandError = async (output, context) => {
4864
4472
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4865
4473
  default:
4866
4474
  const parsedBody = parsedOutput.body;
4867
- throwDefaultError({
4475
+ return throwDefaultError({
4868
4476
  output,
4869
4477
  parsedBody: parsedBody.Error,
4870
- exceptionCtor: __BaseException,
4871
4478
  errorCode,
4872
4479
  });
4873
4480
  }
@@ -4883,7 +4490,7 @@ export const de_ListAccessKeysCommand = async (output, context) => {
4883
4490
  $metadata: deserializeMetadata(output),
4884
4491
  ...contents,
4885
4492
  };
4886
- return Promise.resolve(response);
4493
+ return response;
4887
4494
  };
4888
4495
  const de_ListAccessKeysCommandError = async (output, context) => {
4889
4496
  const parsedOutput = {
@@ -4900,10 +4507,9 @@ const de_ListAccessKeysCommandError = async (output, context) => {
4900
4507
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4901
4508
  default:
4902
4509
  const parsedBody = parsedOutput.body;
4903
- throwDefaultError({
4510
+ return throwDefaultError({
4904
4511
  output,
4905
4512
  parsedBody: parsedBody.Error,
4906
- exceptionCtor: __BaseException,
4907
4513
  errorCode,
4908
4514
  });
4909
4515
  }
@@ -4919,7 +4525,7 @@ export const de_ListAccountAliasesCommand = async (output, context) => {
4919
4525
  $metadata: deserializeMetadata(output),
4920
4526
  ...contents,
4921
4527
  };
4922
- return Promise.resolve(response);
4528
+ return response;
4923
4529
  };
4924
4530
  const de_ListAccountAliasesCommandError = async (output, context) => {
4925
4531
  const parsedOutput = {
@@ -4933,10 +4539,9 @@ const de_ListAccountAliasesCommandError = async (output, context) => {
4933
4539
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4934
4540
  default:
4935
4541
  const parsedBody = parsedOutput.body;
4936
- throwDefaultError({
4542
+ return throwDefaultError({
4937
4543
  output,
4938
4544
  parsedBody: parsedBody.Error,
4939
- exceptionCtor: __BaseException,
4940
4545
  errorCode,
4941
4546
  });
4942
4547
  }
@@ -4952,7 +4557,7 @@ export const de_ListAttachedGroupPoliciesCommand = async (output, context) => {
4952
4557
  $metadata: deserializeMetadata(output),
4953
4558
  ...contents,
4954
4559
  };
4955
- return Promise.resolve(response);
4560
+ return response;
4956
4561
  };
4957
4562
  const de_ListAttachedGroupPoliciesCommandError = async (output, context) => {
4958
4563
  const parsedOutput = {
@@ -4972,10 +4577,9 @@ const de_ListAttachedGroupPoliciesCommandError = async (output, context) => {
4972
4577
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4973
4578
  default:
4974
4579
  const parsedBody = parsedOutput.body;
4975
- throwDefaultError({
4580
+ return throwDefaultError({
4976
4581
  output,
4977
4582
  parsedBody: parsedBody.Error,
4978
- exceptionCtor: __BaseException,
4979
4583
  errorCode,
4980
4584
  });
4981
4585
  }
@@ -4991,7 +4595,7 @@ export const de_ListAttachedRolePoliciesCommand = async (output, context) => {
4991
4595
  $metadata: deserializeMetadata(output),
4992
4596
  ...contents,
4993
4597
  };
4994
- return Promise.resolve(response);
4598
+ return response;
4995
4599
  };
4996
4600
  const de_ListAttachedRolePoliciesCommandError = async (output, context) => {
4997
4601
  const parsedOutput = {
@@ -5011,10 +4615,9 @@ const de_ListAttachedRolePoliciesCommandError = async (output, context) => {
5011
4615
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5012
4616
  default:
5013
4617
  const parsedBody = parsedOutput.body;
5014
- throwDefaultError({
4618
+ return throwDefaultError({
5015
4619
  output,
5016
4620
  parsedBody: parsedBody.Error,
5017
- exceptionCtor: __BaseException,
5018
4621
  errorCode,
5019
4622
  });
5020
4623
  }
@@ -5030,7 +4633,7 @@ export const de_ListAttachedUserPoliciesCommand = async (output, context) => {
5030
4633
  $metadata: deserializeMetadata(output),
5031
4634
  ...contents,
5032
4635
  };
5033
- return Promise.resolve(response);
4636
+ return response;
5034
4637
  };
5035
4638
  const de_ListAttachedUserPoliciesCommandError = async (output, context) => {
5036
4639
  const parsedOutput = {
@@ -5050,10 +4653,9 @@ const de_ListAttachedUserPoliciesCommandError = async (output, context) => {
5050
4653
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5051
4654
  default:
5052
4655
  const parsedBody = parsedOutput.body;
5053
- throwDefaultError({
4656
+ return throwDefaultError({
5054
4657
  output,
5055
4658
  parsedBody: parsedBody.Error,
5056
- exceptionCtor: __BaseException,
5057
4659
  errorCode,
5058
4660
  });
5059
4661
  }
@@ -5069,7 +4671,7 @@ export const de_ListEntitiesForPolicyCommand = async (output, context) => {
5069
4671
  $metadata: deserializeMetadata(output),
5070
4672
  ...contents,
5071
4673
  };
5072
- return Promise.resolve(response);
4674
+ return response;
5073
4675
  };
5074
4676
  const de_ListEntitiesForPolicyCommandError = async (output, context) => {
5075
4677
  const parsedOutput = {
@@ -5089,10 +4691,9 @@ const de_ListEntitiesForPolicyCommandError = async (output, context) => {
5089
4691
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5090
4692
  default:
5091
4693
  const parsedBody = parsedOutput.body;
5092
- throwDefaultError({
4694
+ return throwDefaultError({
5093
4695
  output,
5094
4696
  parsedBody: parsedBody.Error,
5095
- exceptionCtor: __BaseException,
5096
4697
  errorCode,
5097
4698
  });
5098
4699
  }
@@ -5108,7 +4709,7 @@ export const de_ListGroupPoliciesCommand = async (output, context) => {
5108
4709
  $metadata: deserializeMetadata(output),
5109
4710
  ...contents,
5110
4711
  };
5111
- return Promise.resolve(response);
4712
+ return response;
5112
4713
  };
5113
4714
  const de_ListGroupPoliciesCommandError = async (output, context) => {
5114
4715
  const parsedOutput = {
@@ -5125,10 +4726,9 @@ const de_ListGroupPoliciesCommandError = async (output, context) => {
5125
4726
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5126
4727
  default:
5127
4728
  const parsedBody = parsedOutput.body;
5128
- throwDefaultError({
4729
+ return throwDefaultError({
5129
4730
  output,
5130
4731
  parsedBody: parsedBody.Error,
5131
- exceptionCtor: __BaseException,
5132
4732
  errorCode,
5133
4733
  });
5134
4734
  }
@@ -5144,7 +4744,7 @@ export const de_ListGroupsCommand = async (output, context) => {
5144
4744
  $metadata: deserializeMetadata(output),
5145
4745
  ...contents,
5146
4746
  };
5147
- return Promise.resolve(response);
4747
+ return response;
5148
4748
  };
5149
4749
  const de_ListGroupsCommandError = async (output, context) => {
5150
4750
  const parsedOutput = {
@@ -5158,10 +4758,9 @@ const de_ListGroupsCommandError = async (output, context) => {
5158
4758
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5159
4759
  default:
5160
4760
  const parsedBody = parsedOutput.body;
5161
- throwDefaultError({
4761
+ return throwDefaultError({
5162
4762
  output,
5163
4763
  parsedBody: parsedBody.Error,
5164
- exceptionCtor: __BaseException,
5165
4764
  errorCode,
5166
4765
  });
5167
4766
  }
@@ -5177,7 +4776,7 @@ export const de_ListGroupsForUserCommand = async (output, context) => {
5177
4776
  $metadata: deserializeMetadata(output),
5178
4777
  ...contents,
5179
4778
  };
5180
- return Promise.resolve(response);
4779
+ return response;
5181
4780
  };
5182
4781
  const de_ListGroupsForUserCommandError = async (output, context) => {
5183
4782
  const parsedOutput = {
@@ -5194,10 +4793,9 @@ const de_ListGroupsForUserCommandError = async (output, context) => {
5194
4793
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5195
4794
  default:
5196
4795
  const parsedBody = parsedOutput.body;
5197
- throwDefaultError({
4796
+ return throwDefaultError({
5198
4797
  output,
5199
4798
  parsedBody: parsedBody.Error,
5200
- exceptionCtor: __BaseException,
5201
4799
  errorCode,
5202
4800
  });
5203
4801
  }
@@ -5213,7 +4811,7 @@ export const de_ListInstanceProfilesCommand = async (output, context) => {
5213
4811
  $metadata: deserializeMetadata(output),
5214
4812
  ...contents,
5215
4813
  };
5216
- return Promise.resolve(response);
4814
+ return response;
5217
4815
  };
5218
4816
  const de_ListInstanceProfilesCommandError = async (output, context) => {
5219
4817
  const parsedOutput = {
@@ -5227,10 +4825,9 @@ const de_ListInstanceProfilesCommandError = async (output, context) => {
5227
4825
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5228
4826
  default:
5229
4827
  const parsedBody = parsedOutput.body;
5230
- throwDefaultError({
4828
+ return throwDefaultError({
5231
4829
  output,
5232
4830
  parsedBody: parsedBody.Error,
5233
- exceptionCtor: __BaseException,
5234
4831
  errorCode,
5235
4832
  });
5236
4833
  }
@@ -5246,7 +4843,7 @@ export const de_ListInstanceProfilesForRoleCommand = async (output, context) =>
5246
4843
  $metadata: deserializeMetadata(output),
5247
4844
  ...contents,
5248
4845
  };
5249
- return Promise.resolve(response);
4846
+ return response;
5250
4847
  };
5251
4848
  const de_ListInstanceProfilesForRoleCommandError = async (output, context) => {
5252
4849
  const parsedOutput = {
@@ -5263,10 +4860,9 @@ const de_ListInstanceProfilesForRoleCommandError = async (output, context) => {
5263
4860
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5264
4861
  default:
5265
4862
  const parsedBody = parsedOutput.body;
5266
- throwDefaultError({
4863
+ return throwDefaultError({
5267
4864
  output,
5268
4865
  parsedBody: parsedBody.Error,
5269
- exceptionCtor: __BaseException,
5270
4866
  errorCode,
5271
4867
  });
5272
4868
  }
@@ -5282,7 +4878,7 @@ export const de_ListInstanceProfileTagsCommand = async (output, context) => {
5282
4878
  $metadata: deserializeMetadata(output),
5283
4879
  ...contents,
5284
4880
  };
5285
- return Promise.resolve(response);
4881
+ return response;
5286
4882
  };
5287
4883
  const de_ListInstanceProfileTagsCommandError = async (output, context) => {
5288
4884
  const parsedOutput = {
@@ -5299,10 +4895,9 @@ const de_ListInstanceProfileTagsCommandError = async (output, context) => {
5299
4895
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5300
4896
  default:
5301
4897
  const parsedBody = parsedOutput.body;
5302
- throwDefaultError({
4898
+ return throwDefaultError({
5303
4899
  output,
5304
4900
  parsedBody: parsedBody.Error,
5305
- exceptionCtor: __BaseException,
5306
4901
  errorCode,
5307
4902
  });
5308
4903
  }
@@ -5318,7 +4913,7 @@ export const de_ListMFADevicesCommand = async (output, context) => {
5318
4913
  $metadata: deserializeMetadata(output),
5319
4914
  ...contents,
5320
4915
  };
5321
- return Promise.resolve(response);
4916
+ return response;
5322
4917
  };
5323
4918
  const de_ListMFADevicesCommandError = async (output, context) => {
5324
4919
  const parsedOutput = {
@@ -5335,10 +4930,9 @@ const de_ListMFADevicesCommandError = async (output, context) => {
5335
4930
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5336
4931
  default:
5337
4932
  const parsedBody = parsedOutput.body;
5338
- throwDefaultError({
4933
+ return throwDefaultError({
5339
4934
  output,
5340
4935
  parsedBody: parsedBody.Error,
5341
- exceptionCtor: __BaseException,
5342
4936
  errorCode,
5343
4937
  });
5344
4938
  }
@@ -5354,7 +4948,7 @@ export const de_ListMFADeviceTagsCommand = async (output, context) => {
5354
4948
  $metadata: deserializeMetadata(output),
5355
4949
  ...contents,
5356
4950
  };
5357
- return Promise.resolve(response);
4951
+ return response;
5358
4952
  };
5359
4953
  const de_ListMFADeviceTagsCommandError = async (output, context) => {
5360
4954
  const parsedOutput = {
@@ -5374,10 +4968,9 @@ const de_ListMFADeviceTagsCommandError = async (output, context) => {
5374
4968
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5375
4969
  default:
5376
4970
  const parsedBody = parsedOutput.body;
5377
- throwDefaultError({
4971
+ return throwDefaultError({
5378
4972
  output,
5379
4973
  parsedBody: parsedBody.Error,
5380
- exceptionCtor: __BaseException,
5381
4974
  errorCode,
5382
4975
  });
5383
4976
  }
@@ -5393,7 +4986,7 @@ export const de_ListOpenIDConnectProvidersCommand = async (output, context) => {
5393
4986
  $metadata: deserializeMetadata(output),
5394
4987
  ...contents,
5395
4988
  };
5396
- return Promise.resolve(response);
4989
+ return response;
5397
4990
  };
5398
4991
  const de_ListOpenIDConnectProvidersCommandError = async (output, context) => {
5399
4992
  const parsedOutput = {
@@ -5407,10 +5000,9 @@ const de_ListOpenIDConnectProvidersCommandError = async (output, context) => {
5407
5000
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5408
5001
  default:
5409
5002
  const parsedBody = parsedOutput.body;
5410
- throwDefaultError({
5003
+ return throwDefaultError({
5411
5004
  output,
5412
5005
  parsedBody: parsedBody.Error,
5413
- exceptionCtor: __BaseException,
5414
5006
  errorCode,
5415
5007
  });
5416
5008
  }
@@ -5426,7 +5018,7 @@ export const de_ListOpenIDConnectProviderTagsCommand = async (output, context) =
5426
5018
  $metadata: deserializeMetadata(output),
5427
5019
  ...contents,
5428
5020
  };
5429
- return Promise.resolve(response);
5021
+ return response;
5430
5022
  };
5431
5023
  const de_ListOpenIDConnectProviderTagsCommandError = async (output, context) => {
5432
5024
  const parsedOutput = {
@@ -5446,10 +5038,9 @@ const de_ListOpenIDConnectProviderTagsCommandError = async (output, context) =>
5446
5038
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5447
5039
  default:
5448
5040
  const parsedBody = parsedOutput.body;
5449
- throwDefaultError({
5041
+ return throwDefaultError({
5450
5042
  output,
5451
5043
  parsedBody: parsedBody.Error,
5452
- exceptionCtor: __BaseException,
5453
5044
  errorCode,
5454
5045
  });
5455
5046
  }
@@ -5465,7 +5056,7 @@ export const de_ListPoliciesCommand = async (output, context) => {
5465
5056
  $metadata: deserializeMetadata(output),
5466
5057
  ...contents,
5467
5058
  };
5468
- return Promise.resolve(response);
5059
+ return response;
5469
5060
  };
5470
5061
  const de_ListPoliciesCommandError = async (output, context) => {
5471
5062
  const parsedOutput = {
@@ -5479,10 +5070,9 @@ const de_ListPoliciesCommandError = async (output, context) => {
5479
5070
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5480
5071
  default:
5481
5072
  const parsedBody = parsedOutput.body;
5482
- throwDefaultError({
5073
+ return throwDefaultError({
5483
5074
  output,
5484
5075
  parsedBody: parsedBody.Error,
5485
- exceptionCtor: __BaseException,
5486
5076
  errorCode,
5487
5077
  });
5488
5078
  }
@@ -5498,7 +5088,7 @@ export const de_ListPoliciesGrantingServiceAccessCommand = async (output, contex
5498
5088
  $metadata: deserializeMetadata(output),
5499
5089
  ...contents,
5500
5090
  };
5501
- return Promise.resolve(response);
5091
+ return response;
5502
5092
  };
5503
5093
  const de_ListPoliciesGrantingServiceAccessCommandError = async (output, context) => {
5504
5094
  const parsedOutput = {
@@ -5515,10 +5105,9 @@ const de_ListPoliciesGrantingServiceAccessCommandError = async (output, context)
5515
5105
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
5516
5106
  default:
5517
5107
  const parsedBody = parsedOutput.body;
5518
- throwDefaultError({
5108
+ return throwDefaultError({
5519
5109
  output,
5520
5110
  parsedBody: parsedBody.Error,
5521
- exceptionCtor: __BaseException,
5522
5111
  errorCode,
5523
5112
  });
5524
5113
  }
@@ -5534,7 +5123,7 @@ export const de_ListPolicyTagsCommand = async (output, context) => {
5534
5123
  $metadata: deserializeMetadata(output),
5535
5124
  ...contents,
5536
5125
  };
5537
- return Promise.resolve(response);
5126
+ return response;
5538
5127
  };
5539
5128
  const de_ListPolicyTagsCommandError = async (output, context) => {
5540
5129
  const parsedOutput = {
@@ -5554,10 +5143,9 @@ const de_ListPolicyTagsCommandError = async (output, context) => {
5554
5143
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5555
5144
  default:
5556
5145
  const parsedBody = parsedOutput.body;
5557
- throwDefaultError({
5146
+ return throwDefaultError({
5558
5147
  output,
5559
5148
  parsedBody: parsedBody.Error,
5560
- exceptionCtor: __BaseException,
5561
5149
  errorCode,
5562
5150
  });
5563
5151
  }
@@ -5573,7 +5161,7 @@ export const de_ListPolicyVersionsCommand = async (output, context) => {
5573
5161
  $metadata: deserializeMetadata(output),
5574
5162
  ...contents,
5575
5163
  };
5576
- return Promise.resolve(response);
5164
+ return response;
5577
5165
  };
5578
5166
  const de_ListPolicyVersionsCommandError = async (output, context) => {
5579
5167
  const parsedOutput = {
@@ -5593,10 +5181,9 @@ const de_ListPolicyVersionsCommandError = async (output, context) => {
5593
5181
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5594
5182
  default:
5595
5183
  const parsedBody = parsedOutput.body;
5596
- throwDefaultError({
5184
+ return throwDefaultError({
5597
5185
  output,
5598
5186
  parsedBody: parsedBody.Error,
5599
- exceptionCtor: __BaseException,
5600
5187
  errorCode,
5601
5188
  });
5602
5189
  }
@@ -5612,7 +5199,7 @@ export const de_ListRolePoliciesCommand = async (output, context) => {
5612
5199
  $metadata: deserializeMetadata(output),
5613
5200
  ...contents,
5614
5201
  };
5615
- return Promise.resolve(response);
5202
+ return response;
5616
5203
  };
5617
5204
  const de_ListRolePoliciesCommandError = async (output, context) => {
5618
5205
  const parsedOutput = {
@@ -5629,10 +5216,9 @@ const de_ListRolePoliciesCommandError = async (output, context) => {
5629
5216
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5630
5217
  default:
5631
5218
  const parsedBody = parsedOutput.body;
5632
- throwDefaultError({
5219
+ return throwDefaultError({
5633
5220
  output,
5634
5221
  parsedBody: parsedBody.Error,
5635
- exceptionCtor: __BaseException,
5636
5222
  errorCode,
5637
5223
  });
5638
5224
  }
@@ -5648,7 +5234,7 @@ export const de_ListRolesCommand = async (output, context) => {
5648
5234
  $metadata: deserializeMetadata(output),
5649
5235
  ...contents,
5650
5236
  };
5651
- return Promise.resolve(response);
5237
+ return response;
5652
5238
  };
5653
5239
  const de_ListRolesCommandError = async (output, context) => {
5654
5240
  const parsedOutput = {
@@ -5662,10 +5248,9 @@ const de_ListRolesCommandError = async (output, context) => {
5662
5248
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5663
5249
  default:
5664
5250
  const parsedBody = parsedOutput.body;
5665
- throwDefaultError({
5251
+ return throwDefaultError({
5666
5252
  output,
5667
5253
  parsedBody: parsedBody.Error,
5668
- exceptionCtor: __BaseException,
5669
5254
  errorCode,
5670
5255
  });
5671
5256
  }
@@ -5681,7 +5266,7 @@ export const de_ListRoleTagsCommand = async (output, context) => {
5681
5266
  $metadata: deserializeMetadata(output),
5682
5267
  ...contents,
5683
5268
  };
5684
- return Promise.resolve(response);
5269
+ return response;
5685
5270
  };
5686
5271
  const de_ListRoleTagsCommandError = async (output, context) => {
5687
5272
  const parsedOutput = {
@@ -5698,10 +5283,9 @@ const de_ListRoleTagsCommandError = async (output, context) => {
5698
5283
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5699
5284
  default:
5700
5285
  const parsedBody = parsedOutput.body;
5701
- throwDefaultError({
5286
+ return throwDefaultError({
5702
5287
  output,
5703
5288
  parsedBody: parsedBody.Error,
5704
- exceptionCtor: __BaseException,
5705
5289
  errorCode,
5706
5290
  });
5707
5291
  }
@@ -5717,7 +5301,7 @@ export const de_ListSAMLProvidersCommand = async (output, context) => {
5717
5301
  $metadata: deserializeMetadata(output),
5718
5302
  ...contents,
5719
5303
  };
5720
- return Promise.resolve(response);
5304
+ return response;
5721
5305
  };
5722
5306
  const de_ListSAMLProvidersCommandError = async (output, context) => {
5723
5307
  const parsedOutput = {
@@ -5731,10 +5315,9 @@ const de_ListSAMLProvidersCommandError = async (output, context) => {
5731
5315
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5732
5316
  default:
5733
5317
  const parsedBody = parsedOutput.body;
5734
- throwDefaultError({
5318
+ return throwDefaultError({
5735
5319
  output,
5736
5320
  parsedBody: parsedBody.Error,
5737
- exceptionCtor: __BaseException,
5738
5321
  errorCode,
5739
5322
  });
5740
5323
  }
@@ -5750,7 +5333,7 @@ export const de_ListSAMLProviderTagsCommand = async (output, context) => {
5750
5333
  $metadata: deserializeMetadata(output),
5751
5334
  ...contents,
5752
5335
  };
5753
- return Promise.resolve(response);
5336
+ return response;
5754
5337
  };
5755
5338
  const de_ListSAMLProviderTagsCommandError = async (output, context) => {
5756
5339
  const parsedOutput = {
@@ -5770,10 +5353,9 @@ const de_ListSAMLProviderTagsCommandError = async (output, context) => {
5770
5353
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5771
5354
  default:
5772
5355
  const parsedBody = parsedOutput.body;
5773
- throwDefaultError({
5356
+ return throwDefaultError({
5774
5357
  output,
5775
5358
  parsedBody: parsedBody.Error,
5776
- exceptionCtor: __BaseException,
5777
5359
  errorCode,
5778
5360
  });
5779
5361
  }
@@ -5789,7 +5371,7 @@ export const de_ListServerCertificatesCommand = async (output, context) => {
5789
5371
  $metadata: deserializeMetadata(output),
5790
5372
  ...contents,
5791
5373
  };
5792
- return Promise.resolve(response);
5374
+ return response;
5793
5375
  };
5794
5376
  const de_ListServerCertificatesCommandError = async (output, context) => {
5795
5377
  const parsedOutput = {
@@ -5803,10 +5385,9 @@ const de_ListServerCertificatesCommandError = async (output, context) => {
5803
5385
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5804
5386
  default:
5805
5387
  const parsedBody = parsedOutput.body;
5806
- throwDefaultError({
5388
+ return throwDefaultError({
5807
5389
  output,
5808
5390
  parsedBody: parsedBody.Error,
5809
- exceptionCtor: __BaseException,
5810
5391
  errorCode,
5811
5392
  });
5812
5393
  }
@@ -5822,7 +5403,7 @@ export const de_ListServerCertificateTagsCommand = async (output, context) => {
5822
5403
  $metadata: deserializeMetadata(output),
5823
5404
  ...contents,
5824
5405
  };
5825
- return Promise.resolve(response);
5406
+ return response;
5826
5407
  };
5827
5408
  const de_ListServerCertificateTagsCommandError = async (output, context) => {
5828
5409
  const parsedOutput = {
@@ -5839,10 +5420,9 @@ const de_ListServerCertificateTagsCommandError = async (output, context) => {
5839
5420
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5840
5421
  default:
5841
5422
  const parsedBody = parsedOutput.body;
5842
- throwDefaultError({
5423
+ return throwDefaultError({
5843
5424
  output,
5844
5425
  parsedBody: parsedBody.Error,
5845
- exceptionCtor: __BaseException,
5846
5426
  errorCode,
5847
5427
  });
5848
5428
  }
@@ -5858,7 +5438,7 @@ export const de_ListServiceSpecificCredentialsCommand = async (output, context)
5858
5438
  $metadata: deserializeMetadata(output),
5859
5439
  ...contents,
5860
5440
  };
5861
- return Promise.resolve(response);
5441
+ return response;
5862
5442
  };
5863
5443
  const de_ListServiceSpecificCredentialsCommandError = async (output, context) => {
5864
5444
  const parsedOutput = {
@@ -5875,10 +5455,9 @@ const de_ListServiceSpecificCredentialsCommandError = async (output, context) =>
5875
5455
  throw await de_ServiceNotSupportedExceptionRes(parsedOutput, context);
5876
5456
  default:
5877
5457
  const parsedBody = parsedOutput.body;
5878
- throwDefaultError({
5458
+ return throwDefaultError({
5879
5459
  output,
5880
5460
  parsedBody: parsedBody.Error,
5881
- exceptionCtor: __BaseException,
5882
5461
  errorCode,
5883
5462
  });
5884
5463
  }
@@ -5894,7 +5473,7 @@ export const de_ListSigningCertificatesCommand = async (output, context) => {
5894
5473
  $metadata: deserializeMetadata(output),
5895
5474
  ...contents,
5896
5475
  };
5897
- return Promise.resolve(response);
5476
+ return response;
5898
5477
  };
5899
5478
  const de_ListSigningCertificatesCommandError = async (output, context) => {
5900
5479
  const parsedOutput = {
@@ -5911,10 +5490,9 @@ const de_ListSigningCertificatesCommandError = async (output, context) => {
5911
5490
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5912
5491
  default:
5913
5492
  const parsedBody = parsedOutput.body;
5914
- throwDefaultError({
5493
+ return throwDefaultError({
5915
5494
  output,
5916
5495
  parsedBody: parsedBody.Error,
5917
- exceptionCtor: __BaseException,
5918
5496
  errorCode,
5919
5497
  });
5920
5498
  }
@@ -5930,7 +5508,7 @@ export const de_ListSSHPublicKeysCommand = async (output, context) => {
5930
5508
  $metadata: deserializeMetadata(output),
5931
5509
  ...contents,
5932
5510
  };
5933
- return Promise.resolve(response);
5511
+ return response;
5934
5512
  };
5935
5513
  const de_ListSSHPublicKeysCommandError = async (output, context) => {
5936
5514
  const parsedOutput = {
@@ -5944,10 +5522,9 @@ const de_ListSSHPublicKeysCommandError = async (output, context) => {
5944
5522
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
5945
5523
  default:
5946
5524
  const parsedBody = parsedOutput.body;
5947
- throwDefaultError({
5525
+ return throwDefaultError({
5948
5526
  output,
5949
5527
  parsedBody: parsedBody.Error,
5950
- exceptionCtor: __BaseException,
5951
5528
  errorCode,
5952
5529
  });
5953
5530
  }
@@ -5963,7 +5540,7 @@ export const de_ListUserPoliciesCommand = async (output, context) => {
5963
5540
  $metadata: deserializeMetadata(output),
5964
5541
  ...contents,
5965
5542
  };
5966
- return Promise.resolve(response);
5543
+ return response;
5967
5544
  };
5968
5545
  const de_ListUserPoliciesCommandError = async (output, context) => {
5969
5546
  const parsedOutput = {
@@ -5980,10 +5557,9 @@ const de_ListUserPoliciesCommandError = async (output, context) => {
5980
5557
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5981
5558
  default:
5982
5559
  const parsedBody = parsedOutput.body;
5983
- throwDefaultError({
5560
+ return throwDefaultError({
5984
5561
  output,
5985
5562
  parsedBody: parsedBody.Error,
5986
- exceptionCtor: __BaseException,
5987
5563
  errorCode,
5988
5564
  });
5989
5565
  }
@@ -5999,7 +5575,7 @@ export const de_ListUsersCommand = async (output, context) => {
5999
5575
  $metadata: deserializeMetadata(output),
6000
5576
  ...contents,
6001
5577
  };
6002
- return Promise.resolve(response);
5578
+ return response;
6003
5579
  };
6004
5580
  const de_ListUsersCommandError = async (output, context) => {
6005
5581
  const parsedOutput = {
@@ -6013,10 +5589,9 @@ const de_ListUsersCommandError = async (output, context) => {
6013
5589
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6014
5590
  default:
6015
5591
  const parsedBody = parsedOutput.body;
6016
- throwDefaultError({
5592
+ return throwDefaultError({
6017
5593
  output,
6018
5594
  parsedBody: parsedBody.Error,
6019
- exceptionCtor: __BaseException,
6020
5595
  errorCode,
6021
5596
  });
6022
5597
  }
@@ -6032,7 +5607,7 @@ export const de_ListUserTagsCommand = async (output, context) => {
6032
5607
  $metadata: deserializeMetadata(output),
6033
5608
  ...contents,
6034
5609
  };
6035
- return Promise.resolve(response);
5610
+ return response;
6036
5611
  };
6037
5612
  const de_ListUserTagsCommandError = async (output, context) => {
6038
5613
  const parsedOutput = {
@@ -6049,10 +5624,9 @@ const de_ListUserTagsCommandError = async (output, context) => {
6049
5624
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6050
5625
  default:
6051
5626
  const parsedBody = parsedOutput.body;
6052
- throwDefaultError({
5627
+ return throwDefaultError({
6053
5628
  output,
6054
5629
  parsedBody: parsedBody.Error,
6055
- exceptionCtor: __BaseException,
6056
5630
  errorCode,
6057
5631
  });
6058
5632
  }
@@ -6068,7 +5642,7 @@ export const de_ListVirtualMFADevicesCommand = async (output, context) => {
6068
5642
  $metadata: deserializeMetadata(output),
6069
5643
  ...contents,
6070
5644
  };
6071
- return Promise.resolve(response);
5645
+ return response;
6072
5646
  };
6073
5647
  const de_ListVirtualMFADevicesCommandError = async (output, context) => {
6074
5648
  const parsedOutput = {
@@ -6077,10 +5651,9 @@ const de_ListVirtualMFADevicesCommandError = async (output, context) => {
6077
5651
  };
6078
5652
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6079
5653
  const parsedBody = parsedOutput.body;
6080
- throwDefaultError({
5654
+ return throwDefaultError({
6081
5655
  output,
6082
5656
  parsedBody: parsedBody.Error,
6083
- exceptionCtor: __BaseException,
6084
5657
  errorCode,
6085
5658
  });
6086
5659
  };
@@ -6092,7 +5665,7 @@ export const de_PutGroupPolicyCommand = async (output, context) => {
6092
5665
  const response = {
6093
5666
  $metadata: deserializeMetadata(output),
6094
5667
  };
6095
- return Promise.resolve(response);
5668
+ return response;
6096
5669
  };
6097
5670
  const de_PutGroupPolicyCommandError = async (output, context) => {
6098
5671
  const parsedOutput = {
@@ -6115,10 +5688,9 @@ const de_PutGroupPolicyCommandError = async (output, context) => {
6115
5688
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6116
5689
  default:
6117
5690
  const parsedBody = parsedOutput.body;
6118
- throwDefaultError({
5691
+ return throwDefaultError({
6119
5692
  output,
6120
5693
  parsedBody: parsedBody.Error,
6121
- exceptionCtor: __BaseException,
6122
5694
  errorCode,
6123
5695
  });
6124
5696
  }
@@ -6131,7 +5703,7 @@ export const de_PutRolePermissionsBoundaryCommand = async (output, context) => {
6131
5703
  const response = {
6132
5704
  $metadata: deserializeMetadata(output),
6133
5705
  };
6134
- return Promise.resolve(response);
5706
+ return response;
6135
5707
  };
6136
5708
  const de_PutRolePermissionsBoundaryCommandError = async (output, context) => {
6137
5709
  const parsedOutput = {
@@ -6157,10 +5729,9 @@ const de_PutRolePermissionsBoundaryCommandError = async (output, context) => {
6157
5729
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
6158
5730
  default:
6159
5731
  const parsedBody = parsedOutput.body;
6160
- throwDefaultError({
5732
+ return throwDefaultError({
6161
5733
  output,
6162
5734
  parsedBody: parsedBody.Error,
6163
- exceptionCtor: __BaseException,
6164
5735
  errorCode,
6165
5736
  });
6166
5737
  }
@@ -6173,7 +5744,7 @@ export const de_PutRolePolicyCommand = async (output, context) => {
6173
5744
  const response = {
6174
5745
  $metadata: deserializeMetadata(output),
6175
5746
  };
6176
- return Promise.resolve(response);
5747
+ return response;
6177
5748
  };
6178
5749
  const de_PutRolePolicyCommandError = async (output, context) => {
6179
5750
  const parsedOutput = {
@@ -6199,10 +5770,9 @@ const de_PutRolePolicyCommandError = async (output, context) => {
6199
5770
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
6200
5771
  default:
6201
5772
  const parsedBody = parsedOutput.body;
6202
- throwDefaultError({
5773
+ return throwDefaultError({
6203
5774
  output,
6204
5775
  parsedBody: parsedBody.Error,
6205
- exceptionCtor: __BaseException,
6206
5776
  errorCode,
6207
5777
  });
6208
5778
  }
@@ -6215,7 +5785,7 @@ export const de_PutUserPermissionsBoundaryCommand = async (output, context) => {
6215
5785
  const response = {
6216
5786
  $metadata: deserializeMetadata(output),
6217
5787
  };
6218
- return Promise.resolve(response);
5788
+ return response;
6219
5789
  };
6220
5790
  const de_PutUserPermissionsBoundaryCommandError = async (output, context) => {
6221
5791
  const parsedOutput = {
@@ -6238,10 +5808,9 @@ const de_PutUserPermissionsBoundaryCommandError = async (output, context) => {
6238
5808
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6239
5809
  default:
6240
5810
  const parsedBody = parsedOutput.body;
6241
- throwDefaultError({
5811
+ return throwDefaultError({
6242
5812
  output,
6243
5813
  parsedBody: parsedBody.Error,
6244
- exceptionCtor: __BaseException,
6245
5814
  errorCode,
6246
5815
  });
6247
5816
  }
@@ -6254,7 +5823,7 @@ export const de_PutUserPolicyCommand = async (output, context) => {
6254
5823
  const response = {
6255
5824
  $metadata: deserializeMetadata(output),
6256
5825
  };
6257
- return Promise.resolve(response);
5826
+ return response;
6258
5827
  };
6259
5828
  const de_PutUserPolicyCommandError = async (output, context) => {
6260
5829
  const parsedOutput = {
@@ -6277,10 +5846,9 @@ const de_PutUserPolicyCommandError = async (output, context) => {
6277
5846
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6278
5847
  default:
6279
5848
  const parsedBody = parsedOutput.body;
6280
- throwDefaultError({
5849
+ return throwDefaultError({
6281
5850
  output,
6282
5851
  parsedBody: parsedBody.Error,
6283
- exceptionCtor: __BaseException,
6284
5852
  errorCode,
6285
5853
  });
6286
5854
  }
@@ -6293,7 +5861,7 @@ export const de_RemoveClientIDFromOpenIDConnectProviderCommand = async (output,
6293
5861
  const response = {
6294
5862
  $metadata: deserializeMetadata(output),
6295
5863
  };
6296
- return Promise.resolve(response);
5864
+ return response;
6297
5865
  };
6298
5866
  const de_RemoveClientIDFromOpenIDConnectProviderCommandError = async (output, context) => {
6299
5867
  const parsedOutput = {
@@ -6313,10 +5881,9 @@ const de_RemoveClientIDFromOpenIDConnectProviderCommandError = async (output, co
6313
5881
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6314
5882
  default:
6315
5883
  const parsedBody = parsedOutput.body;
6316
- throwDefaultError({
5884
+ return throwDefaultError({
6317
5885
  output,
6318
5886
  parsedBody: parsedBody.Error,
6319
- exceptionCtor: __BaseException,
6320
5887
  errorCode,
6321
5888
  });
6322
5889
  }
@@ -6329,7 +5896,7 @@ export const de_RemoveRoleFromInstanceProfileCommand = async (output, context) =
6329
5896
  const response = {
6330
5897
  $metadata: deserializeMetadata(output),
6331
5898
  };
6332
- return Promise.resolve(response);
5899
+ return response;
6333
5900
  };
6334
5901
  const de_RemoveRoleFromInstanceProfileCommandError = async (output, context) => {
6335
5902
  const parsedOutput = {
@@ -6352,10 +5919,9 @@ const de_RemoveRoleFromInstanceProfileCommandError = async (output, context) =>
6352
5919
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
6353
5920
  default:
6354
5921
  const parsedBody = parsedOutput.body;
6355
- throwDefaultError({
5922
+ return throwDefaultError({
6356
5923
  output,
6357
5924
  parsedBody: parsedBody.Error,
6358
- exceptionCtor: __BaseException,
6359
5925
  errorCode,
6360
5926
  });
6361
5927
  }
@@ -6368,7 +5934,7 @@ export const de_RemoveUserFromGroupCommand = async (output, context) => {
6368
5934
  const response = {
6369
5935
  $metadata: deserializeMetadata(output),
6370
5936
  };
6371
- return Promise.resolve(response);
5937
+ return response;
6372
5938
  };
6373
5939
  const de_RemoveUserFromGroupCommandError = async (output, context) => {
6374
5940
  const parsedOutput = {
@@ -6388,10 +5954,9 @@ const de_RemoveUserFromGroupCommandError = async (output, context) => {
6388
5954
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6389
5955
  default:
6390
5956
  const parsedBody = parsedOutput.body;
6391
- throwDefaultError({
5957
+ return throwDefaultError({
6392
5958
  output,
6393
5959
  parsedBody: parsedBody.Error,
6394
- exceptionCtor: __BaseException,
6395
5960
  errorCode,
6396
5961
  });
6397
5962
  }
@@ -6407,7 +5972,7 @@ export const de_ResetServiceSpecificCredentialCommand = async (output, context)
6407
5972
  $metadata: deserializeMetadata(output),
6408
5973
  ...contents,
6409
5974
  };
6410
- return Promise.resolve(response);
5975
+ return response;
6411
5976
  };
6412
5977
  const de_ResetServiceSpecificCredentialCommandError = async (output, context) => {
6413
5978
  const parsedOutput = {
@@ -6421,10 +5986,9 @@ const de_ResetServiceSpecificCredentialCommandError = async (output, context) =>
6421
5986
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
6422
5987
  default:
6423
5988
  const parsedBody = parsedOutput.body;
6424
- throwDefaultError({
5989
+ return throwDefaultError({
6425
5990
  output,
6426
5991
  parsedBody: parsedBody.Error,
6427
- exceptionCtor: __BaseException,
6428
5992
  errorCode,
6429
5993
  });
6430
5994
  }
@@ -6437,7 +6001,7 @@ export const de_ResyncMFADeviceCommand = async (output, context) => {
6437
6001
  const response = {
6438
6002
  $metadata: deserializeMetadata(output),
6439
6003
  };
6440
- return Promise.resolve(response);
6004
+ return response;
6441
6005
  };
6442
6006
  const de_ResyncMFADeviceCommandError = async (output, context) => {
6443
6007
  const parsedOutput = {
@@ -6460,10 +6024,9 @@ const de_ResyncMFADeviceCommandError = async (output, context) => {
6460
6024
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6461
6025
  default:
6462
6026
  const parsedBody = parsedOutput.body;
6463
- throwDefaultError({
6027
+ return throwDefaultError({
6464
6028
  output,
6465
6029
  parsedBody: parsedBody.Error,
6466
- exceptionCtor: __BaseException,
6467
6030
  errorCode,
6468
6031
  });
6469
6032
  }
@@ -6476,7 +6039,7 @@ export const de_SetDefaultPolicyVersionCommand = async (output, context) => {
6476
6039
  const response = {
6477
6040
  $metadata: deserializeMetadata(output),
6478
6041
  };
6479
- return Promise.resolve(response);
6042
+ return response;
6480
6043
  };
6481
6044
  const de_SetDefaultPolicyVersionCommandError = async (output, context) => {
6482
6045
  const parsedOutput = {
@@ -6499,10 +6062,9 @@ const de_SetDefaultPolicyVersionCommandError = async (output, context) => {
6499
6062
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6500
6063
  default:
6501
6064
  const parsedBody = parsedOutput.body;
6502
- throwDefaultError({
6065
+ return throwDefaultError({
6503
6066
  output,
6504
6067
  parsedBody: parsedBody.Error,
6505
- exceptionCtor: __BaseException,
6506
6068
  errorCode,
6507
6069
  });
6508
6070
  }
@@ -6515,7 +6077,7 @@ export const de_SetSecurityTokenServicePreferencesCommand = async (output, conte
6515
6077
  const response = {
6516
6078
  $metadata: deserializeMetadata(output),
6517
6079
  };
6518
- return Promise.resolve(response);
6080
+ return response;
6519
6081
  };
6520
6082
  const de_SetSecurityTokenServicePreferencesCommandError = async (output, context) => {
6521
6083
  const parsedOutput = {
@@ -6529,10 +6091,9 @@ const de_SetSecurityTokenServicePreferencesCommandError = async (output, context
6529
6091
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6530
6092
  default:
6531
6093
  const parsedBody = parsedOutput.body;
6532
- throwDefaultError({
6094
+ return throwDefaultError({
6533
6095
  output,
6534
6096
  parsedBody: parsedBody.Error,
6535
- exceptionCtor: __BaseException,
6536
6097
  errorCode,
6537
6098
  });
6538
6099
  }
@@ -6548,7 +6109,7 @@ export const de_SimulateCustomPolicyCommand = async (output, context) => {
6548
6109
  $metadata: deserializeMetadata(output),
6549
6110
  ...contents,
6550
6111
  };
6551
- return Promise.resolve(response);
6112
+ return response;
6552
6113
  };
6553
6114
  const de_SimulateCustomPolicyCommandError = async (output, context) => {
6554
6115
  const parsedOutput = {
@@ -6565,10 +6126,9 @@ const de_SimulateCustomPolicyCommandError = async (output, context) => {
6565
6126
  throw await de_PolicyEvaluationExceptionRes(parsedOutput, context);
6566
6127
  default:
6567
6128
  const parsedBody = parsedOutput.body;
6568
- throwDefaultError({
6129
+ return throwDefaultError({
6569
6130
  output,
6570
6131
  parsedBody: parsedBody.Error,
6571
- exceptionCtor: __BaseException,
6572
6132
  errorCode,
6573
6133
  });
6574
6134
  }
@@ -6584,7 +6144,7 @@ export const de_SimulatePrincipalPolicyCommand = async (output, context) => {
6584
6144
  $metadata: deserializeMetadata(output),
6585
6145
  ...contents,
6586
6146
  };
6587
- return Promise.resolve(response);
6147
+ return response;
6588
6148
  };
6589
6149
  const de_SimulatePrincipalPolicyCommandError = async (output, context) => {
6590
6150
  const parsedOutput = {
@@ -6604,10 +6164,9 @@ const de_SimulatePrincipalPolicyCommandError = async (output, context) => {
6604
6164
  throw await de_PolicyEvaluationExceptionRes(parsedOutput, context);
6605
6165
  default:
6606
6166
  const parsedBody = parsedOutput.body;
6607
- throwDefaultError({
6167
+ return throwDefaultError({
6608
6168
  output,
6609
6169
  parsedBody: parsedBody.Error,
6610
- exceptionCtor: __BaseException,
6611
6170
  errorCode,
6612
6171
  });
6613
6172
  }
@@ -6620,7 +6179,7 @@ export const de_TagInstanceProfileCommand = async (output, context) => {
6620
6179
  const response = {
6621
6180
  $metadata: deserializeMetadata(output),
6622
6181
  };
6623
- return Promise.resolve(response);
6182
+ return response;
6624
6183
  };
6625
6184
  const de_TagInstanceProfileCommandError = async (output, context) => {
6626
6185
  const parsedOutput = {
@@ -6646,10 +6205,9 @@ const de_TagInstanceProfileCommandError = async (output, context) => {
6646
6205
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6647
6206
  default:
6648
6207
  const parsedBody = parsedOutput.body;
6649
- throwDefaultError({
6208
+ return throwDefaultError({
6650
6209
  output,
6651
6210
  parsedBody: parsedBody.Error,
6652
- exceptionCtor: __BaseException,
6653
6211
  errorCode,
6654
6212
  });
6655
6213
  }
@@ -6662,7 +6220,7 @@ export const de_TagMFADeviceCommand = async (output, context) => {
6662
6220
  const response = {
6663
6221
  $metadata: deserializeMetadata(output),
6664
6222
  };
6665
- return Promise.resolve(response);
6223
+ return response;
6666
6224
  };
6667
6225
  const de_TagMFADeviceCommandError = async (output, context) => {
6668
6226
  const parsedOutput = {
@@ -6688,10 +6246,9 @@ const de_TagMFADeviceCommandError = async (output, context) => {
6688
6246
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6689
6247
  default:
6690
6248
  const parsedBody = parsedOutput.body;
6691
- throwDefaultError({
6249
+ return throwDefaultError({
6692
6250
  output,
6693
6251
  parsedBody: parsedBody.Error,
6694
- exceptionCtor: __BaseException,
6695
6252
  errorCode,
6696
6253
  });
6697
6254
  }
@@ -6704,7 +6261,7 @@ export const de_TagOpenIDConnectProviderCommand = async (output, context) => {
6704
6261
  const response = {
6705
6262
  $metadata: deserializeMetadata(output),
6706
6263
  };
6707
- return Promise.resolve(response);
6264
+ return response;
6708
6265
  };
6709
6266
  const de_TagOpenIDConnectProviderCommandError = async (output, context) => {
6710
6267
  const parsedOutput = {
@@ -6730,10 +6287,9 @@ const de_TagOpenIDConnectProviderCommandError = async (output, context) => {
6730
6287
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6731
6288
  default:
6732
6289
  const parsedBody = parsedOutput.body;
6733
- throwDefaultError({
6290
+ return throwDefaultError({
6734
6291
  output,
6735
6292
  parsedBody: parsedBody.Error,
6736
- exceptionCtor: __BaseException,
6737
6293
  errorCode,
6738
6294
  });
6739
6295
  }
@@ -6746,7 +6302,7 @@ export const de_TagPolicyCommand = async (output, context) => {
6746
6302
  const response = {
6747
6303
  $metadata: deserializeMetadata(output),
6748
6304
  };
6749
- return Promise.resolve(response);
6305
+ return response;
6750
6306
  };
6751
6307
  const de_TagPolicyCommandError = async (output, context) => {
6752
6308
  const parsedOutput = {
@@ -6772,10 +6328,9 @@ const de_TagPolicyCommandError = async (output, context) => {
6772
6328
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6773
6329
  default:
6774
6330
  const parsedBody = parsedOutput.body;
6775
- throwDefaultError({
6331
+ return throwDefaultError({
6776
6332
  output,
6777
6333
  parsedBody: parsedBody.Error,
6778
- exceptionCtor: __BaseException,
6779
6334
  errorCode,
6780
6335
  });
6781
6336
  }
@@ -6788,7 +6343,7 @@ export const de_TagRoleCommand = async (output, context) => {
6788
6343
  const response = {
6789
6344
  $metadata: deserializeMetadata(output),
6790
6345
  };
6791
- return Promise.resolve(response);
6346
+ return response;
6792
6347
  };
6793
6348
  const de_TagRoleCommandError = async (output, context) => {
6794
6349
  const parsedOutput = {
@@ -6814,10 +6369,9 @@ const de_TagRoleCommandError = async (output, context) => {
6814
6369
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6815
6370
  default:
6816
6371
  const parsedBody = parsedOutput.body;
6817
- throwDefaultError({
6372
+ return throwDefaultError({
6818
6373
  output,
6819
6374
  parsedBody: parsedBody.Error,
6820
- exceptionCtor: __BaseException,
6821
6375
  errorCode,
6822
6376
  });
6823
6377
  }
@@ -6830,7 +6384,7 @@ export const de_TagSAMLProviderCommand = async (output, context) => {
6830
6384
  const response = {
6831
6385
  $metadata: deserializeMetadata(output),
6832
6386
  };
6833
- return Promise.resolve(response);
6387
+ return response;
6834
6388
  };
6835
6389
  const de_TagSAMLProviderCommandError = async (output, context) => {
6836
6390
  const parsedOutput = {
@@ -6856,10 +6410,9 @@ const de_TagSAMLProviderCommandError = async (output, context) => {
6856
6410
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6857
6411
  default:
6858
6412
  const parsedBody = parsedOutput.body;
6859
- throwDefaultError({
6413
+ return throwDefaultError({
6860
6414
  output,
6861
6415
  parsedBody: parsedBody.Error,
6862
- exceptionCtor: __BaseException,
6863
6416
  errorCode,
6864
6417
  });
6865
6418
  }
@@ -6872,7 +6425,7 @@ export const de_TagServerCertificateCommand = async (output, context) => {
6872
6425
  const response = {
6873
6426
  $metadata: deserializeMetadata(output),
6874
6427
  };
6875
- return Promise.resolve(response);
6428
+ return response;
6876
6429
  };
6877
6430
  const de_TagServerCertificateCommandError = async (output, context) => {
6878
6431
  const parsedOutput = {
@@ -6898,10 +6451,9 @@ const de_TagServerCertificateCommandError = async (output, context) => {
6898
6451
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6899
6452
  default:
6900
6453
  const parsedBody = parsedOutput.body;
6901
- throwDefaultError({
6454
+ return throwDefaultError({
6902
6455
  output,
6903
6456
  parsedBody: parsedBody.Error,
6904
- exceptionCtor: __BaseException,
6905
6457
  errorCode,
6906
6458
  });
6907
6459
  }
@@ -6914,7 +6466,7 @@ export const de_TagUserCommand = async (output, context) => {
6914
6466
  const response = {
6915
6467
  $metadata: deserializeMetadata(output),
6916
6468
  };
6917
- return Promise.resolve(response);
6469
+ return response;
6918
6470
  };
6919
6471
  const de_TagUserCommandError = async (output, context) => {
6920
6472
  const parsedOutput = {
@@ -6940,10 +6492,9 @@ const de_TagUserCommandError = async (output, context) => {
6940
6492
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6941
6493
  default:
6942
6494
  const parsedBody = parsedOutput.body;
6943
- throwDefaultError({
6495
+ return throwDefaultError({
6944
6496
  output,
6945
6497
  parsedBody: parsedBody.Error,
6946
- exceptionCtor: __BaseException,
6947
6498
  errorCode,
6948
6499
  });
6949
6500
  }
@@ -6956,7 +6507,7 @@ export const de_UntagInstanceProfileCommand = async (output, context) => {
6956
6507
  const response = {
6957
6508
  $metadata: deserializeMetadata(output),
6958
6509
  };
6959
- return Promise.resolve(response);
6510
+ return response;
6960
6511
  };
6961
6512
  const de_UntagInstanceProfileCommandError = async (output, context) => {
6962
6513
  const parsedOutput = {
@@ -6979,10 +6530,9 @@ const de_UntagInstanceProfileCommandError = async (output, context) => {
6979
6530
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6980
6531
  default:
6981
6532
  const parsedBody = parsedOutput.body;
6982
- throwDefaultError({
6533
+ return throwDefaultError({
6983
6534
  output,
6984
6535
  parsedBody: parsedBody.Error,
6985
- exceptionCtor: __BaseException,
6986
6536
  errorCode,
6987
6537
  });
6988
6538
  }
@@ -6995,7 +6545,7 @@ export const de_UntagMFADeviceCommand = async (output, context) => {
6995
6545
  const response = {
6996
6546
  $metadata: deserializeMetadata(output),
6997
6547
  };
6998
- return Promise.resolve(response);
6548
+ return response;
6999
6549
  };
7000
6550
  const de_UntagMFADeviceCommandError = async (output, context) => {
7001
6551
  const parsedOutput = {
@@ -7018,10 +6568,9 @@ const de_UntagMFADeviceCommandError = async (output, context) => {
7018
6568
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7019
6569
  default:
7020
6570
  const parsedBody = parsedOutput.body;
7021
- throwDefaultError({
6571
+ return throwDefaultError({
7022
6572
  output,
7023
6573
  parsedBody: parsedBody.Error,
7024
- exceptionCtor: __BaseException,
7025
6574
  errorCode,
7026
6575
  });
7027
6576
  }
@@ -7034,7 +6583,7 @@ export const de_UntagOpenIDConnectProviderCommand = async (output, context) => {
7034
6583
  const response = {
7035
6584
  $metadata: deserializeMetadata(output),
7036
6585
  };
7037
- return Promise.resolve(response);
6586
+ return response;
7038
6587
  };
7039
6588
  const de_UntagOpenIDConnectProviderCommandError = async (output, context) => {
7040
6589
  const parsedOutput = {
@@ -7057,10 +6606,9 @@ const de_UntagOpenIDConnectProviderCommandError = async (output, context) => {
7057
6606
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7058
6607
  default:
7059
6608
  const parsedBody = parsedOutput.body;
7060
- throwDefaultError({
6609
+ return throwDefaultError({
7061
6610
  output,
7062
6611
  parsedBody: parsedBody.Error,
7063
- exceptionCtor: __BaseException,
7064
6612
  errorCode,
7065
6613
  });
7066
6614
  }
@@ -7073,7 +6621,7 @@ export const de_UntagPolicyCommand = async (output, context) => {
7073
6621
  const response = {
7074
6622
  $metadata: deserializeMetadata(output),
7075
6623
  };
7076
- return Promise.resolve(response);
6624
+ return response;
7077
6625
  };
7078
6626
  const de_UntagPolicyCommandError = async (output, context) => {
7079
6627
  const parsedOutput = {
@@ -7096,10 +6644,9 @@ const de_UntagPolicyCommandError = async (output, context) => {
7096
6644
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7097
6645
  default:
7098
6646
  const parsedBody = parsedOutput.body;
7099
- throwDefaultError({
6647
+ return throwDefaultError({
7100
6648
  output,
7101
6649
  parsedBody: parsedBody.Error,
7102
- exceptionCtor: __BaseException,
7103
6650
  errorCode,
7104
6651
  });
7105
6652
  }
@@ -7112,7 +6659,7 @@ export const de_UntagRoleCommand = async (output, context) => {
7112
6659
  const response = {
7113
6660
  $metadata: deserializeMetadata(output),
7114
6661
  };
7115
- return Promise.resolve(response);
6662
+ return response;
7116
6663
  };
7117
6664
  const de_UntagRoleCommandError = async (output, context) => {
7118
6665
  const parsedOutput = {
@@ -7132,10 +6679,9 @@ const de_UntagRoleCommandError = async (output, context) => {
7132
6679
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7133
6680
  default:
7134
6681
  const parsedBody = parsedOutput.body;
7135
- throwDefaultError({
6682
+ return throwDefaultError({
7136
6683
  output,
7137
6684
  parsedBody: parsedBody.Error,
7138
- exceptionCtor: __BaseException,
7139
6685
  errorCode,
7140
6686
  });
7141
6687
  }
@@ -7148,7 +6694,7 @@ export const de_UntagSAMLProviderCommand = async (output, context) => {
7148
6694
  const response = {
7149
6695
  $metadata: deserializeMetadata(output),
7150
6696
  };
7151
- return Promise.resolve(response);
6697
+ return response;
7152
6698
  };
7153
6699
  const de_UntagSAMLProviderCommandError = async (output, context) => {
7154
6700
  const parsedOutput = {
@@ -7171,10 +6717,9 @@ const de_UntagSAMLProviderCommandError = async (output, context) => {
7171
6717
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7172
6718
  default:
7173
6719
  const parsedBody = parsedOutput.body;
7174
- throwDefaultError({
6720
+ return throwDefaultError({
7175
6721
  output,
7176
6722
  parsedBody: parsedBody.Error,
7177
- exceptionCtor: __BaseException,
7178
6723
  errorCode,
7179
6724
  });
7180
6725
  }
@@ -7187,7 +6732,7 @@ export const de_UntagServerCertificateCommand = async (output, context) => {
7187
6732
  const response = {
7188
6733
  $metadata: deserializeMetadata(output),
7189
6734
  };
7190
- return Promise.resolve(response);
6735
+ return response;
7191
6736
  };
7192
6737
  const de_UntagServerCertificateCommandError = async (output, context) => {
7193
6738
  const parsedOutput = {
@@ -7210,10 +6755,9 @@ const de_UntagServerCertificateCommandError = async (output, context) => {
7210
6755
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7211
6756
  default:
7212
6757
  const parsedBody = parsedOutput.body;
7213
- throwDefaultError({
6758
+ return throwDefaultError({
7214
6759
  output,
7215
6760
  parsedBody: parsedBody.Error,
7216
- exceptionCtor: __BaseException,
7217
6761
  errorCode,
7218
6762
  });
7219
6763
  }
@@ -7226,7 +6770,7 @@ export const de_UntagUserCommand = async (output, context) => {
7226
6770
  const response = {
7227
6771
  $metadata: deserializeMetadata(output),
7228
6772
  };
7229
- return Promise.resolve(response);
6773
+ return response;
7230
6774
  };
7231
6775
  const de_UntagUserCommandError = async (output, context) => {
7232
6776
  const parsedOutput = {
@@ -7246,10 +6790,9 @@ const de_UntagUserCommandError = async (output, context) => {
7246
6790
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7247
6791
  default:
7248
6792
  const parsedBody = parsedOutput.body;
7249
- throwDefaultError({
6793
+ return throwDefaultError({
7250
6794
  output,
7251
6795
  parsedBody: parsedBody.Error,
7252
- exceptionCtor: __BaseException,
7253
6796
  errorCode,
7254
6797
  });
7255
6798
  }
@@ -7262,7 +6805,7 @@ export const de_UpdateAccessKeyCommand = async (output, context) => {
7262
6805
  const response = {
7263
6806
  $metadata: deserializeMetadata(output),
7264
6807
  };
7265
- return Promise.resolve(response);
6808
+ return response;
7266
6809
  };
7267
6810
  const de_UpdateAccessKeyCommandError = async (output, context) => {
7268
6811
  const parsedOutput = {
@@ -7282,10 +6825,9 @@ const de_UpdateAccessKeyCommandError = async (output, context) => {
7282
6825
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7283
6826
  default:
7284
6827
  const parsedBody = parsedOutput.body;
7285
- throwDefaultError({
6828
+ return throwDefaultError({
7286
6829
  output,
7287
6830
  parsedBody: parsedBody.Error,
7288
- exceptionCtor: __BaseException,
7289
6831
  errorCode,
7290
6832
  });
7291
6833
  }
@@ -7298,7 +6840,7 @@ export const de_UpdateAccountPasswordPolicyCommand = async (output, context) =>
7298
6840
  const response = {
7299
6841
  $metadata: deserializeMetadata(output),
7300
6842
  };
7301
- return Promise.resolve(response);
6843
+ return response;
7302
6844
  };
7303
6845
  const de_UpdateAccountPasswordPolicyCommandError = async (output, context) => {
7304
6846
  const parsedOutput = {
@@ -7321,10 +6863,9 @@ const de_UpdateAccountPasswordPolicyCommandError = async (output, context) => {
7321
6863
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7322
6864
  default:
7323
6865
  const parsedBody = parsedOutput.body;
7324
- throwDefaultError({
6866
+ return throwDefaultError({
7325
6867
  output,
7326
6868
  parsedBody: parsedBody.Error,
7327
- exceptionCtor: __BaseException,
7328
6869
  errorCode,
7329
6870
  });
7330
6871
  }
@@ -7337,7 +6878,7 @@ export const de_UpdateAssumeRolePolicyCommand = async (output, context) => {
7337
6878
  const response = {
7338
6879
  $metadata: deserializeMetadata(output),
7339
6880
  };
7340
- return Promise.resolve(response);
6881
+ return response;
7341
6882
  };
7342
6883
  const de_UpdateAssumeRolePolicyCommandError = async (output, context) => {
7343
6884
  const parsedOutput = {
@@ -7363,10 +6904,9 @@ const de_UpdateAssumeRolePolicyCommandError = async (output, context) => {
7363
6904
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
7364
6905
  default:
7365
6906
  const parsedBody = parsedOutput.body;
7366
- throwDefaultError({
6907
+ return throwDefaultError({
7367
6908
  output,
7368
6909
  parsedBody: parsedBody.Error,
7369
- exceptionCtor: __BaseException,
7370
6910
  errorCode,
7371
6911
  });
7372
6912
  }
@@ -7379,7 +6919,7 @@ export const de_UpdateGroupCommand = async (output, context) => {
7379
6919
  const response = {
7380
6920
  $metadata: deserializeMetadata(output),
7381
6921
  };
7382
- return Promise.resolve(response);
6922
+ return response;
7383
6923
  };
7384
6924
  const de_UpdateGroupCommandError = async (output, context) => {
7385
6925
  const parsedOutput = {
@@ -7402,10 +6942,9 @@ const de_UpdateGroupCommandError = async (output, context) => {
7402
6942
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7403
6943
  default:
7404
6944
  const parsedBody = parsedOutput.body;
7405
- throwDefaultError({
6945
+ return throwDefaultError({
7406
6946
  output,
7407
6947
  parsedBody: parsedBody.Error,
7408
- exceptionCtor: __BaseException,
7409
6948
  errorCode,
7410
6949
  });
7411
6950
  }
@@ -7418,7 +6957,7 @@ export const de_UpdateLoginProfileCommand = async (output, context) => {
7418
6957
  const response = {
7419
6958
  $metadata: deserializeMetadata(output),
7420
6959
  };
7421
- return Promise.resolve(response);
6960
+ return response;
7422
6961
  };
7423
6962
  const de_UpdateLoginProfileCommandError = async (output, context) => {
7424
6963
  const parsedOutput = {
@@ -7444,10 +6983,9 @@ const de_UpdateLoginProfileCommandError = async (output, context) => {
7444
6983
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7445
6984
  default:
7446
6985
  const parsedBody = parsedOutput.body;
7447
- throwDefaultError({
6986
+ return throwDefaultError({
7448
6987
  output,
7449
6988
  parsedBody: parsedBody.Error,
7450
- exceptionCtor: __BaseException,
7451
6989
  errorCode,
7452
6990
  });
7453
6991
  }
@@ -7460,7 +6998,7 @@ export const de_UpdateOpenIDConnectProviderThumbprintCommand = async (output, co
7460
6998
  const response = {
7461
6999
  $metadata: deserializeMetadata(output),
7462
7000
  };
7463
- return Promise.resolve(response);
7001
+ return response;
7464
7002
  };
7465
7003
  const de_UpdateOpenIDConnectProviderThumbprintCommandError = async (output, context) => {
7466
7004
  const parsedOutput = {
@@ -7480,10 +7018,9 @@ const de_UpdateOpenIDConnectProviderThumbprintCommandError = async (output, cont
7480
7018
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7481
7019
  default:
7482
7020
  const parsedBody = parsedOutput.body;
7483
- throwDefaultError({
7021
+ return throwDefaultError({
7484
7022
  output,
7485
7023
  parsedBody: parsedBody.Error,
7486
- exceptionCtor: __BaseException,
7487
7024
  errorCode,
7488
7025
  });
7489
7026
  }
@@ -7499,7 +7036,7 @@ export const de_UpdateRoleCommand = async (output, context) => {
7499
7036
  $metadata: deserializeMetadata(output),
7500
7037
  ...contents,
7501
7038
  };
7502
- return Promise.resolve(response);
7039
+ return response;
7503
7040
  };
7504
7041
  const de_UpdateRoleCommandError = async (output, context) => {
7505
7042
  const parsedOutput = {
@@ -7519,10 +7056,9 @@ const de_UpdateRoleCommandError = async (output, context) => {
7519
7056
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
7520
7057
  default:
7521
7058
  const parsedBody = parsedOutput.body;
7522
- throwDefaultError({
7059
+ return throwDefaultError({
7523
7060
  output,
7524
7061
  parsedBody: parsedBody.Error,
7525
- exceptionCtor: __BaseException,
7526
7062
  errorCode,
7527
7063
  });
7528
7064
  }
@@ -7538,7 +7074,7 @@ export const de_UpdateRoleDescriptionCommand = async (output, context) => {
7538
7074
  $metadata: deserializeMetadata(output),
7539
7075
  ...contents,
7540
7076
  };
7541
- return Promise.resolve(response);
7077
+ return response;
7542
7078
  };
7543
7079
  const de_UpdateRoleDescriptionCommandError = async (output, context) => {
7544
7080
  const parsedOutput = {
@@ -7558,10 +7094,9 @@ const de_UpdateRoleDescriptionCommandError = async (output, context) => {
7558
7094
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
7559
7095
  default:
7560
7096
  const parsedBody = parsedOutput.body;
7561
- throwDefaultError({
7097
+ return throwDefaultError({
7562
7098
  output,
7563
7099
  parsedBody: parsedBody.Error,
7564
- exceptionCtor: __BaseException,
7565
7100
  errorCode,
7566
7101
  });
7567
7102
  }
@@ -7577,7 +7112,7 @@ export const de_UpdateSAMLProviderCommand = async (output, context) => {
7577
7112
  $metadata: deserializeMetadata(output),
7578
7113
  ...contents,
7579
7114
  };
7580
- return Promise.resolve(response);
7115
+ return response;
7581
7116
  };
7582
7117
  const de_UpdateSAMLProviderCommandError = async (output, context) => {
7583
7118
  const parsedOutput = {
@@ -7600,10 +7135,9 @@ const de_UpdateSAMLProviderCommandError = async (output, context) => {
7600
7135
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7601
7136
  default:
7602
7137
  const parsedBody = parsedOutput.body;
7603
- throwDefaultError({
7138
+ return throwDefaultError({
7604
7139
  output,
7605
7140
  parsedBody: parsedBody.Error,
7606
- exceptionCtor: __BaseException,
7607
7141
  errorCode,
7608
7142
  });
7609
7143
  }
@@ -7616,7 +7150,7 @@ export const de_UpdateServerCertificateCommand = async (output, context) => {
7616
7150
  const response = {
7617
7151
  $metadata: deserializeMetadata(output),
7618
7152
  };
7619
- return Promise.resolve(response);
7153
+ return response;
7620
7154
  };
7621
7155
  const de_UpdateServerCertificateCommandError = async (output, context) => {
7622
7156
  const parsedOutput = {
@@ -7639,10 +7173,9 @@ const de_UpdateServerCertificateCommandError = async (output, context) => {
7639
7173
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7640
7174
  default:
7641
7175
  const parsedBody = parsedOutput.body;
7642
- throwDefaultError({
7176
+ return throwDefaultError({
7643
7177
  output,
7644
7178
  parsedBody: parsedBody.Error,
7645
- exceptionCtor: __BaseException,
7646
7179
  errorCode,
7647
7180
  });
7648
7181
  }
@@ -7655,7 +7188,7 @@ export const de_UpdateServiceSpecificCredentialCommand = async (output, context)
7655
7188
  const response = {
7656
7189
  $metadata: deserializeMetadata(output),
7657
7190
  };
7658
- return Promise.resolve(response);
7191
+ return response;
7659
7192
  };
7660
7193
  const de_UpdateServiceSpecificCredentialCommandError = async (output, context) => {
7661
7194
  const parsedOutput = {
@@ -7669,10 +7202,9 @@ const de_UpdateServiceSpecificCredentialCommandError = async (output, context) =
7669
7202
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
7670
7203
  default:
7671
7204
  const parsedBody = parsedOutput.body;
7672
- throwDefaultError({
7205
+ return throwDefaultError({
7673
7206
  output,
7674
7207
  parsedBody: parsedBody.Error,
7675
- exceptionCtor: __BaseException,
7676
7208
  errorCode,
7677
7209
  });
7678
7210
  }
@@ -7685,7 +7217,7 @@ export const de_UpdateSigningCertificateCommand = async (output, context) => {
7685
7217
  const response = {
7686
7218
  $metadata: deserializeMetadata(output),
7687
7219
  };
7688
- return Promise.resolve(response);
7220
+ return response;
7689
7221
  };
7690
7222
  const de_UpdateSigningCertificateCommandError = async (output, context) => {
7691
7223
  const parsedOutput = {
@@ -7705,10 +7237,9 @@ const de_UpdateSigningCertificateCommandError = async (output, context) => {
7705
7237
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7706
7238
  default:
7707
7239
  const parsedBody = parsedOutput.body;
7708
- throwDefaultError({
7240
+ return throwDefaultError({
7709
7241
  output,
7710
7242
  parsedBody: parsedBody.Error,
7711
- exceptionCtor: __BaseException,
7712
7243
  errorCode,
7713
7244
  });
7714
7245
  }
@@ -7721,7 +7252,7 @@ export const de_UpdateSSHPublicKeyCommand = async (output, context) => {
7721
7252
  const response = {
7722
7253
  $metadata: deserializeMetadata(output),
7723
7254
  };
7724
- return Promise.resolve(response);
7255
+ return response;
7725
7256
  };
7726
7257
  const de_UpdateSSHPublicKeyCommandError = async (output, context) => {
7727
7258
  const parsedOutput = {
@@ -7735,10 +7266,9 @@ const de_UpdateSSHPublicKeyCommandError = async (output, context) => {
7735
7266
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
7736
7267
  default:
7737
7268
  const parsedBody = parsedOutput.body;
7738
- throwDefaultError({
7269
+ return throwDefaultError({
7739
7270
  output,
7740
7271
  parsedBody: parsedBody.Error,
7741
- exceptionCtor: __BaseException,
7742
7272
  errorCode,
7743
7273
  });
7744
7274
  }
@@ -7751,7 +7281,7 @@ export const de_UpdateUserCommand = async (output, context) => {
7751
7281
  const response = {
7752
7282
  $metadata: deserializeMetadata(output),
7753
7283
  };
7754
- return Promise.resolve(response);
7284
+ return response;
7755
7285
  };
7756
7286
  const de_UpdateUserCommandError = async (output, context) => {
7757
7287
  const parsedOutput = {
@@ -7780,10 +7310,9 @@ const de_UpdateUserCommandError = async (output, context) => {
7780
7310
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7781
7311
  default:
7782
7312
  const parsedBody = parsedOutput.body;
7783
- throwDefaultError({
7313
+ return throwDefaultError({
7784
7314
  output,
7785
7315
  parsedBody: parsedBody.Error,
7786
- exceptionCtor: __BaseException,
7787
7316
  errorCode,
7788
7317
  });
7789
7318
  }
@@ -7799,7 +7328,7 @@ export const de_UploadServerCertificateCommand = async (output, context) => {
7799
7328
  $metadata: deserializeMetadata(output),
7800
7329
  ...contents,
7801
7330
  };
7802
- return Promise.resolve(response);
7331
+ return response;
7803
7332
  };
7804
7333
  const de_UploadServerCertificateCommandError = async (output, context) => {
7805
7334
  const parsedOutput = {
@@ -7831,10 +7360,9 @@ const de_UploadServerCertificateCommandError = async (output, context) => {
7831
7360
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7832
7361
  default:
7833
7362
  const parsedBody = parsedOutput.body;
7834
- throwDefaultError({
7363
+ return throwDefaultError({
7835
7364
  output,
7836
7365
  parsedBody: parsedBody.Error,
7837
- exceptionCtor: __BaseException,
7838
7366
  errorCode,
7839
7367
  });
7840
7368
  }
@@ -7850,7 +7378,7 @@ export const de_UploadSigningCertificateCommand = async (output, context) => {
7850
7378
  $metadata: deserializeMetadata(output),
7851
7379
  ...contents,
7852
7380
  };
7853
- return Promise.resolve(response);
7381
+ return response;
7854
7382
  };
7855
7383
  const de_UploadSigningCertificateCommandError = async (output, context) => {
7856
7384
  const parsedOutput = {
@@ -7882,10 +7410,9 @@ const de_UploadSigningCertificateCommandError = async (output, context) => {
7882
7410
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7883
7411
  default:
7884
7412
  const parsedBody = parsedOutput.body;
7885
- throwDefaultError({
7413
+ return throwDefaultError({
7886
7414
  output,
7887
7415
  parsedBody: parsedBody.Error,
7888
- exceptionCtor: __BaseException,
7889
7416
  errorCode,
7890
7417
  });
7891
7418
  }
@@ -7901,7 +7428,7 @@ export const de_UploadSSHPublicKeyCommand = async (output, context) => {
7901
7428
  $metadata: deserializeMetadata(output),
7902
7429
  ...contents,
7903
7430
  };
7904
- return Promise.resolve(response);
7431
+ return response;
7905
7432
  };
7906
7433
  const de_UploadSSHPublicKeyCommandError = async (output, context) => {
7907
7434
  const parsedOutput = {
@@ -7927,10 +7454,9 @@ const de_UploadSSHPublicKeyCommandError = async (output, context) => {
7927
7454
  throw await de_UnrecognizedPublicKeyEncodingExceptionRes(parsedOutput, context);
7928
7455
  default:
7929
7456
  const parsedBody = parsedOutput.body;
7930
- throwDefaultError({
7457
+ return throwDefaultError({
7931
7458
  output,
7932
7459
  parsedBody: parsedBody.Error,
7933
- exceptionCtor: __BaseException,
7934
7460
  errorCode,
7935
7461
  });
7936
7462
  }
@@ -13018,6 +12544,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
13018
12544
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
13019
12545
  };
13020
12546
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
12547
+ const throwDefaultError = withBaseException(__BaseException);
13021
12548
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
13022
12549
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
13023
12550
  const contents = {
@@ -13036,6 +12563,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
13036
12563
  }
13037
12564
  return new __HttpRequest(contents);
13038
12565
  };
12566
+ const SHARED_HEADERS = {
12567
+ "content-type": "application/x-www-form-urlencoded",
12568
+ };
13039
12569
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
13040
12570
  if (encoded.length) {
13041
12571
  const parser = new XMLParser({