@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.
@@ -14,9 +14,7 @@ const IAMServiceException_1 = require("../models/IAMServiceException");
14
14
  const models_0_1 = require("../models/models_0");
15
15
  const models_1_1 = require("../models/models_1");
16
16
  const se_AddClientIDToOpenIDConnectProviderCommand = async (input, context) => {
17
- const headers = {
18
- "content-type": "application/x-www-form-urlencoded",
19
- };
17
+ const headers = SHARED_HEADERS;
20
18
  let body;
21
19
  body = buildFormUrlencodedString({
22
20
  ...se_AddClientIDToOpenIDConnectProviderRequest(input, context),
@@ -27,9 +25,7 @@ const se_AddClientIDToOpenIDConnectProviderCommand = async (input, context) => {
27
25
  };
28
26
  exports.se_AddClientIDToOpenIDConnectProviderCommand = se_AddClientIDToOpenIDConnectProviderCommand;
29
27
  const se_AddRoleToInstanceProfileCommand = async (input, context) => {
30
- const headers = {
31
- "content-type": "application/x-www-form-urlencoded",
32
- };
28
+ const headers = SHARED_HEADERS;
33
29
  let body;
34
30
  body = buildFormUrlencodedString({
35
31
  ...se_AddRoleToInstanceProfileRequest(input, context),
@@ -40,9 +36,7 @@ const se_AddRoleToInstanceProfileCommand = async (input, context) => {
40
36
  };
41
37
  exports.se_AddRoleToInstanceProfileCommand = se_AddRoleToInstanceProfileCommand;
42
38
  const se_AddUserToGroupCommand = async (input, context) => {
43
- const headers = {
44
- "content-type": "application/x-www-form-urlencoded",
45
- };
39
+ const headers = SHARED_HEADERS;
46
40
  let body;
47
41
  body = buildFormUrlencodedString({
48
42
  ...se_AddUserToGroupRequest(input, context),
@@ -53,9 +47,7 @@ const se_AddUserToGroupCommand = async (input, context) => {
53
47
  };
54
48
  exports.se_AddUserToGroupCommand = se_AddUserToGroupCommand;
55
49
  const se_AttachGroupPolicyCommand = async (input, context) => {
56
- const headers = {
57
- "content-type": "application/x-www-form-urlencoded",
58
- };
50
+ const headers = SHARED_HEADERS;
59
51
  let body;
60
52
  body = buildFormUrlencodedString({
61
53
  ...se_AttachGroupPolicyRequest(input, context),
@@ -66,9 +58,7 @@ const se_AttachGroupPolicyCommand = async (input, context) => {
66
58
  };
67
59
  exports.se_AttachGroupPolicyCommand = se_AttachGroupPolicyCommand;
68
60
  const se_AttachRolePolicyCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-www-form-urlencoded",
71
- };
61
+ const headers = SHARED_HEADERS;
72
62
  let body;
73
63
  body = buildFormUrlencodedString({
74
64
  ...se_AttachRolePolicyRequest(input, context),
@@ -79,9 +69,7 @@ const se_AttachRolePolicyCommand = async (input, context) => {
79
69
  };
80
70
  exports.se_AttachRolePolicyCommand = se_AttachRolePolicyCommand;
81
71
  const se_AttachUserPolicyCommand = async (input, context) => {
82
- const headers = {
83
- "content-type": "application/x-www-form-urlencoded",
84
- };
72
+ const headers = SHARED_HEADERS;
85
73
  let body;
86
74
  body = buildFormUrlencodedString({
87
75
  ...se_AttachUserPolicyRequest(input, context),
@@ -92,9 +80,7 @@ const se_AttachUserPolicyCommand = async (input, context) => {
92
80
  };
93
81
  exports.se_AttachUserPolicyCommand = se_AttachUserPolicyCommand;
94
82
  const se_ChangePasswordCommand = async (input, context) => {
95
- const headers = {
96
- "content-type": "application/x-www-form-urlencoded",
97
- };
83
+ const headers = SHARED_HEADERS;
98
84
  let body;
99
85
  body = buildFormUrlencodedString({
100
86
  ...se_ChangePasswordRequest(input, context),
@@ -105,9 +91,7 @@ const se_ChangePasswordCommand = async (input, context) => {
105
91
  };
106
92
  exports.se_ChangePasswordCommand = se_ChangePasswordCommand;
107
93
  const se_CreateAccessKeyCommand = async (input, context) => {
108
- const headers = {
109
- "content-type": "application/x-www-form-urlencoded",
110
- };
94
+ const headers = SHARED_HEADERS;
111
95
  let body;
112
96
  body = buildFormUrlencodedString({
113
97
  ...se_CreateAccessKeyRequest(input, context),
@@ -118,9 +102,7 @@ const se_CreateAccessKeyCommand = async (input, context) => {
118
102
  };
119
103
  exports.se_CreateAccessKeyCommand = se_CreateAccessKeyCommand;
120
104
  const se_CreateAccountAliasCommand = async (input, context) => {
121
- const headers = {
122
- "content-type": "application/x-www-form-urlencoded",
123
- };
105
+ const headers = SHARED_HEADERS;
124
106
  let body;
125
107
  body = buildFormUrlencodedString({
126
108
  ...se_CreateAccountAliasRequest(input, context),
@@ -131,9 +113,7 @@ const se_CreateAccountAliasCommand = async (input, context) => {
131
113
  };
132
114
  exports.se_CreateAccountAliasCommand = se_CreateAccountAliasCommand;
133
115
  const se_CreateGroupCommand = async (input, context) => {
134
- const headers = {
135
- "content-type": "application/x-www-form-urlencoded",
136
- };
116
+ const headers = SHARED_HEADERS;
137
117
  let body;
138
118
  body = buildFormUrlencodedString({
139
119
  ...se_CreateGroupRequest(input, context),
@@ -144,9 +124,7 @@ const se_CreateGroupCommand = async (input, context) => {
144
124
  };
145
125
  exports.se_CreateGroupCommand = se_CreateGroupCommand;
146
126
  const se_CreateInstanceProfileCommand = async (input, context) => {
147
- const headers = {
148
- "content-type": "application/x-www-form-urlencoded",
149
- };
127
+ const headers = SHARED_HEADERS;
150
128
  let body;
151
129
  body = buildFormUrlencodedString({
152
130
  ...se_CreateInstanceProfileRequest(input, context),
@@ -157,9 +135,7 @@ const se_CreateInstanceProfileCommand = async (input, context) => {
157
135
  };
158
136
  exports.se_CreateInstanceProfileCommand = se_CreateInstanceProfileCommand;
159
137
  const se_CreateLoginProfileCommand = async (input, context) => {
160
- const headers = {
161
- "content-type": "application/x-www-form-urlencoded",
162
- };
138
+ const headers = SHARED_HEADERS;
163
139
  let body;
164
140
  body = buildFormUrlencodedString({
165
141
  ...se_CreateLoginProfileRequest(input, context),
@@ -170,9 +146,7 @@ const se_CreateLoginProfileCommand = async (input, context) => {
170
146
  };
171
147
  exports.se_CreateLoginProfileCommand = se_CreateLoginProfileCommand;
172
148
  const se_CreateOpenIDConnectProviderCommand = async (input, context) => {
173
- const headers = {
174
- "content-type": "application/x-www-form-urlencoded",
175
- };
149
+ const headers = SHARED_HEADERS;
176
150
  let body;
177
151
  body = buildFormUrlencodedString({
178
152
  ...se_CreateOpenIDConnectProviderRequest(input, context),
@@ -183,9 +157,7 @@ const se_CreateOpenIDConnectProviderCommand = async (input, context) => {
183
157
  };
184
158
  exports.se_CreateOpenIDConnectProviderCommand = se_CreateOpenIDConnectProviderCommand;
185
159
  const se_CreatePolicyCommand = async (input, context) => {
186
- const headers = {
187
- "content-type": "application/x-www-form-urlencoded",
188
- };
160
+ const headers = SHARED_HEADERS;
189
161
  let body;
190
162
  body = buildFormUrlencodedString({
191
163
  ...se_CreatePolicyRequest(input, context),
@@ -196,9 +168,7 @@ const se_CreatePolicyCommand = async (input, context) => {
196
168
  };
197
169
  exports.se_CreatePolicyCommand = se_CreatePolicyCommand;
198
170
  const se_CreatePolicyVersionCommand = async (input, context) => {
199
- const headers = {
200
- "content-type": "application/x-www-form-urlencoded",
201
- };
171
+ const headers = SHARED_HEADERS;
202
172
  let body;
203
173
  body = buildFormUrlencodedString({
204
174
  ...se_CreatePolicyVersionRequest(input, context),
@@ -209,9 +179,7 @@ const se_CreatePolicyVersionCommand = async (input, context) => {
209
179
  };
210
180
  exports.se_CreatePolicyVersionCommand = se_CreatePolicyVersionCommand;
211
181
  const se_CreateRoleCommand = async (input, context) => {
212
- const headers = {
213
- "content-type": "application/x-www-form-urlencoded",
214
- };
182
+ const headers = SHARED_HEADERS;
215
183
  let body;
216
184
  body = buildFormUrlencodedString({
217
185
  ...se_CreateRoleRequest(input, context),
@@ -222,9 +190,7 @@ const se_CreateRoleCommand = async (input, context) => {
222
190
  };
223
191
  exports.se_CreateRoleCommand = se_CreateRoleCommand;
224
192
  const se_CreateSAMLProviderCommand = async (input, context) => {
225
- const headers = {
226
- "content-type": "application/x-www-form-urlencoded",
227
- };
193
+ const headers = SHARED_HEADERS;
228
194
  let body;
229
195
  body = buildFormUrlencodedString({
230
196
  ...se_CreateSAMLProviderRequest(input, context),
@@ -235,9 +201,7 @@ const se_CreateSAMLProviderCommand = async (input, context) => {
235
201
  };
236
202
  exports.se_CreateSAMLProviderCommand = se_CreateSAMLProviderCommand;
237
203
  const se_CreateServiceLinkedRoleCommand = async (input, context) => {
238
- const headers = {
239
- "content-type": "application/x-www-form-urlencoded",
240
- };
204
+ const headers = SHARED_HEADERS;
241
205
  let body;
242
206
  body = buildFormUrlencodedString({
243
207
  ...se_CreateServiceLinkedRoleRequest(input, context),
@@ -248,9 +212,7 @@ const se_CreateServiceLinkedRoleCommand = async (input, context) => {
248
212
  };
249
213
  exports.se_CreateServiceLinkedRoleCommand = se_CreateServiceLinkedRoleCommand;
250
214
  const se_CreateServiceSpecificCredentialCommand = async (input, context) => {
251
- const headers = {
252
- "content-type": "application/x-www-form-urlencoded",
253
- };
215
+ const headers = SHARED_HEADERS;
254
216
  let body;
255
217
  body = buildFormUrlencodedString({
256
218
  ...se_CreateServiceSpecificCredentialRequest(input, context),
@@ -261,9 +223,7 @@ const se_CreateServiceSpecificCredentialCommand = async (input, context) => {
261
223
  };
262
224
  exports.se_CreateServiceSpecificCredentialCommand = se_CreateServiceSpecificCredentialCommand;
263
225
  const se_CreateUserCommand = async (input, context) => {
264
- const headers = {
265
- "content-type": "application/x-www-form-urlencoded",
266
- };
226
+ const headers = SHARED_HEADERS;
267
227
  let body;
268
228
  body = buildFormUrlencodedString({
269
229
  ...se_CreateUserRequest(input, context),
@@ -274,9 +234,7 @@ const se_CreateUserCommand = async (input, context) => {
274
234
  };
275
235
  exports.se_CreateUserCommand = se_CreateUserCommand;
276
236
  const se_CreateVirtualMFADeviceCommand = async (input, context) => {
277
- const headers = {
278
- "content-type": "application/x-www-form-urlencoded",
279
- };
237
+ const headers = SHARED_HEADERS;
280
238
  let body;
281
239
  body = buildFormUrlencodedString({
282
240
  ...se_CreateVirtualMFADeviceRequest(input, context),
@@ -287,9 +245,7 @@ const se_CreateVirtualMFADeviceCommand = async (input, context) => {
287
245
  };
288
246
  exports.se_CreateVirtualMFADeviceCommand = se_CreateVirtualMFADeviceCommand;
289
247
  const se_DeactivateMFADeviceCommand = async (input, context) => {
290
- const headers = {
291
- "content-type": "application/x-www-form-urlencoded",
292
- };
248
+ const headers = SHARED_HEADERS;
293
249
  let body;
294
250
  body = buildFormUrlencodedString({
295
251
  ...se_DeactivateMFADeviceRequest(input, context),
@@ -300,9 +256,7 @@ const se_DeactivateMFADeviceCommand = async (input, context) => {
300
256
  };
301
257
  exports.se_DeactivateMFADeviceCommand = se_DeactivateMFADeviceCommand;
302
258
  const se_DeleteAccessKeyCommand = async (input, context) => {
303
- const headers = {
304
- "content-type": "application/x-www-form-urlencoded",
305
- };
259
+ const headers = SHARED_HEADERS;
306
260
  let body;
307
261
  body = buildFormUrlencodedString({
308
262
  ...se_DeleteAccessKeyRequest(input, context),
@@ -313,9 +267,7 @@ const se_DeleteAccessKeyCommand = async (input, context) => {
313
267
  };
314
268
  exports.se_DeleteAccessKeyCommand = se_DeleteAccessKeyCommand;
315
269
  const se_DeleteAccountAliasCommand = async (input, context) => {
316
- const headers = {
317
- "content-type": "application/x-www-form-urlencoded",
318
- };
270
+ const headers = SHARED_HEADERS;
319
271
  let body;
320
272
  body = buildFormUrlencodedString({
321
273
  ...se_DeleteAccountAliasRequest(input, context),
@@ -326,9 +278,7 @@ const se_DeleteAccountAliasCommand = async (input, context) => {
326
278
  };
327
279
  exports.se_DeleteAccountAliasCommand = se_DeleteAccountAliasCommand;
328
280
  const se_DeleteAccountPasswordPolicyCommand = async (input, context) => {
329
- const headers = {
330
- "content-type": "application/x-www-form-urlencoded",
331
- };
281
+ const headers = SHARED_HEADERS;
332
282
  const body = buildFormUrlencodedString({
333
283
  Action: "DeleteAccountPasswordPolicy",
334
284
  Version: "2010-05-08",
@@ -337,9 +287,7 @@ const se_DeleteAccountPasswordPolicyCommand = async (input, context) => {
337
287
  };
338
288
  exports.se_DeleteAccountPasswordPolicyCommand = se_DeleteAccountPasswordPolicyCommand;
339
289
  const se_DeleteGroupCommand = async (input, context) => {
340
- const headers = {
341
- "content-type": "application/x-www-form-urlencoded",
342
- };
290
+ const headers = SHARED_HEADERS;
343
291
  let body;
344
292
  body = buildFormUrlencodedString({
345
293
  ...se_DeleteGroupRequest(input, context),
@@ -350,9 +298,7 @@ const se_DeleteGroupCommand = async (input, context) => {
350
298
  };
351
299
  exports.se_DeleteGroupCommand = se_DeleteGroupCommand;
352
300
  const se_DeleteGroupPolicyCommand = async (input, context) => {
353
- const headers = {
354
- "content-type": "application/x-www-form-urlencoded",
355
- };
301
+ const headers = SHARED_HEADERS;
356
302
  let body;
357
303
  body = buildFormUrlencodedString({
358
304
  ...se_DeleteGroupPolicyRequest(input, context),
@@ -363,9 +309,7 @@ const se_DeleteGroupPolicyCommand = async (input, context) => {
363
309
  };
364
310
  exports.se_DeleteGroupPolicyCommand = se_DeleteGroupPolicyCommand;
365
311
  const se_DeleteInstanceProfileCommand = async (input, context) => {
366
- const headers = {
367
- "content-type": "application/x-www-form-urlencoded",
368
- };
312
+ const headers = SHARED_HEADERS;
369
313
  let body;
370
314
  body = buildFormUrlencodedString({
371
315
  ...se_DeleteInstanceProfileRequest(input, context),
@@ -376,9 +320,7 @@ const se_DeleteInstanceProfileCommand = async (input, context) => {
376
320
  };
377
321
  exports.se_DeleteInstanceProfileCommand = se_DeleteInstanceProfileCommand;
378
322
  const se_DeleteLoginProfileCommand = async (input, context) => {
379
- const headers = {
380
- "content-type": "application/x-www-form-urlencoded",
381
- };
323
+ const headers = SHARED_HEADERS;
382
324
  let body;
383
325
  body = buildFormUrlencodedString({
384
326
  ...se_DeleteLoginProfileRequest(input, context),
@@ -389,9 +331,7 @@ const se_DeleteLoginProfileCommand = async (input, context) => {
389
331
  };
390
332
  exports.se_DeleteLoginProfileCommand = se_DeleteLoginProfileCommand;
391
333
  const se_DeleteOpenIDConnectProviderCommand = async (input, context) => {
392
- const headers = {
393
- "content-type": "application/x-www-form-urlencoded",
394
- };
334
+ const headers = SHARED_HEADERS;
395
335
  let body;
396
336
  body = buildFormUrlencodedString({
397
337
  ...se_DeleteOpenIDConnectProviderRequest(input, context),
@@ -402,9 +342,7 @@ const se_DeleteOpenIDConnectProviderCommand = async (input, context) => {
402
342
  };
403
343
  exports.se_DeleteOpenIDConnectProviderCommand = se_DeleteOpenIDConnectProviderCommand;
404
344
  const se_DeletePolicyCommand = async (input, context) => {
405
- const headers = {
406
- "content-type": "application/x-www-form-urlencoded",
407
- };
345
+ const headers = SHARED_HEADERS;
408
346
  let body;
409
347
  body = buildFormUrlencodedString({
410
348
  ...se_DeletePolicyRequest(input, context),
@@ -415,9 +353,7 @@ const se_DeletePolicyCommand = async (input, context) => {
415
353
  };
416
354
  exports.se_DeletePolicyCommand = se_DeletePolicyCommand;
417
355
  const se_DeletePolicyVersionCommand = async (input, context) => {
418
- const headers = {
419
- "content-type": "application/x-www-form-urlencoded",
420
- };
356
+ const headers = SHARED_HEADERS;
421
357
  let body;
422
358
  body = buildFormUrlencodedString({
423
359
  ...se_DeletePolicyVersionRequest(input, context),
@@ -428,9 +364,7 @@ const se_DeletePolicyVersionCommand = async (input, context) => {
428
364
  };
429
365
  exports.se_DeletePolicyVersionCommand = se_DeletePolicyVersionCommand;
430
366
  const se_DeleteRoleCommand = async (input, context) => {
431
- const headers = {
432
- "content-type": "application/x-www-form-urlencoded",
433
- };
367
+ const headers = SHARED_HEADERS;
434
368
  let body;
435
369
  body = buildFormUrlencodedString({
436
370
  ...se_DeleteRoleRequest(input, context),
@@ -441,9 +375,7 @@ const se_DeleteRoleCommand = async (input, context) => {
441
375
  };
442
376
  exports.se_DeleteRoleCommand = se_DeleteRoleCommand;
443
377
  const se_DeleteRolePermissionsBoundaryCommand = async (input, context) => {
444
- const headers = {
445
- "content-type": "application/x-www-form-urlencoded",
446
- };
378
+ const headers = SHARED_HEADERS;
447
379
  let body;
448
380
  body = buildFormUrlencodedString({
449
381
  ...se_DeleteRolePermissionsBoundaryRequest(input, context),
@@ -454,9 +386,7 @@ const se_DeleteRolePermissionsBoundaryCommand = async (input, context) => {
454
386
  };
455
387
  exports.se_DeleteRolePermissionsBoundaryCommand = se_DeleteRolePermissionsBoundaryCommand;
456
388
  const se_DeleteRolePolicyCommand = async (input, context) => {
457
- const headers = {
458
- "content-type": "application/x-www-form-urlencoded",
459
- };
389
+ const headers = SHARED_HEADERS;
460
390
  let body;
461
391
  body = buildFormUrlencodedString({
462
392
  ...se_DeleteRolePolicyRequest(input, context),
@@ -467,9 +397,7 @@ const se_DeleteRolePolicyCommand = async (input, context) => {
467
397
  };
468
398
  exports.se_DeleteRolePolicyCommand = se_DeleteRolePolicyCommand;
469
399
  const se_DeleteSAMLProviderCommand = async (input, context) => {
470
- const headers = {
471
- "content-type": "application/x-www-form-urlencoded",
472
- };
400
+ const headers = SHARED_HEADERS;
473
401
  let body;
474
402
  body = buildFormUrlencodedString({
475
403
  ...se_DeleteSAMLProviderRequest(input, context),
@@ -480,9 +408,7 @@ const se_DeleteSAMLProviderCommand = async (input, context) => {
480
408
  };
481
409
  exports.se_DeleteSAMLProviderCommand = se_DeleteSAMLProviderCommand;
482
410
  const se_DeleteServerCertificateCommand = async (input, context) => {
483
- const headers = {
484
- "content-type": "application/x-www-form-urlencoded",
485
- };
411
+ const headers = SHARED_HEADERS;
486
412
  let body;
487
413
  body = buildFormUrlencodedString({
488
414
  ...se_DeleteServerCertificateRequest(input, context),
@@ -493,9 +419,7 @@ const se_DeleteServerCertificateCommand = async (input, context) => {
493
419
  };
494
420
  exports.se_DeleteServerCertificateCommand = se_DeleteServerCertificateCommand;
495
421
  const se_DeleteServiceLinkedRoleCommand = async (input, context) => {
496
- const headers = {
497
- "content-type": "application/x-www-form-urlencoded",
498
- };
422
+ const headers = SHARED_HEADERS;
499
423
  let body;
500
424
  body = buildFormUrlencodedString({
501
425
  ...se_DeleteServiceLinkedRoleRequest(input, context),
@@ -506,9 +430,7 @@ const se_DeleteServiceLinkedRoleCommand = async (input, context) => {
506
430
  };
507
431
  exports.se_DeleteServiceLinkedRoleCommand = se_DeleteServiceLinkedRoleCommand;
508
432
  const se_DeleteServiceSpecificCredentialCommand = async (input, context) => {
509
- const headers = {
510
- "content-type": "application/x-www-form-urlencoded",
511
- };
433
+ const headers = SHARED_HEADERS;
512
434
  let body;
513
435
  body = buildFormUrlencodedString({
514
436
  ...se_DeleteServiceSpecificCredentialRequest(input, context),
@@ -519,9 +441,7 @@ const se_DeleteServiceSpecificCredentialCommand = async (input, context) => {
519
441
  };
520
442
  exports.se_DeleteServiceSpecificCredentialCommand = se_DeleteServiceSpecificCredentialCommand;
521
443
  const se_DeleteSigningCertificateCommand = async (input, context) => {
522
- const headers = {
523
- "content-type": "application/x-www-form-urlencoded",
524
- };
444
+ const headers = SHARED_HEADERS;
525
445
  let body;
526
446
  body = buildFormUrlencodedString({
527
447
  ...se_DeleteSigningCertificateRequest(input, context),
@@ -532,9 +452,7 @@ const se_DeleteSigningCertificateCommand = async (input, context) => {
532
452
  };
533
453
  exports.se_DeleteSigningCertificateCommand = se_DeleteSigningCertificateCommand;
534
454
  const se_DeleteSSHPublicKeyCommand = async (input, context) => {
535
- const headers = {
536
- "content-type": "application/x-www-form-urlencoded",
537
- };
455
+ const headers = SHARED_HEADERS;
538
456
  let body;
539
457
  body = buildFormUrlencodedString({
540
458
  ...se_DeleteSSHPublicKeyRequest(input, context),
@@ -545,9 +463,7 @@ const se_DeleteSSHPublicKeyCommand = async (input, context) => {
545
463
  };
546
464
  exports.se_DeleteSSHPublicKeyCommand = se_DeleteSSHPublicKeyCommand;
547
465
  const se_DeleteUserCommand = async (input, context) => {
548
- const headers = {
549
- "content-type": "application/x-www-form-urlencoded",
550
- };
466
+ const headers = SHARED_HEADERS;
551
467
  let body;
552
468
  body = buildFormUrlencodedString({
553
469
  ...se_DeleteUserRequest(input, context),
@@ -558,9 +474,7 @@ const se_DeleteUserCommand = async (input, context) => {
558
474
  };
559
475
  exports.se_DeleteUserCommand = se_DeleteUserCommand;
560
476
  const se_DeleteUserPermissionsBoundaryCommand = async (input, context) => {
561
- const headers = {
562
- "content-type": "application/x-www-form-urlencoded",
563
- };
477
+ const headers = SHARED_HEADERS;
564
478
  let body;
565
479
  body = buildFormUrlencodedString({
566
480
  ...se_DeleteUserPermissionsBoundaryRequest(input, context),
@@ -571,9 +485,7 @@ const se_DeleteUserPermissionsBoundaryCommand = async (input, context) => {
571
485
  };
572
486
  exports.se_DeleteUserPermissionsBoundaryCommand = se_DeleteUserPermissionsBoundaryCommand;
573
487
  const se_DeleteUserPolicyCommand = async (input, context) => {
574
- const headers = {
575
- "content-type": "application/x-www-form-urlencoded",
576
- };
488
+ const headers = SHARED_HEADERS;
577
489
  let body;
578
490
  body = buildFormUrlencodedString({
579
491
  ...se_DeleteUserPolicyRequest(input, context),
@@ -584,9 +496,7 @@ const se_DeleteUserPolicyCommand = async (input, context) => {
584
496
  };
585
497
  exports.se_DeleteUserPolicyCommand = se_DeleteUserPolicyCommand;
586
498
  const se_DeleteVirtualMFADeviceCommand = async (input, context) => {
587
- const headers = {
588
- "content-type": "application/x-www-form-urlencoded",
589
- };
499
+ const headers = SHARED_HEADERS;
590
500
  let body;
591
501
  body = buildFormUrlencodedString({
592
502
  ...se_DeleteVirtualMFADeviceRequest(input, context),
@@ -597,9 +507,7 @@ const se_DeleteVirtualMFADeviceCommand = async (input, context) => {
597
507
  };
598
508
  exports.se_DeleteVirtualMFADeviceCommand = se_DeleteVirtualMFADeviceCommand;
599
509
  const se_DetachGroupPolicyCommand = async (input, context) => {
600
- const headers = {
601
- "content-type": "application/x-www-form-urlencoded",
602
- };
510
+ const headers = SHARED_HEADERS;
603
511
  let body;
604
512
  body = buildFormUrlencodedString({
605
513
  ...se_DetachGroupPolicyRequest(input, context),
@@ -610,9 +518,7 @@ const se_DetachGroupPolicyCommand = async (input, context) => {
610
518
  };
611
519
  exports.se_DetachGroupPolicyCommand = se_DetachGroupPolicyCommand;
612
520
  const se_DetachRolePolicyCommand = async (input, context) => {
613
- const headers = {
614
- "content-type": "application/x-www-form-urlencoded",
615
- };
521
+ const headers = SHARED_HEADERS;
616
522
  let body;
617
523
  body = buildFormUrlencodedString({
618
524
  ...se_DetachRolePolicyRequest(input, context),
@@ -623,9 +529,7 @@ const se_DetachRolePolicyCommand = async (input, context) => {
623
529
  };
624
530
  exports.se_DetachRolePolicyCommand = se_DetachRolePolicyCommand;
625
531
  const se_DetachUserPolicyCommand = async (input, context) => {
626
- const headers = {
627
- "content-type": "application/x-www-form-urlencoded",
628
- };
532
+ const headers = SHARED_HEADERS;
629
533
  let body;
630
534
  body = buildFormUrlencodedString({
631
535
  ...se_DetachUserPolicyRequest(input, context),
@@ -636,9 +540,7 @@ const se_DetachUserPolicyCommand = async (input, context) => {
636
540
  };
637
541
  exports.se_DetachUserPolicyCommand = se_DetachUserPolicyCommand;
638
542
  const se_EnableMFADeviceCommand = async (input, context) => {
639
- const headers = {
640
- "content-type": "application/x-www-form-urlencoded",
641
- };
543
+ const headers = SHARED_HEADERS;
642
544
  let body;
643
545
  body = buildFormUrlencodedString({
644
546
  ...se_EnableMFADeviceRequest(input, context),
@@ -649,9 +551,7 @@ const se_EnableMFADeviceCommand = async (input, context) => {
649
551
  };
650
552
  exports.se_EnableMFADeviceCommand = se_EnableMFADeviceCommand;
651
553
  const se_GenerateCredentialReportCommand = async (input, context) => {
652
- const headers = {
653
- "content-type": "application/x-www-form-urlencoded",
654
- };
554
+ const headers = SHARED_HEADERS;
655
555
  const body = buildFormUrlencodedString({
656
556
  Action: "GenerateCredentialReport",
657
557
  Version: "2010-05-08",
@@ -660,9 +560,7 @@ const se_GenerateCredentialReportCommand = async (input, context) => {
660
560
  };
661
561
  exports.se_GenerateCredentialReportCommand = se_GenerateCredentialReportCommand;
662
562
  const se_GenerateOrganizationsAccessReportCommand = async (input, context) => {
663
- const headers = {
664
- "content-type": "application/x-www-form-urlencoded",
665
- };
563
+ const headers = SHARED_HEADERS;
666
564
  let body;
667
565
  body = buildFormUrlencodedString({
668
566
  ...se_GenerateOrganizationsAccessReportRequest(input, context),
@@ -673,9 +571,7 @@ const se_GenerateOrganizationsAccessReportCommand = async (input, context) => {
673
571
  };
674
572
  exports.se_GenerateOrganizationsAccessReportCommand = se_GenerateOrganizationsAccessReportCommand;
675
573
  const se_GenerateServiceLastAccessedDetailsCommand = async (input, context) => {
676
- const headers = {
677
- "content-type": "application/x-www-form-urlencoded",
678
- };
574
+ const headers = SHARED_HEADERS;
679
575
  let body;
680
576
  body = buildFormUrlencodedString({
681
577
  ...se_GenerateServiceLastAccessedDetailsRequest(input, context),
@@ -686,9 +582,7 @@ const se_GenerateServiceLastAccessedDetailsCommand = async (input, context) => {
686
582
  };
687
583
  exports.se_GenerateServiceLastAccessedDetailsCommand = se_GenerateServiceLastAccessedDetailsCommand;
688
584
  const se_GetAccessKeyLastUsedCommand = async (input, context) => {
689
- const headers = {
690
- "content-type": "application/x-www-form-urlencoded",
691
- };
585
+ const headers = SHARED_HEADERS;
692
586
  let body;
693
587
  body = buildFormUrlencodedString({
694
588
  ...se_GetAccessKeyLastUsedRequest(input, context),
@@ -699,9 +593,7 @@ const se_GetAccessKeyLastUsedCommand = async (input, context) => {
699
593
  };
700
594
  exports.se_GetAccessKeyLastUsedCommand = se_GetAccessKeyLastUsedCommand;
701
595
  const se_GetAccountAuthorizationDetailsCommand = async (input, context) => {
702
- const headers = {
703
- "content-type": "application/x-www-form-urlencoded",
704
- };
596
+ const headers = SHARED_HEADERS;
705
597
  let body;
706
598
  body = buildFormUrlencodedString({
707
599
  ...se_GetAccountAuthorizationDetailsRequest(input, context),
@@ -712,9 +604,7 @@ const se_GetAccountAuthorizationDetailsCommand = async (input, context) => {
712
604
  };
713
605
  exports.se_GetAccountAuthorizationDetailsCommand = se_GetAccountAuthorizationDetailsCommand;
714
606
  const se_GetAccountPasswordPolicyCommand = async (input, context) => {
715
- const headers = {
716
- "content-type": "application/x-www-form-urlencoded",
717
- };
607
+ const headers = SHARED_HEADERS;
718
608
  const body = buildFormUrlencodedString({
719
609
  Action: "GetAccountPasswordPolicy",
720
610
  Version: "2010-05-08",
@@ -723,9 +613,7 @@ const se_GetAccountPasswordPolicyCommand = async (input, context) => {
723
613
  };
724
614
  exports.se_GetAccountPasswordPolicyCommand = se_GetAccountPasswordPolicyCommand;
725
615
  const se_GetAccountSummaryCommand = async (input, context) => {
726
- const headers = {
727
- "content-type": "application/x-www-form-urlencoded",
728
- };
616
+ const headers = SHARED_HEADERS;
729
617
  const body = buildFormUrlencodedString({
730
618
  Action: "GetAccountSummary",
731
619
  Version: "2010-05-08",
@@ -734,9 +622,7 @@ const se_GetAccountSummaryCommand = async (input, context) => {
734
622
  };
735
623
  exports.se_GetAccountSummaryCommand = se_GetAccountSummaryCommand;
736
624
  const se_GetContextKeysForCustomPolicyCommand = async (input, context) => {
737
- const headers = {
738
- "content-type": "application/x-www-form-urlencoded",
739
- };
625
+ const headers = SHARED_HEADERS;
740
626
  let body;
741
627
  body = buildFormUrlencodedString({
742
628
  ...se_GetContextKeysForCustomPolicyRequest(input, context),
@@ -747,9 +633,7 @@ const se_GetContextKeysForCustomPolicyCommand = async (input, context) => {
747
633
  };
748
634
  exports.se_GetContextKeysForCustomPolicyCommand = se_GetContextKeysForCustomPolicyCommand;
749
635
  const se_GetContextKeysForPrincipalPolicyCommand = async (input, context) => {
750
- const headers = {
751
- "content-type": "application/x-www-form-urlencoded",
752
- };
636
+ const headers = SHARED_HEADERS;
753
637
  let body;
754
638
  body = buildFormUrlencodedString({
755
639
  ...se_GetContextKeysForPrincipalPolicyRequest(input, context),
@@ -760,9 +644,7 @@ const se_GetContextKeysForPrincipalPolicyCommand = async (input, context) => {
760
644
  };
761
645
  exports.se_GetContextKeysForPrincipalPolicyCommand = se_GetContextKeysForPrincipalPolicyCommand;
762
646
  const se_GetCredentialReportCommand = async (input, context) => {
763
- const headers = {
764
- "content-type": "application/x-www-form-urlencoded",
765
- };
647
+ const headers = SHARED_HEADERS;
766
648
  const body = buildFormUrlencodedString({
767
649
  Action: "GetCredentialReport",
768
650
  Version: "2010-05-08",
@@ -771,9 +653,7 @@ const se_GetCredentialReportCommand = async (input, context) => {
771
653
  };
772
654
  exports.se_GetCredentialReportCommand = se_GetCredentialReportCommand;
773
655
  const se_GetGroupCommand = async (input, context) => {
774
- const headers = {
775
- "content-type": "application/x-www-form-urlencoded",
776
- };
656
+ const headers = SHARED_HEADERS;
777
657
  let body;
778
658
  body = buildFormUrlencodedString({
779
659
  ...se_GetGroupRequest(input, context),
@@ -784,9 +664,7 @@ const se_GetGroupCommand = async (input, context) => {
784
664
  };
785
665
  exports.se_GetGroupCommand = se_GetGroupCommand;
786
666
  const se_GetGroupPolicyCommand = async (input, context) => {
787
- const headers = {
788
- "content-type": "application/x-www-form-urlencoded",
789
- };
667
+ const headers = SHARED_HEADERS;
790
668
  let body;
791
669
  body = buildFormUrlencodedString({
792
670
  ...se_GetGroupPolicyRequest(input, context),
@@ -797,9 +675,7 @@ const se_GetGroupPolicyCommand = async (input, context) => {
797
675
  };
798
676
  exports.se_GetGroupPolicyCommand = se_GetGroupPolicyCommand;
799
677
  const se_GetInstanceProfileCommand = async (input, context) => {
800
- const headers = {
801
- "content-type": "application/x-www-form-urlencoded",
802
- };
678
+ const headers = SHARED_HEADERS;
803
679
  let body;
804
680
  body = buildFormUrlencodedString({
805
681
  ...se_GetInstanceProfileRequest(input, context),
@@ -810,9 +686,7 @@ const se_GetInstanceProfileCommand = async (input, context) => {
810
686
  };
811
687
  exports.se_GetInstanceProfileCommand = se_GetInstanceProfileCommand;
812
688
  const se_GetLoginProfileCommand = async (input, context) => {
813
- const headers = {
814
- "content-type": "application/x-www-form-urlencoded",
815
- };
689
+ const headers = SHARED_HEADERS;
816
690
  let body;
817
691
  body = buildFormUrlencodedString({
818
692
  ...se_GetLoginProfileRequest(input, context),
@@ -823,9 +697,7 @@ const se_GetLoginProfileCommand = async (input, context) => {
823
697
  };
824
698
  exports.se_GetLoginProfileCommand = se_GetLoginProfileCommand;
825
699
  const se_GetOpenIDConnectProviderCommand = async (input, context) => {
826
- const headers = {
827
- "content-type": "application/x-www-form-urlencoded",
828
- };
700
+ const headers = SHARED_HEADERS;
829
701
  let body;
830
702
  body = buildFormUrlencodedString({
831
703
  ...se_GetOpenIDConnectProviderRequest(input, context),
@@ -836,9 +708,7 @@ const se_GetOpenIDConnectProviderCommand = async (input, context) => {
836
708
  };
837
709
  exports.se_GetOpenIDConnectProviderCommand = se_GetOpenIDConnectProviderCommand;
838
710
  const se_GetOrganizationsAccessReportCommand = async (input, context) => {
839
- const headers = {
840
- "content-type": "application/x-www-form-urlencoded",
841
- };
711
+ const headers = SHARED_HEADERS;
842
712
  let body;
843
713
  body = buildFormUrlencodedString({
844
714
  ...se_GetOrganizationsAccessReportRequest(input, context),
@@ -849,9 +719,7 @@ const se_GetOrganizationsAccessReportCommand = async (input, context) => {
849
719
  };
850
720
  exports.se_GetOrganizationsAccessReportCommand = se_GetOrganizationsAccessReportCommand;
851
721
  const se_GetPolicyCommand = async (input, context) => {
852
- const headers = {
853
- "content-type": "application/x-www-form-urlencoded",
854
- };
722
+ const headers = SHARED_HEADERS;
855
723
  let body;
856
724
  body = buildFormUrlencodedString({
857
725
  ...se_GetPolicyRequest(input, context),
@@ -862,9 +730,7 @@ const se_GetPolicyCommand = async (input, context) => {
862
730
  };
863
731
  exports.se_GetPolicyCommand = se_GetPolicyCommand;
864
732
  const se_GetPolicyVersionCommand = async (input, context) => {
865
- const headers = {
866
- "content-type": "application/x-www-form-urlencoded",
867
- };
733
+ const headers = SHARED_HEADERS;
868
734
  let body;
869
735
  body = buildFormUrlencodedString({
870
736
  ...se_GetPolicyVersionRequest(input, context),
@@ -875,9 +741,7 @@ const se_GetPolicyVersionCommand = async (input, context) => {
875
741
  };
876
742
  exports.se_GetPolicyVersionCommand = se_GetPolicyVersionCommand;
877
743
  const se_GetRoleCommand = async (input, context) => {
878
- const headers = {
879
- "content-type": "application/x-www-form-urlencoded",
880
- };
744
+ const headers = SHARED_HEADERS;
881
745
  let body;
882
746
  body = buildFormUrlencodedString({
883
747
  ...se_GetRoleRequest(input, context),
@@ -888,9 +752,7 @@ const se_GetRoleCommand = async (input, context) => {
888
752
  };
889
753
  exports.se_GetRoleCommand = se_GetRoleCommand;
890
754
  const se_GetRolePolicyCommand = async (input, context) => {
891
- const headers = {
892
- "content-type": "application/x-www-form-urlencoded",
893
- };
755
+ const headers = SHARED_HEADERS;
894
756
  let body;
895
757
  body = buildFormUrlencodedString({
896
758
  ...se_GetRolePolicyRequest(input, context),
@@ -901,9 +763,7 @@ const se_GetRolePolicyCommand = async (input, context) => {
901
763
  };
902
764
  exports.se_GetRolePolicyCommand = se_GetRolePolicyCommand;
903
765
  const se_GetSAMLProviderCommand = async (input, context) => {
904
- const headers = {
905
- "content-type": "application/x-www-form-urlencoded",
906
- };
766
+ const headers = SHARED_HEADERS;
907
767
  let body;
908
768
  body = buildFormUrlencodedString({
909
769
  ...se_GetSAMLProviderRequest(input, context),
@@ -914,9 +774,7 @@ const se_GetSAMLProviderCommand = async (input, context) => {
914
774
  };
915
775
  exports.se_GetSAMLProviderCommand = se_GetSAMLProviderCommand;
916
776
  const se_GetServerCertificateCommand = async (input, context) => {
917
- const headers = {
918
- "content-type": "application/x-www-form-urlencoded",
919
- };
777
+ const headers = SHARED_HEADERS;
920
778
  let body;
921
779
  body = buildFormUrlencodedString({
922
780
  ...se_GetServerCertificateRequest(input, context),
@@ -927,9 +785,7 @@ const se_GetServerCertificateCommand = async (input, context) => {
927
785
  };
928
786
  exports.se_GetServerCertificateCommand = se_GetServerCertificateCommand;
929
787
  const se_GetServiceLastAccessedDetailsCommand = async (input, context) => {
930
- const headers = {
931
- "content-type": "application/x-www-form-urlencoded",
932
- };
788
+ const headers = SHARED_HEADERS;
933
789
  let body;
934
790
  body = buildFormUrlencodedString({
935
791
  ...se_GetServiceLastAccessedDetailsRequest(input, context),
@@ -940,9 +796,7 @@ const se_GetServiceLastAccessedDetailsCommand = async (input, context) => {
940
796
  };
941
797
  exports.se_GetServiceLastAccessedDetailsCommand = se_GetServiceLastAccessedDetailsCommand;
942
798
  const se_GetServiceLastAccessedDetailsWithEntitiesCommand = async (input, context) => {
943
- const headers = {
944
- "content-type": "application/x-www-form-urlencoded",
945
- };
799
+ const headers = SHARED_HEADERS;
946
800
  let body;
947
801
  body = buildFormUrlencodedString({
948
802
  ...se_GetServiceLastAccessedDetailsWithEntitiesRequest(input, context),
@@ -953,9 +807,7 @@ const se_GetServiceLastAccessedDetailsWithEntitiesCommand = async (input, contex
953
807
  };
954
808
  exports.se_GetServiceLastAccessedDetailsWithEntitiesCommand = se_GetServiceLastAccessedDetailsWithEntitiesCommand;
955
809
  const se_GetServiceLinkedRoleDeletionStatusCommand = async (input, context) => {
956
- const headers = {
957
- "content-type": "application/x-www-form-urlencoded",
958
- };
810
+ const headers = SHARED_HEADERS;
959
811
  let body;
960
812
  body = buildFormUrlencodedString({
961
813
  ...se_GetServiceLinkedRoleDeletionStatusRequest(input, context),
@@ -966,9 +818,7 @@ const se_GetServiceLinkedRoleDeletionStatusCommand = async (input, context) => {
966
818
  };
967
819
  exports.se_GetServiceLinkedRoleDeletionStatusCommand = se_GetServiceLinkedRoleDeletionStatusCommand;
968
820
  const se_GetSSHPublicKeyCommand = async (input, context) => {
969
- const headers = {
970
- "content-type": "application/x-www-form-urlencoded",
971
- };
821
+ const headers = SHARED_HEADERS;
972
822
  let body;
973
823
  body = buildFormUrlencodedString({
974
824
  ...se_GetSSHPublicKeyRequest(input, context),
@@ -979,9 +829,7 @@ const se_GetSSHPublicKeyCommand = async (input, context) => {
979
829
  };
980
830
  exports.se_GetSSHPublicKeyCommand = se_GetSSHPublicKeyCommand;
981
831
  const se_GetUserCommand = async (input, context) => {
982
- const headers = {
983
- "content-type": "application/x-www-form-urlencoded",
984
- };
832
+ const headers = SHARED_HEADERS;
985
833
  let body;
986
834
  body = buildFormUrlencodedString({
987
835
  ...se_GetUserRequest(input, context),
@@ -992,9 +840,7 @@ const se_GetUserCommand = async (input, context) => {
992
840
  };
993
841
  exports.se_GetUserCommand = se_GetUserCommand;
994
842
  const se_GetUserPolicyCommand = async (input, context) => {
995
- const headers = {
996
- "content-type": "application/x-www-form-urlencoded",
997
- };
843
+ const headers = SHARED_HEADERS;
998
844
  let body;
999
845
  body = buildFormUrlencodedString({
1000
846
  ...se_GetUserPolicyRequest(input, context),
@@ -1005,9 +851,7 @@ const se_GetUserPolicyCommand = async (input, context) => {
1005
851
  };
1006
852
  exports.se_GetUserPolicyCommand = se_GetUserPolicyCommand;
1007
853
  const se_ListAccessKeysCommand = async (input, context) => {
1008
- const headers = {
1009
- "content-type": "application/x-www-form-urlencoded",
1010
- };
854
+ const headers = SHARED_HEADERS;
1011
855
  let body;
1012
856
  body = buildFormUrlencodedString({
1013
857
  ...se_ListAccessKeysRequest(input, context),
@@ -1018,9 +862,7 @@ const se_ListAccessKeysCommand = async (input, context) => {
1018
862
  };
1019
863
  exports.se_ListAccessKeysCommand = se_ListAccessKeysCommand;
1020
864
  const se_ListAccountAliasesCommand = async (input, context) => {
1021
- const headers = {
1022
- "content-type": "application/x-www-form-urlencoded",
1023
- };
865
+ const headers = SHARED_HEADERS;
1024
866
  let body;
1025
867
  body = buildFormUrlencodedString({
1026
868
  ...se_ListAccountAliasesRequest(input, context),
@@ -1031,9 +873,7 @@ const se_ListAccountAliasesCommand = async (input, context) => {
1031
873
  };
1032
874
  exports.se_ListAccountAliasesCommand = se_ListAccountAliasesCommand;
1033
875
  const se_ListAttachedGroupPoliciesCommand = async (input, context) => {
1034
- const headers = {
1035
- "content-type": "application/x-www-form-urlencoded",
1036
- };
876
+ const headers = SHARED_HEADERS;
1037
877
  let body;
1038
878
  body = buildFormUrlencodedString({
1039
879
  ...se_ListAttachedGroupPoliciesRequest(input, context),
@@ -1044,9 +884,7 @@ const se_ListAttachedGroupPoliciesCommand = async (input, context) => {
1044
884
  };
1045
885
  exports.se_ListAttachedGroupPoliciesCommand = se_ListAttachedGroupPoliciesCommand;
1046
886
  const se_ListAttachedRolePoliciesCommand = async (input, context) => {
1047
- const headers = {
1048
- "content-type": "application/x-www-form-urlencoded",
1049
- };
887
+ const headers = SHARED_HEADERS;
1050
888
  let body;
1051
889
  body = buildFormUrlencodedString({
1052
890
  ...se_ListAttachedRolePoliciesRequest(input, context),
@@ -1057,9 +895,7 @@ const se_ListAttachedRolePoliciesCommand = async (input, context) => {
1057
895
  };
1058
896
  exports.se_ListAttachedRolePoliciesCommand = se_ListAttachedRolePoliciesCommand;
1059
897
  const se_ListAttachedUserPoliciesCommand = async (input, context) => {
1060
- const headers = {
1061
- "content-type": "application/x-www-form-urlencoded",
1062
- };
898
+ const headers = SHARED_HEADERS;
1063
899
  let body;
1064
900
  body = buildFormUrlencodedString({
1065
901
  ...se_ListAttachedUserPoliciesRequest(input, context),
@@ -1070,9 +906,7 @@ const se_ListAttachedUserPoliciesCommand = async (input, context) => {
1070
906
  };
1071
907
  exports.se_ListAttachedUserPoliciesCommand = se_ListAttachedUserPoliciesCommand;
1072
908
  const se_ListEntitiesForPolicyCommand = async (input, context) => {
1073
- const headers = {
1074
- "content-type": "application/x-www-form-urlencoded",
1075
- };
909
+ const headers = SHARED_HEADERS;
1076
910
  let body;
1077
911
  body = buildFormUrlencodedString({
1078
912
  ...se_ListEntitiesForPolicyRequest(input, context),
@@ -1083,9 +917,7 @@ const se_ListEntitiesForPolicyCommand = async (input, context) => {
1083
917
  };
1084
918
  exports.se_ListEntitiesForPolicyCommand = se_ListEntitiesForPolicyCommand;
1085
919
  const se_ListGroupPoliciesCommand = async (input, context) => {
1086
- const headers = {
1087
- "content-type": "application/x-www-form-urlencoded",
1088
- };
920
+ const headers = SHARED_HEADERS;
1089
921
  let body;
1090
922
  body = buildFormUrlencodedString({
1091
923
  ...se_ListGroupPoliciesRequest(input, context),
@@ -1096,9 +928,7 @@ const se_ListGroupPoliciesCommand = async (input, context) => {
1096
928
  };
1097
929
  exports.se_ListGroupPoliciesCommand = se_ListGroupPoliciesCommand;
1098
930
  const se_ListGroupsCommand = async (input, context) => {
1099
- const headers = {
1100
- "content-type": "application/x-www-form-urlencoded",
1101
- };
931
+ const headers = SHARED_HEADERS;
1102
932
  let body;
1103
933
  body = buildFormUrlencodedString({
1104
934
  ...se_ListGroupsRequest(input, context),
@@ -1109,9 +939,7 @@ const se_ListGroupsCommand = async (input, context) => {
1109
939
  };
1110
940
  exports.se_ListGroupsCommand = se_ListGroupsCommand;
1111
941
  const se_ListGroupsForUserCommand = async (input, context) => {
1112
- const headers = {
1113
- "content-type": "application/x-www-form-urlencoded",
1114
- };
942
+ const headers = SHARED_HEADERS;
1115
943
  let body;
1116
944
  body = buildFormUrlencodedString({
1117
945
  ...se_ListGroupsForUserRequest(input, context),
@@ -1122,9 +950,7 @@ const se_ListGroupsForUserCommand = async (input, context) => {
1122
950
  };
1123
951
  exports.se_ListGroupsForUserCommand = se_ListGroupsForUserCommand;
1124
952
  const se_ListInstanceProfilesCommand = async (input, context) => {
1125
- const headers = {
1126
- "content-type": "application/x-www-form-urlencoded",
1127
- };
953
+ const headers = SHARED_HEADERS;
1128
954
  let body;
1129
955
  body = buildFormUrlencodedString({
1130
956
  ...se_ListInstanceProfilesRequest(input, context),
@@ -1135,9 +961,7 @@ const se_ListInstanceProfilesCommand = async (input, context) => {
1135
961
  };
1136
962
  exports.se_ListInstanceProfilesCommand = se_ListInstanceProfilesCommand;
1137
963
  const se_ListInstanceProfilesForRoleCommand = async (input, context) => {
1138
- const headers = {
1139
- "content-type": "application/x-www-form-urlencoded",
1140
- };
964
+ const headers = SHARED_HEADERS;
1141
965
  let body;
1142
966
  body = buildFormUrlencodedString({
1143
967
  ...se_ListInstanceProfilesForRoleRequest(input, context),
@@ -1148,9 +972,7 @@ const se_ListInstanceProfilesForRoleCommand = async (input, context) => {
1148
972
  };
1149
973
  exports.se_ListInstanceProfilesForRoleCommand = se_ListInstanceProfilesForRoleCommand;
1150
974
  const se_ListInstanceProfileTagsCommand = async (input, context) => {
1151
- const headers = {
1152
- "content-type": "application/x-www-form-urlencoded",
1153
- };
975
+ const headers = SHARED_HEADERS;
1154
976
  let body;
1155
977
  body = buildFormUrlencodedString({
1156
978
  ...se_ListInstanceProfileTagsRequest(input, context),
@@ -1161,9 +983,7 @@ const se_ListInstanceProfileTagsCommand = async (input, context) => {
1161
983
  };
1162
984
  exports.se_ListInstanceProfileTagsCommand = se_ListInstanceProfileTagsCommand;
1163
985
  const se_ListMFADevicesCommand = async (input, context) => {
1164
- const headers = {
1165
- "content-type": "application/x-www-form-urlencoded",
1166
- };
986
+ const headers = SHARED_HEADERS;
1167
987
  let body;
1168
988
  body = buildFormUrlencodedString({
1169
989
  ...se_ListMFADevicesRequest(input, context),
@@ -1174,9 +994,7 @@ const se_ListMFADevicesCommand = async (input, context) => {
1174
994
  };
1175
995
  exports.se_ListMFADevicesCommand = se_ListMFADevicesCommand;
1176
996
  const se_ListMFADeviceTagsCommand = async (input, context) => {
1177
- const headers = {
1178
- "content-type": "application/x-www-form-urlencoded",
1179
- };
997
+ const headers = SHARED_HEADERS;
1180
998
  let body;
1181
999
  body = buildFormUrlencodedString({
1182
1000
  ...se_ListMFADeviceTagsRequest(input, context),
@@ -1187,9 +1005,7 @@ const se_ListMFADeviceTagsCommand = async (input, context) => {
1187
1005
  };
1188
1006
  exports.se_ListMFADeviceTagsCommand = se_ListMFADeviceTagsCommand;
1189
1007
  const se_ListOpenIDConnectProvidersCommand = async (input, context) => {
1190
- const headers = {
1191
- "content-type": "application/x-www-form-urlencoded",
1192
- };
1008
+ const headers = SHARED_HEADERS;
1193
1009
  let body;
1194
1010
  body = buildFormUrlencodedString({
1195
1011
  ...se_ListOpenIDConnectProvidersRequest(input, context),
@@ -1200,9 +1016,7 @@ const se_ListOpenIDConnectProvidersCommand = async (input, context) => {
1200
1016
  };
1201
1017
  exports.se_ListOpenIDConnectProvidersCommand = se_ListOpenIDConnectProvidersCommand;
1202
1018
  const se_ListOpenIDConnectProviderTagsCommand = async (input, context) => {
1203
- const headers = {
1204
- "content-type": "application/x-www-form-urlencoded",
1205
- };
1019
+ const headers = SHARED_HEADERS;
1206
1020
  let body;
1207
1021
  body = buildFormUrlencodedString({
1208
1022
  ...se_ListOpenIDConnectProviderTagsRequest(input, context),
@@ -1213,9 +1027,7 @@ const se_ListOpenIDConnectProviderTagsCommand = async (input, context) => {
1213
1027
  };
1214
1028
  exports.se_ListOpenIDConnectProviderTagsCommand = se_ListOpenIDConnectProviderTagsCommand;
1215
1029
  const se_ListPoliciesCommand = async (input, context) => {
1216
- const headers = {
1217
- "content-type": "application/x-www-form-urlencoded",
1218
- };
1030
+ const headers = SHARED_HEADERS;
1219
1031
  let body;
1220
1032
  body = buildFormUrlencodedString({
1221
1033
  ...se_ListPoliciesRequest(input, context),
@@ -1226,9 +1038,7 @@ const se_ListPoliciesCommand = async (input, context) => {
1226
1038
  };
1227
1039
  exports.se_ListPoliciesCommand = se_ListPoliciesCommand;
1228
1040
  const se_ListPoliciesGrantingServiceAccessCommand = async (input, context) => {
1229
- const headers = {
1230
- "content-type": "application/x-www-form-urlencoded",
1231
- };
1041
+ const headers = SHARED_HEADERS;
1232
1042
  let body;
1233
1043
  body = buildFormUrlencodedString({
1234
1044
  ...se_ListPoliciesGrantingServiceAccessRequest(input, context),
@@ -1239,9 +1049,7 @@ const se_ListPoliciesGrantingServiceAccessCommand = async (input, context) => {
1239
1049
  };
1240
1050
  exports.se_ListPoliciesGrantingServiceAccessCommand = se_ListPoliciesGrantingServiceAccessCommand;
1241
1051
  const se_ListPolicyTagsCommand = async (input, context) => {
1242
- const headers = {
1243
- "content-type": "application/x-www-form-urlencoded",
1244
- };
1052
+ const headers = SHARED_HEADERS;
1245
1053
  let body;
1246
1054
  body = buildFormUrlencodedString({
1247
1055
  ...se_ListPolicyTagsRequest(input, context),
@@ -1252,9 +1060,7 @@ const se_ListPolicyTagsCommand = async (input, context) => {
1252
1060
  };
1253
1061
  exports.se_ListPolicyTagsCommand = se_ListPolicyTagsCommand;
1254
1062
  const se_ListPolicyVersionsCommand = async (input, context) => {
1255
- const headers = {
1256
- "content-type": "application/x-www-form-urlencoded",
1257
- };
1063
+ const headers = SHARED_HEADERS;
1258
1064
  let body;
1259
1065
  body = buildFormUrlencodedString({
1260
1066
  ...se_ListPolicyVersionsRequest(input, context),
@@ -1265,9 +1071,7 @@ const se_ListPolicyVersionsCommand = async (input, context) => {
1265
1071
  };
1266
1072
  exports.se_ListPolicyVersionsCommand = se_ListPolicyVersionsCommand;
1267
1073
  const se_ListRolePoliciesCommand = async (input, context) => {
1268
- const headers = {
1269
- "content-type": "application/x-www-form-urlencoded",
1270
- };
1074
+ const headers = SHARED_HEADERS;
1271
1075
  let body;
1272
1076
  body = buildFormUrlencodedString({
1273
1077
  ...se_ListRolePoliciesRequest(input, context),
@@ -1278,9 +1082,7 @@ const se_ListRolePoliciesCommand = async (input, context) => {
1278
1082
  };
1279
1083
  exports.se_ListRolePoliciesCommand = se_ListRolePoliciesCommand;
1280
1084
  const se_ListRolesCommand = async (input, context) => {
1281
- const headers = {
1282
- "content-type": "application/x-www-form-urlencoded",
1283
- };
1085
+ const headers = SHARED_HEADERS;
1284
1086
  let body;
1285
1087
  body = buildFormUrlencodedString({
1286
1088
  ...se_ListRolesRequest(input, context),
@@ -1291,9 +1093,7 @@ const se_ListRolesCommand = async (input, context) => {
1291
1093
  };
1292
1094
  exports.se_ListRolesCommand = se_ListRolesCommand;
1293
1095
  const se_ListRoleTagsCommand = async (input, context) => {
1294
- const headers = {
1295
- "content-type": "application/x-www-form-urlencoded",
1296
- };
1096
+ const headers = SHARED_HEADERS;
1297
1097
  let body;
1298
1098
  body = buildFormUrlencodedString({
1299
1099
  ...se_ListRoleTagsRequest(input, context),
@@ -1304,9 +1104,7 @@ const se_ListRoleTagsCommand = async (input, context) => {
1304
1104
  };
1305
1105
  exports.se_ListRoleTagsCommand = se_ListRoleTagsCommand;
1306
1106
  const se_ListSAMLProvidersCommand = async (input, context) => {
1307
- const headers = {
1308
- "content-type": "application/x-www-form-urlencoded",
1309
- };
1107
+ const headers = SHARED_HEADERS;
1310
1108
  let body;
1311
1109
  body = buildFormUrlencodedString({
1312
1110
  ...se_ListSAMLProvidersRequest(input, context),
@@ -1317,9 +1115,7 @@ const se_ListSAMLProvidersCommand = async (input, context) => {
1317
1115
  };
1318
1116
  exports.se_ListSAMLProvidersCommand = se_ListSAMLProvidersCommand;
1319
1117
  const se_ListSAMLProviderTagsCommand = async (input, context) => {
1320
- const headers = {
1321
- "content-type": "application/x-www-form-urlencoded",
1322
- };
1118
+ const headers = SHARED_HEADERS;
1323
1119
  let body;
1324
1120
  body = buildFormUrlencodedString({
1325
1121
  ...se_ListSAMLProviderTagsRequest(input, context),
@@ -1330,9 +1126,7 @@ const se_ListSAMLProviderTagsCommand = async (input, context) => {
1330
1126
  };
1331
1127
  exports.se_ListSAMLProviderTagsCommand = se_ListSAMLProviderTagsCommand;
1332
1128
  const se_ListServerCertificatesCommand = async (input, context) => {
1333
- const headers = {
1334
- "content-type": "application/x-www-form-urlencoded",
1335
- };
1129
+ const headers = SHARED_HEADERS;
1336
1130
  let body;
1337
1131
  body = buildFormUrlencodedString({
1338
1132
  ...se_ListServerCertificatesRequest(input, context),
@@ -1343,9 +1137,7 @@ const se_ListServerCertificatesCommand = async (input, context) => {
1343
1137
  };
1344
1138
  exports.se_ListServerCertificatesCommand = se_ListServerCertificatesCommand;
1345
1139
  const se_ListServerCertificateTagsCommand = async (input, context) => {
1346
- const headers = {
1347
- "content-type": "application/x-www-form-urlencoded",
1348
- };
1140
+ const headers = SHARED_HEADERS;
1349
1141
  let body;
1350
1142
  body = buildFormUrlencodedString({
1351
1143
  ...se_ListServerCertificateTagsRequest(input, context),
@@ -1356,9 +1148,7 @@ const se_ListServerCertificateTagsCommand = async (input, context) => {
1356
1148
  };
1357
1149
  exports.se_ListServerCertificateTagsCommand = se_ListServerCertificateTagsCommand;
1358
1150
  const se_ListServiceSpecificCredentialsCommand = async (input, context) => {
1359
- const headers = {
1360
- "content-type": "application/x-www-form-urlencoded",
1361
- };
1151
+ const headers = SHARED_HEADERS;
1362
1152
  let body;
1363
1153
  body = buildFormUrlencodedString({
1364
1154
  ...se_ListServiceSpecificCredentialsRequest(input, context),
@@ -1369,9 +1159,7 @@ const se_ListServiceSpecificCredentialsCommand = async (input, context) => {
1369
1159
  };
1370
1160
  exports.se_ListServiceSpecificCredentialsCommand = se_ListServiceSpecificCredentialsCommand;
1371
1161
  const se_ListSigningCertificatesCommand = async (input, context) => {
1372
- const headers = {
1373
- "content-type": "application/x-www-form-urlencoded",
1374
- };
1162
+ const headers = SHARED_HEADERS;
1375
1163
  let body;
1376
1164
  body = buildFormUrlencodedString({
1377
1165
  ...se_ListSigningCertificatesRequest(input, context),
@@ -1382,9 +1170,7 @@ const se_ListSigningCertificatesCommand = async (input, context) => {
1382
1170
  };
1383
1171
  exports.se_ListSigningCertificatesCommand = se_ListSigningCertificatesCommand;
1384
1172
  const se_ListSSHPublicKeysCommand = async (input, context) => {
1385
- const headers = {
1386
- "content-type": "application/x-www-form-urlencoded",
1387
- };
1173
+ const headers = SHARED_HEADERS;
1388
1174
  let body;
1389
1175
  body = buildFormUrlencodedString({
1390
1176
  ...se_ListSSHPublicKeysRequest(input, context),
@@ -1395,9 +1181,7 @@ const se_ListSSHPublicKeysCommand = async (input, context) => {
1395
1181
  };
1396
1182
  exports.se_ListSSHPublicKeysCommand = se_ListSSHPublicKeysCommand;
1397
1183
  const se_ListUserPoliciesCommand = async (input, context) => {
1398
- const headers = {
1399
- "content-type": "application/x-www-form-urlencoded",
1400
- };
1184
+ const headers = SHARED_HEADERS;
1401
1185
  let body;
1402
1186
  body = buildFormUrlencodedString({
1403
1187
  ...se_ListUserPoliciesRequest(input, context),
@@ -1408,9 +1192,7 @@ const se_ListUserPoliciesCommand = async (input, context) => {
1408
1192
  };
1409
1193
  exports.se_ListUserPoliciesCommand = se_ListUserPoliciesCommand;
1410
1194
  const se_ListUsersCommand = async (input, context) => {
1411
- const headers = {
1412
- "content-type": "application/x-www-form-urlencoded",
1413
- };
1195
+ const headers = SHARED_HEADERS;
1414
1196
  let body;
1415
1197
  body = buildFormUrlencodedString({
1416
1198
  ...se_ListUsersRequest(input, context),
@@ -1421,9 +1203,7 @@ const se_ListUsersCommand = async (input, context) => {
1421
1203
  };
1422
1204
  exports.se_ListUsersCommand = se_ListUsersCommand;
1423
1205
  const se_ListUserTagsCommand = async (input, context) => {
1424
- const headers = {
1425
- "content-type": "application/x-www-form-urlencoded",
1426
- };
1206
+ const headers = SHARED_HEADERS;
1427
1207
  let body;
1428
1208
  body = buildFormUrlencodedString({
1429
1209
  ...se_ListUserTagsRequest(input, context),
@@ -1434,9 +1214,7 @@ const se_ListUserTagsCommand = async (input, context) => {
1434
1214
  };
1435
1215
  exports.se_ListUserTagsCommand = se_ListUserTagsCommand;
1436
1216
  const se_ListVirtualMFADevicesCommand = async (input, context) => {
1437
- const headers = {
1438
- "content-type": "application/x-www-form-urlencoded",
1439
- };
1217
+ const headers = SHARED_HEADERS;
1440
1218
  let body;
1441
1219
  body = buildFormUrlencodedString({
1442
1220
  ...se_ListVirtualMFADevicesRequest(input, context),
@@ -1447,9 +1225,7 @@ const se_ListVirtualMFADevicesCommand = async (input, context) => {
1447
1225
  };
1448
1226
  exports.se_ListVirtualMFADevicesCommand = se_ListVirtualMFADevicesCommand;
1449
1227
  const se_PutGroupPolicyCommand = async (input, context) => {
1450
- const headers = {
1451
- "content-type": "application/x-www-form-urlencoded",
1452
- };
1228
+ const headers = SHARED_HEADERS;
1453
1229
  let body;
1454
1230
  body = buildFormUrlencodedString({
1455
1231
  ...se_PutGroupPolicyRequest(input, context),
@@ -1460,9 +1236,7 @@ const se_PutGroupPolicyCommand = async (input, context) => {
1460
1236
  };
1461
1237
  exports.se_PutGroupPolicyCommand = se_PutGroupPolicyCommand;
1462
1238
  const se_PutRolePermissionsBoundaryCommand = async (input, context) => {
1463
- const headers = {
1464
- "content-type": "application/x-www-form-urlencoded",
1465
- };
1239
+ const headers = SHARED_HEADERS;
1466
1240
  let body;
1467
1241
  body = buildFormUrlencodedString({
1468
1242
  ...se_PutRolePermissionsBoundaryRequest(input, context),
@@ -1473,9 +1247,7 @@ const se_PutRolePermissionsBoundaryCommand = async (input, context) => {
1473
1247
  };
1474
1248
  exports.se_PutRolePermissionsBoundaryCommand = se_PutRolePermissionsBoundaryCommand;
1475
1249
  const se_PutRolePolicyCommand = async (input, context) => {
1476
- const headers = {
1477
- "content-type": "application/x-www-form-urlencoded",
1478
- };
1250
+ const headers = SHARED_HEADERS;
1479
1251
  let body;
1480
1252
  body = buildFormUrlencodedString({
1481
1253
  ...se_PutRolePolicyRequest(input, context),
@@ -1486,9 +1258,7 @@ const se_PutRolePolicyCommand = async (input, context) => {
1486
1258
  };
1487
1259
  exports.se_PutRolePolicyCommand = se_PutRolePolicyCommand;
1488
1260
  const se_PutUserPermissionsBoundaryCommand = async (input, context) => {
1489
- const headers = {
1490
- "content-type": "application/x-www-form-urlencoded",
1491
- };
1261
+ const headers = SHARED_HEADERS;
1492
1262
  let body;
1493
1263
  body = buildFormUrlencodedString({
1494
1264
  ...se_PutUserPermissionsBoundaryRequest(input, context),
@@ -1499,9 +1269,7 @@ const se_PutUserPermissionsBoundaryCommand = async (input, context) => {
1499
1269
  };
1500
1270
  exports.se_PutUserPermissionsBoundaryCommand = se_PutUserPermissionsBoundaryCommand;
1501
1271
  const se_PutUserPolicyCommand = async (input, context) => {
1502
- const headers = {
1503
- "content-type": "application/x-www-form-urlencoded",
1504
- };
1272
+ const headers = SHARED_HEADERS;
1505
1273
  let body;
1506
1274
  body = buildFormUrlencodedString({
1507
1275
  ...se_PutUserPolicyRequest(input, context),
@@ -1512,9 +1280,7 @@ const se_PutUserPolicyCommand = async (input, context) => {
1512
1280
  };
1513
1281
  exports.se_PutUserPolicyCommand = se_PutUserPolicyCommand;
1514
1282
  const se_RemoveClientIDFromOpenIDConnectProviderCommand = async (input, context) => {
1515
- const headers = {
1516
- "content-type": "application/x-www-form-urlencoded",
1517
- };
1283
+ const headers = SHARED_HEADERS;
1518
1284
  let body;
1519
1285
  body = buildFormUrlencodedString({
1520
1286
  ...se_RemoveClientIDFromOpenIDConnectProviderRequest(input, context),
@@ -1525,9 +1291,7 @@ const se_RemoveClientIDFromOpenIDConnectProviderCommand = async (input, context)
1525
1291
  };
1526
1292
  exports.se_RemoveClientIDFromOpenIDConnectProviderCommand = se_RemoveClientIDFromOpenIDConnectProviderCommand;
1527
1293
  const se_RemoveRoleFromInstanceProfileCommand = async (input, context) => {
1528
- const headers = {
1529
- "content-type": "application/x-www-form-urlencoded",
1530
- };
1294
+ const headers = SHARED_HEADERS;
1531
1295
  let body;
1532
1296
  body = buildFormUrlencodedString({
1533
1297
  ...se_RemoveRoleFromInstanceProfileRequest(input, context),
@@ -1538,9 +1302,7 @@ const se_RemoveRoleFromInstanceProfileCommand = async (input, context) => {
1538
1302
  };
1539
1303
  exports.se_RemoveRoleFromInstanceProfileCommand = se_RemoveRoleFromInstanceProfileCommand;
1540
1304
  const se_RemoveUserFromGroupCommand = async (input, context) => {
1541
- const headers = {
1542
- "content-type": "application/x-www-form-urlencoded",
1543
- };
1305
+ const headers = SHARED_HEADERS;
1544
1306
  let body;
1545
1307
  body = buildFormUrlencodedString({
1546
1308
  ...se_RemoveUserFromGroupRequest(input, context),
@@ -1551,9 +1313,7 @@ const se_RemoveUserFromGroupCommand = async (input, context) => {
1551
1313
  };
1552
1314
  exports.se_RemoveUserFromGroupCommand = se_RemoveUserFromGroupCommand;
1553
1315
  const se_ResetServiceSpecificCredentialCommand = async (input, context) => {
1554
- const headers = {
1555
- "content-type": "application/x-www-form-urlencoded",
1556
- };
1316
+ const headers = SHARED_HEADERS;
1557
1317
  let body;
1558
1318
  body = buildFormUrlencodedString({
1559
1319
  ...se_ResetServiceSpecificCredentialRequest(input, context),
@@ -1564,9 +1324,7 @@ const se_ResetServiceSpecificCredentialCommand = async (input, context) => {
1564
1324
  };
1565
1325
  exports.se_ResetServiceSpecificCredentialCommand = se_ResetServiceSpecificCredentialCommand;
1566
1326
  const se_ResyncMFADeviceCommand = async (input, context) => {
1567
- const headers = {
1568
- "content-type": "application/x-www-form-urlencoded",
1569
- };
1327
+ const headers = SHARED_HEADERS;
1570
1328
  let body;
1571
1329
  body = buildFormUrlencodedString({
1572
1330
  ...se_ResyncMFADeviceRequest(input, context),
@@ -1577,9 +1335,7 @@ const se_ResyncMFADeviceCommand = async (input, context) => {
1577
1335
  };
1578
1336
  exports.se_ResyncMFADeviceCommand = se_ResyncMFADeviceCommand;
1579
1337
  const se_SetDefaultPolicyVersionCommand = async (input, context) => {
1580
- const headers = {
1581
- "content-type": "application/x-www-form-urlencoded",
1582
- };
1338
+ const headers = SHARED_HEADERS;
1583
1339
  let body;
1584
1340
  body = buildFormUrlencodedString({
1585
1341
  ...se_SetDefaultPolicyVersionRequest(input, context),
@@ -1590,9 +1346,7 @@ const se_SetDefaultPolicyVersionCommand = async (input, context) => {
1590
1346
  };
1591
1347
  exports.se_SetDefaultPolicyVersionCommand = se_SetDefaultPolicyVersionCommand;
1592
1348
  const se_SetSecurityTokenServicePreferencesCommand = async (input, context) => {
1593
- const headers = {
1594
- "content-type": "application/x-www-form-urlencoded",
1595
- };
1349
+ const headers = SHARED_HEADERS;
1596
1350
  let body;
1597
1351
  body = buildFormUrlencodedString({
1598
1352
  ...se_SetSecurityTokenServicePreferencesRequest(input, context),
@@ -1603,9 +1357,7 @@ const se_SetSecurityTokenServicePreferencesCommand = async (input, context) => {
1603
1357
  };
1604
1358
  exports.se_SetSecurityTokenServicePreferencesCommand = se_SetSecurityTokenServicePreferencesCommand;
1605
1359
  const se_SimulateCustomPolicyCommand = async (input, context) => {
1606
- const headers = {
1607
- "content-type": "application/x-www-form-urlencoded",
1608
- };
1360
+ const headers = SHARED_HEADERS;
1609
1361
  let body;
1610
1362
  body = buildFormUrlencodedString({
1611
1363
  ...se_SimulateCustomPolicyRequest(input, context),
@@ -1616,9 +1368,7 @@ const se_SimulateCustomPolicyCommand = async (input, context) => {
1616
1368
  };
1617
1369
  exports.se_SimulateCustomPolicyCommand = se_SimulateCustomPolicyCommand;
1618
1370
  const se_SimulatePrincipalPolicyCommand = async (input, context) => {
1619
- const headers = {
1620
- "content-type": "application/x-www-form-urlencoded",
1621
- };
1371
+ const headers = SHARED_HEADERS;
1622
1372
  let body;
1623
1373
  body = buildFormUrlencodedString({
1624
1374
  ...se_SimulatePrincipalPolicyRequest(input, context),
@@ -1629,9 +1379,7 @@ const se_SimulatePrincipalPolicyCommand = async (input, context) => {
1629
1379
  };
1630
1380
  exports.se_SimulatePrincipalPolicyCommand = se_SimulatePrincipalPolicyCommand;
1631
1381
  const se_TagInstanceProfileCommand = async (input, context) => {
1632
- const headers = {
1633
- "content-type": "application/x-www-form-urlencoded",
1634
- };
1382
+ const headers = SHARED_HEADERS;
1635
1383
  let body;
1636
1384
  body = buildFormUrlencodedString({
1637
1385
  ...se_TagInstanceProfileRequest(input, context),
@@ -1642,9 +1390,7 @@ const se_TagInstanceProfileCommand = async (input, context) => {
1642
1390
  };
1643
1391
  exports.se_TagInstanceProfileCommand = se_TagInstanceProfileCommand;
1644
1392
  const se_TagMFADeviceCommand = async (input, context) => {
1645
- const headers = {
1646
- "content-type": "application/x-www-form-urlencoded",
1647
- };
1393
+ const headers = SHARED_HEADERS;
1648
1394
  let body;
1649
1395
  body = buildFormUrlencodedString({
1650
1396
  ...se_TagMFADeviceRequest(input, context),
@@ -1655,9 +1401,7 @@ const se_TagMFADeviceCommand = async (input, context) => {
1655
1401
  };
1656
1402
  exports.se_TagMFADeviceCommand = se_TagMFADeviceCommand;
1657
1403
  const se_TagOpenIDConnectProviderCommand = async (input, context) => {
1658
- const headers = {
1659
- "content-type": "application/x-www-form-urlencoded",
1660
- };
1404
+ const headers = SHARED_HEADERS;
1661
1405
  let body;
1662
1406
  body = buildFormUrlencodedString({
1663
1407
  ...se_TagOpenIDConnectProviderRequest(input, context),
@@ -1668,9 +1412,7 @@ const se_TagOpenIDConnectProviderCommand = async (input, context) => {
1668
1412
  };
1669
1413
  exports.se_TagOpenIDConnectProviderCommand = se_TagOpenIDConnectProviderCommand;
1670
1414
  const se_TagPolicyCommand = async (input, context) => {
1671
- const headers = {
1672
- "content-type": "application/x-www-form-urlencoded",
1673
- };
1415
+ const headers = SHARED_HEADERS;
1674
1416
  let body;
1675
1417
  body = buildFormUrlencodedString({
1676
1418
  ...se_TagPolicyRequest(input, context),
@@ -1681,9 +1423,7 @@ const se_TagPolicyCommand = async (input, context) => {
1681
1423
  };
1682
1424
  exports.se_TagPolicyCommand = se_TagPolicyCommand;
1683
1425
  const se_TagRoleCommand = async (input, context) => {
1684
- const headers = {
1685
- "content-type": "application/x-www-form-urlencoded",
1686
- };
1426
+ const headers = SHARED_HEADERS;
1687
1427
  let body;
1688
1428
  body = buildFormUrlencodedString({
1689
1429
  ...se_TagRoleRequest(input, context),
@@ -1694,9 +1434,7 @@ const se_TagRoleCommand = async (input, context) => {
1694
1434
  };
1695
1435
  exports.se_TagRoleCommand = se_TagRoleCommand;
1696
1436
  const se_TagSAMLProviderCommand = async (input, context) => {
1697
- const headers = {
1698
- "content-type": "application/x-www-form-urlencoded",
1699
- };
1437
+ const headers = SHARED_HEADERS;
1700
1438
  let body;
1701
1439
  body = buildFormUrlencodedString({
1702
1440
  ...se_TagSAMLProviderRequest(input, context),
@@ -1707,9 +1445,7 @@ const se_TagSAMLProviderCommand = async (input, context) => {
1707
1445
  };
1708
1446
  exports.se_TagSAMLProviderCommand = se_TagSAMLProviderCommand;
1709
1447
  const se_TagServerCertificateCommand = async (input, context) => {
1710
- const headers = {
1711
- "content-type": "application/x-www-form-urlencoded",
1712
- };
1448
+ const headers = SHARED_HEADERS;
1713
1449
  let body;
1714
1450
  body = buildFormUrlencodedString({
1715
1451
  ...se_TagServerCertificateRequest(input, context),
@@ -1720,9 +1456,7 @@ const se_TagServerCertificateCommand = async (input, context) => {
1720
1456
  };
1721
1457
  exports.se_TagServerCertificateCommand = se_TagServerCertificateCommand;
1722
1458
  const se_TagUserCommand = async (input, context) => {
1723
- const headers = {
1724
- "content-type": "application/x-www-form-urlencoded",
1725
- };
1459
+ const headers = SHARED_HEADERS;
1726
1460
  let body;
1727
1461
  body = buildFormUrlencodedString({
1728
1462
  ...se_TagUserRequest(input, context),
@@ -1733,9 +1467,7 @@ const se_TagUserCommand = async (input, context) => {
1733
1467
  };
1734
1468
  exports.se_TagUserCommand = se_TagUserCommand;
1735
1469
  const se_UntagInstanceProfileCommand = async (input, context) => {
1736
- const headers = {
1737
- "content-type": "application/x-www-form-urlencoded",
1738
- };
1470
+ const headers = SHARED_HEADERS;
1739
1471
  let body;
1740
1472
  body = buildFormUrlencodedString({
1741
1473
  ...se_UntagInstanceProfileRequest(input, context),
@@ -1746,9 +1478,7 @@ const se_UntagInstanceProfileCommand = async (input, context) => {
1746
1478
  };
1747
1479
  exports.se_UntagInstanceProfileCommand = se_UntagInstanceProfileCommand;
1748
1480
  const se_UntagMFADeviceCommand = async (input, context) => {
1749
- const headers = {
1750
- "content-type": "application/x-www-form-urlencoded",
1751
- };
1481
+ const headers = SHARED_HEADERS;
1752
1482
  let body;
1753
1483
  body = buildFormUrlencodedString({
1754
1484
  ...se_UntagMFADeviceRequest(input, context),
@@ -1759,9 +1489,7 @@ const se_UntagMFADeviceCommand = async (input, context) => {
1759
1489
  };
1760
1490
  exports.se_UntagMFADeviceCommand = se_UntagMFADeviceCommand;
1761
1491
  const se_UntagOpenIDConnectProviderCommand = async (input, context) => {
1762
- const headers = {
1763
- "content-type": "application/x-www-form-urlencoded",
1764
- };
1492
+ const headers = SHARED_HEADERS;
1765
1493
  let body;
1766
1494
  body = buildFormUrlencodedString({
1767
1495
  ...se_UntagOpenIDConnectProviderRequest(input, context),
@@ -1772,9 +1500,7 @@ const se_UntagOpenIDConnectProviderCommand = async (input, context) => {
1772
1500
  };
1773
1501
  exports.se_UntagOpenIDConnectProviderCommand = se_UntagOpenIDConnectProviderCommand;
1774
1502
  const se_UntagPolicyCommand = async (input, context) => {
1775
- const headers = {
1776
- "content-type": "application/x-www-form-urlencoded",
1777
- };
1503
+ const headers = SHARED_HEADERS;
1778
1504
  let body;
1779
1505
  body = buildFormUrlencodedString({
1780
1506
  ...se_UntagPolicyRequest(input, context),
@@ -1785,9 +1511,7 @@ const se_UntagPolicyCommand = async (input, context) => {
1785
1511
  };
1786
1512
  exports.se_UntagPolicyCommand = se_UntagPolicyCommand;
1787
1513
  const se_UntagRoleCommand = async (input, context) => {
1788
- const headers = {
1789
- "content-type": "application/x-www-form-urlencoded",
1790
- };
1514
+ const headers = SHARED_HEADERS;
1791
1515
  let body;
1792
1516
  body = buildFormUrlencodedString({
1793
1517
  ...se_UntagRoleRequest(input, context),
@@ -1798,9 +1522,7 @@ const se_UntagRoleCommand = async (input, context) => {
1798
1522
  };
1799
1523
  exports.se_UntagRoleCommand = se_UntagRoleCommand;
1800
1524
  const se_UntagSAMLProviderCommand = async (input, context) => {
1801
- const headers = {
1802
- "content-type": "application/x-www-form-urlencoded",
1803
- };
1525
+ const headers = SHARED_HEADERS;
1804
1526
  let body;
1805
1527
  body = buildFormUrlencodedString({
1806
1528
  ...se_UntagSAMLProviderRequest(input, context),
@@ -1811,9 +1533,7 @@ const se_UntagSAMLProviderCommand = async (input, context) => {
1811
1533
  };
1812
1534
  exports.se_UntagSAMLProviderCommand = se_UntagSAMLProviderCommand;
1813
1535
  const se_UntagServerCertificateCommand = async (input, context) => {
1814
- const headers = {
1815
- "content-type": "application/x-www-form-urlencoded",
1816
- };
1536
+ const headers = SHARED_HEADERS;
1817
1537
  let body;
1818
1538
  body = buildFormUrlencodedString({
1819
1539
  ...se_UntagServerCertificateRequest(input, context),
@@ -1824,9 +1544,7 @@ const se_UntagServerCertificateCommand = async (input, context) => {
1824
1544
  };
1825
1545
  exports.se_UntagServerCertificateCommand = se_UntagServerCertificateCommand;
1826
1546
  const se_UntagUserCommand = async (input, context) => {
1827
- const headers = {
1828
- "content-type": "application/x-www-form-urlencoded",
1829
- };
1547
+ const headers = SHARED_HEADERS;
1830
1548
  let body;
1831
1549
  body = buildFormUrlencodedString({
1832
1550
  ...se_UntagUserRequest(input, context),
@@ -1837,9 +1555,7 @@ const se_UntagUserCommand = async (input, context) => {
1837
1555
  };
1838
1556
  exports.se_UntagUserCommand = se_UntagUserCommand;
1839
1557
  const se_UpdateAccessKeyCommand = async (input, context) => {
1840
- const headers = {
1841
- "content-type": "application/x-www-form-urlencoded",
1842
- };
1558
+ const headers = SHARED_HEADERS;
1843
1559
  let body;
1844
1560
  body = buildFormUrlencodedString({
1845
1561
  ...se_UpdateAccessKeyRequest(input, context),
@@ -1850,9 +1566,7 @@ const se_UpdateAccessKeyCommand = async (input, context) => {
1850
1566
  };
1851
1567
  exports.se_UpdateAccessKeyCommand = se_UpdateAccessKeyCommand;
1852
1568
  const se_UpdateAccountPasswordPolicyCommand = async (input, context) => {
1853
- const headers = {
1854
- "content-type": "application/x-www-form-urlencoded",
1855
- };
1569
+ const headers = SHARED_HEADERS;
1856
1570
  let body;
1857
1571
  body = buildFormUrlencodedString({
1858
1572
  ...se_UpdateAccountPasswordPolicyRequest(input, context),
@@ -1863,9 +1577,7 @@ const se_UpdateAccountPasswordPolicyCommand = async (input, context) => {
1863
1577
  };
1864
1578
  exports.se_UpdateAccountPasswordPolicyCommand = se_UpdateAccountPasswordPolicyCommand;
1865
1579
  const se_UpdateAssumeRolePolicyCommand = async (input, context) => {
1866
- const headers = {
1867
- "content-type": "application/x-www-form-urlencoded",
1868
- };
1580
+ const headers = SHARED_HEADERS;
1869
1581
  let body;
1870
1582
  body = buildFormUrlencodedString({
1871
1583
  ...se_UpdateAssumeRolePolicyRequest(input, context),
@@ -1876,9 +1588,7 @@ const se_UpdateAssumeRolePolicyCommand = async (input, context) => {
1876
1588
  };
1877
1589
  exports.se_UpdateAssumeRolePolicyCommand = se_UpdateAssumeRolePolicyCommand;
1878
1590
  const se_UpdateGroupCommand = async (input, context) => {
1879
- const headers = {
1880
- "content-type": "application/x-www-form-urlencoded",
1881
- };
1591
+ const headers = SHARED_HEADERS;
1882
1592
  let body;
1883
1593
  body = buildFormUrlencodedString({
1884
1594
  ...se_UpdateGroupRequest(input, context),
@@ -1889,9 +1599,7 @@ const se_UpdateGroupCommand = async (input, context) => {
1889
1599
  };
1890
1600
  exports.se_UpdateGroupCommand = se_UpdateGroupCommand;
1891
1601
  const se_UpdateLoginProfileCommand = async (input, context) => {
1892
- const headers = {
1893
- "content-type": "application/x-www-form-urlencoded",
1894
- };
1602
+ const headers = SHARED_HEADERS;
1895
1603
  let body;
1896
1604
  body = buildFormUrlencodedString({
1897
1605
  ...se_UpdateLoginProfileRequest(input, context),
@@ -1902,9 +1610,7 @@ const se_UpdateLoginProfileCommand = async (input, context) => {
1902
1610
  };
1903
1611
  exports.se_UpdateLoginProfileCommand = se_UpdateLoginProfileCommand;
1904
1612
  const se_UpdateOpenIDConnectProviderThumbprintCommand = async (input, context) => {
1905
- const headers = {
1906
- "content-type": "application/x-www-form-urlencoded",
1907
- };
1613
+ const headers = SHARED_HEADERS;
1908
1614
  let body;
1909
1615
  body = buildFormUrlencodedString({
1910
1616
  ...se_UpdateOpenIDConnectProviderThumbprintRequest(input, context),
@@ -1915,9 +1621,7 @@ const se_UpdateOpenIDConnectProviderThumbprintCommand = async (input, context) =
1915
1621
  };
1916
1622
  exports.se_UpdateOpenIDConnectProviderThumbprintCommand = se_UpdateOpenIDConnectProviderThumbprintCommand;
1917
1623
  const se_UpdateRoleCommand = async (input, context) => {
1918
- const headers = {
1919
- "content-type": "application/x-www-form-urlencoded",
1920
- };
1624
+ const headers = SHARED_HEADERS;
1921
1625
  let body;
1922
1626
  body = buildFormUrlencodedString({
1923
1627
  ...se_UpdateRoleRequest(input, context),
@@ -1928,9 +1632,7 @@ const se_UpdateRoleCommand = async (input, context) => {
1928
1632
  };
1929
1633
  exports.se_UpdateRoleCommand = se_UpdateRoleCommand;
1930
1634
  const se_UpdateRoleDescriptionCommand = async (input, context) => {
1931
- const headers = {
1932
- "content-type": "application/x-www-form-urlencoded",
1933
- };
1635
+ const headers = SHARED_HEADERS;
1934
1636
  let body;
1935
1637
  body = buildFormUrlencodedString({
1936
1638
  ...se_UpdateRoleDescriptionRequest(input, context),
@@ -1941,9 +1643,7 @@ const se_UpdateRoleDescriptionCommand = async (input, context) => {
1941
1643
  };
1942
1644
  exports.se_UpdateRoleDescriptionCommand = se_UpdateRoleDescriptionCommand;
1943
1645
  const se_UpdateSAMLProviderCommand = async (input, context) => {
1944
- const headers = {
1945
- "content-type": "application/x-www-form-urlencoded",
1946
- };
1646
+ const headers = SHARED_HEADERS;
1947
1647
  let body;
1948
1648
  body = buildFormUrlencodedString({
1949
1649
  ...se_UpdateSAMLProviderRequest(input, context),
@@ -1954,9 +1654,7 @@ const se_UpdateSAMLProviderCommand = async (input, context) => {
1954
1654
  };
1955
1655
  exports.se_UpdateSAMLProviderCommand = se_UpdateSAMLProviderCommand;
1956
1656
  const se_UpdateServerCertificateCommand = async (input, context) => {
1957
- const headers = {
1958
- "content-type": "application/x-www-form-urlencoded",
1959
- };
1657
+ const headers = SHARED_HEADERS;
1960
1658
  let body;
1961
1659
  body = buildFormUrlencodedString({
1962
1660
  ...se_UpdateServerCertificateRequest(input, context),
@@ -1967,9 +1665,7 @@ const se_UpdateServerCertificateCommand = async (input, context) => {
1967
1665
  };
1968
1666
  exports.se_UpdateServerCertificateCommand = se_UpdateServerCertificateCommand;
1969
1667
  const se_UpdateServiceSpecificCredentialCommand = async (input, context) => {
1970
- const headers = {
1971
- "content-type": "application/x-www-form-urlencoded",
1972
- };
1668
+ const headers = SHARED_HEADERS;
1973
1669
  let body;
1974
1670
  body = buildFormUrlencodedString({
1975
1671
  ...se_UpdateServiceSpecificCredentialRequest(input, context),
@@ -1980,9 +1676,7 @@ const se_UpdateServiceSpecificCredentialCommand = async (input, context) => {
1980
1676
  };
1981
1677
  exports.se_UpdateServiceSpecificCredentialCommand = se_UpdateServiceSpecificCredentialCommand;
1982
1678
  const se_UpdateSigningCertificateCommand = async (input, context) => {
1983
- const headers = {
1984
- "content-type": "application/x-www-form-urlencoded",
1985
- };
1679
+ const headers = SHARED_HEADERS;
1986
1680
  let body;
1987
1681
  body = buildFormUrlencodedString({
1988
1682
  ...se_UpdateSigningCertificateRequest(input, context),
@@ -1993,9 +1687,7 @@ const se_UpdateSigningCertificateCommand = async (input, context) => {
1993
1687
  };
1994
1688
  exports.se_UpdateSigningCertificateCommand = se_UpdateSigningCertificateCommand;
1995
1689
  const se_UpdateSSHPublicKeyCommand = async (input, context) => {
1996
- const headers = {
1997
- "content-type": "application/x-www-form-urlencoded",
1998
- };
1690
+ const headers = SHARED_HEADERS;
1999
1691
  let body;
2000
1692
  body = buildFormUrlencodedString({
2001
1693
  ...se_UpdateSSHPublicKeyRequest(input, context),
@@ -2006,9 +1698,7 @@ const se_UpdateSSHPublicKeyCommand = async (input, context) => {
2006
1698
  };
2007
1699
  exports.se_UpdateSSHPublicKeyCommand = se_UpdateSSHPublicKeyCommand;
2008
1700
  const se_UpdateUserCommand = async (input, context) => {
2009
- const headers = {
2010
- "content-type": "application/x-www-form-urlencoded",
2011
- };
1701
+ const headers = SHARED_HEADERS;
2012
1702
  let body;
2013
1703
  body = buildFormUrlencodedString({
2014
1704
  ...se_UpdateUserRequest(input, context),
@@ -2019,9 +1709,7 @@ const se_UpdateUserCommand = async (input, context) => {
2019
1709
  };
2020
1710
  exports.se_UpdateUserCommand = se_UpdateUserCommand;
2021
1711
  const se_UploadServerCertificateCommand = async (input, context) => {
2022
- const headers = {
2023
- "content-type": "application/x-www-form-urlencoded",
2024
- };
1712
+ const headers = SHARED_HEADERS;
2025
1713
  let body;
2026
1714
  body = buildFormUrlencodedString({
2027
1715
  ...se_UploadServerCertificateRequest(input, context),
@@ -2032,9 +1720,7 @@ const se_UploadServerCertificateCommand = async (input, context) => {
2032
1720
  };
2033
1721
  exports.se_UploadServerCertificateCommand = se_UploadServerCertificateCommand;
2034
1722
  const se_UploadSigningCertificateCommand = async (input, context) => {
2035
- const headers = {
2036
- "content-type": "application/x-www-form-urlencoded",
2037
- };
1723
+ const headers = SHARED_HEADERS;
2038
1724
  let body;
2039
1725
  body = buildFormUrlencodedString({
2040
1726
  ...se_UploadSigningCertificateRequest(input, context),
@@ -2045,9 +1731,7 @@ const se_UploadSigningCertificateCommand = async (input, context) => {
2045
1731
  };
2046
1732
  exports.se_UploadSigningCertificateCommand = se_UploadSigningCertificateCommand;
2047
1733
  const se_UploadSSHPublicKeyCommand = async (input, context) => {
2048
- const headers = {
2049
- "content-type": "application/x-www-form-urlencoded",
2050
- };
1734
+ const headers = SHARED_HEADERS;
2051
1735
  let body;
2052
1736
  body = buildFormUrlencodedString({
2053
1737
  ...se_UploadSSHPublicKeyRequest(input, context),
@@ -2065,7 +1749,7 @@ const de_AddClientIDToOpenIDConnectProviderCommand = async (output, context) =>
2065
1749
  const response = {
2066
1750
  $metadata: deserializeMetadata(output),
2067
1751
  };
2068
- return Promise.resolve(response);
1752
+ return response;
2069
1753
  };
2070
1754
  exports.de_AddClientIDToOpenIDConnectProviderCommand = de_AddClientIDToOpenIDConnectProviderCommand;
2071
1755
  const de_AddClientIDToOpenIDConnectProviderCommandError = async (output, context) => {
@@ -2089,10 +1773,9 @@ const de_AddClientIDToOpenIDConnectProviderCommandError = async (output, context
2089
1773
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2090
1774
  default:
2091
1775
  const parsedBody = parsedOutput.body;
2092
- (0, smithy_client_1.throwDefaultError)({
1776
+ return throwDefaultError({
2093
1777
  output,
2094
1778
  parsedBody: parsedBody.Error,
2095
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2096
1779
  errorCode,
2097
1780
  });
2098
1781
  }
@@ -2105,7 +1788,7 @@ const de_AddRoleToInstanceProfileCommand = async (output, context) => {
2105
1788
  const response = {
2106
1789
  $metadata: deserializeMetadata(output),
2107
1790
  };
2108
- return Promise.resolve(response);
1791
+ return response;
2109
1792
  };
2110
1793
  exports.de_AddRoleToInstanceProfileCommand = de_AddRoleToInstanceProfileCommand;
2111
1794
  const de_AddRoleToInstanceProfileCommandError = async (output, context) => {
@@ -2132,10 +1815,9 @@ const de_AddRoleToInstanceProfileCommandError = async (output, context) => {
2132
1815
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
2133
1816
  default:
2134
1817
  const parsedBody = parsedOutput.body;
2135
- (0, smithy_client_1.throwDefaultError)({
1818
+ return throwDefaultError({
2136
1819
  output,
2137
1820
  parsedBody: parsedBody.Error,
2138
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2139
1821
  errorCode,
2140
1822
  });
2141
1823
  }
@@ -2148,7 +1830,7 @@ const de_AddUserToGroupCommand = async (output, context) => {
2148
1830
  const response = {
2149
1831
  $metadata: deserializeMetadata(output),
2150
1832
  };
2151
- return Promise.resolve(response);
1833
+ return response;
2152
1834
  };
2153
1835
  exports.de_AddUserToGroupCommand = de_AddUserToGroupCommand;
2154
1836
  const de_AddUserToGroupCommandError = async (output, context) => {
@@ -2169,10 +1851,9 @@ const de_AddUserToGroupCommandError = async (output, context) => {
2169
1851
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2170
1852
  default:
2171
1853
  const parsedBody = parsedOutput.body;
2172
- (0, smithy_client_1.throwDefaultError)({
1854
+ return throwDefaultError({
2173
1855
  output,
2174
1856
  parsedBody: parsedBody.Error,
2175
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2176
1857
  errorCode,
2177
1858
  });
2178
1859
  }
@@ -2185,7 +1866,7 @@ const de_AttachGroupPolicyCommand = async (output, context) => {
2185
1866
  const response = {
2186
1867
  $metadata: deserializeMetadata(output),
2187
1868
  };
2188
- return Promise.resolve(response);
1869
+ return response;
2189
1870
  };
2190
1871
  exports.de_AttachGroupPolicyCommand = de_AttachGroupPolicyCommand;
2191
1872
  const de_AttachGroupPolicyCommandError = async (output, context) => {
@@ -2212,10 +1893,9 @@ const de_AttachGroupPolicyCommandError = async (output, context) => {
2212
1893
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2213
1894
  default:
2214
1895
  const parsedBody = parsedOutput.body;
2215
- (0, smithy_client_1.throwDefaultError)({
1896
+ return throwDefaultError({
2216
1897
  output,
2217
1898
  parsedBody: parsedBody.Error,
2218
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2219
1899
  errorCode,
2220
1900
  });
2221
1901
  }
@@ -2228,7 +1908,7 @@ const de_AttachRolePolicyCommand = async (output, context) => {
2228
1908
  const response = {
2229
1909
  $metadata: deserializeMetadata(output),
2230
1910
  };
2231
- return Promise.resolve(response);
1911
+ return response;
2232
1912
  };
2233
1913
  exports.de_AttachRolePolicyCommand = de_AttachRolePolicyCommand;
2234
1914
  const de_AttachRolePolicyCommandError = async (output, context) => {
@@ -2258,10 +1938,9 @@ const de_AttachRolePolicyCommandError = async (output, context) => {
2258
1938
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
2259
1939
  default:
2260
1940
  const parsedBody = parsedOutput.body;
2261
- (0, smithy_client_1.throwDefaultError)({
1941
+ return throwDefaultError({
2262
1942
  output,
2263
1943
  parsedBody: parsedBody.Error,
2264
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2265
1944
  errorCode,
2266
1945
  });
2267
1946
  }
@@ -2274,7 +1953,7 @@ const de_AttachUserPolicyCommand = async (output, context) => {
2274
1953
  const response = {
2275
1954
  $metadata: deserializeMetadata(output),
2276
1955
  };
2277
- return Promise.resolve(response);
1956
+ return response;
2278
1957
  };
2279
1958
  exports.de_AttachUserPolicyCommand = de_AttachUserPolicyCommand;
2280
1959
  const de_AttachUserPolicyCommandError = async (output, context) => {
@@ -2301,10 +1980,9 @@ const de_AttachUserPolicyCommandError = async (output, context) => {
2301
1980
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2302
1981
  default:
2303
1982
  const parsedBody = parsedOutput.body;
2304
- (0, smithy_client_1.throwDefaultError)({
1983
+ return throwDefaultError({
2305
1984
  output,
2306
1985
  parsedBody: parsedBody.Error,
2307
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2308
1986
  errorCode,
2309
1987
  });
2310
1988
  }
@@ -2317,7 +1995,7 @@ const de_ChangePasswordCommand = async (output, context) => {
2317
1995
  const response = {
2318
1996
  $metadata: deserializeMetadata(output),
2319
1997
  };
2320
- return Promise.resolve(response);
1998
+ return response;
2321
1999
  };
2322
2000
  exports.de_ChangePasswordCommand = de_ChangePasswordCommand;
2323
2001
  const de_ChangePasswordCommandError = async (output, context) => {
@@ -2347,10 +2025,9 @@ const de_ChangePasswordCommandError = async (output, context) => {
2347
2025
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2348
2026
  default:
2349
2027
  const parsedBody = parsedOutput.body;
2350
- (0, smithy_client_1.throwDefaultError)({
2028
+ return throwDefaultError({
2351
2029
  output,
2352
2030
  parsedBody: parsedBody.Error,
2353
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2354
2031
  errorCode,
2355
2032
  });
2356
2033
  }
@@ -2366,7 +2043,7 @@ const de_CreateAccessKeyCommand = async (output, context) => {
2366
2043
  $metadata: deserializeMetadata(output),
2367
2044
  ...contents,
2368
2045
  };
2369
- return Promise.resolve(response);
2046
+ return response;
2370
2047
  };
2371
2048
  exports.de_CreateAccessKeyCommand = de_CreateAccessKeyCommand;
2372
2049
  const de_CreateAccessKeyCommandError = async (output, context) => {
@@ -2387,10 +2064,9 @@ const de_CreateAccessKeyCommandError = async (output, context) => {
2387
2064
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2388
2065
  default:
2389
2066
  const parsedBody = parsedOutput.body;
2390
- (0, smithy_client_1.throwDefaultError)({
2067
+ return throwDefaultError({
2391
2068
  output,
2392
2069
  parsedBody: parsedBody.Error,
2393
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2394
2070
  errorCode,
2395
2071
  });
2396
2072
  }
@@ -2403,7 +2079,7 @@ const de_CreateAccountAliasCommand = async (output, context) => {
2403
2079
  const response = {
2404
2080
  $metadata: deserializeMetadata(output),
2405
2081
  };
2406
- return Promise.resolve(response);
2082
+ return response;
2407
2083
  };
2408
2084
  exports.de_CreateAccountAliasCommand = de_CreateAccountAliasCommand;
2409
2085
  const de_CreateAccountAliasCommandError = async (output, context) => {
@@ -2424,10 +2100,9 @@ const de_CreateAccountAliasCommandError = async (output, context) => {
2424
2100
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2425
2101
  default:
2426
2102
  const parsedBody = parsedOutput.body;
2427
- (0, smithy_client_1.throwDefaultError)({
2103
+ return throwDefaultError({
2428
2104
  output,
2429
2105
  parsedBody: parsedBody.Error,
2430
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2431
2106
  errorCode,
2432
2107
  });
2433
2108
  }
@@ -2443,7 +2118,7 @@ const de_CreateGroupCommand = async (output, context) => {
2443
2118
  $metadata: deserializeMetadata(output),
2444
2119
  ...contents,
2445
2120
  };
2446
- return Promise.resolve(response);
2121
+ return response;
2447
2122
  };
2448
2123
  exports.de_CreateGroupCommand = de_CreateGroupCommand;
2449
2124
  const de_CreateGroupCommandError = async (output, context) => {
@@ -2467,10 +2142,9 @@ const de_CreateGroupCommandError = async (output, context) => {
2467
2142
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2468
2143
  default:
2469
2144
  const parsedBody = parsedOutput.body;
2470
- (0, smithy_client_1.throwDefaultError)({
2145
+ return throwDefaultError({
2471
2146
  output,
2472
2147
  parsedBody: parsedBody.Error,
2473
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2474
2148
  errorCode,
2475
2149
  });
2476
2150
  }
@@ -2486,7 +2160,7 @@ const de_CreateInstanceProfileCommand = async (output, context) => {
2486
2160
  $metadata: deserializeMetadata(output),
2487
2161
  ...contents,
2488
2162
  };
2489
- return Promise.resolve(response);
2163
+ return response;
2490
2164
  };
2491
2165
  exports.de_CreateInstanceProfileCommand = de_CreateInstanceProfileCommand;
2492
2166
  const de_CreateInstanceProfileCommandError = async (output, context) => {
@@ -2513,10 +2187,9 @@ const de_CreateInstanceProfileCommandError = async (output, context) => {
2513
2187
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2514
2188
  default:
2515
2189
  const parsedBody = parsedOutput.body;
2516
- (0, smithy_client_1.throwDefaultError)({
2190
+ return throwDefaultError({
2517
2191
  output,
2518
2192
  parsedBody: parsedBody.Error,
2519
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2520
2193
  errorCode,
2521
2194
  });
2522
2195
  }
@@ -2532,7 +2205,7 @@ const de_CreateLoginProfileCommand = async (output, context) => {
2532
2205
  $metadata: deserializeMetadata(output),
2533
2206
  ...contents,
2534
2207
  };
2535
- return Promise.resolve(response);
2208
+ return response;
2536
2209
  };
2537
2210
  exports.de_CreateLoginProfileCommand = de_CreateLoginProfileCommand;
2538
2211
  const de_CreateLoginProfileCommandError = async (output, context) => {
@@ -2559,10 +2232,9 @@ const de_CreateLoginProfileCommandError = async (output, context) => {
2559
2232
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2560
2233
  default:
2561
2234
  const parsedBody = parsedOutput.body;
2562
- (0, smithy_client_1.throwDefaultError)({
2235
+ return throwDefaultError({
2563
2236
  output,
2564
2237
  parsedBody: parsedBody.Error,
2565
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2566
2238
  errorCode,
2567
2239
  });
2568
2240
  }
@@ -2578,7 +2250,7 @@ const de_CreateOpenIDConnectProviderCommand = async (output, context) => {
2578
2250
  $metadata: deserializeMetadata(output),
2579
2251
  ...contents,
2580
2252
  };
2581
- return Promise.resolve(response);
2253
+ return response;
2582
2254
  };
2583
2255
  exports.de_CreateOpenIDConnectProviderCommand = de_CreateOpenIDConnectProviderCommand;
2584
2256
  const de_CreateOpenIDConnectProviderCommandError = async (output, context) => {
@@ -2605,10 +2277,9 @@ const de_CreateOpenIDConnectProviderCommandError = async (output, context) => {
2605
2277
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2606
2278
  default:
2607
2279
  const parsedBody = parsedOutput.body;
2608
- (0, smithy_client_1.throwDefaultError)({
2280
+ return throwDefaultError({
2609
2281
  output,
2610
2282
  parsedBody: parsedBody.Error,
2611
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2612
2283
  errorCode,
2613
2284
  });
2614
2285
  }
@@ -2624,7 +2295,7 @@ const de_CreatePolicyCommand = async (output, context) => {
2624
2295
  $metadata: deserializeMetadata(output),
2625
2296
  ...contents,
2626
2297
  };
2627
- return Promise.resolve(response);
2298
+ return response;
2628
2299
  };
2629
2300
  exports.de_CreatePolicyCommand = de_CreatePolicyCommand;
2630
2301
  const de_CreatePolicyCommandError = async (output, context) => {
@@ -2654,10 +2325,9 @@ const de_CreatePolicyCommandError = async (output, context) => {
2654
2325
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2655
2326
  default:
2656
2327
  const parsedBody = parsedOutput.body;
2657
- (0, smithy_client_1.throwDefaultError)({
2328
+ return throwDefaultError({
2658
2329
  output,
2659
2330
  parsedBody: parsedBody.Error,
2660
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2661
2331
  errorCode,
2662
2332
  });
2663
2333
  }
@@ -2673,7 +2343,7 @@ const de_CreatePolicyVersionCommand = async (output, context) => {
2673
2343
  $metadata: deserializeMetadata(output),
2674
2344
  ...contents,
2675
2345
  };
2676
- return Promise.resolve(response);
2346
+ return response;
2677
2347
  };
2678
2348
  exports.de_CreatePolicyVersionCommand = de_CreatePolicyVersionCommand;
2679
2349
  const de_CreatePolicyVersionCommandError = async (output, context) => {
@@ -2700,10 +2370,9 @@ const de_CreatePolicyVersionCommandError = async (output, context) => {
2700
2370
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2701
2371
  default:
2702
2372
  const parsedBody = parsedOutput.body;
2703
- (0, smithy_client_1.throwDefaultError)({
2373
+ return throwDefaultError({
2704
2374
  output,
2705
2375
  parsedBody: parsedBody.Error,
2706
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2707
2376
  errorCode,
2708
2377
  });
2709
2378
  }
@@ -2719,7 +2388,7 @@ const de_CreateRoleCommand = async (output, context) => {
2719
2388
  $metadata: deserializeMetadata(output),
2720
2389
  ...contents,
2721
2390
  };
2722
- return Promise.resolve(response);
2391
+ return response;
2723
2392
  };
2724
2393
  exports.de_CreateRoleCommand = de_CreateRoleCommand;
2725
2394
  const de_CreateRoleCommandError = async (output, context) => {
@@ -2749,10 +2418,9 @@ const de_CreateRoleCommandError = async (output, context) => {
2749
2418
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2750
2419
  default:
2751
2420
  const parsedBody = parsedOutput.body;
2752
- (0, smithy_client_1.throwDefaultError)({
2421
+ return throwDefaultError({
2753
2422
  output,
2754
2423
  parsedBody: parsedBody.Error,
2755
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2756
2424
  errorCode,
2757
2425
  });
2758
2426
  }
@@ -2768,7 +2436,7 @@ const de_CreateSAMLProviderCommand = async (output, context) => {
2768
2436
  $metadata: deserializeMetadata(output),
2769
2437
  ...contents,
2770
2438
  };
2771
- return Promise.resolve(response);
2439
+ return response;
2772
2440
  };
2773
2441
  exports.de_CreateSAMLProviderCommand = de_CreateSAMLProviderCommand;
2774
2442
  const de_CreateSAMLProviderCommandError = async (output, context) => {
@@ -2795,10 +2463,9 @@ const de_CreateSAMLProviderCommandError = async (output, context) => {
2795
2463
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2796
2464
  default:
2797
2465
  const parsedBody = parsedOutput.body;
2798
- (0, smithy_client_1.throwDefaultError)({
2466
+ return throwDefaultError({
2799
2467
  output,
2800
2468
  parsedBody: parsedBody.Error,
2801
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2802
2469
  errorCode,
2803
2470
  });
2804
2471
  }
@@ -2814,7 +2481,7 @@ const de_CreateServiceLinkedRoleCommand = async (output, context) => {
2814
2481
  $metadata: deserializeMetadata(output),
2815
2482
  ...contents,
2816
2483
  };
2817
- return Promise.resolve(response);
2484
+ return response;
2818
2485
  };
2819
2486
  exports.de_CreateServiceLinkedRoleCommand = de_CreateServiceLinkedRoleCommand;
2820
2487
  const de_CreateServiceLinkedRoleCommandError = async (output, context) => {
@@ -2838,10 +2505,9 @@ const de_CreateServiceLinkedRoleCommandError = async (output, context) => {
2838
2505
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2839
2506
  default:
2840
2507
  const parsedBody = parsedOutput.body;
2841
- (0, smithy_client_1.throwDefaultError)({
2508
+ return throwDefaultError({
2842
2509
  output,
2843
2510
  parsedBody: parsedBody.Error,
2844
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2845
2511
  errorCode,
2846
2512
  });
2847
2513
  }
@@ -2857,7 +2523,7 @@ const de_CreateServiceSpecificCredentialCommand = async (output, context) => {
2857
2523
  $metadata: deserializeMetadata(output),
2858
2524
  ...contents,
2859
2525
  };
2860
- return Promise.resolve(response);
2526
+ return response;
2861
2527
  };
2862
2528
  exports.de_CreateServiceSpecificCredentialCommand = de_CreateServiceSpecificCredentialCommand;
2863
2529
  const de_CreateServiceSpecificCredentialCommandError = async (output, context) => {
@@ -2878,10 +2544,9 @@ const de_CreateServiceSpecificCredentialCommandError = async (output, context) =
2878
2544
  throw await de_ServiceNotSupportedExceptionRes(parsedOutput, context);
2879
2545
  default:
2880
2546
  const parsedBody = parsedOutput.body;
2881
- (0, smithy_client_1.throwDefaultError)({
2547
+ return throwDefaultError({
2882
2548
  output,
2883
2549
  parsedBody: parsedBody.Error,
2884
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2885
2550
  errorCode,
2886
2551
  });
2887
2552
  }
@@ -2897,7 +2562,7 @@ const de_CreateUserCommand = async (output, context) => {
2897
2562
  $metadata: deserializeMetadata(output),
2898
2563
  ...contents,
2899
2564
  };
2900
- return Promise.resolve(response);
2565
+ return response;
2901
2566
  };
2902
2567
  exports.de_CreateUserCommand = de_CreateUserCommand;
2903
2568
  const de_CreateUserCommandError = async (output, context) => {
@@ -2927,10 +2592,9 @@ const de_CreateUserCommandError = async (output, context) => {
2927
2592
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2928
2593
  default:
2929
2594
  const parsedBody = parsedOutput.body;
2930
- (0, smithy_client_1.throwDefaultError)({
2595
+ return throwDefaultError({
2931
2596
  output,
2932
2597
  parsedBody: parsedBody.Error,
2933
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2934
2598
  errorCode,
2935
2599
  });
2936
2600
  }
@@ -2946,7 +2610,7 @@ const de_CreateVirtualMFADeviceCommand = async (output, context) => {
2946
2610
  $metadata: deserializeMetadata(output),
2947
2611
  ...contents,
2948
2612
  };
2949
- return Promise.resolve(response);
2613
+ return response;
2950
2614
  };
2951
2615
  exports.de_CreateVirtualMFADeviceCommand = de_CreateVirtualMFADeviceCommand;
2952
2616
  const de_CreateVirtualMFADeviceCommandError = async (output, context) => {
@@ -2973,10 +2637,9 @@ const de_CreateVirtualMFADeviceCommandError = async (output, context) => {
2973
2637
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2974
2638
  default:
2975
2639
  const parsedBody = parsedOutput.body;
2976
- (0, smithy_client_1.throwDefaultError)({
2640
+ return throwDefaultError({
2977
2641
  output,
2978
2642
  parsedBody: parsedBody.Error,
2979
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2980
2643
  errorCode,
2981
2644
  });
2982
2645
  }
@@ -2989,7 +2652,7 @@ const de_DeactivateMFADeviceCommand = async (output, context) => {
2989
2652
  const response = {
2990
2653
  $metadata: deserializeMetadata(output),
2991
2654
  };
2992
- return Promise.resolve(response);
2655
+ return response;
2993
2656
  };
2994
2657
  exports.de_DeactivateMFADeviceCommand = de_DeactivateMFADeviceCommand;
2995
2658
  const de_DeactivateMFADeviceCommandError = async (output, context) => {
@@ -3013,10 +2676,9 @@ const de_DeactivateMFADeviceCommandError = async (output, context) => {
3013
2676
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3014
2677
  default:
3015
2678
  const parsedBody = parsedOutput.body;
3016
- (0, smithy_client_1.throwDefaultError)({
2679
+ return throwDefaultError({
3017
2680
  output,
3018
2681
  parsedBody: parsedBody.Error,
3019
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3020
2682
  errorCode,
3021
2683
  });
3022
2684
  }
@@ -3029,7 +2691,7 @@ const de_DeleteAccessKeyCommand = async (output, context) => {
3029
2691
  const response = {
3030
2692
  $metadata: deserializeMetadata(output),
3031
2693
  };
3032
- return Promise.resolve(response);
2694
+ return response;
3033
2695
  };
3034
2696
  exports.de_DeleteAccessKeyCommand = de_DeleteAccessKeyCommand;
3035
2697
  const de_DeleteAccessKeyCommandError = async (output, context) => {
@@ -3050,10 +2712,9 @@ const de_DeleteAccessKeyCommandError = async (output, context) => {
3050
2712
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3051
2713
  default:
3052
2714
  const parsedBody = parsedOutput.body;
3053
- (0, smithy_client_1.throwDefaultError)({
2715
+ return throwDefaultError({
3054
2716
  output,
3055
2717
  parsedBody: parsedBody.Error,
3056
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3057
2718
  errorCode,
3058
2719
  });
3059
2720
  }
@@ -3066,7 +2727,7 @@ const de_DeleteAccountAliasCommand = async (output, context) => {
3066
2727
  const response = {
3067
2728
  $metadata: deserializeMetadata(output),
3068
2729
  };
3069
- return Promise.resolve(response);
2730
+ return response;
3070
2731
  };
3071
2732
  exports.de_DeleteAccountAliasCommand = de_DeleteAccountAliasCommand;
3072
2733
  const de_DeleteAccountAliasCommandError = async (output, context) => {
@@ -3087,10 +2748,9 @@ const de_DeleteAccountAliasCommandError = async (output, context) => {
3087
2748
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3088
2749
  default:
3089
2750
  const parsedBody = parsedOutput.body;
3090
- (0, smithy_client_1.throwDefaultError)({
2751
+ return throwDefaultError({
3091
2752
  output,
3092
2753
  parsedBody: parsedBody.Error,
3093
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3094
2754
  errorCode,
3095
2755
  });
3096
2756
  }
@@ -3103,7 +2763,7 @@ const de_DeleteAccountPasswordPolicyCommand = async (output, context) => {
3103
2763
  const response = {
3104
2764
  $metadata: deserializeMetadata(output),
3105
2765
  };
3106
- return Promise.resolve(response);
2766
+ return response;
3107
2767
  };
3108
2768
  exports.de_DeleteAccountPasswordPolicyCommand = de_DeleteAccountPasswordPolicyCommand;
3109
2769
  const de_DeleteAccountPasswordPolicyCommandError = async (output, context) => {
@@ -3124,10 +2784,9 @@ const de_DeleteAccountPasswordPolicyCommandError = async (output, context) => {
3124
2784
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3125
2785
  default:
3126
2786
  const parsedBody = parsedOutput.body;
3127
- (0, smithy_client_1.throwDefaultError)({
2787
+ return throwDefaultError({
3128
2788
  output,
3129
2789
  parsedBody: parsedBody.Error,
3130
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3131
2790
  errorCode,
3132
2791
  });
3133
2792
  }
@@ -3140,7 +2799,7 @@ const de_DeleteGroupCommand = async (output, context) => {
3140
2799
  const response = {
3141
2800
  $metadata: deserializeMetadata(output),
3142
2801
  };
3143
- return Promise.resolve(response);
2802
+ return response;
3144
2803
  };
3145
2804
  exports.de_DeleteGroupCommand = de_DeleteGroupCommand;
3146
2805
  const de_DeleteGroupCommandError = async (output, context) => {
@@ -3164,10 +2823,9 @@ const de_DeleteGroupCommandError = async (output, context) => {
3164
2823
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3165
2824
  default:
3166
2825
  const parsedBody = parsedOutput.body;
3167
- (0, smithy_client_1.throwDefaultError)({
2826
+ return throwDefaultError({
3168
2827
  output,
3169
2828
  parsedBody: parsedBody.Error,
3170
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3171
2829
  errorCode,
3172
2830
  });
3173
2831
  }
@@ -3180,7 +2838,7 @@ const de_DeleteGroupPolicyCommand = async (output, context) => {
3180
2838
  const response = {
3181
2839
  $metadata: deserializeMetadata(output),
3182
2840
  };
3183
- return Promise.resolve(response);
2841
+ return response;
3184
2842
  };
3185
2843
  exports.de_DeleteGroupPolicyCommand = de_DeleteGroupPolicyCommand;
3186
2844
  const de_DeleteGroupPolicyCommandError = async (output, context) => {
@@ -3201,10 +2859,9 @@ const de_DeleteGroupPolicyCommandError = async (output, context) => {
3201
2859
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3202
2860
  default:
3203
2861
  const parsedBody = parsedOutput.body;
3204
- (0, smithy_client_1.throwDefaultError)({
2862
+ return throwDefaultError({
3205
2863
  output,
3206
2864
  parsedBody: parsedBody.Error,
3207
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3208
2865
  errorCode,
3209
2866
  });
3210
2867
  }
@@ -3217,7 +2874,7 @@ const de_DeleteInstanceProfileCommand = async (output, context) => {
3217
2874
  const response = {
3218
2875
  $metadata: deserializeMetadata(output),
3219
2876
  };
3220
- return Promise.resolve(response);
2877
+ return response;
3221
2878
  };
3222
2879
  exports.de_DeleteInstanceProfileCommand = de_DeleteInstanceProfileCommand;
3223
2880
  const de_DeleteInstanceProfileCommandError = async (output, context) => {
@@ -3241,10 +2898,9 @@ const de_DeleteInstanceProfileCommandError = async (output, context) => {
3241
2898
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3242
2899
  default:
3243
2900
  const parsedBody = parsedOutput.body;
3244
- (0, smithy_client_1.throwDefaultError)({
2901
+ return throwDefaultError({
3245
2902
  output,
3246
2903
  parsedBody: parsedBody.Error,
3247
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3248
2904
  errorCode,
3249
2905
  });
3250
2906
  }
@@ -3257,7 +2913,7 @@ const de_DeleteLoginProfileCommand = async (output, context) => {
3257
2913
  const response = {
3258
2914
  $metadata: deserializeMetadata(output),
3259
2915
  };
3260
- return Promise.resolve(response);
2916
+ return response;
3261
2917
  };
3262
2918
  exports.de_DeleteLoginProfileCommand = de_DeleteLoginProfileCommand;
3263
2919
  const de_DeleteLoginProfileCommandError = async (output, context) => {
@@ -3281,10 +2937,9 @@ const de_DeleteLoginProfileCommandError = async (output, context) => {
3281
2937
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3282
2938
  default:
3283
2939
  const parsedBody = parsedOutput.body;
3284
- (0, smithy_client_1.throwDefaultError)({
2940
+ return throwDefaultError({
3285
2941
  output,
3286
2942
  parsedBody: parsedBody.Error,
3287
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3288
2943
  errorCode,
3289
2944
  });
3290
2945
  }
@@ -3297,7 +2952,7 @@ const de_DeleteOpenIDConnectProviderCommand = async (output, context) => {
3297
2952
  const response = {
3298
2953
  $metadata: deserializeMetadata(output),
3299
2954
  };
3300
- return Promise.resolve(response);
2955
+ return response;
3301
2956
  };
3302
2957
  exports.de_DeleteOpenIDConnectProviderCommand = de_DeleteOpenIDConnectProviderCommand;
3303
2958
  const de_DeleteOpenIDConnectProviderCommandError = async (output, context) => {
@@ -3318,10 +2973,9 @@ const de_DeleteOpenIDConnectProviderCommandError = async (output, context) => {
3318
2973
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3319
2974
  default:
3320
2975
  const parsedBody = parsedOutput.body;
3321
- (0, smithy_client_1.throwDefaultError)({
2976
+ return throwDefaultError({
3322
2977
  output,
3323
2978
  parsedBody: parsedBody.Error,
3324
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3325
2979
  errorCode,
3326
2980
  });
3327
2981
  }
@@ -3334,7 +2988,7 @@ const de_DeletePolicyCommand = async (output, context) => {
3334
2988
  const response = {
3335
2989
  $metadata: deserializeMetadata(output),
3336
2990
  };
3337
- return Promise.resolve(response);
2991
+ return response;
3338
2992
  };
3339
2993
  exports.de_DeletePolicyCommand = de_DeletePolicyCommand;
3340
2994
  const de_DeletePolicyCommandError = async (output, context) => {
@@ -3361,10 +3015,9 @@ const de_DeletePolicyCommandError = async (output, context) => {
3361
3015
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3362
3016
  default:
3363
3017
  const parsedBody = parsedOutput.body;
3364
- (0, smithy_client_1.throwDefaultError)({
3018
+ return throwDefaultError({
3365
3019
  output,
3366
3020
  parsedBody: parsedBody.Error,
3367
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3368
3021
  errorCode,
3369
3022
  });
3370
3023
  }
@@ -3377,7 +3030,7 @@ const de_DeletePolicyVersionCommand = async (output, context) => {
3377
3030
  const response = {
3378
3031
  $metadata: deserializeMetadata(output),
3379
3032
  };
3380
- return Promise.resolve(response);
3033
+ return response;
3381
3034
  };
3382
3035
  exports.de_DeletePolicyVersionCommand = de_DeletePolicyVersionCommand;
3383
3036
  const de_DeletePolicyVersionCommandError = async (output, context) => {
@@ -3404,10 +3057,9 @@ const de_DeletePolicyVersionCommandError = async (output, context) => {
3404
3057
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3405
3058
  default:
3406
3059
  const parsedBody = parsedOutput.body;
3407
- (0, smithy_client_1.throwDefaultError)({
3060
+ return throwDefaultError({
3408
3061
  output,
3409
3062
  parsedBody: parsedBody.Error,
3410
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3411
3063
  errorCode,
3412
3064
  });
3413
3065
  }
@@ -3420,7 +3072,7 @@ const de_DeleteRoleCommand = async (output, context) => {
3420
3072
  const response = {
3421
3073
  $metadata: deserializeMetadata(output),
3422
3074
  };
3423
- return Promise.resolve(response);
3075
+ return response;
3424
3076
  };
3425
3077
  exports.de_DeleteRoleCommand = de_DeleteRoleCommand;
3426
3078
  const de_DeleteRoleCommandError = async (output, context) => {
@@ -3450,10 +3102,9 @@ const de_DeleteRoleCommandError = async (output, context) => {
3450
3102
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
3451
3103
  default:
3452
3104
  const parsedBody = parsedOutput.body;
3453
- (0, smithy_client_1.throwDefaultError)({
3105
+ return throwDefaultError({
3454
3106
  output,
3455
3107
  parsedBody: parsedBody.Error,
3456
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3457
3108
  errorCode,
3458
3109
  });
3459
3110
  }
@@ -3466,7 +3117,7 @@ const de_DeleteRolePermissionsBoundaryCommand = async (output, context) => {
3466
3117
  const response = {
3467
3118
  $metadata: deserializeMetadata(output),
3468
3119
  };
3469
- return Promise.resolve(response);
3120
+ return response;
3470
3121
  };
3471
3122
  exports.de_DeleteRolePermissionsBoundaryCommand = de_DeleteRolePermissionsBoundaryCommand;
3472
3123
  const de_DeleteRolePermissionsBoundaryCommandError = async (output, context) => {
@@ -3487,10 +3138,9 @@ const de_DeleteRolePermissionsBoundaryCommandError = async (output, context) =>
3487
3138
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
3488
3139
  default:
3489
3140
  const parsedBody = parsedOutput.body;
3490
- (0, smithy_client_1.throwDefaultError)({
3141
+ return throwDefaultError({
3491
3142
  output,
3492
3143
  parsedBody: parsedBody.Error,
3493
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3494
3144
  errorCode,
3495
3145
  });
3496
3146
  }
@@ -3503,7 +3153,7 @@ const de_DeleteRolePolicyCommand = async (output, context) => {
3503
3153
  const response = {
3504
3154
  $metadata: deserializeMetadata(output),
3505
3155
  };
3506
- return Promise.resolve(response);
3156
+ return response;
3507
3157
  };
3508
3158
  exports.de_DeleteRolePolicyCommand = de_DeleteRolePolicyCommand;
3509
3159
  const de_DeleteRolePolicyCommandError = async (output, context) => {
@@ -3527,10 +3177,9 @@ const de_DeleteRolePolicyCommandError = async (output, context) => {
3527
3177
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
3528
3178
  default:
3529
3179
  const parsedBody = parsedOutput.body;
3530
- (0, smithy_client_1.throwDefaultError)({
3180
+ return throwDefaultError({
3531
3181
  output,
3532
3182
  parsedBody: parsedBody.Error,
3533
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3534
3183
  errorCode,
3535
3184
  });
3536
3185
  }
@@ -3543,7 +3192,7 @@ const de_DeleteSAMLProviderCommand = async (output, context) => {
3543
3192
  const response = {
3544
3193
  $metadata: deserializeMetadata(output),
3545
3194
  };
3546
- return Promise.resolve(response);
3195
+ return response;
3547
3196
  };
3548
3197
  exports.de_DeleteSAMLProviderCommand = de_DeleteSAMLProviderCommand;
3549
3198
  const de_DeleteSAMLProviderCommandError = async (output, context) => {
@@ -3567,10 +3216,9 @@ const de_DeleteSAMLProviderCommandError = async (output, context) => {
3567
3216
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3568
3217
  default:
3569
3218
  const parsedBody = parsedOutput.body;
3570
- (0, smithy_client_1.throwDefaultError)({
3219
+ return throwDefaultError({
3571
3220
  output,
3572
3221
  parsedBody: parsedBody.Error,
3573
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3574
3222
  errorCode,
3575
3223
  });
3576
3224
  }
@@ -3583,7 +3231,7 @@ const de_DeleteServerCertificateCommand = async (output, context) => {
3583
3231
  const response = {
3584
3232
  $metadata: deserializeMetadata(output),
3585
3233
  };
3586
- return Promise.resolve(response);
3234
+ return response;
3587
3235
  };
3588
3236
  exports.de_DeleteServerCertificateCommand = de_DeleteServerCertificateCommand;
3589
3237
  const de_DeleteServerCertificateCommandError = async (output, context) => {
@@ -3607,10 +3255,9 @@ const de_DeleteServerCertificateCommandError = async (output, context) => {
3607
3255
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3608
3256
  default:
3609
3257
  const parsedBody = parsedOutput.body;
3610
- (0, smithy_client_1.throwDefaultError)({
3258
+ return throwDefaultError({
3611
3259
  output,
3612
3260
  parsedBody: parsedBody.Error,
3613
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3614
3261
  errorCode,
3615
3262
  });
3616
3263
  }
@@ -3626,7 +3273,7 @@ const de_DeleteServiceLinkedRoleCommand = async (output, context) => {
3626
3273
  $metadata: deserializeMetadata(output),
3627
3274
  ...contents,
3628
3275
  };
3629
- return Promise.resolve(response);
3276
+ return response;
3630
3277
  };
3631
3278
  exports.de_DeleteServiceLinkedRoleCommand = de_DeleteServiceLinkedRoleCommand;
3632
3279
  const de_DeleteServiceLinkedRoleCommandError = async (output, context) => {
@@ -3647,10 +3294,9 @@ const de_DeleteServiceLinkedRoleCommandError = async (output, context) => {
3647
3294
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3648
3295
  default:
3649
3296
  const parsedBody = parsedOutput.body;
3650
- (0, smithy_client_1.throwDefaultError)({
3297
+ return throwDefaultError({
3651
3298
  output,
3652
3299
  parsedBody: parsedBody.Error,
3653
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3654
3300
  errorCode,
3655
3301
  });
3656
3302
  }
@@ -3663,7 +3309,7 @@ const de_DeleteServiceSpecificCredentialCommand = async (output, context) => {
3663
3309
  const response = {
3664
3310
  $metadata: deserializeMetadata(output),
3665
3311
  };
3666
- return Promise.resolve(response);
3312
+ return response;
3667
3313
  };
3668
3314
  exports.de_DeleteServiceSpecificCredentialCommand = de_DeleteServiceSpecificCredentialCommand;
3669
3315
  const de_DeleteServiceSpecificCredentialCommandError = async (output, context) => {
@@ -3678,10 +3324,9 @@ const de_DeleteServiceSpecificCredentialCommandError = async (output, context) =
3678
3324
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
3679
3325
  default:
3680
3326
  const parsedBody = parsedOutput.body;
3681
- (0, smithy_client_1.throwDefaultError)({
3327
+ return throwDefaultError({
3682
3328
  output,
3683
3329
  parsedBody: parsedBody.Error,
3684
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3685
3330
  errorCode,
3686
3331
  });
3687
3332
  }
@@ -3694,7 +3339,7 @@ const de_DeleteSigningCertificateCommand = async (output, context) => {
3694
3339
  const response = {
3695
3340
  $metadata: deserializeMetadata(output),
3696
3341
  };
3697
- return Promise.resolve(response);
3342
+ return response;
3698
3343
  };
3699
3344
  exports.de_DeleteSigningCertificateCommand = de_DeleteSigningCertificateCommand;
3700
3345
  const de_DeleteSigningCertificateCommandError = async (output, context) => {
@@ -3715,10 +3360,9 @@ const de_DeleteSigningCertificateCommandError = async (output, context) => {
3715
3360
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3716
3361
  default:
3717
3362
  const parsedBody = parsedOutput.body;
3718
- (0, smithy_client_1.throwDefaultError)({
3363
+ return throwDefaultError({
3719
3364
  output,
3720
3365
  parsedBody: parsedBody.Error,
3721
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3722
3366
  errorCode,
3723
3367
  });
3724
3368
  }
@@ -3731,7 +3375,7 @@ const de_DeleteSSHPublicKeyCommand = async (output, context) => {
3731
3375
  const response = {
3732
3376
  $metadata: deserializeMetadata(output),
3733
3377
  };
3734
- return Promise.resolve(response);
3378
+ return response;
3735
3379
  };
3736
3380
  exports.de_DeleteSSHPublicKeyCommand = de_DeleteSSHPublicKeyCommand;
3737
3381
  const de_DeleteSSHPublicKeyCommandError = async (output, context) => {
@@ -3746,10 +3390,9 @@ const de_DeleteSSHPublicKeyCommandError = async (output, context) => {
3746
3390
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
3747
3391
  default:
3748
3392
  const parsedBody = parsedOutput.body;
3749
- (0, smithy_client_1.throwDefaultError)({
3393
+ return throwDefaultError({
3750
3394
  output,
3751
3395
  parsedBody: parsedBody.Error,
3752
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3753
3396
  errorCode,
3754
3397
  });
3755
3398
  }
@@ -3762,7 +3405,7 @@ const de_DeleteUserCommand = async (output, context) => {
3762
3405
  const response = {
3763
3406
  $metadata: deserializeMetadata(output),
3764
3407
  };
3765
- return Promise.resolve(response);
3408
+ return response;
3766
3409
  };
3767
3410
  exports.de_DeleteUserCommand = de_DeleteUserCommand;
3768
3411
  const de_DeleteUserCommandError = async (output, context) => {
@@ -3789,10 +3432,9 @@ const de_DeleteUserCommandError = async (output, context) => {
3789
3432
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3790
3433
  default:
3791
3434
  const parsedBody = parsedOutput.body;
3792
- (0, smithy_client_1.throwDefaultError)({
3435
+ return throwDefaultError({
3793
3436
  output,
3794
3437
  parsedBody: parsedBody.Error,
3795
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3796
3438
  errorCode,
3797
3439
  });
3798
3440
  }
@@ -3805,7 +3447,7 @@ const de_DeleteUserPermissionsBoundaryCommand = async (output, context) => {
3805
3447
  const response = {
3806
3448
  $metadata: deserializeMetadata(output),
3807
3449
  };
3808
- return Promise.resolve(response);
3450
+ return response;
3809
3451
  };
3810
3452
  exports.de_DeleteUserPermissionsBoundaryCommand = de_DeleteUserPermissionsBoundaryCommand;
3811
3453
  const de_DeleteUserPermissionsBoundaryCommandError = async (output, context) => {
@@ -3823,10 +3465,9 @@ const de_DeleteUserPermissionsBoundaryCommandError = async (output, context) =>
3823
3465
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3824
3466
  default:
3825
3467
  const parsedBody = parsedOutput.body;
3826
- (0, smithy_client_1.throwDefaultError)({
3468
+ return throwDefaultError({
3827
3469
  output,
3828
3470
  parsedBody: parsedBody.Error,
3829
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3830
3471
  errorCode,
3831
3472
  });
3832
3473
  }
@@ -3839,7 +3480,7 @@ const de_DeleteUserPolicyCommand = async (output, context) => {
3839
3480
  const response = {
3840
3481
  $metadata: deserializeMetadata(output),
3841
3482
  };
3842
- return Promise.resolve(response);
3483
+ return response;
3843
3484
  };
3844
3485
  exports.de_DeleteUserPolicyCommand = de_DeleteUserPolicyCommand;
3845
3486
  const de_DeleteUserPolicyCommandError = async (output, context) => {
@@ -3860,10 +3501,9 @@ const de_DeleteUserPolicyCommandError = async (output, context) => {
3860
3501
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3861
3502
  default:
3862
3503
  const parsedBody = parsedOutput.body;
3863
- (0, smithy_client_1.throwDefaultError)({
3504
+ return throwDefaultError({
3864
3505
  output,
3865
3506
  parsedBody: parsedBody.Error,
3866
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3867
3507
  errorCode,
3868
3508
  });
3869
3509
  }
@@ -3876,7 +3516,7 @@ const de_DeleteVirtualMFADeviceCommand = async (output, context) => {
3876
3516
  const response = {
3877
3517
  $metadata: deserializeMetadata(output),
3878
3518
  };
3879
- return Promise.resolve(response);
3519
+ return response;
3880
3520
  };
3881
3521
  exports.de_DeleteVirtualMFADeviceCommand = de_DeleteVirtualMFADeviceCommand;
3882
3522
  const de_DeleteVirtualMFADeviceCommandError = async (output, context) => {
@@ -3900,10 +3540,9 @@ const de_DeleteVirtualMFADeviceCommandError = async (output, context) => {
3900
3540
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3901
3541
  default:
3902
3542
  const parsedBody = parsedOutput.body;
3903
- (0, smithy_client_1.throwDefaultError)({
3543
+ return throwDefaultError({
3904
3544
  output,
3905
3545
  parsedBody: parsedBody.Error,
3906
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3907
3546
  errorCode,
3908
3547
  });
3909
3548
  }
@@ -3916,7 +3555,7 @@ const de_DetachGroupPolicyCommand = async (output, context) => {
3916
3555
  const response = {
3917
3556
  $metadata: deserializeMetadata(output),
3918
3557
  };
3919
- return Promise.resolve(response);
3558
+ return response;
3920
3559
  };
3921
3560
  exports.de_DetachGroupPolicyCommand = de_DetachGroupPolicyCommand;
3922
3561
  const de_DetachGroupPolicyCommandError = async (output, context) => {
@@ -3940,10 +3579,9 @@ const de_DetachGroupPolicyCommandError = async (output, context) => {
3940
3579
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3941
3580
  default:
3942
3581
  const parsedBody = parsedOutput.body;
3943
- (0, smithy_client_1.throwDefaultError)({
3582
+ return throwDefaultError({
3944
3583
  output,
3945
3584
  parsedBody: parsedBody.Error,
3946
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3947
3585
  errorCode,
3948
3586
  });
3949
3587
  }
@@ -3956,7 +3594,7 @@ const de_DetachRolePolicyCommand = async (output, context) => {
3956
3594
  const response = {
3957
3595
  $metadata: deserializeMetadata(output),
3958
3596
  };
3959
- return Promise.resolve(response);
3597
+ return response;
3960
3598
  };
3961
3599
  exports.de_DetachRolePolicyCommand = de_DetachRolePolicyCommand;
3962
3600
  const de_DetachRolePolicyCommandError = async (output, context) => {
@@ -3983,10 +3621,9 @@ const de_DetachRolePolicyCommandError = async (output, context) => {
3983
3621
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
3984
3622
  default:
3985
3623
  const parsedBody = parsedOutput.body;
3986
- (0, smithy_client_1.throwDefaultError)({
3624
+ return throwDefaultError({
3987
3625
  output,
3988
3626
  parsedBody: parsedBody.Error,
3989
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3990
3627
  errorCode,
3991
3628
  });
3992
3629
  }
@@ -3999,7 +3636,7 @@ const de_DetachUserPolicyCommand = async (output, context) => {
3999
3636
  const response = {
4000
3637
  $metadata: deserializeMetadata(output),
4001
3638
  };
4002
- return Promise.resolve(response);
3639
+ return response;
4003
3640
  };
4004
3641
  exports.de_DetachUserPolicyCommand = de_DetachUserPolicyCommand;
4005
3642
  const de_DetachUserPolicyCommandError = async (output, context) => {
@@ -4023,10 +3660,9 @@ const de_DetachUserPolicyCommandError = async (output, context) => {
4023
3660
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4024
3661
  default:
4025
3662
  const parsedBody = parsedOutput.body;
4026
- (0, smithy_client_1.throwDefaultError)({
3663
+ return throwDefaultError({
4027
3664
  output,
4028
3665
  parsedBody: parsedBody.Error,
4029
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4030
3666
  errorCode,
4031
3667
  });
4032
3668
  }
@@ -4039,7 +3675,7 @@ const de_EnableMFADeviceCommand = async (output, context) => {
4039
3675
  const response = {
4040
3676
  $metadata: deserializeMetadata(output),
4041
3677
  };
4042
- return Promise.resolve(response);
3678
+ return response;
4043
3679
  };
4044
3680
  exports.de_EnableMFADeviceCommand = de_EnableMFADeviceCommand;
4045
3681
  const de_EnableMFADeviceCommandError = async (output, context) => {
@@ -4069,10 +3705,9 @@ const de_EnableMFADeviceCommandError = async (output, context) => {
4069
3705
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4070
3706
  default:
4071
3707
  const parsedBody = parsedOutput.body;
4072
- (0, smithy_client_1.throwDefaultError)({
3708
+ return throwDefaultError({
4073
3709
  output,
4074
3710
  parsedBody: parsedBody.Error,
4075
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4076
3711
  errorCode,
4077
3712
  });
4078
3713
  }
@@ -4088,7 +3723,7 @@ const de_GenerateCredentialReportCommand = async (output, context) => {
4088
3723
  $metadata: deserializeMetadata(output),
4089
3724
  ...contents,
4090
3725
  };
4091
- return Promise.resolve(response);
3726
+ return response;
4092
3727
  };
4093
3728
  exports.de_GenerateCredentialReportCommand = de_GenerateCredentialReportCommand;
4094
3729
  const de_GenerateCredentialReportCommandError = async (output, context) => {
@@ -4106,10 +3741,9 @@ const de_GenerateCredentialReportCommandError = async (output, context) => {
4106
3741
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4107
3742
  default:
4108
3743
  const parsedBody = parsedOutput.body;
4109
- (0, smithy_client_1.throwDefaultError)({
3744
+ return throwDefaultError({
4110
3745
  output,
4111
3746
  parsedBody: parsedBody.Error,
4112
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4113
3747
  errorCode,
4114
3748
  });
4115
3749
  }
@@ -4125,7 +3759,7 @@ const de_GenerateOrganizationsAccessReportCommand = async (output, context) => {
4125
3759
  $metadata: deserializeMetadata(output),
4126
3760
  ...contents,
4127
3761
  };
4128
- return Promise.resolve(response);
3762
+ return response;
4129
3763
  };
4130
3764
  exports.de_GenerateOrganizationsAccessReportCommand = de_GenerateOrganizationsAccessReportCommand;
4131
3765
  const de_GenerateOrganizationsAccessReportCommandError = async (output, context) => {
@@ -4140,10 +3774,9 @@ const de_GenerateOrganizationsAccessReportCommandError = async (output, context)
4140
3774
  throw await de_ReportGenerationLimitExceededExceptionRes(parsedOutput, context);
4141
3775
  default:
4142
3776
  const parsedBody = parsedOutput.body;
4143
- (0, smithy_client_1.throwDefaultError)({
3777
+ return throwDefaultError({
4144
3778
  output,
4145
3779
  parsedBody: parsedBody.Error,
4146
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4147
3780
  errorCode,
4148
3781
  });
4149
3782
  }
@@ -4159,7 +3792,7 @@ const de_GenerateServiceLastAccessedDetailsCommand = async (output, context) =>
4159
3792
  $metadata: deserializeMetadata(output),
4160
3793
  ...contents,
4161
3794
  };
4162
- return Promise.resolve(response);
3795
+ return response;
4163
3796
  };
4164
3797
  exports.de_GenerateServiceLastAccessedDetailsCommand = de_GenerateServiceLastAccessedDetailsCommand;
4165
3798
  const de_GenerateServiceLastAccessedDetailsCommandError = async (output, context) => {
@@ -4177,10 +3810,9 @@ const de_GenerateServiceLastAccessedDetailsCommandError = async (output, context
4177
3810
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
4178
3811
  default:
4179
3812
  const parsedBody = parsedOutput.body;
4180
- (0, smithy_client_1.throwDefaultError)({
3813
+ return throwDefaultError({
4181
3814
  output,
4182
3815
  parsedBody: parsedBody.Error,
4183
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4184
3816
  errorCode,
4185
3817
  });
4186
3818
  }
@@ -4196,7 +3828,7 @@ const de_GetAccessKeyLastUsedCommand = async (output, context) => {
4196
3828
  $metadata: deserializeMetadata(output),
4197
3829
  ...contents,
4198
3830
  };
4199
- return Promise.resolve(response);
3831
+ return response;
4200
3832
  };
4201
3833
  exports.de_GetAccessKeyLastUsedCommand = de_GetAccessKeyLastUsedCommand;
4202
3834
  const de_GetAccessKeyLastUsedCommandError = async (output, context) => {
@@ -4211,10 +3843,9 @@ const de_GetAccessKeyLastUsedCommandError = async (output, context) => {
4211
3843
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
4212
3844
  default:
4213
3845
  const parsedBody = parsedOutput.body;
4214
- (0, smithy_client_1.throwDefaultError)({
3846
+ return throwDefaultError({
4215
3847
  output,
4216
3848
  parsedBody: parsedBody.Error,
4217
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4218
3849
  errorCode,
4219
3850
  });
4220
3851
  }
@@ -4230,7 +3861,7 @@ const de_GetAccountAuthorizationDetailsCommand = async (output, context) => {
4230
3861
  $metadata: deserializeMetadata(output),
4231
3862
  ...contents,
4232
3863
  };
4233
- return Promise.resolve(response);
3864
+ return response;
4234
3865
  };
4235
3866
  exports.de_GetAccountAuthorizationDetailsCommand = de_GetAccountAuthorizationDetailsCommand;
4236
3867
  const de_GetAccountAuthorizationDetailsCommandError = async (output, context) => {
@@ -4245,10 +3876,9 @@ const de_GetAccountAuthorizationDetailsCommandError = async (output, context) =>
4245
3876
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4246
3877
  default:
4247
3878
  const parsedBody = parsedOutput.body;
4248
- (0, smithy_client_1.throwDefaultError)({
3879
+ return throwDefaultError({
4249
3880
  output,
4250
3881
  parsedBody: parsedBody.Error,
4251
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4252
3882
  errorCode,
4253
3883
  });
4254
3884
  }
@@ -4264,7 +3894,7 @@ const de_GetAccountPasswordPolicyCommand = async (output, context) => {
4264
3894
  $metadata: deserializeMetadata(output),
4265
3895
  ...contents,
4266
3896
  };
4267
- return Promise.resolve(response);
3897
+ return response;
4268
3898
  };
4269
3899
  exports.de_GetAccountPasswordPolicyCommand = de_GetAccountPasswordPolicyCommand;
4270
3900
  const de_GetAccountPasswordPolicyCommandError = async (output, context) => {
@@ -4282,10 +3912,9 @@ const de_GetAccountPasswordPolicyCommandError = async (output, context) => {
4282
3912
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4283
3913
  default:
4284
3914
  const parsedBody = parsedOutput.body;
4285
- (0, smithy_client_1.throwDefaultError)({
3915
+ return throwDefaultError({
4286
3916
  output,
4287
3917
  parsedBody: parsedBody.Error,
4288
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4289
3918
  errorCode,
4290
3919
  });
4291
3920
  }
@@ -4301,7 +3930,7 @@ const de_GetAccountSummaryCommand = async (output, context) => {
4301
3930
  $metadata: deserializeMetadata(output),
4302
3931
  ...contents,
4303
3932
  };
4304
- return Promise.resolve(response);
3933
+ return response;
4305
3934
  };
4306
3935
  exports.de_GetAccountSummaryCommand = de_GetAccountSummaryCommand;
4307
3936
  const de_GetAccountSummaryCommandError = async (output, context) => {
@@ -4316,10 +3945,9 @@ const de_GetAccountSummaryCommandError = async (output, context) => {
4316
3945
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4317
3946
  default:
4318
3947
  const parsedBody = parsedOutput.body;
4319
- (0, smithy_client_1.throwDefaultError)({
3948
+ return throwDefaultError({
4320
3949
  output,
4321
3950
  parsedBody: parsedBody.Error,
4322
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4323
3951
  errorCode,
4324
3952
  });
4325
3953
  }
@@ -4335,7 +3963,7 @@ const de_GetContextKeysForCustomPolicyCommand = async (output, context) => {
4335
3963
  $metadata: deserializeMetadata(output),
4336
3964
  ...contents,
4337
3965
  };
4338
- return Promise.resolve(response);
3966
+ return response;
4339
3967
  };
4340
3968
  exports.de_GetContextKeysForCustomPolicyCommand = de_GetContextKeysForCustomPolicyCommand;
4341
3969
  const de_GetContextKeysForCustomPolicyCommandError = async (output, context) => {
@@ -4350,10 +3978,9 @@ const de_GetContextKeysForCustomPolicyCommandError = async (output, context) =>
4350
3978
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
4351
3979
  default:
4352
3980
  const parsedBody = parsedOutput.body;
4353
- (0, smithy_client_1.throwDefaultError)({
3981
+ return throwDefaultError({
4354
3982
  output,
4355
3983
  parsedBody: parsedBody.Error,
4356
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4357
3984
  errorCode,
4358
3985
  });
4359
3986
  }
@@ -4369,7 +3996,7 @@ const de_GetContextKeysForPrincipalPolicyCommand = async (output, context) => {
4369
3996
  $metadata: deserializeMetadata(output),
4370
3997
  ...contents,
4371
3998
  };
4372
- return Promise.resolve(response);
3999
+ return response;
4373
4000
  };
4374
4001
  exports.de_GetContextKeysForPrincipalPolicyCommand = de_GetContextKeysForPrincipalPolicyCommand;
4375
4002
  const de_GetContextKeysForPrincipalPolicyCommandError = async (output, context) => {
@@ -4387,10 +4014,9 @@ const de_GetContextKeysForPrincipalPolicyCommandError = async (output, context)
4387
4014
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
4388
4015
  default:
4389
4016
  const parsedBody = parsedOutput.body;
4390
- (0, smithy_client_1.throwDefaultError)({
4017
+ return throwDefaultError({
4391
4018
  output,
4392
4019
  parsedBody: parsedBody.Error,
4393
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4394
4020
  errorCode,
4395
4021
  });
4396
4022
  }
@@ -4406,7 +4032,7 @@ const de_GetCredentialReportCommand = async (output, context) => {
4406
4032
  $metadata: deserializeMetadata(output),
4407
4033
  ...contents,
4408
4034
  };
4409
- return Promise.resolve(response);
4035
+ return response;
4410
4036
  };
4411
4037
  exports.de_GetCredentialReportCommand = de_GetCredentialReportCommand;
4412
4038
  const de_GetCredentialReportCommandError = async (output, context) => {
@@ -4430,10 +4056,9 @@ const de_GetCredentialReportCommandError = async (output, context) => {
4430
4056
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4431
4057
  default:
4432
4058
  const parsedBody = parsedOutput.body;
4433
- (0, smithy_client_1.throwDefaultError)({
4059
+ return throwDefaultError({
4434
4060
  output,
4435
4061
  parsedBody: parsedBody.Error,
4436
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4437
4062
  errorCode,
4438
4063
  });
4439
4064
  }
@@ -4449,7 +4074,7 @@ const de_GetGroupCommand = async (output, context) => {
4449
4074
  $metadata: deserializeMetadata(output),
4450
4075
  ...contents,
4451
4076
  };
4452
- return Promise.resolve(response);
4077
+ return response;
4453
4078
  };
4454
4079
  exports.de_GetGroupCommand = de_GetGroupCommand;
4455
4080
  const de_GetGroupCommandError = async (output, context) => {
@@ -4467,10 +4092,9 @@ const de_GetGroupCommandError = async (output, context) => {
4467
4092
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4468
4093
  default:
4469
4094
  const parsedBody = parsedOutput.body;
4470
- (0, smithy_client_1.throwDefaultError)({
4095
+ return throwDefaultError({
4471
4096
  output,
4472
4097
  parsedBody: parsedBody.Error,
4473
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4474
4098
  errorCode,
4475
4099
  });
4476
4100
  }
@@ -4486,7 +4110,7 @@ const de_GetGroupPolicyCommand = async (output, context) => {
4486
4110
  $metadata: deserializeMetadata(output),
4487
4111
  ...contents,
4488
4112
  };
4489
- return Promise.resolve(response);
4113
+ return response;
4490
4114
  };
4491
4115
  exports.de_GetGroupPolicyCommand = de_GetGroupPolicyCommand;
4492
4116
  const de_GetGroupPolicyCommandError = async (output, context) => {
@@ -4504,10 +4128,9 @@ const de_GetGroupPolicyCommandError = async (output, context) => {
4504
4128
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4505
4129
  default:
4506
4130
  const parsedBody = parsedOutput.body;
4507
- (0, smithy_client_1.throwDefaultError)({
4131
+ return throwDefaultError({
4508
4132
  output,
4509
4133
  parsedBody: parsedBody.Error,
4510
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4511
4134
  errorCode,
4512
4135
  });
4513
4136
  }
@@ -4523,7 +4146,7 @@ const de_GetInstanceProfileCommand = async (output, context) => {
4523
4146
  $metadata: deserializeMetadata(output),
4524
4147
  ...contents,
4525
4148
  };
4526
- return Promise.resolve(response);
4149
+ return response;
4527
4150
  };
4528
4151
  exports.de_GetInstanceProfileCommand = de_GetInstanceProfileCommand;
4529
4152
  const de_GetInstanceProfileCommandError = async (output, context) => {
@@ -4541,10 +4164,9 @@ const de_GetInstanceProfileCommandError = async (output, context) => {
4541
4164
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4542
4165
  default:
4543
4166
  const parsedBody = parsedOutput.body;
4544
- (0, smithy_client_1.throwDefaultError)({
4167
+ return throwDefaultError({
4545
4168
  output,
4546
4169
  parsedBody: parsedBody.Error,
4547
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4548
4170
  errorCode,
4549
4171
  });
4550
4172
  }
@@ -4560,7 +4182,7 @@ const de_GetLoginProfileCommand = async (output, context) => {
4560
4182
  $metadata: deserializeMetadata(output),
4561
4183
  ...contents,
4562
4184
  };
4563
- return Promise.resolve(response);
4185
+ return response;
4564
4186
  };
4565
4187
  exports.de_GetLoginProfileCommand = de_GetLoginProfileCommand;
4566
4188
  const de_GetLoginProfileCommandError = async (output, context) => {
@@ -4578,10 +4200,9 @@ const de_GetLoginProfileCommandError = async (output, context) => {
4578
4200
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4579
4201
  default:
4580
4202
  const parsedBody = parsedOutput.body;
4581
- (0, smithy_client_1.throwDefaultError)({
4203
+ return throwDefaultError({
4582
4204
  output,
4583
4205
  parsedBody: parsedBody.Error,
4584
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4585
4206
  errorCode,
4586
4207
  });
4587
4208
  }
@@ -4597,7 +4218,7 @@ const de_GetOpenIDConnectProviderCommand = async (output, context) => {
4597
4218
  $metadata: deserializeMetadata(output),
4598
4219
  ...contents,
4599
4220
  };
4600
- return Promise.resolve(response);
4221
+ return response;
4601
4222
  };
4602
4223
  exports.de_GetOpenIDConnectProviderCommand = de_GetOpenIDConnectProviderCommand;
4603
4224
  const de_GetOpenIDConnectProviderCommandError = async (output, context) => {
@@ -4618,10 +4239,9 @@ const de_GetOpenIDConnectProviderCommandError = async (output, context) => {
4618
4239
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4619
4240
  default:
4620
4241
  const parsedBody = parsedOutput.body;
4621
- (0, smithy_client_1.throwDefaultError)({
4242
+ return throwDefaultError({
4622
4243
  output,
4623
4244
  parsedBody: parsedBody.Error,
4624
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4625
4245
  errorCode,
4626
4246
  });
4627
4247
  }
@@ -4637,7 +4257,7 @@ const de_GetOrganizationsAccessReportCommand = async (output, context) => {
4637
4257
  $metadata: deserializeMetadata(output),
4638
4258
  ...contents,
4639
4259
  };
4640
- return Promise.resolve(response);
4260
+ return response;
4641
4261
  };
4642
4262
  exports.de_GetOrganizationsAccessReportCommand = de_GetOrganizationsAccessReportCommand;
4643
4263
  const de_GetOrganizationsAccessReportCommandError = async (output, context) => {
@@ -4652,10 +4272,9 @@ const de_GetOrganizationsAccessReportCommandError = async (output, context) => {
4652
4272
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
4653
4273
  default:
4654
4274
  const parsedBody = parsedOutput.body;
4655
- (0, smithy_client_1.throwDefaultError)({
4275
+ return throwDefaultError({
4656
4276
  output,
4657
4277
  parsedBody: parsedBody.Error,
4658
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4659
4278
  errorCode,
4660
4279
  });
4661
4280
  }
@@ -4671,7 +4290,7 @@ const de_GetPolicyCommand = async (output, context) => {
4671
4290
  $metadata: deserializeMetadata(output),
4672
4291
  ...contents,
4673
4292
  };
4674
- return Promise.resolve(response);
4293
+ return response;
4675
4294
  };
4676
4295
  exports.de_GetPolicyCommand = de_GetPolicyCommand;
4677
4296
  const de_GetPolicyCommandError = async (output, context) => {
@@ -4692,10 +4311,9 @@ const de_GetPolicyCommandError = async (output, context) => {
4692
4311
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4693
4312
  default:
4694
4313
  const parsedBody = parsedOutput.body;
4695
- (0, smithy_client_1.throwDefaultError)({
4314
+ return throwDefaultError({
4696
4315
  output,
4697
4316
  parsedBody: parsedBody.Error,
4698
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4699
4317
  errorCode,
4700
4318
  });
4701
4319
  }
@@ -4711,7 +4329,7 @@ const de_GetPolicyVersionCommand = async (output, context) => {
4711
4329
  $metadata: deserializeMetadata(output),
4712
4330
  ...contents,
4713
4331
  };
4714
- return Promise.resolve(response);
4332
+ return response;
4715
4333
  };
4716
4334
  exports.de_GetPolicyVersionCommand = de_GetPolicyVersionCommand;
4717
4335
  const de_GetPolicyVersionCommandError = async (output, context) => {
@@ -4732,10 +4350,9 @@ const de_GetPolicyVersionCommandError = async (output, context) => {
4732
4350
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4733
4351
  default:
4734
4352
  const parsedBody = parsedOutput.body;
4735
- (0, smithy_client_1.throwDefaultError)({
4353
+ return throwDefaultError({
4736
4354
  output,
4737
4355
  parsedBody: parsedBody.Error,
4738
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4739
4356
  errorCode,
4740
4357
  });
4741
4358
  }
@@ -4751,7 +4368,7 @@ const de_GetRoleCommand = async (output, context) => {
4751
4368
  $metadata: deserializeMetadata(output),
4752
4369
  ...contents,
4753
4370
  };
4754
- return Promise.resolve(response);
4371
+ return response;
4755
4372
  };
4756
4373
  exports.de_GetRoleCommand = de_GetRoleCommand;
4757
4374
  const de_GetRoleCommandError = async (output, context) => {
@@ -4769,10 +4386,9 @@ const de_GetRoleCommandError = async (output, context) => {
4769
4386
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4770
4387
  default:
4771
4388
  const parsedBody = parsedOutput.body;
4772
- (0, smithy_client_1.throwDefaultError)({
4389
+ return throwDefaultError({
4773
4390
  output,
4774
4391
  parsedBody: parsedBody.Error,
4775
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4776
4392
  errorCode,
4777
4393
  });
4778
4394
  }
@@ -4788,7 +4404,7 @@ const de_GetRolePolicyCommand = async (output, context) => {
4788
4404
  $metadata: deserializeMetadata(output),
4789
4405
  ...contents,
4790
4406
  };
4791
- return Promise.resolve(response);
4407
+ return response;
4792
4408
  };
4793
4409
  exports.de_GetRolePolicyCommand = de_GetRolePolicyCommand;
4794
4410
  const de_GetRolePolicyCommandError = async (output, context) => {
@@ -4806,10 +4422,9 @@ const de_GetRolePolicyCommandError = async (output, context) => {
4806
4422
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4807
4423
  default:
4808
4424
  const parsedBody = parsedOutput.body;
4809
- (0, smithy_client_1.throwDefaultError)({
4425
+ return throwDefaultError({
4810
4426
  output,
4811
4427
  parsedBody: parsedBody.Error,
4812
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4813
4428
  errorCode,
4814
4429
  });
4815
4430
  }
@@ -4825,7 +4440,7 @@ const de_GetSAMLProviderCommand = async (output, context) => {
4825
4440
  $metadata: deserializeMetadata(output),
4826
4441
  ...contents,
4827
4442
  };
4828
- return Promise.resolve(response);
4443
+ return response;
4829
4444
  };
4830
4445
  exports.de_GetSAMLProviderCommand = de_GetSAMLProviderCommand;
4831
4446
  const de_GetSAMLProviderCommandError = async (output, context) => {
@@ -4846,10 +4461,9 @@ const de_GetSAMLProviderCommandError = async (output, context) => {
4846
4461
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4847
4462
  default:
4848
4463
  const parsedBody = parsedOutput.body;
4849
- (0, smithy_client_1.throwDefaultError)({
4464
+ return throwDefaultError({
4850
4465
  output,
4851
4466
  parsedBody: parsedBody.Error,
4852
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4853
4467
  errorCode,
4854
4468
  });
4855
4469
  }
@@ -4865,7 +4479,7 @@ const de_GetServerCertificateCommand = async (output, context) => {
4865
4479
  $metadata: deserializeMetadata(output),
4866
4480
  ...contents,
4867
4481
  };
4868
- return Promise.resolve(response);
4482
+ return response;
4869
4483
  };
4870
4484
  exports.de_GetServerCertificateCommand = de_GetServerCertificateCommand;
4871
4485
  const de_GetServerCertificateCommandError = async (output, context) => {
@@ -4883,10 +4497,9 @@ const de_GetServerCertificateCommandError = async (output, context) => {
4883
4497
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4884
4498
  default:
4885
4499
  const parsedBody = parsedOutput.body;
4886
- (0, smithy_client_1.throwDefaultError)({
4500
+ return throwDefaultError({
4887
4501
  output,
4888
4502
  parsedBody: parsedBody.Error,
4889
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4890
4503
  errorCode,
4891
4504
  });
4892
4505
  }
@@ -4902,7 +4515,7 @@ const de_GetServiceLastAccessedDetailsCommand = async (output, context) => {
4902
4515
  $metadata: deserializeMetadata(output),
4903
4516
  ...contents,
4904
4517
  };
4905
- return Promise.resolve(response);
4518
+ return response;
4906
4519
  };
4907
4520
  exports.de_GetServiceLastAccessedDetailsCommand = de_GetServiceLastAccessedDetailsCommand;
4908
4521
  const de_GetServiceLastAccessedDetailsCommandError = async (output, context) => {
@@ -4920,10 +4533,9 @@ const de_GetServiceLastAccessedDetailsCommandError = async (output, context) =>
4920
4533
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
4921
4534
  default:
4922
4535
  const parsedBody = parsedOutput.body;
4923
- (0, smithy_client_1.throwDefaultError)({
4536
+ return throwDefaultError({
4924
4537
  output,
4925
4538
  parsedBody: parsedBody.Error,
4926
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4927
4539
  errorCode,
4928
4540
  });
4929
4541
  }
@@ -4939,7 +4551,7 @@ const de_GetServiceLastAccessedDetailsWithEntitiesCommand = async (output, conte
4939
4551
  $metadata: deserializeMetadata(output),
4940
4552
  ...contents,
4941
4553
  };
4942
- return Promise.resolve(response);
4554
+ return response;
4943
4555
  };
4944
4556
  exports.de_GetServiceLastAccessedDetailsWithEntitiesCommand = de_GetServiceLastAccessedDetailsWithEntitiesCommand;
4945
4557
  const de_GetServiceLastAccessedDetailsWithEntitiesCommandError = async (output, context) => {
@@ -4957,10 +4569,9 @@ const de_GetServiceLastAccessedDetailsWithEntitiesCommandError = async (output,
4957
4569
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
4958
4570
  default:
4959
4571
  const parsedBody = parsedOutput.body;
4960
- (0, smithy_client_1.throwDefaultError)({
4572
+ return throwDefaultError({
4961
4573
  output,
4962
4574
  parsedBody: parsedBody.Error,
4963
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4964
4575
  errorCode,
4965
4576
  });
4966
4577
  }
@@ -4976,7 +4587,7 @@ const de_GetServiceLinkedRoleDeletionStatusCommand = async (output, context) =>
4976
4587
  $metadata: deserializeMetadata(output),
4977
4588
  ...contents,
4978
4589
  };
4979
- return Promise.resolve(response);
4590
+ return response;
4980
4591
  };
4981
4592
  exports.de_GetServiceLinkedRoleDeletionStatusCommand = de_GetServiceLinkedRoleDeletionStatusCommand;
4982
4593
  const de_GetServiceLinkedRoleDeletionStatusCommandError = async (output, context) => {
@@ -4997,10 +4608,9 @@ const de_GetServiceLinkedRoleDeletionStatusCommandError = async (output, context
4997
4608
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4998
4609
  default:
4999
4610
  const parsedBody = parsedOutput.body;
5000
- (0, smithy_client_1.throwDefaultError)({
4611
+ return throwDefaultError({
5001
4612
  output,
5002
4613
  parsedBody: parsedBody.Error,
5003
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5004
4614
  errorCode,
5005
4615
  });
5006
4616
  }
@@ -5016,7 +4626,7 @@ const de_GetSSHPublicKeyCommand = async (output, context) => {
5016
4626
  $metadata: deserializeMetadata(output),
5017
4627
  ...contents,
5018
4628
  };
5019
- return Promise.resolve(response);
4629
+ return response;
5020
4630
  };
5021
4631
  exports.de_GetSSHPublicKeyCommand = de_GetSSHPublicKeyCommand;
5022
4632
  const de_GetSSHPublicKeyCommandError = async (output, context) => {
@@ -5034,10 +4644,9 @@ const de_GetSSHPublicKeyCommandError = async (output, context) => {
5034
4644
  throw await de_UnrecognizedPublicKeyEncodingExceptionRes(parsedOutput, context);
5035
4645
  default:
5036
4646
  const parsedBody = parsedOutput.body;
5037
- (0, smithy_client_1.throwDefaultError)({
4647
+ return throwDefaultError({
5038
4648
  output,
5039
4649
  parsedBody: parsedBody.Error,
5040
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5041
4650
  errorCode,
5042
4651
  });
5043
4652
  }
@@ -5053,7 +4662,7 @@ const de_GetUserCommand = async (output, context) => {
5053
4662
  $metadata: deserializeMetadata(output),
5054
4663
  ...contents,
5055
4664
  };
5056
- return Promise.resolve(response);
4665
+ return response;
5057
4666
  };
5058
4667
  exports.de_GetUserCommand = de_GetUserCommand;
5059
4668
  const de_GetUserCommandError = async (output, context) => {
@@ -5071,10 +4680,9 @@ const de_GetUserCommandError = async (output, context) => {
5071
4680
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5072
4681
  default:
5073
4682
  const parsedBody = parsedOutput.body;
5074
- (0, smithy_client_1.throwDefaultError)({
4683
+ return throwDefaultError({
5075
4684
  output,
5076
4685
  parsedBody: parsedBody.Error,
5077
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5078
4686
  errorCode,
5079
4687
  });
5080
4688
  }
@@ -5090,7 +4698,7 @@ const de_GetUserPolicyCommand = async (output, context) => {
5090
4698
  $metadata: deserializeMetadata(output),
5091
4699
  ...contents,
5092
4700
  };
5093
- return Promise.resolve(response);
4701
+ return response;
5094
4702
  };
5095
4703
  exports.de_GetUserPolicyCommand = de_GetUserPolicyCommand;
5096
4704
  const de_GetUserPolicyCommandError = async (output, context) => {
@@ -5108,10 +4716,9 @@ const de_GetUserPolicyCommandError = async (output, context) => {
5108
4716
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5109
4717
  default:
5110
4718
  const parsedBody = parsedOutput.body;
5111
- (0, smithy_client_1.throwDefaultError)({
4719
+ return throwDefaultError({
5112
4720
  output,
5113
4721
  parsedBody: parsedBody.Error,
5114
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5115
4722
  errorCode,
5116
4723
  });
5117
4724
  }
@@ -5127,7 +4734,7 @@ const de_ListAccessKeysCommand = async (output, context) => {
5127
4734
  $metadata: deserializeMetadata(output),
5128
4735
  ...contents,
5129
4736
  };
5130
- return Promise.resolve(response);
4737
+ return response;
5131
4738
  };
5132
4739
  exports.de_ListAccessKeysCommand = de_ListAccessKeysCommand;
5133
4740
  const de_ListAccessKeysCommandError = async (output, context) => {
@@ -5145,10 +4752,9 @@ const de_ListAccessKeysCommandError = async (output, context) => {
5145
4752
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5146
4753
  default:
5147
4754
  const parsedBody = parsedOutput.body;
5148
- (0, smithy_client_1.throwDefaultError)({
4755
+ return throwDefaultError({
5149
4756
  output,
5150
4757
  parsedBody: parsedBody.Error,
5151
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5152
4758
  errorCode,
5153
4759
  });
5154
4760
  }
@@ -5164,7 +4770,7 @@ const de_ListAccountAliasesCommand = async (output, context) => {
5164
4770
  $metadata: deserializeMetadata(output),
5165
4771
  ...contents,
5166
4772
  };
5167
- return Promise.resolve(response);
4773
+ return response;
5168
4774
  };
5169
4775
  exports.de_ListAccountAliasesCommand = de_ListAccountAliasesCommand;
5170
4776
  const de_ListAccountAliasesCommandError = async (output, context) => {
@@ -5179,10 +4785,9 @@ const de_ListAccountAliasesCommandError = async (output, context) => {
5179
4785
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5180
4786
  default:
5181
4787
  const parsedBody = parsedOutput.body;
5182
- (0, smithy_client_1.throwDefaultError)({
4788
+ return throwDefaultError({
5183
4789
  output,
5184
4790
  parsedBody: parsedBody.Error,
5185
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5186
4791
  errorCode,
5187
4792
  });
5188
4793
  }
@@ -5198,7 +4803,7 @@ const de_ListAttachedGroupPoliciesCommand = async (output, context) => {
5198
4803
  $metadata: deserializeMetadata(output),
5199
4804
  ...contents,
5200
4805
  };
5201
- return Promise.resolve(response);
4806
+ return response;
5202
4807
  };
5203
4808
  exports.de_ListAttachedGroupPoliciesCommand = de_ListAttachedGroupPoliciesCommand;
5204
4809
  const de_ListAttachedGroupPoliciesCommandError = async (output, context) => {
@@ -5219,10 +4824,9 @@ const de_ListAttachedGroupPoliciesCommandError = async (output, context) => {
5219
4824
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5220
4825
  default:
5221
4826
  const parsedBody = parsedOutput.body;
5222
- (0, smithy_client_1.throwDefaultError)({
4827
+ return throwDefaultError({
5223
4828
  output,
5224
4829
  parsedBody: parsedBody.Error,
5225
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5226
4830
  errorCode,
5227
4831
  });
5228
4832
  }
@@ -5238,7 +4842,7 @@ const de_ListAttachedRolePoliciesCommand = async (output, context) => {
5238
4842
  $metadata: deserializeMetadata(output),
5239
4843
  ...contents,
5240
4844
  };
5241
- return Promise.resolve(response);
4845
+ return response;
5242
4846
  };
5243
4847
  exports.de_ListAttachedRolePoliciesCommand = de_ListAttachedRolePoliciesCommand;
5244
4848
  const de_ListAttachedRolePoliciesCommandError = async (output, context) => {
@@ -5259,10 +4863,9 @@ const de_ListAttachedRolePoliciesCommandError = async (output, context) => {
5259
4863
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5260
4864
  default:
5261
4865
  const parsedBody = parsedOutput.body;
5262
- (0, smithy_client_1.throwDefaultError)({
4866
+ return throwDefaultError({
5263
4867
  output,
5264
4868
  parsedBody: parsedBody.Error,
5265
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5266
4869
  errorCode,
5267
4870
  });
5268
4871
  }
@@ -5278,7 +4881,7 @@ const de_ListAttachedUserPoliciesCommand = async (output, context) => {
5278
4881
  $metadata: deserializeMetadata(output),
5279
4882
  ...contents,
5280
4883
  };
5281
- return Promise.resolve(response);
4884
+ return response;
5282
4885
  };
5283
4886
  exports.de_ListAttachedUserPoliciesCommand = de_ListAttachedUserPoliciesCommand;
5284
4887
  const de_ListAttachedUserPoliciesCommandError = async (output, context) => {
@@ -5299,10 +4902,9 @@ const de_ListAttachedUserPoliciesCommandError = async (output, context) => {
5299
4902
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5300
4903
  default:
5301
4904
  const parsedBody = parsedOutput.body;
5302
- (0, smithy_client_1.throwDefaultError)({
4905
+ return throwDefaultError({
5303
4906
  output,
5304
4907
  parsedBody: parsedBody.Error,
5305
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5306
4908
  errorCode,
5307
4909
  });
5308
4910
  }
@@ -5318,7 +4920,7 @@ const de_ListEntitiesForPolicyCommand = async (output, context) => {
5318
4920
  $metadata: deserializeMetadata(output),
5319
4921
  ...contents,
5320
4922
  };
5321
- return Promise.resolve(response);
4923
+ return response;
5322
4924
  };
5323
4925
  exports.de_ListEntitiesForPolicyCommand = de_ListEntitiesForPolicyCommand;
5324
4926
  const de_ListEntitiesForPolicyCommandError = async (output, context) => {
@@ -5339,10 +4941,9 @@ const de_ListEntitiesForPolicyCommandError = async (output, context) => {
5339
4941
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5340
4942
  default:
5341
4943
  const parsedBody = parsedOutput.body;
5342
- (0, smithy_client_1.throwDefaultError)({
4944
+ return throwDefaultError({
5343
4945
  output,
5344
4946
  parsedBody: parsedBody.Error,
5345
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5346
4947
  errorCode,
5347
4948
  });
5348
4949
  }
@@ -5358,7 +4959,7 @@ const de_ListGroupPoliciesCommand = async (output, context) => {
5358
4959
  $metadata: deserializeMetadata(output),
5359
4960
  ...contents,
5360
4961
  };
5361
- return Promise.resolve(response);
4962
+ return response;
5362
4963
  };
5363
4964
  exports.de_ListGroupPoliciesCommand = de_ListGroupPoliciesCommand;
5364
4965
  const de_ListGroupPoliciesCommandError = async (output, context) => {
@@ -5376,10 +4977,9 @@ const de_ListGroupPoliciesCommandError = async (output, context) => {
5376
4977
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5377
4978
  default:
5378
4979
  const parsedBody = parsedOutput.body;
5379
- (0, smithy_client_1.throwDefaultError)({
4980
+ return throwDefaultError({
5380
4981
  output,
5381
4982
  parsedBody: parsedBody.Error,
5382
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5383
4983
  errorCode,
5384
4984
  });
5385
4985
  }
@@ -5395,7 +4995,7 @@ const de_ListGroupsCommand = async (output, context) => {
5395
4995
  $metadata: deserializeMetadata(output),
5396
4996
  ...contents,
5397
4997
  };
5398
- return Promise.resolve(response);
4998
+ return response;
5399
4999
  };
5400
5000
  exports.de_ListGroupsCommand = de_ListGroupsCommand;
5401
5001
  const de_ListGroupsCommandError = async (output, context) => {
@@ -5410,10 +5010,9 @@ const de_ListGroupsCommandError = async (output, context) => {
5410
5010
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5411
5011
  default:
5412
5012
  const parsedBody = parsedOutput.body;
5413
- (0, smithy_client_1.throwDefaultError)({
5013
+ return throwDefaultError({
5414
5014
  output,
5415
5015
  parsedBody: parsedBody.Error,
5416
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5417
5016
  errorCode,
5418
5017
  });
5419
5018
  }
@@ -5429,7 +5028,7 @@ const de_ListGroupsForUserCommand = async (output, context) => {
5429
5028
  $metadata: deserializeMetadata(output),
5430
5029
  ...contents,
5431
5030
  };
5432
- return Promise.resolve(response);
5031
+ return response;
5433
5032
  };
5434
5033
  exports.de_ListGroupsForUserCommand = de_ListGroupsForUserCommand;
5435
5034
  const de_ListGroupsForUserCommandError = async (output, context) => {
@@ -5447,10 +5046,9 @@ const de_ListGroupsForUserCommandError = async (output, context) => {
5447
5046
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5448
5047
  default:
5449
5048
  const parsedBody = parsedOutput.body;
5450
- (0, smithy_client_1.throwDefaultError)({
5049
+ return throwDefaultError({
5451
5050
  output,
5452
5051
  parsedBody: parsedBody.Error,
5453
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5454
5052
  errorCode,
5455
5053
  });
5456
5054
  }
@@ -5466,7 +5064,7 @@ const de_ListInstanceProfilesCommand = async (output, context) => {
5466
5064
  $metadata: deserializeMetadata(output),
5467
5065
  ...contents,
5468
5066
  };
5469
- return Promise.resolve(response);
5067
+ return response;
5470
5068
  };
5471
5069
  exports.de_ListInstanceProfilesCommand = de_ListInstanceProfilesCommand;
5472
5070
  const de_ListInstanceProfilesCommandError = async (output, context) => {
@@ -5481,10 +5079,9 @@ const de_ListInstanceProfilesCommandError = async (output, context) => {
5481
5079
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5482
5080
  default:
5483
5081
  const parsedBody = parsedOutput.body;
5484
- (0, smithy_client_1.throwDefaultError)({
5082
+ return throwDefaultError({
5485
5083
  output,
5486
5084
  parsedBody: parsedBody.Error,
5487
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5488
5085
  errorCode,
5489
5086
  });
5490
5087
  }
@@ -5500,7 +5097,7 @@ const de_ListInstanceProfilesForRoleCommand = async (output, context) => {
5500
5097
  $metadata: deserializeMetadata(output),
5501
5098
  ...contents,
5502
5099
  };
5503
- return Promise.resolve(response);
5100
+ return response;
5504
5101
  };
5505
5102
  exports.de_ListInstanceProfilesForRoleCommand = de_ListInstanceProfilesForRoleCommand;
5506
5103
  const de_ListInstanceProfilesForRoleCommandError = async (output, context) => {
@@ -5518,10 +5115,9 @@ const de_ListInstanceProfilesForRoleCommandError = async (output, context) => {
5518
5115
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5519
5116
  default:
5520
5117
  const parsedBody = parsedOutput.body;
5521
- (0, smithy_client_1.throwDefaultError)({
5118
+ return throwDefaultError({
5522
5119
  output,
5523
5120
  parsedBody: parsedBody.Error,
5524
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5525
5121
  errorCode,
5526
5122
  });
5527
5123
  }
@@ -5537,7 +5133,7 @@ const de_ListInstanceProfileTagsCommand = async (output, context) => {
5537
5133
  $metadata: deserializeMetadata(output),
5538
5134
  ...contents,
5539
5135
  };
5540
- return Promise.resolve(response);
5136
+ return response;
5541
5137
  };
5542
5138
  exports.de_ListInstanceProfileTagsCommand = de_ListInstanceProfileTagsCommand;
5543
5139
  const de_ListInstanceProfileTagsCommandError = async (output, context) => {
@@ -5555,10 +5151,9 @@ const de_ListInstanceProfileTagsCommandError = async (output, context) => {
5555
5151
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5556
5152
  default:
5557
5153
  const parsedBody = parsedOutput.body;
5558
- (0, smithy_client_1.throwDefaultError)({
5154
+ return throwDefaultError({
5559
5155
  output,
5560
5156
  parsedBody: parsedBody.Error,
5561
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5562
5157
  errorCode,
5563
5158
  });
5564
5159
  }
@@ -5574,7 +5169,7 @@ const de_ListMFADevicesCommand = async (output, context) => {
5574
5169
  $metadata: deserializeMetadata(output),
5575
5170
  ...contents,
5576
5171
  };
5577
- return Promise.resolve(response);
5172
+ return response;
5578
5173
  };
5579
5174
  exports.de_ListMFADevicesCommand = de_ListMFADevicesCommand;
5580
5175
  const de_ListMFADevicesCommandError = async (output, context) => {
@@ -5592,10 +5187,9 @@ const de_ListMFADevicesCommandError = async (output, context) => {
5592
5187
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5593
5188
  default:
5594
5189
  const parsedBody = parsedOutput.body;
5595
- (0, smithy_client_1.throwDefaultError)({
5190
+ return throwDefaultError({
5596
5191
  output,
5597
5192
  parsedBody: parsedBody.Error,
5598
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5599
5193
  errorCode,
5600
5194
  });
5601
5195
  }
@@ -5611,7 +5205,7 @@ const de_ListMFADeviceTagsCommand = async (output, context) => {
5611
5205
  $metadata: deserializeMetadata(output),
5612
5206
  ...contents,
5613
5207
  };
5614
- return Promise.resolve(response);
5208
+ return response;
5615
5209
  };
5616
5210
  exports.de_ListMFADeviceTagsCommand = de_ListMFADeviceTagsCommand;
5617
5211
  const de_ListMFADeviceTagsCommandError = async (output, context) => {
@@ -5632,10 +5226,9 @@ const de_ListMFADeviceTagsCommandError = async (output, context) => {
5632
5226
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5633
5227
  default:
5634
5228
  const parsedBody = parsedOutput.body;
5635
- (0, smithy_client_1.throwDefaultError)({
5229
+ return throwDefaultError({
5636
5230
  output,
5637
5231
  parsedBody: parsedBody.Error,
5638
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5639
5232
  errorCode,
5640
5233
  });
5641
5234
  }
@@ -5651,7 +5244,7 @@ const de_ListOpenIDConnectProvidersCommand = async (output, context) => {
5651
5244
  $metadata: deserializeMetadata(output),
5652
5245
  ...contents,
5653
5246
  };
5654
- return Promise.resolve(response);
5247
+ return response;
5655
5248
  };
5656
5249
  exports.de_ListOpenIDConnectProvidersCommand = de_ListOpenIDConnectProvidersCommand;
5657
5250
  const de_ListOpenIDConnectProvidersCommandError = async (output, context) => {
@@ -5666,10 +5259,9 @@ const de_ListOpenIDConnectProvidersCommandError = async (output, context) => {
5666
5259
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5667
5260
  default:
5668
5261
  const parsedBody = parsedOutput.body;
5669
- (0, smithy_client_1.throwDefaultError)({
5262
+ return throwDefaultError({
5670
5263
  output,
5671
5264
  parsedBody: parsedBody.Error,
5672
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5673
5265
  errorCode,
5674
5266
  });
5675
5267
  }
@@ -5685,7 +5277,7 @@ const de_ListOpenIDConnectProviderTagsCommand = async (output, context) => {
5685
5277
  $metadata: deserializeMetadata(output),
5686
5278
  ...contents,
5687
5279
  };
5688
- return Promise.resolve(response);
5280
+ return response;
5689
5281
  };
5690
5282
  exports.de_ListOpenIDConnectProviderTagsCommand = de_ListOpenIDConnectProviderTagsCommand;
5691
5283
  const de_ListOpenIDConnectProviderTagsCommandError = async (output, context) => {
@@ -5706,10 +5298,9 @@ const de_ListOpenIDConnectProviderTagsCommandError = async (output, context) =>
5706
5298
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5707
5299
  default:
5708
5300
  const parsedBody = parsedOutput.body;
5709
- (0, smithy_client_1.throwDefaultError)({
5301
+ return throwDefaultError({
5710
5302
  output,
5711
5303
  parsedBody: parsedBody.Error,
5712
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5713
5304
  errorCode,
5714
5305
  });
5715
5306
  }
@@ -5725,7 +5316,7 @@ const de_ListPoliciesCommand = async (output, context) => {
5725
5316
  $metadata: deserializeMetadata(output),
5726
5317
  ...contents,
5727
5318
  };
5728
- return Promise.resolve(response);
5319
+ return response;
5729
5320
  };
5730
5321
  exports.de_ListPoliciesCommand = de_ListPoliciesCommand;
5731
5322
  const de_ListPoliciesCommandError = async (output, context) => {
@@ -5740,10 +5331,9 @@ const de_ListPoliciesCommandError = async (output, context) => {
5740
5331
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5741
5332
  default:
5742
5333
  const parsedBody = parsedOutput.body;
5743
- (0, smithy_client_1.throwDefaultError)({
5334
+ return throwDefaultError({
5744
5335
  output,
5745
5336
  parsedBody: parsedBody.Error,
5746
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5747
5337
  errorCode,
5748
5338
  });
5749
5339
  }
@@ -5759,7 +5349,7 @@ const de_ListPoliciesGrantingServiceAccessCommand = async (output, context) => {
5759
5349
  $metadata: deserializeMetadata(output),
5760
5350
  ...contents,
5761
5351
  };
5762
- return Promise.resolve(response);
5352
+ return response;
5763
5353
  };
5764
5354
  exports.de_ListPoliciesGrantingServiceAccessCommand = de_ListPoliciesGrantingServiceAccessCommand;
5765
5355
  const de_ListPoliciesGrantingServiceAccessCommandError = async (output, context) => {
@@ -5777,10 +5367,9 @@ const de_ListPoliciesGrantingServiceAccessCommandError = async (output, context)
5777
5367
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
5778
5368
  default:
5779
5369
  const parsedBody = parsedOutput.body;
5780
- (0, smithy_client_1.throwDefaultError)({
5370
+ return throwDefaultError({
5781
5371
  output,
5782
5372
  parsedBody: parsedBody.Error,
5783
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5784
5373
  errorCode,
5785
5374
  });
5786
5375
  }
@@ -5796,7 +5385,7 @@ const de_ListPolicyTagsCommand = async (output, context) => {
5796
5385
  $metadata: deserializeMetadata(output),
5797
5386
  ...contents,
5798
5387
  };
5799
- return Promise.resolve(response);
5388
+ return response;
5800
5389
  };
5801
5390
  exports.de_ListPolicyTagsCommand = de_ListPolicyTagsCommand;
5802
5391
  const de_ListPolicyTagsCommandError = async (output, context) => {
@@ -5817,10 +5406,9 @@ const de_ListPolicyTagsCommandError = async (output, context) => {
5817
5406
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5818
5407
  default:
5819
5408
  const parsedBody = parsedOutput.body;
5820
- (0, smithy_client_1.throwDefaultError)({
5409
+ return throwDefaultError({
5821
5410
  output,
5822
5411
  parsedBody: parsedBody.Error,
5823
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5824
5412
  errorCode,
5825
5413
  });
5826
5414
  }
@@ -5836,7 +5424,7 @@ const de_ListPolicyVersionsCommand = async (output, context) => {
5836
5424
  $metadata: deserializeMetadata(output),
5837
5425
  ...contents,
5838
5426
  };
5839
- return Promise.resolve(response);
5427
+ return response;
5840
5428
  };
5841
5429
  exports.de_ListPolicyVersionsCommand = de_ListPolicyVersionsCommand;
5842
5430
  const de_ListPolicyVersionsCommandError = async (output, context) => {
@@ -5857,10 +5445,9 @@ const de_ListPolicyVersionsCommandError = async (output, context) => {
5857
5445
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5858
5446
  default:
5859
5447
  const parsedBody = parsedOutput.body;
5860
- (0, smithy_client_1.throwDefaultError)({
5448
+ return throwDefaultError({
5861
5449
  output,
5862
5450
  parsedBody: parsedBody.Error,
5863
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5864
5451
  errorCode,
5865
5452
  });
5866
5453
  }
@@ -5876,7 +5463,7 @@ const de_ListRolePoliciesCommand = async (output, context) => {
5876
5463
  $metadata: deserializeMetadata(output),
5877
5464
  ...contents,
5878
5465
  };
5879
- return Promise.resolve(response);
5466
+ return response;
5880
5467
  };
5881
5468
  exports.de_ListRolePoliciesCommand = de_ListRolePoliciesCommand;
5882
5469
  const de_ListRolePoliciesCommandError = async (output, context) => {
@@ -5894,10 +5481,9 @@ const de_ListRolePoliciesCommandError = async (output, context) => {
5894
5481
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5895
5482
  default:
5896
5483
  const parsedBody = parsedOutput.body;
5897
- (0, smithy_client_1.throwDefaultError)({
5484
+ return throwDefaultError({
5898
5485
  output,
5899
5486
  parsedBody: parsedBody.Error,
5900
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5901
5487
  errorCode,
5902
5488
  });
5903
5489
  }
@@ -5913,7 +5499,7 @@ const de_ListRolesCommand = async (output, context) => {
5913
5499
  $metadata: deserializeMetadata(output),
5914
5500
  ...contents,
5915
5501
  };
5916
- return Promise.resolve(response);
5502
+ return response;
5917
5503
  };
5918
5504
  exports.de_ListRolesCommand = de_ListRolesCommand;
5919
5505
  const de_ListRolesCommandError = async (output, context) => {
@@ -5928,10 +5514,9 @@ const de_ListRolesCommandError = async (output, context) => {
5928
5514
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5929
5515
  default:
5930
5516
  const parsedBody = parsedOutput.body;
5931
- (0, smithy_client_1.throwDefaultError)({
5517
+ return throwDefaultError({
5932
5518
  output,
5933
5519
  parsedBody: parsedBody.Error,
5934
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5935
5520
  errorCode,
5936
5521
  });
5937
5522
  }
@@ -5947,7 +5532,7 @@ const de_ListRoleTagsCommand = async (output, context) => {
5947
5532
  $metadata: deserializeMetadata(output),
5948
5533
  ...contents,
5949
5534
  };
5950
- return Promise.resolve(response);
5535
+ return response;
5951
5536
  };
5952
5537
  exports.de_ListRoleTagsCommand = de_ListRoleTagsCommand;
5953
5538
  const de_ListRoleTagsCommandError = async (output, context) => {
@@ -5965,10 +5550,9 @@ const de_ListRoleTagsCommandError = async (output, context) => {
5965
5550
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5966
5551
  default:
5967
5552
  const parsedBody = parsedOutput.body;
5968
- (0, smithy_client_1.throwDefaultError)({
5553
+ return throwDefaultError({
5969
5554
  output,
5970
5555
  parsedBody: parsedBody.Error,
5971
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5972
5556
  errorCode,
5973
5557
  });
5974
5558
  }
@@ -5984,7 +5568,7 @@ const de_ListSAMLProvidersCommand = async (output, context) => {
5984
5568
  $metadata: deserializeMetadata(output),
5985
5569
  ...contents,
5986
5570
  };
5987
- return Promise.resolve(response);
5571
+ return response;
5988
5572
  };
5989
5573
  exports.de_ListSAMLProvidersCommand = de_ListSAMLProvidersCommand;
5990
5574
  const de_ListSAMLProvidersCommandError = async (output, context) => {
@@ -5999,10 +5583,9 @@ const de_ListSAMLProvidersCommandError = async (output, context) => {
5999
5583
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6000
5584
  default:
6001
5585
  const parsedBody = parsedOutput.body;
6002
- (0, smithy_client_1.throwDefaultError)({
5586
+ return throwDefaultError({
6003
5587
  output,
6004
5588
  parsedBody: parsedBody.Error,
6005
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6006
5589
  errorCode,
6007
5590
  });
6008
5591
  }
@@ -6018,7 +5601,7 @@ const de_ListSAMLProviderTagsCommand = async (output, context) => {
6018
5601
  $metadata: deserializeMetadata(output),
6019
5602
  ...contents,
6020
5603
  };
6021
- return Promise.resolve(response);
5604
+ return response;
6022
5605
  };
6023
5606
  exports.de_ListSAMLProviderTagsCommand = de_ListSAMLProviderTagsCommand;
6024
5607
  const de_ListSAMLProviderTagsCommandError = async (output, context) => {
@@ -6039,10 +5622,9 @@ const de_ListSAMLProviderTagsCommandError = async (output, context) => {
6039
5622
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6040
5623
  default:
6041
5624
  const parsedBody = parsedOutput.body;
6042
- (0, smithy_client_1.throwDefaultError)({
5625
+ return throwDefaultError({
6043
5626
  output,
6044
5627
  parsedBody: parsedBody.Error,
6045
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6046
5628
  errorCode,
6047
5629
  });
6048
5630
  }
@@ -6058,7 +5640,7 @@ const de_ListServerCertificatesCommand = async (output, context) => {
6058
5640
  $metadata: deserializeMetadata(output),
6059
5641
  ...contents,
6060
5642
  };
6061
- return Promise.resolve(response);
5643
+ return response;
6062
5644
  };
6063
5645
  exports.de_ListServerCertificatesCommand = de_ListServerCertificatesCommand;
6064
5646
  const de_ListServerCertificatesCommandError = async (output, context) => {
@@ -6073,10 +5655,9 @@ const de_ListServerCertificatesCommandError = async (output, context) => {
6073
5655
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6074
5656
  default:
6075
5657
  const parsedBody = parsedOutput.body;
6076
- (0, smithy_client_1.throwDefaultError)({
5658
+ return throwDefaultError({
6077
5659
  output,
6078
5660
  parsedBody: parsedBody.Error,
6079
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6080
5661
  errorCode,
6081
5662
  });
6082
5663
  }
@@ -6092,7 +5673,7 @@ const de_ListServerCertificateTagsCommand = async (output, context) => {
6092
5673
  $metadata: deserializeMetadata(output),
6093
5674
  ...contents,
6094
5675
  };
6095
- return Promise.resolve(response);
5676
+ return response;
6096
5677
  };
6097
5678
  exports.de_ListServerCertificateTagsCommand = de_ListServerCertificateTagsCommand;
6098
5679
  const de_ListServerCertificateTagsCommandError = async (output, context) => {
@@ -6110,10 +5691,9 @@ const de_ListServerCertificateTagsCommandError = async (output, context) => {
6110
5691
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6111
5692
  default:
6112
5693
  const parsedBody = parsedOutput.body;
6113
- (0, smithy_client_1.throwDefaultError)({
5694
+ return throwDefaultError({
6114
5695
  output,
6115
5696
  parsedBody: parsedBody.Error,
6116
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6117
5697
  errorCode,
6118
5698
  });
6119
5699
  }
@@ -6129,7 +5709,7 @@ const de_ListServiceSpecificCredentialsCommand = async (output, context) => {
6129
5709
  $metadata: deserializeMetadata(output),
6130
5710
  ...contents,
6131
5711
  };
6132
- return Promise.resolve(response);
5712
+ return response;
6133
5713
  };
6134
5714
  exports.de_ListServiceSpecificCredentialsCommand = de_ListServiceSpecificCredentialsCommand;
6135
5715
  const de_ListServiceSpecificCredentialsCommandError = async (output, context) => {
@@ -6147,10 +5727,9 @@ const de_ListServiceSpecificCredentialsCommandError = async (output, context) =>
6147
5727
  throw await de_ServiceNotSupportedExceptionRes(parsedOutput, context);
6148
5728
  default:
6149
5729
  const parsedBody = parsedOutput.body;
6150
- (0, smithy_client_1.throwDefaultError)({
5730
+ return throwDefaultError({
6151
5731
  output,
6152
5732
  parsedBody: parsedBody.Error,
6153
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6154
5733
  errorCode,
6155
5734
  });
6156
5735
  }
@@ -6166,7 +5745,7 @@ const de_ListSigningCertificatesCommand = async (output, context) => {
6166
5745
  $metadata: deserializeMetadata(output),
6167
5746
  ...contents,
6168
5747
  };
6169
- return Promise.resolve(response);
5748
+ return response;
6170
5749
  };
6171
5750
  exports.de_ListSigningCertificatesCommand = de_ListSigningCertificatesCommand;
6172
5751
  const de_ListSigningCertificatesCommandError = async (output, context) => {
@@ -6184,10 +5763,9 @@ const de_ListSigningCertificatesCommandError = async (output, context) => {
6184
5763
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6185
5764
  default:
6186
5765
  const parsedBody = parsedOutput.body;
6187
- (0, smithy_client_1.throwDefaultError)({
5766
+ return throwDefaultError({
6188
5767
  output,
6189
5768
  parsedBody: parsedBody.Error,
6190
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6191
5769
  errorCode,
6192
5770
  });
6193
5771
  }
@@ -6203,7 +5781,7 @@ const de_ListSSHPublicKeysCommand = async (output, context) => {
6203
5781
  $metadata: deserializeMetadata(output),
6204
5782
  ...contents,
6205
5783
  };
6206
- return Promise.resolve(response);
5784
+ return response;
6207
5785
  };
6208
5786
  exports.de_ListSSHPublicKeysCommand = de_ListSSHPublicKeysCommand;
6209
5787
  const de_ListSSHPublicKeysCommandError = async (output, context) => {
@@ -6218,10 +5796,9 @@ const de_ListSSHPublicKeysCommandError = async (output, context) => {
6218
5796
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
6219
5797
  default:
6220
5798
  const parsedBody = parsedOutput.body;
6221
- (0, smithy_client_1.throwDefaultError)({
5799
+ return throwDefaultError({
6222
5800
  output,
6223
5801
  parsedBody: parsedBody.Error,
6224
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6225
5802
  errorCode,
6226
5803
  });
6227
5804
  }
@@ -6237,7 +5814,7 @@ const de_ListUserPoliciesCommand = async (output, context) => {
6237
5814
  $metadata: deserializeMetadata(output),
6238
5815
  ...contents,
6239
5816
  };
6240
- return Promise.resolve(response);
5817
+ return response;
6241
5818
  };
6242
5819
  exports.de_ListUserPoliciesCommand = de_ListUserPoliciesCommand;
6243
5820
  const de_ListUserPoliciesCommandError = async (output, context) => {
@@ -6255,10 +5832,9 @@ const de_ListUserPoliciesCommandError = async (output, context) => {
6255
5832
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6256
5833
  default:
6257
5834
  const parsedBody = parsedOutput.body;
6258
- (0, smithy_client_1.throwDefaultError)({
5835
+ return throwDefaultError({
6259
5836
  output,
6260
5837
  parsedBody: parsedBody.Error,
6261
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6262
5838
  errorCode,
6263
5839
  });
6264
5840
  }
@@ -6274,7 +5850,7 @@ const de_ListUsersCommand = async (output, context) => {
6274
5850
  $metadata: deserializeMetadata(output),
6275
5851
  ...contents,
6276
5852
  };
6277
- return Promise.resolve(response);
5853
+ return response;
6278
5854
  };
6279
5855
  exports.de_ListUsersCommand = de_ListUsersCommand;
6280
5856
  const de_ListUsersCommandError = async (output, context) => {
@@ -6289,10 +5865,9 @@ const de_ListUsersCommandError = async (output, context) => {
6289
5865
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6290
5866
  default:
6291
5867
  const parsedBody = parsedOutput.body;
6292
- (0, smithy_client_1.throwDefaultError)({
5868
+ return throwDefaultError({
6293
5869
  output,
6294
5870
  parsedBody: parsedBody.Error,
6295
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6296
5871
  errorCode,
6297
5872
  });
6298
5873
  }
@@ -6308,7 +5883,7 @@ const de_ListUserTagsCommand = async (output, context) => {
6308
5883
  $metadata: deserializeMetadata(output),
6309
5884
  ...contents,
6310
5885
  };
6311
- return Promise.resolve(response);
5886
+ return response;
6312
5887
  };
6313
5888
  exports.de_ListUserTagsCommand = de_ListUserTagsCommand;
6314
5889
  const de_ListUserTagsCommandError = async (output, context) => {
@@ -6326,10 +5901,9 @@ const de_ListUserTagsCommandError = async (output, context) => {
6326
5901
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6327
5902
  default:
6328
5903
  const parsedBody = parsedOutput.body;
6329
- (0, smithy_client_1.throwDefaultError)({
5904
+ return throwDefaultError({
6330
5905
  output,
6331
5906
  parsedBody: parsedBody.Error,
6332
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6333
5907
  errorCode,
6334
5908
  });
6335
5909
  }
@@ -6345,7 +5919,7 @@ const de_ListVirtualMFADevicesCommand = async (output, context) => {
6345
5919
  $metadata: deserializeMetadata(output),
6346
5920
  ...contents,
6347
5921
  };
6348
- return Promise.resolve(response);
5922
+ return response;
6349
5923
  };
6350
5924
  exports.de_ListVirtualMFADevicesCommand = de_ListVirtualMFADevicesCommand;
6351
5925
  const de_ListVirtualMFADevicesCommandError = async (output, context) => {
@@ -6355,10 +5929,9 @@ const de_ListVirtualMFADevicesCommandError = async (output, context) => {
6355
5929
  };
6356
5930
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6357
5931
  const parsedBody = parsedOutput.body;
6358
- (0, smithy_client_1.throwDefaultError)({
5932
+ return throwDefaultError({
6359
5933
  output,
6360
5934
  parsedBody: parsedBody.Error,
6361
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6362
5935
  errorCode,
6363
5936
  });
6364
5937
  };
@@ -6370,7 +5943,7 @@ const de_PutGroupPolicyCommand = async (output, context) => {
6370
5943
  const response = {
6371
5944
  $metadata: deserializeMetadata(output),
6372
5945
  };
6373
- return Promise.resolve(response);
5946
+ return response;
6374
5947
  };
6375
5948
  exports.de_PutGroupPolicyCommand = de_PutGroupPolicyCommand;
6376
5949
  const de_PutGroupPolicyCommandError = async (output, context) => {
@@ -6394,10 +5967,9 @@ const de_PutGroupPolicyCommandError = async (output, context) => {
6394
5967
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6395
5968
  default:
6396
5969
  const parsedBody = parsedOutput.body;
6397
- (0, smithy_client_1.throwDefaultError)({
5970
+ return throwDefaultError({
6398
5971
  output,
6399
5972
  parsedBody: parsedBody.Error,
6400
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6401
5973
  errorCode,
6402
5974
  });
6403
5975
  }
@@ -6410,7 +5982,7 @@ const de_PutRolePermissionsBoundaryCommand = async (output, context) => {
6410
5982
  const response = {
6411
5983
  $metadata: deserializeMetadata(output),
6412
5984
  };
6413
- return Promise.resolve(response);
5985
+ return response;
6414
5986
  };
6415
5987
  exports.de_PutRolePermissionsBoundaryCommand = de_PutRolePermissionsBoundaryCommand;
6416
5988
  const de_PutRolePermissionsBoundaryCommandError = async (output, context) => {
@@ -6437,10 +6009,9 @@ const de_PutRolePermissionsBoundaryCommandError = async (output, context) => {
6437
6009
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
6438
6010
  default:
6439
6011
  const parsedBody = parsedOutput.body;
6440
- (0, smithy_client_1.throwDefaultError)({
6012
+ return throwDefaultError({
6441
6013
  output,
6442
6014
  parsedBody: parsedBody.Error,
6443
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6444
6015
  errorCode,
6445
6016
  });
6446
6017
  }
@@ -6453,7 +6024,7 @@ const de_PutRolePolicyCommand = async (output, context) => {
6453
6024
  const response = {
6454
6025
  $metadata: deserializeMetadata(output),
6455
6026
  };
6456
- return Promise.resolve(response);
6027
+ return response;
6457
6028
  };
6458
6029
  exports.de_PutRolePolicyCommand = de_PutRolePolicyCommand;
6459
6030
  const de_PutRolePolicyCommandError = async (output, context) => {
@@ -6480,10 +6051,9 @@ const de_PutRolePolicyCommandError = async (output, context) => {
6480
6051
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
6481
6052
  default:
6482
6053
  const parsedBody = parsedOutput.body;
6483
- (0, smithy_client_1.throwDefaultError)({
6054
+ return throwDefaultError({
6484
6055
  output,
6485
6056
  parsedBody: parsedBody.Error,
6486
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6487
6057
  errorCode,
6488
6058
  });
6489
6059
  }
@@ -6496,7 +6066,7 @@ const de_PutUserPermissionsBoundaryCommand = async (output, context) => {
6496
6066
  const response = {
6497
6067
  $metadata: deserializeMetadata(output),
6498
6068
  };
6499
- return Promise.resolve(response);
6069
+ return response;
6500
6070
  };
6501
6071
  exports.de_PutUserPermissionsBoundaryCommand = de_PutUserPermissionsBoundaryCommand;
6502
6072
  const de_PutUserPermissionsBoundaryCommandError = async (output, context) => {
@@ -6520,10 +6090,9 @@ const de_PutUserPermissionsBoundaryCommandError = async (output, context) => {
6520
6090
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6521
6091
  default:
6522
6092
  const parsedBody = parsedOutput.body;
6523
- (0, smithy_client_1.throwDefaultError)({
6093
+ return throwDefaultError({
6524
6094
  output,
6525
6095
  parsedBody: parsedBody.Error,
6526
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6527
6096
  errorCode,
6528
6097
  });
6529
6098
  }
@@ -6536,7 +6105,7 @@ const de_PutUserPolicyCommand = async (output, context) => {
6536
6105
  const response = {
6537
6106
  $metadata: deserializeMetadata(output),
6538
6107
  };
6539
- return Promise.resolve(response);
6108
+ return response;
6540
6109
  };
6541
6110
  exports.de_PutUserPolicyCommand = de_PutUserPolicyCommand;
6542
6111
  const de_PutUserPolicyCommandError = async (output, context) => {
@@ -6560,10 +6129,9 @@ const de_PutUserPolicyCommandError = async (output, context) => {
6560
6129
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6561
6130
  default:
6562
6131
  const parsedBody = parsedOutput.body;
6563
- (0, smithy_client_1.throwDefaultError)({
6132
+ return throwDefaultError({
6564
6133
  output,
6565
6134
  parsedBody: parsedBody.Error,
6566
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6567
6135
  errorCode,
6568
6136
  });
6569
6137
  }
@@ -6576,7 +6144,7 @@ const de_RemoveClientIDFromOpenIDConnectProviderCommand = async (output, context
6576
6144
  const response = {
6577
6145
  $metadata: deserializeMetadata(output),
6578
6146
  };
6579
- return Promise.resolve(response);
6147
+ return response;
6580
6148
  };
6581
6149
  exports.de_RemoveClientIDFromOpenIDConnectProviderCommand = de_RemoveClientIDFromOpenIDConnectProviderCommand;
6582
6150
  const de_RemoveClientIDFromOpenIDConnectProviderCommandError = async (output, context) => {
@@ -6597,10 +6165,9 @@ const de_RemoveClientIDFromOpenIDConnectProviderCommandError = async (output, co
6597
6165
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6598
6166
  default:
6599
6167
  const parsedBody = parsedOutput.body;
6600
- (0, smithy_client_1.throwDefaultError)({
6168
+ return throwDefaultError({
6601
6169
  output,
6602
6170
  parsedBody: parsedBody.Error,
6603
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6604
6171
  errorCode,
6605
6172
  });
6606
6173
  }
@@ -6613,7 +6180,7 @@ const de_RemoveRoleFromInstanceProfileCommand = async (output, context) => {
6613
6180
  const response = {
6614
6181
  $metadata: deserializeMetadata(output),
6615
6182
  };
6616
- return Promise.resolve(response);
6183
+ return response;
6617
6184
  };
6618
6185
  exports.de_RemoveRoleFromInstanceProfileCommand = de_RemoveRoleFromInstanceProfileCommand;
6619
6186
  const de_RemoveRoleFromInstanceProfileCommandError = async (output, context) => {
@@ -6637,10 +6204,9 @@ const de_RemoveRoleFromInstanceProfileCommandError = async (output, context) =>
6637
6204
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
6638
6205
  default:
6639
6206
  const parsedBody = parsedOutput.body;
6640
- (0, smithy_client_1.throwDefaultError)({
6207
+ return throwDefaultError({
6641
6208
  output,
6642
6209
  parsedBody: parsedBody.Error,
6643
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6644
6210
  errorCode,
6645
6211
  });
6646
6212
  }
@@ -6653,7 +6219,7 @@ const de_RemoveUserFromGroupCommand = async (output, context) => {
6653
6219
  const response = {
6654
6220
  $metadata: deserializeMetadata(output),
6655
6221
  };
6656
- return Promise.resolve(response);
6222
+ return response;
6657
6223
  };
6658
6224
  exports.de_RemoveUserFromGroupCommand = de_RemoveUserFromGroupCommand;
6659
6225
  const de_RemoveUserFromGroupCommandError = async (output, context) => {
@@ -6674,10 +6240,9 @@ const de_RemoveUserFromGroupCommandError = async (output, context) => {
6674
6240
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6675
6241
  default:
6676
6242
  const parsedBody = parsedOutput.body;
6677
- (0, smithy_client_1.throwDefaultError)({
6243
+ return throwDefaultError({
6678
6244
  output,
6679
6245
  parsedBody: parsedBody.Error,
6680
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6681
6246
  errorCode,
6682
6247
  });
6683
6248
  }
@@ -6693,7 +6258,7 @@ const de_ResetServiceSpecificCredentialCommand = async (output, context) => {
6693
6258
  $metadata: deserializeMetadata(output),
6694
6259
  ...contents,
6695
6260
  };
6696
- return Promise.resolve(response);
6261
+ return response;
6697
6262
  };
6698
6263
  exports.de_ResetServiceSpecificCredentialCommand = de_ResetServiceSpecificCredentialCommand;
6699
6264
  const de_ResetServiceSpecificCredentialCommandError = async (output, context) => {
@@ -6708,10 +6273,9 @@ const de_ResetServiceSpecificCredentialCommandError = async (output, context) =>
6708
6273
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
6709
6274
  default:
6710
6275
  const parsedBody = parsedOutput.body;
6711
- (0, smithy_client_1.throwDefaultError)({
6276
+ return throwDefaultError({
6712
6277
  output,
6713
6278
  parsedBody: parsedBody.Error,
6714
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6715
6279
  errorCode,
6716
6280
  });
6717
6281
  }
@@ -6724,7 +6288,7 @@ const de_ResyncMFADeviceCommand = async (output, context) => {
6724
6288
  const response = {
6725
6289
  $metadata: deserializeMetadata(output),
6726
6290
  };
6727
- return Promise.resolve(response);
6291
+ return response;
6728
6292
  };
6729
6293
  exports.de_ResyncMFADeviceCommand = de_ResyncMFADeviceCommand;
6730
6294
  const de_ResyncMFADeviceCommandError = async (output, context) => {
@@ -6748,10 +6312,9 @@ const de_ResyncMFADeviceCommandError = async (output, context) => {
6748
6312
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6749
6313
  default:
6750
6314
  const parsedBody = parsedOutput.body;
6751
- (0, smithy_client_1.throwDefaultError)({
6315
+ return throwDefaultError({
6752
6316
  output,
6753
6317
  parsedBody: parsedBody.Error,
6754
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6755
6318
  errorCode,
6756
6319
  });
6757
6320
  }
@@ -6764,7 +6327,7 @@ const de_SetDefaultPolicyVersionCommand = async (output, context) => {
6764
6327
  const response = {
6765
6328
  $metadata: deserializeMetadata(output),
6766
6329
  };
6767
- return Promise.resolve(response);
6330
+ return response;
6768
6331
  };
6769
6332
  exports.de_SetDefaultPolicyVersionCommand = de_SetDefaultPolicyVersionCommand;
6770
6333
  const de_SetDefaultPolicyVersionCommandError = async (output, context) => {
@@ -6788,10 +6351,9 @@ const de_SetDefaultPolicyVersionCommandError = async (output, context) => {
6788
6351
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6789
6352
  default:
6790
6353
  const parsedBody = parsedOutput.body;
6791
- (0, smithy_client_1.throwDefaultError)({
6354
+ return throwDefaultError({
6792
6355
  output,
6793
6356
  parsedBody: parsedBody.Error,
6794
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6795
6357
  errorCode,
6796
6358
  });
6797
6359
  }
@@ -6804,7 +6366,7 @@ const de_SetSecurityTokenServicePreferencesCommand = async (output, context) =>
6804
6366
  const response = {
6805
6367
  $metadata: deserializeMetadata(output),
6806
6368
  };
6807
- return Promise.resolve(response);
6369
+ return response;
6808
6370
  };
6809
6371
  exports.de_SetSecurityTokenServicePreferencesCommand = de_SetSecurityTokenServicePreferencesCommand;
6810
6372
  const de_SetSecurityTokenServicePreferencesCommandError = async (output, context) => {
@@ -6819,10 +6381,9 @@ const de_SetSecurityTokenServicePreferencesCommandError = async (output, context
6819
6381
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6820
6382
  default:
6821
6383
  const parsedBody = parsedOutput.body;
6822
- (0, smithy_client_1.throwDefaultError)({
6384
+ return throwDefaultError({
6823
6385
  output,
6824
6386
  parsedBody: parsedBody.Error,
6825
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6826
6387
  errorCode,
6827
6388
  });
6828
6389
  }
@@ -6838,7 +6399,7 @@ const de_SimulateCustomPolicyCommand = async (output, context) => {
6838
6399
  $metadata: deserializeMetadata(output),
6839
6400
  ...contents,
6840
6401
  };
6841
- return Promise.resolve(response);
6402
+ return response;
6842
6403
  };
6843
6404
  exports.de_SimulateCustomPolicyCommand = de_SimulateCustomPolicyCommand;
6844
6405
  const de_SimulateCustomPolicyCommandError = async (output, context) => {
@@ -6856,10 +6417,9 @@ const de_SimulateCustomPolicyCommandError = async (output, context) => {
6856
6417
  throw await de_PolicyEvaluationExceptionRes(parsedOutput, context);
6857
6418
  default:
6858
6419
  const parsedBody = parsedOutput.body;
6859
- (0, smithy_client_1.throwDefaultError)({
6420
+ return throwDefaultError({
6860
6421
  output,
6861
6422
  parsedBody: parsedBody.Error,
6862
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6863
6423
  errorCode,
6864
6424
  });
6865
6425
  }
@@ -6875,7 +6435,7 @@ const de_SimulatePrincipalPolicyCommand = async (output, context) => {
6875
6435
  $metadata: deserializeMetadata(output),
6876
6436
  ...contents,
6877
6437
  };
6878
- return Promise.resolve(response);
6438
+ return response;
6879
6439
  };
6880
6440
  exports.de_SimulatePrincipalPolicyCommand = de_SimulatePrincipalPolicyCommand;
6881
6441
  const de_SimulatePrincipalPolicyCommandError = async (output, context) => {
@@ -6896,10 +6456,9 @@ const de_SimulatePrincipalPolicyCommandError = async (output, context) => {
6896
6456
  throw await de_PolicyEvaluationExceptionRes(parsedOutput, context);
6897
6457
  default:
6898
6458
  const parsedBody = parsedOutput.body;
6899
- (0, smithy_client_1.throwDefaultError)({
6459
+ return throwDefaultError({
6900
6460
  output,
6901
6461
  parsedBody: parsedBody.Error,
6902
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6903
6462
  errorCode,
6904
6463
  });
6905
6464
  }
@@ -6912,7 +6471,7 @@ const de_TagInstanceProfileCommand = async (output, context) => {
6912
6471
  const response = {
6913
6472
  $metadata: deserializeMetadata(output),
6914
6473
  };
6915
- return Promise.resolve(response);
6474
+ return response;
6916
6475
  };
6917
6476
  exports.de_TagInstanceProfileCommand = de_TagInstanceProfileCommand;
6918
6477
  const de_TagInstanceProfileCommandError = async (output, context) => {
@@ -6939,10 +6498,9 @@ const de_TagInstanceProfileCommandError = async (output, context) => {
6939
6498
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6940
6499
  default:
6941
6500
  const parsedBody = parsedOutput.body;
6942
- (0, smithy_client_1.throwDefaultError)({
6501
+ return throwDefaultError({
6943
6502
  output,
6944
6503
  parsedBody: parsedBody.Error,
6945
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6946
6504
  errorCode,
6947
6505
  });
6948
6506
  }
@@ -6955,7 +6513,7 @@ const de_TagMFADeviceCommand = async (output, context) => {
6955
6513
  const response = {
6956
6514
  $metadata: deserializeMetadata(output),
6957
6515
  };
6958
- return Promise.resolve(response);
6516
+ return response;
6959
6517
  };
6960
6518
  exports.de_TagMFADeviceCommand = de_TagMFADeviceCommand;
6961
6519
  const de_TagMFADeviceCommandError = async (output, context) => {
@@ -6982,10 +6540,9 @@ const de_TagMFADeviceCommandError = async (output, context) => {
6982
6540
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6983
6541
  default:
6984
6542
  const parsedBody = parsedOutput.body;
6985
- (0, smithy_client_1.throwDefaultError)({
6543
+ return throwDefaultError({
6986
6544
  output,
6987
6545
  parsedBody: parsedBody.Error,
6988
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6989
6546
  errorCode,
6990
6547
  });
6991
6548
  }
@@ -6998,7 +6555,7 @@ const de_TagOpenIDConnectProviderCommand = async (output, context) => {
6998
6555
  const response = {
6999
6556
  $metadata: deserializeMetadata(output),
7000
6557
  };
7001
- return Promise.resolve(response);
6558
+ return response;
7002
6559
  };
7003
6560
  exports.de_TagOpenIDConnectProviderCommand = de_TagOpenIDConnectProviderCommand;
7004
6561
  const de_TagOpenIDConnectProviderCommandError = async (output, context) => {
@@ -7025,10 +6582,9 @@ const de_TagOpenIDConnectProviderCommandError = async (output, context) => {
7025
6582
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7026
6583
  default:
7027
6584
  const parsedBody = parsedOutput.body;
7028
- (0, smithy_client_1.throwDefaultError)({
6585
+ return throwDefaultError({
7029
6586
  output,
7030
6587
  parsedBody: parsedBody.Error,
7031
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7032
6588
  errorCode,
7033
6589
  });
7034
6590
  }
@@ -7041,7 +6597,7 @@ const de_TagPolicyCommand = async (output, context) => {
7041
6597
  const response = {
7042
6598
  $metadata: deserializeMetadata(output),
7043
6599
  };
7044
- return Promise.resolve(response);
6600
+ return response;
7045
6601
  };
7046
6602
  exports.de_TagPolicyCommand = de_TagPolicyCommand;
7047
6603
  const de_TagPolicyCommandError = async (output, context) => {
@@ -7068,10 +6624,9 @@ const de_TagPolicyCommandError = async (output, context) => {
7068
6624
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7069
6625
  default:
7070
6626
  const parsedBody = parsedOutput.body;
7071
- (0, smithy_client_1.throwDefaultError)({
6627
+ return throwDefaultError({
7072
6628
  output,
7073
6629
  parsedBody: parsedBody.Error,
7074
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7075
6630
  errorCode,
7076
6631
  });
7077
6632
  }
@@ -7084,7 +6639,7 @@ const de_TagRoleCommand = async (output, context) => {
7084
6639
  const response = {
7085
6640
  $metadata: deserializeMetadata(output),
7086
6641
  };
7087
- return Promise.resolve(response);
6642
+ return response;
7088
6643
  };
7089
6644
  exports.de_TagRoleCommand = de_TagRoleCommand;
7090
6645
  const de_TagRoleCommandError = async (output, context) => {
@@ -7111,10 +6666,9 @@ const de_TagRoleCommandError = async (output, context) => {
7111
6666
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7112
6667
  default:
7113
6668
  const parsedBody = parsedOutput.body;
7114
- (0, smithy_client_1.throwDefaultError)({
6669
+ return throwDefaultError({
7115
6670
  output,
7116
6671
  parsedBody: parsedBody.Error,
7117
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7118
6672
  errorCode,
7119
6673
  });
7120
6674
  }
@@ -7127,7 +6681,7 @@ const de_TagSAMLProviderCommand = async (output, context) => {
7127
6681
  const response = {
7128
6682
  $metadata: deserializeMetadata(output),
7129
6683
  };
7130
- return Promise.resolve(response);
6684
+ return response;
7131
6685
  };
7132
6686
  exports.de_TagSAMLProviderCommand = de_TagSAMLProviderCommand;
7133
6687
  const de_TagSAMLProviderCommandError = async (output, context) => {
@@ -7154,10 +6708,9 @@ const de_TagSAMLProviderCommandError = async (output, context) => {
7154
6708
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7155
6709
  default:
7156
6710
  const parsedBody = parsedOutput.body;
7157
- (0, smithy_client_1.throwDefaultError)({
6711
+ return throwDefaultError({
7158
6712
  output,
7159
6713
  parsedBody: parsedBody.Error,
7160
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7161
6714
  errorCode,
7162
6715
  });
7163
6716
  }
@@ -7170,7 +6723,7 @@ const de_TagServerCertificateCommand = async (output, context) => {
7170
6723
  const response = {
7171
6724
  $metadata: deserializeMetadata(output),
7172
6725
  };
7173
- return Promise.resolve(response);
6726
+ return response;
7174
6727
  };
7175
6728
  exports.de_TagServerCertificateCommand = de_TagServerCertificateCommand;
7176
6729
  const de_TagServerCertificateCommandError = async (output, context) => {
@@ -7197,10 +6750,9 @@ const de_TagServerCertificateCommandError = async (output, context) => {
7197
6750
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7198
6751
  default:
7199
6752
  const parsedBody = parsedOutput.body;
7200
- (0, smithy_client_1.throwDefaultError)({
6753
+ return throwDefaultError({
7201
6754
  output,
7202
6755
  parsedBody: parsedBody.Error,
7203
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7204
6756
  errorCode,
7205
6757
  });
7206
6758
  }
@@ -7213,7 +6765,7 @@ const de_TagUserCommand = async (output, context) => {
7213
6765
  const response = {
7214
6766
  $metadata: deserializeMetadata(output),
7215
6767
  };
7216
- return Promise.resolve(response);
6768
+ return response;
7217
6769
  };
7218
6770
  exports.de_TagUserCommand = de_TagUserCommand;
7219
6771
  const de_TagUserCommandError = async (output, context) => {
@@ -7240,10 +6792,9 @@ const de_TagUserCommandError = async (output, context) => {
7240
6792
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7241
6793
  default:
7242
6794
  const parsedBody = parsedOutput.body;
7243
- (0, smithy_client_1.throwDefaultError)({
6795
+ return throwDefaultError({
7244
6796
  output,
7245
6797
  parsedBody: parsedBody.Error,
7246
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7247
6798
  errorCode,
7248
6799
  });
7249
6800
  }
@@ -7256,7 +6807,7 @@ const de_UntagInstanceProfileCommand = async (output, context) => {
7256
6807
  const response = {
7257
6808
  $metadata: deserializeMetadata(output),
7258
6809
  };
7259
- return Promise.resolve(response);
6810
+ return response;
7260
6811
  };
7261
6812
  exports.de_UntagInstanceProfileCommand = de_UntagInstanceProfileCommand;
7262
6813
  const de_UntagInstanceProfileCommandError = async (output, context) => {
@@ -7280,10 +6831,9 @@ const de_UntagInstanceProfileCommandError = async (output, context) => {
7280
6831
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7281
6832
  default:
7282
6833
  const parsedBody = parsedOutput.body;
7283
- (0, smithy_client_1.throwDefaultError)({
6834
+ return throwDefaultError({
7284
6835
  output,
7285
6836
  parsedBody: parsedBody.Error,
7286
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7287
6837
  errorCode,
7288
6838
  });
7289
6839
  }
@@ -7296,7 +6846,7 @@ const de_UntagMFADeviceCommand = async (output, context) => {
7296
6846
  const response = {
7297
6847
  $metadata: deserializeMetadata(output),
7298
6848
  };
7299
- return Promise.resolve(response);
6849
+ return response;
7300
6850
  };
7301
6851
  exports.de_UntagMFADeviceCommand = de_UntagMFADeviceCommand;
7302
6852
  const de_UntagMFADeviceCommandError = async (output, context) => {
@@ -7320,10 +6870,9 @@ const de_UntagMFADeviceCommandError = async (output, context) => {
7320
6870
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7321
6871
  default:
7322
6872
  const parsedBody = parsedOutput.body;
7323
- (0, smithy_client_1.throwDefaultError)({
6873
+ return throwDefaultError({
7324
6874
  output,
7325
6875
  parsedBody: parsedBody.Error,
7326
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7327
6876
  errorCode,
7328
6877
  });
7329
6878
  }
@@ -7336,7 +6885,7 @@ const de_UntagOpenIDConnectProviderCommand = async (output, context) => {
7336
6885
  const response = {
7337
6886
  $metadata: deserializeMetadata(output),
7338
6887
  };
7339
- return Promise.resolve(response);
6888
+ return response;
7340
6889
  };
7341
6890
  exports.de_UntagOpenIDConnectProviderCommand = de_UntagOpenIDConnectProviderCommand;
7342
6891
  const de_UntagOpenIDConnectProviderCommandError = async (output, context) => {
@@ -7360,10 +6909,9 @@ const de_UntagOpenIDConnectProviderCommandError = async (output, context) => {
7360
6909
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7361
6910
  default:
7362
6911
  const parsedBody = parsedOutput.body;
7363
- (0, smithy_client_1.throwDefaultError)({
6912
+ return throwDefaultError({
7364
6913
  output,
7365
6914
  parsedBody: parsedBody.Error,
7366
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7367
6915
  errorCode,
7368
6916
  });
7369
6917
  }
@@ -7376,7 +6924,7 @@ const de_UntagPolicyCommand = async (output, context) => {
7376
6924
  const response = {
7377
6925
  $metadata: deserializeMetadata(output),
7378
6926
  };
7379
- return Promise.resolve(response);
6927
+ return response;
7380
6928
  };
7381
6929
  exports.de_UntagPolicyCommand = de_UntagPolicyCommand;
7382
6930
  const de_UntagPolicyCommandError = async (output, context) => {
@@ -7400,10 +6948,9 @@ const de_UntagPolicyCommandError = async (output, context) => {
7400
6948
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7401
6949
  default:
7402
6950
  const parsedBody = parsedOutput.body;
7403
- (0, smithy_client_1.throwDefaultError)({
6951
+ return throwDefaultError({
7404
6952
  output,
7405
6953
  parsedBody: parsedBody.Error,
7406
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7407
6954
  errorCode,
7408
6955
  });
7409
6956
  }
@@ -7416,7 +6963,7 @@ const de_UntagRoleCommand = async (output, context) => {
7416
6963
  const response = {
7417
6964
  $metadata: deserializeMetadata(output),
7418
6965
  };
7419
- return Promise.resolve(response);
6966
+ return response;
7420
6967
  };
7421
6968
  exports.de_UntagRoleCommand = de_UntagRoleCommand;
7422
6969
  const de_UntagRoleCommandError = async (output, context) => {
@@ -7437,10 +6984,9 @@ const de_UntagRoleCommandError = async (output, context) => {
7437
6984
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7438
6985
  default:
7439
6986
  const parsedBody = parsedOutput.body;
7440
- (0, smithy_client_1.throwDefaultError)({
6987
+ return throwDefaultError({
7441
6988
  output,
7442
6989
  parsedBody: parsedBody.Error,
7443
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7444
6990
  errorCode,
7445
6991
  });
7446
6992
  }
@@ -7453,7 +6999,7 @@ const de_UntagSAMLProviderCommand = async (output, context) => {
7453
6999
  const response = {
7454
7000
  $metadata: deserializeMetadata(output),
7455
7001
  };
7456
- return Promise.resolve(response);
7002
+ return response;
7457
7003
  };
7458
7004
  exports.de_UntagSAMLProviderCommand = de_UntagSAMLProviderCommand;
7459
7005
  const de_UntagSAMLProviderCommandError = async (output, context) => {
@@ -7477,10 +7023,9 @@ const de_UntagSAMLProviderCommandError = async (output, context) => {
7477
7023
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7478
7024
  default:
7479
7025
  const parsedBody = parsedOutput.body;
7480
- (0, smithy_client_1.throwDefaultError)({
7026
+ return throwDefaultError({
7481
7027
  output,
7482
7028
  parsedBody: parsedBody.Error,
7483
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7484
7029
  errorCode,
7485
7030
  });
7486
7031
  }
@@ -7493,7 +7038,7 @@ const de_UntagServerCertificateCommand = async (output, context) => {
7493
7038
  const response = {
7494
7039
  $metadata: deserializeMetadata(output),
7495
7040
  };
7496
- return Promise.resolve(response);
7041
+ return response;
7497
7042
  };
7498
7043
  exports.de_UntagServerCertificateCommand = de_UntagServerCertificateCommand;
7499
7044
  const de_UntagServerCertificateCommandError = async (output, context) => {
@@ -7517,10 +7062,9 @@ const de_UntagServerCertificateCommandError = async (output, context) => {
7517
7062
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7518
7063
  default:
7519
7064
  const parsedBody = parsedOutput.body;
7520
- (0, smithy_client_1.throwDefaultError)({
7065
+ return throwDefaultError({
7521
7066
  output,
7522
7067
  parsedBody: parsedBody.Error,
7523
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7524
7068
  errorCode,
7525
7069
  });
7526
7070
  }
@@ -7533,7 +7077,7 @@ const de_UntagUserCommand = async (output, context) => {
7533
7077
  const response = {
7534
7078
  $metadata: deserializeMetadata(output),
7535
7079
  };
7536
- return Promise.resolve(response);
7080
+ return response;
7537
7081
  };
7538
7082
  exports.de_UntagUserCommand = de_UntagUserCommand;
7539
7083
  const de_UntagUserCommandError = async (output, context) => {
@@ -7554,10 +7098,9 @@ const de_UntagUserCommandError = async (output, context) => {
7554
7098
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7555
7099
  default:
7556
7100
  const parsedBody = parsedOutput.body;
7557
- (0, smithy_client_1.throwDefaultError)({
7101
+ return throwDefaultError({
7558
7102
  output,
7559
7103
  parsedBody: parsedBody.Error,
7560
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7561
7104
  errorCode,
7562
7105
  });
7563
7106
  }
@@ -7570,7 +7113,7 @@ const de_UpdateAccessKeyCommand = async (output, context) => {
7570
7113
  const response = {
7571
7114
  $metadata: deserializeMetadata(output),
7572
7115
  };
7573
- return Promise.resolve(response);
7116
+ return response;
7574
7117
  };
7575
7118
  exports.de_UpdateAccessKeyCommand = de_UpdateAccessKeyCommand;
7576
7119
  const de_UpdateAccessKeyCommandError = async (output, context) => {
@@ -7591,10 +7134,9 @@ const de_UpdateAccessKeyCommandError = async (output, context) => {
7591
7134
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7592
7135
  default:
7593
7136
  const parsedBody = parsedOutput.body;
7594
- (0, smithy_client_1.throwDefaultError)({
7137
+ return throwDefaultError({
7595
7138
  output,
7596
7139
  parsedBody: parsedBody.Error,
7597
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7598
7140
  errorCode,
7599
7141
  });
7600
7142
  }
@@ -7607,7 +7149,7 @@ const de_UpdateAccountPasswordPolicyCommand = async (output, context) => {
7607
7149
  const response = {
7608
7150
  $metadata: deserializeMetadata(output),
7609
7151
  };
7610
- return Promise.resolve(response);
7152
+ return response;
7611
7153
  };
7612
7154
  exports.de_UpdateAccountPasswordPolicyCommand = de_UpdateAccountPasswordPolicyCommand;
7613
7155
  const de_UpdateAccountPasswordPolicyCommandError = async (output, context) => {
@@ -7631,10 +7173,9 @@ const de_UpdateAccountPasswordPolicyCommandError = async (output, context) => {
7631
7173
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7632
7174
  default:
7633
7175
  const parsedBody = parsedOutput.body;
7634
- (0, smithy_client_1.throwDefaultError)({
7176
+ return throwDefaultError({
7635
7177
  output,
7636
7178
  parsedBody: parsedBody.Error,
7637
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7638
7179
  errorCode,
7639
7180
  });
7640
7181
  }
@@ -7647,7 +7188,7 @@ const de_UpdateAssumeRolePolicyCommand = async (output, context) => {
7647
7188
  const response = {
7648
7189
  $metadata: deserializeMetadata(output),
7649
7190
  };
7650
- return Promise.resolve(response);
7191
+ return response;
7651
7192
  };
7652
7193
  exports.de_UpdateAssumeRolePolicyCommand = de_UpdateAssumeRolePolicyCommand;
7653
7194
  const de_UpdateAssumeRolePolicyCommandError = async (output, context) => {
@@ -7674,10 +7215,9 @@ const de_UpdateAssumeRolePolicyCommandError = async (output, context) => {
7674
7215
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
7675
7216
  default:
7676
7217
  const parsedBody = parsedOutput.body;
7677
- (0, smithy_client_1.throwDefaultError)({
7218
+ return throwDefaultError({
7678
7219
  output,
7679
7220
  parsedBody: parsedBody.Error,
7680
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7681
7221
  errorCode,
7682
7222
  });
7683
7223
  }
@@ -7690,7 +7230,7 @@ const de_UpdateGroupCommand = async (output, context) => {
7690
7230
  const response = {
7691
7231
  $metadata: deserializeMetadata(output),
7692
7232
  };
7693
- return Promise.resolve(response);
7233
+ return response;
7694
7234
  };
7695
7235
  exports.de_UpdateGroupCommand = de_UpdateGroupCommand;
7696
7236
  const de_UpdateGroupCommandError = async (output, context) => {
@@ -7714,10 +7254,9 @@ const de_UpdateGroupCommandError = async (output, context) => {
7714
7254
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7715
7255
  default:
7716
7256
  const parsedBody = parsedOutput.body;
7717
- (0, smithy_client_1.throwDefaultError)({
7257
+ return throwDefaultError({
7718
7258
  output,
7719
7259
  parsedBody: parsedBody.Error,
7720
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7721
7260
  errorCode,
7722
7261
  });
7723
7262
  }
@@ -7730,7 +7269,7 @@ const de_UpdateLoginProfileCommand = async (output, context) => {
7730
7269
  const response = {
7731
7270
  $metadata: deserializeMetadata(output),
7732
7271
  };
7733
- return Promise.resolve(response);
7272
+ return response;
7734
7273
  };
7735
7274
  exports.de_UpdateLoginProfileCommand = de_UpdateLoginProfileCommand;
7736
7275
  const de_UpdateLoginProfileCommandError = async (output, context) => {
@@ -7757,10 +7296,9 @@ const de_UpdateLoginProfileCommandError = async (output, context) => {
7757
7296
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7758
7297
  default:
7759
7298
  const parsedBody = parsedOutput.body;
7760
- (0, smithy_client_1.throwDefaultError)({
7299
+ return throwDefaultError({
7761
7300
  output,
7762
7301
  parsedBody: parsedBody.Error,
7763
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7764
7302
  errorCode,
7765
7303
  });
7766
7304
  }
@@ -7773,7 +7311,7 @@ const de_UpdateOpenIDConnectProviderThumbprintCommand = async (output, context)
7773
7311
  const response = {
7774
7312
  $metadata: deserializeMetadata(output),
7775
7313
  };
7776
- return Promise.resolve(response);
7314
+ return response;
7777
7315
  };
7778
7316
  exports.de_UpdateOpenIDConnectProviderThumbprintCommand = de_UpdateOpenIDConnectProviderThumbprintCommand;
7779
7317
  const de_UpdateOpenIDConnectProviderThumbprintCommandError = async (output, context) => {
@@ -7794,10 +7332,9 @@ const de_UpdateOpenIDConnectProviderThumbprintCommandError = async (output, cont
7794
7332
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7795
7333
  default:
7796
7334
  const parsedBody = parsedOutput.body;
7797
- (0, smithy_client_1.throwDefaultError)({
7335
+ return throwDefaultError({
7798
7336
  output,
7799
7337
  parsedBody: parsedBody.Error,
7800
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7801
7338
  errorCode,
7802
7339
  });
7803
7340
  }
@@ -7813,7 +7350,7 @@ const de_UpdateRoleCommand = async (output, context) => {
7813
7350
  $metadata: deserializeMetadata(output),
7814
7351
  ...contents,
7815
7352
  };
7816
- return Promise.resolve(response);
7353
+ return response;
7817
7354
  };
7818
7355
  exports.de_UpdateRoleCommand = de_UpdateRoleCommand;
7819
7356
  const de_UpdateRoleCommandError = async (output, context) => {
@@ -7834,10 +7371,9 @@ const de_UpdateRoleCommandError = async (output, context) => {
7834
7371
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
7835
7372
  default:
7836
7373
  const parsedBody = parsedOutput.body;
7837
- (0, smithy_client_1.throwDefaultError)({
7374
+ return throwDefaultError({
7838
7375
  output,
7839
7376
  parsedBody: parsedBody.Error,
7840
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7841
7377
  errorCode,
7842
7378
  });
7843
7379
  }
@@ -7853,7 +7389,7 @@ const de_UpdateRoleDescriptionCommand = async (output, context) => {
7853
7389
  $metadata: deserializeMetadata(output),
7854
7390
  ...contents,
7855
7391
  };
7856
- return Promise.resolve(response);
7392
+ return response;
7857
7393
  };
7858
7394
  exports.de_UpdateRoleDescriptionCommand = de_UpdateRoleDescriptionCommand;
7859
7395
  const de_UpdateRoleDescriptionCommandError = async (output, context) => {
@@ -7874,10 +7410,9 @@ const de_UpdateRoleDescriptionCommandError = async (output, context) => {
7874
7410
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
7875
7411
  default:
7876
7412
  const parsedBody = parsedOutput.body;
7877
- (0, smithy_client_1.throwDefaultError)({
7413
+ return throwDefaultError({
7878
7414
  output,
7879
7415
  parsedBody: parsedBody.Error,
7880
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7881
7416
  errorCode,
7882
7417
  });
7883
7418
  }
@@ -7893,7 +7428,7 @@ const de_UpdateSAMLProviderCommand = async (output, context) => {
7893
7428
  $metadata: deserializeMetadata(output),
7894
7429
  ...contents,
7895
7430
  };
7896
- return Promise.resolve(response);
7431
+ return response;
7897
7432
  };
7898
7433
  exports.de_UpdateSAMLProviderCommand = de_UpdateSAMLProviderCommand;
7899
7434
  const de_UpdateSAMLProviderCommandError = async (output, context) => {
@@ -7917,10 +7452,9 @@ const de_UpdateSAMLProviderCommandError = async (output, context) => {
7917
7452
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7918
7453
  default:
7919
7454
  const parsedBody = parsedOutput.body;
7920
- (0, smithy_client_1.throwDefaultError)({
7455
+ return throwDefaultError({
7921
7456
  output,
7922
7457
  parsedBody: parsedBody.Error,
7923
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7924
7458
  errorCode,
7925
7459
  });
7926
7460
  }
@@ -7933,7 +7467,7 @@ const de_UpdateServerCertificateCommand = async (output, context) => {
7933
7467
  const response = {
7934
7468
  $metadata: deserializeMetadata(output),
7935
7469
  };
7936
- return Promise.resolve(response);
7470
+ return response;
7937
7471
  };
7938
7472
  exports.de_UpdateServerCertificateCommand = de_UpdateServerCertificateCommand;
7939
7473
  const de_UpdateServerCertificateCommandError = async (output, context) => {
@@ -7957,10 +7491,9 @@ const de_UpdateServerCertificateCommandError = async (output, context) => {
7957
7491
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7958
7492
  default:
7959
7493
  const parsedBody = parsedOutput.body;
7960
- (0, smithy_client_1.throwDefaultError)({
7494
+ return throwDefaultError({
7961
7495
  output,
7962
7496
  parsedBody: parsedBody.Error,
7963
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7964
7497
  errorCode,
7965
7498
  });
7966
7499
  }
@@ -7973,7 +7506,7 @@ const de_UpdateServiceSpecificCredentialCommand = async (output, context) => {
7973
7506
  const response = {
7974
7507
  $metadata: deserializeMetadata(output),
7975
7508
  };
7976
- return Promise.resolve(response);
7509
+ return response;
7977
7510
  };
7978
7511
  exports.de_UpdateServiceSpecificCredentialCommand = de_UpdateServiceSpecificCredentialCommand;
7979
7512
  const de_UpdateServiceSpecificCredentialCommandError = async (output, context) => {
@@ -7988,10 +7521,9 @@ const de_UpdateServiceSpecificCredentialCommandError = async (output, context) =
7988
7521
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
7989
7522
  default:
7990
7523
  const parsedBody = parsedOutput.body;
7991
- (0, smithy_client_1.throwDefaultError)({
7524
+ return throwDefaultError({
7992
7525
  output,
7993
7526
  parsedBody: parsedBody.Error,
7994
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7995
7527
  errorCode,
7996
7528
  });
7997
7529
  }
@@ -8004,7 +7536,7 @@ const de_UpdateSigningCertificateCommand = async (output, context) => {
8004
7536
  const response = {
8005
7537
  $metadata: deserializeMetadata(output),
8006
7538
  };
8007
- return Promise.resolve(response);
7539
+ return response;
8008
7540
  };
8009
7541
  exports.de_UpdateSigningCertificateCommand = de_UpdateSigningCertificateCommand;
8010
7542
  const de_UpdateSigningCertificateCommandError = async (output, context) => {
@@ -8025,10 +7557,9 @@ const de_UpdateSigningCertificateCommandError = async (output, context) => {
8025
7557
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
8026
7558
  default:
8027
7559
  const parsedBody = parsedOutput.body;
8028
- (0, smithy_client_1.throwDefaultError)({
7560
+ return throwDefaultError({
8029
7561
  output,
8030
7562
  parsedBody: parsedBody.Error,
8031
- exceptionCtor: IAMServiceException_1.IAMServiceException,
8032
7563
  errorCode,
8033
7564
  });
8034
7565
  }
@@ -8041,7 +7572,7 @@ const de_UpdateSSHPublicKeyCommand = async (output, context) => {
8041
7572
  const response = {
8042
7573
  $metadata: deserializeMetadata(output),
8043
7574
  };
8044
- return Promise.resolve(response);
7575
+ return response;
8045
7576
  };
8046
7577
  exports.de_UpdateSSHPublicKeyCommand = de_UpdateSSHPublicKeyCommand;
8047
7578
  const de_UpdateSSHPublicKeyCommandError = async (output, context) => {
@@ -8056,10 +7587,9 @@ const de_UpdateSSHPublicKeyCommandError = async (output, context) => {
8056
7587
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
8057
7588
  default:
8058
7589
  const parsedBody = parsedOutput.body;
8059
- (0, smithy_client_1.throwDefaultError)({
7590
+ return throwDefaultError({
8060
7591
  output,
8061
7592
  parsedBody: parsedBody.Error,
8062
- exceptionCtor: IAMServiceException_1.IAMServiceException,
8063
7593
  errorCode,
8064
7594
  });
8065
7595
  }
@@ -8072,7 +7602,7 @@ const de_UpdateUserCommand = async (output, context) => {
8072
7602
  const response = {
8073
7603
  $metadata: deserializeMetadata(output),
8074
7604
  };
8075
- return Promise.resolve(response);
7605
+ return response;
8076
7606
  };
8077
7607
  exports.de_UpdateUserCommand = de_UpdateUserCommand;
8078
7608
  const de_UpdateUserCommandError = async (output, context) => {
@@ -8102,10 +7632,9 @@ const de_UpdateUserCommandError = async (output, context) => {
8102
7632
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
8103
7633
  default:
8104
7634
  const parsedBody = parsedOutput.body;
8105
- (0, smithy_client_1.throwDefaultError)({
7635
+ return throwDefaultError({
8106
7636
  output,
8107
7637
  parsedBody: parsedBody.Error,
8108
- exceptionCtor: IAMServiceException_1.IAMServiceException,
8109
7638
  errorCode,
8110
7639
  });
8111
7640
  }
@@ -8121,7 +7650,7 @@ const de_UploadServerCertificateCommand = async (output, context) => {
8121
7650
  $metadata: deserializeMetadata(output),
8122
7651
  ...contents,
8123
7652
  };
8124
- return Promise.resolve(response);
7653
+ return response;
8125
7654
  };
8126
7655
  exports.de_UploadServerCertificateCommand = de_UploadServerCertificateCommand;
8127
7656
  const de_UploadServerCertificateCommandError = async (output, context) => {
@@ -8154,10 +7683,9 @@ const de_UploadServerCertificateCommandError = async (output, context) => {
8154
7683
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
8155
7684
  default:
8156
7685
  const parsedBody = parsedOutput.body;
8157
- (0, smithy_client_1.throwDefaultError)({
7686
+ return throwDefaultError({
8158
7687
  output,
8159
7688
  parsedBody: parsedBody.Error,
8160
- exceptionCtor: IAMServiceException_1.IAMServiceException,
8161
7689
  errorCode,
8162
7690
  });
8163
7691
  }
@@ -8173,7 +7701,7 @@ const de_UploadSigningCertificateCommand = async (output, context) => {
8173
7701
  $metadata: deserializeMetadata(output),
8174
7702
  ...contents,
8175
7703
  };
8176
- return Promise.resolve(response);
7704
+ return response;
8177
7705
  };
8178
7706
  exports.de_UploadSigningCertificateCommand = de_UploadSigningCertificateCommand;
8179
7707
  const de_UploadSigningCertificateCommandError = async (output, context) => {
@@ -8206,10 +7734,9 @@ const de_UploadSigningCertificateCommandError = async (output, context) => {
8206
7734
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
8207
7735
  default:
8208
7736
  const parsedBody = parsedOutput.body;
8209
- (0, smithy_client_1.throwDefaultError)({
7737
+ return throwDefaultError({
8210
7738
  output,
8211
7739
  parsedBody: parsedBody.Error,
8212
- exceptionCtor: IAMServiceException_1.IAMServiceException,
8213
7740
  errorCode,
8214
7741
  });
8215
7742
  }
@@ -8225,7 +7752,7 @@ const de_UploadSSHPublicKeyCommand = async (output, context) => {
8225
7752
  $metadata: deserializeMetadata(output),
8226
7753
  ...contents,
8227
7754
  };
8228
- return Promise.resolve(response);
7755
+ return response;
8229
7756
  };
8230
7757
  exports.de_UploadSSHPublicKeyCommand = de_UploadSSHPublicKeyCommand;
8231
7758
  const de_UploadSSHPublicKeyCommandError = async (output, context) => {
@@ -8252,10 +7779,9 @@ const de_UploadSSHPublicKeyCommandError = async (output, context) => {
8252
7779
  throw await de_UnrecognizedPublicKeyEncodingExceptionRes(parsedOutput, context);
8253
7780
  default:
8254
7781
  const parsedBody = parsedOutput.body;
8255
- (0, smithy_client_1.throwDefaultError)({
7782
+ return throwDefaultError({
8256
7783
  output,
8257
7784
  parsedBody: parsedBody.Error,
8258
- exceptionCtor: IAMServiceException_1.IAMServiceException,
8259
7785
  errorCode,
8260
7786
  });
8261
7787
  }
@@ -13343,6 +12869,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
13343
12869
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
13344
12870
  };
13345
12871
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
12872
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(IAMServiceException_1.IAMServiceException);
13346
12873
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
13347
12874
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
13348
12875
  const contents = {
@@ -13361,6 +12888,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
13361
12888
  }
13362
12889
  return new protocol_http_1.HttpRequest(contents);
13363
12890
  };
12891
+ const SHARED_HEADERS = {
12892
+ "content-type": "application/x-www-form-urlencoded",
12893
+ };
13364
12894
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
13365
12895
  if (encoded.length) {
13366
12896
  const parser = new fast_xml_parser_1.XMLParser({