@aws-sdk/client-iam 3.312.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.
@@ -1749,7 +1749,7 @@ const de_AddClientIDToOpenIDConnectProviderCommand = async (output, context) =>
1749
1749
  const response = {
1750
1750
  $metadata: deserializeMetadata(output),
1751
1751
  };
1752
- return Promise.resolve(response);
1752
+ return response;
1753
1753
  };
1754
1754
  exports.de_AddClientIDToOpenIDConnectProviderCommand = de_AddClientIDToOpenIDConnectProviderCommand;
1755
1755
  const de_AddClientIDToOpenIDConnectProviderCommandError = async (output, context) => {
@@ -1773,10 +1773,9 @@ const de_AddClientIDToOpenIDConnectProviderCommandError = async (output, context
1773
1773
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1774
1774
  default:
1775
1775
  const parsedBody = parsedOutput.body;
1776
- (0, smithy_client_1.throwDefaultError)({
1776
+ return throwDefaultError({
1777
1777
  output,
1778
1778
  parsedBody: parsedBody.Error,
1779
- exceptionCtor: IAMServiceException_1.IAMServiceException,
1780
1779
  errorCode,
1781
1780
  });
1782
1781
  }
@@ -1789,7 +1788,7 @@ const de_AddRoleToInstanceProfileCommand = async (output, context) => {
1789
1788
  const response = {
1790
1789
  $metadata: deserializeMetadata(output),
1791
1790
  };
1792
- return Promise.resolve(response);
1791
+ return response;
1793
1792
  };
1794
1793
  exports.de_AddRoleToInstanceProfileCommand = de_AddRoleToInstanceProfileCommand;
1795
1794
  const de_AddRoleToInstanceProfileCommandError = async (output, context) => {
@@ -1816,10 +1815,9 @@ const de_AddRoleToInstanceProfileCommandError = async (output, context) => {
1816
1815
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
1817
1816
  default:
1818
1817
  const parsedBody = parsedOutput.body;
1819
- (0, smithy_client_1.throwDefaultError)({
1818
+ return throwDefaultError({
1820
1819
  output,
1821
1820
  parsedBody: parsedBody.Error,
1822
- exceptionCtor: IAMServiceException_1.IAMServiceException,
1823
1821
  errorCode,
1824
1822
  });
1825
1823
  }
@@ -1832,7 +1830,7 @@ const de_AddUserToGroupCommand = async (output, context) => {
1832
1830
  const response = {
1833
1831
  $metadata: deserializeMetadata(output),
1834
1832
  };
1835
- return Promise.resolve(response);
1833
+ return response;
1836
1834
  };
1837
1835
  exports.de_AddUserToGroupCommand = de_AddUserToGroupCommand;
1838
1836
  const de_AddUserToGroupCommandError = async (output, context) => {
@@ -1853,10 +1851,9 @@ const de_AddUserToGroupCommandError = async (output, context) => {
1853
1851
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1854
1852
  default:
1855
1853
  const parsedBody = parsedOutput.body;
1856
- (0, smithy_client_1.throwDefaultError)({
1854
+ return throwDefaultError({
1857
1855
  output,
1858
1856
  parsedBody: parsedBody.Error,
1859
- exceptionCtor: IAMServiceException_1.IAMServiceException,
1860
1857
  errorCode,
1861
1858
  });
1862
1859
  }
@@ -1869,7 +1866,7 @@ const de_AttachGroupPolicyCommand = async (output, context) => {
1869
1866
  const response = {
1870
1867
  $metadata: deserializeMetadata(output),
1871
1868
  };
1872
- return Promise.resolve(response);
1869
+ return response;
1873
1870
  };
1874
1871
  exports.de_AttachGroupPolicyCommand = de_AttachGroupPolicyCommand;
1875
1872
  const de_AttachGroupPolicyCommandError = async (output, context) => {
@@ -1896,10 +1893,9 @@ const de_AttachGroupPolicyCommandError = async (output, context) => {
1896
1893
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1897
1894
  default:
1898
1895
  const parsedBody = parsedOutput.body;
1899
- (0, smithy_client_1.throwDefaultError)({
1896
+ return throwDefaultError({
1900
1897
  output,
1901
1898
  parsedBody: parsedBody.Error,
1902
- exceptionCtor: IAMServiceException_1.IAMServiceException,
1903
1899
  errorCode,
1904
1900
  });
1905
1901
  }
@@ -1912,7 +1908,7 @@ const de_AttachRolePolicyCommand = async (output, context) => {
1912
1908
  const response = {
1913
1909
  $metadata: deserializeMetadata(output),
1914
1910
  };
1915
- return Promise.resolve(response);
1911
+ return response;
1916
1912
  };
1917
1913
  exports.de_AttachRolePolicyCommand = de_AttachRolePolicyCommand;
1918
1914
  const de_AttachRolePolicyCommandError = async (output, context) => {
@@ -1942,10 +1938,9 @@ const de_AttachRolePolicyCommandError = async (output, context) => {
1942
1938
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
1943
1939
  default:
1944
1940
  const parsedBody = parsedOutput.body;
1945
- (0, smithy_client_1.throwDefaultError)({
1941
+ return throwDefaultError({
1946
1942
  output,
1947
1943
  parsedBody: parsedBody.Error,
1948
- exceptionCtor: IAMServiceException_1.IAMServiceException,
1949
1944
  errorCode,
1950
1945
  });
1951
1946
  }
@@ -1958,7 +1953,7 @@ const de_AttachUserPolicyCommand = async (output, context) => {
1958
1953
  const response = {
1959
1954
  $metadata: deserializeMetadata(output),
1960
1955
  };
1961
- return Promise.resolve(response);
1956
+ return response;
1962
1957
  };
1963
1958
  exports.de_AttachUserPolicyCommand = de_AttachUserPolicyCommand;
1964
1959
  const de_AttachUserPolicyCommandError = async (output, context) => {
@@ -1985,10 +1980,9 @@ const de_AttachUserPolicyCommandError = async (output, context) => {
1985
1980
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1986
1981
  default:
1987
1982
  const parsedBody = parsedOutput.body;
1988
- (0, smithy_client_1.throwDefaultError)({
1983
+ return throwDefaultError({
1989
1984
  output,
1990
1985
  parsedBody: parsedBody.Error,
1991
- exceptionCtor: IAMServiceException_1.IAMServiceException,
1992
1986
  errorCode,
1993
1987
  });
1994
1988
  }
@@ -2001,7 +1995,7 @@ const de_ChangePasswordCommand = async (output, context) => {
2001
1995
  const response = {
2002
1996
  $metadata: deserializeMetadata(output),
2003
1997
  };
2004
- return Promise.resolve(response);
1998
+ return response;
2005
1999
  };
2006
2000
  exports.de_ChangePasswordCommand = de_ChangePasswordCommand;
2007
2001
  const de_ChangePasswordCommandError = async (output, context) => {
@@ -2031,10 +2025,9 @@ const de_ChangePasswordCommandError = async (output, context) => {
2031
2025
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2032
2026
  default:
2033
2027
  const parsedBody = parsedOutput.body;
2034
- (0, smithy_client_1.throwDefaultError)({
2028
+ return throwDefaultError({
2035
2029
  output,
2036
2030
  parsedBody: parsedBody.Error,
2037
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2038
2031
  errorCode,
2039
2032
  });
2040
2033
  }
@@ -2050,7 +2043,7 @@ const de_CreateAccessKeyCommand = async (output, context) => {
2050
2043
  $metadata: deserializeMetadata(output),
2051
2044
  ...contents,
2052
2045
  };
2053
- return Promise.resolve(response);
2046
+ return response;
2054
2047
  };
2055
2048
  exports.de_CreateAccessKeyCommand = de_CreateAccessKeyCommand;
2056
2049
  const de_CreateAccessKeyCommandError = async (output, context) => {
@@ -2071,10 +2064,9 @@ const de_CreateAccessKeyCommandError = async (output, context) => {
2071
2064
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2072
2065
  default:
2073
2066
  const parsedBody = parsedOutput.body;
2074
- (0, smithy_client_1.throwDefaultError)({
2067
+ return throwDefaultError({
2075
2068
  output,
2076
2069
  parsedBody: parsedBody.Error,
2077
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2078
2070
  errorCode,
2079
2071
  });
2080
2072
  }
@@ -2087,7 +2079,7 @@ const de_CreateAccountAliasCommand = async (output, context) => {
2087
2079
  const response = {
2088
2080
  $metadata: deserializeMetadata(output),
2089
2081
  };
2090
- return Promise.resolve(response);
2082
+ return response;
2091
2083
  };
2092
2084
  exports.de_CreateAccountAliasCommand = de_CreateAccountAliasCommand;
2093
2085
  const de_CreateAccountAliasCommandError = async (output, context) => {
@@ -2108,10 +2100,9 @@ const de_CreateAccountAliasCommandError = async (output, context) => {
2108
2100
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2109
2101
  default:
2110
2102
  const parsedBody = parsedOutput.body;
2111
- (0, smithy_client_1.throwDefaultError)({
2103
+ return throwDefaultError({
2112
2104
  output,
2113
2105
  parsedBody: parsedBody.Error,
2114
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2115
2106
  errorCode,
2116
2107
  });
2117
2108
  }
@@ -2127,7 +2118,7 @@ const de_CreateGroupCommand = async (output, context) => {
2127
2118
  $metadata: deserializeMetadata(output),
2128
2119
  ...contents,
2129
2120
  };
2130
- return Promise.resolve(response);
2121
+ return response;
2131
2122
  };
2132
2123
  exports.de_CreateGroupCommand = de_CreateGroupCommand;
2133
2124
  const de_CreateGroupCommandError = async (output, context) => {
@@ -2151,10 +2142,9 @@ const de_CreateGroupCommandError = async (output, context) => {
2151
2142
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2152
2143
  default:
2153
2144
  const parsedBody = parsedOutput.body;
2154
- (0, smithy_client_1.throwDefaultError)({
2145
+ return throwDefaultError({
2155
2146
  output,
2156
2147
  parsedBody: parsedBody.Error,
2157
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2158
2148
  errorCode,
2159
2149
  });
2160
2150
  }
@@ -2170,7 +2160,7 @@ const de_CreateInstanceProfileCommand = async (output, context) => {
2170
2160
  $metadata: deserializeMetadata(output),
2171
2161
  ...contents,
2172
2162
  };
2173
- return Promise.resolve(response);
2163
+ return response;
2174
2164
  };
2175
2165
  exports.de_CreateInstanceProfileCommand = de_CreateInstanceProfileCommand;
2176
2166
  const de_CreateInstanceProfileCommandError = async (output, context) => {
@@ -2197,10 +2187,9 @@ const de_CreateInstanceProfileCommandError = async (output, context) => {
2197
2187
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2198
2188
  default:
2199
2189
  const parsedBody = parsedOutput.body;
2200
- (0, smithy_client_1.throwDefaultError)({
2190
+ return throwDefaultError({
2201
2191
  output,
2202
2192
  parsedBody: parsedBody.Error,
2203
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2204
2193
  errorCode,
2205
2194
  });
2206
2195
  }
@@ -2216,7 +2205,7 @@ const de_CreateLoginProfileCommand = async (output, context) => {
2216
2205
  $metadata: deserializeMetadata(output),
2217
2206
  ...contents,
2218
2207
  };
2219
- return Promise.resolve(response);
2208
+ return response;
2220
2209
  };
2221
2210
  exports.de_CreateLoginProfileCommand = de_CreateLoginProfileCommand;
2222
2211
  const de_CreateLoginProfileCommandError = async (output, context) => {
@@ -2243,10 +2232,9 @@ const de_CreateLoginProfileCommandError = async (output, context) => {
2243
2232
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2244
2233
  default:
2245
2234
  const parsedBody = parsedOutput.body;
2246
- (0, smithy_client_1.throwDefaultError)({
2235
+ return throwDefaultError({
2247
2236
  output,
2248
2237
  parsedBody: parsedBody.Error,
2249
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2250
2238
  errorCode,
2251
2239
  });
2252
2240
  }
@@ -2262,7 +2250,7 @@ const de_CreateOpenIDConnectProviderCommand = async (output, context) => {
2262
2250
  $metadata: deserializeMetadata(output),
2263
2251
  ...contents,
2264
2252
  };
2265
- return Promise.resolve(response);
2253
+ return response;
2266
2254
  };
2267
2255
  exports.de_CreateOpenIDConnectProviderCommand = de_CreateOpenIDConnectProviderCommand;
2268
2256
  const de_CreateOpenIDConnectProviderCommandError = async (output, context) => {
@@ -2289,10 +2277,9 @@ const de_CreateOpenIDConnectProviderCommandError = async (output, context) => {
2289
2277
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2290
2278
  default:
2291
2279
  const parsedBody = parsedOutput.body;
2292
- (0, smithy_client_1.throwDefaultError)({
2280
+ return throwDefaultError({
2293
2281
  output,
2294
2282
  parsedBody: parsedBody.Error,
2295
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2296
2283
  errorCode,
2297
2284
  });
2298
2285
  }
@@ -2308,7 +2295,7 @@ const de_CreatePolicyCommand = async (output, context) => {
2308
2295
  $metadata: deserializeMetadata(output),
2309
2296
  ...contents,
2310
2297
  };
2311
- return Promise.resolve(response);
2298
+ return response;
2312
2299
  };
2313
2300
  exports.de_CreatePolicyCommand = de_CreatePolicyCommand;
2314
2301
  const de_CreatePolicyCommandError = async (output, context) => {
@@ -2338,10 +2325,9 @@ const de_CreatePolicyCommandError = async (output, context) => {
2338
2325
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2339
2326
  default:
2340
2327
  const parsedBody = parsedOutput.body;
2341
- (0, smithy_client_1.throwDefaultError)({
2328
+ return throwDefaultError({
2342
2329
  output,
2343
2330
  parsedBody: parsedBody.Error,
2344
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2345
2331
  errorCode,
2346
2332
  });
2347
2333
  }
@@ -2357,7 +2343,7 @@ const de_CreatePolicyVersionCommand = async (output, context) => {
2357
2343
  $metadata: deserializeMetadata(output),
2358
2344
  ...contents,
2359
2345
  };
2360
- return Promise.resolve(response);
2346
+ return response;
2361
2347
  };
2362
2348
  exports.de_CreatePolicyVersionCommand = de_CreatePolicyVersionCommand;
2363
2349
  const de_CreatePolicyVersionCommandError = async (output, context) => {
@@ -2384,10 +2370,9 @@ const de_CreatePolicyVersionCommandError = async (output, context) => {
2384
2370
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2385
2371
  default:
2386
2372
  const parsedBody = parsedOutput.body;
2387
- (0, smithy_client_1.throwDefaultError)({
2373
+ return throwDefaultError({
2388
2374
  output,
2389
2375
  parsedBody: parsedBody.Error,
2390
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2391
2376
  errorCode,
2392
2377
  });
2393
2378
  }
@@ -2403,7 +2388,7 @@ const de_CreateRoleCommand = async (output, context) => {
2403
2388
  $metadata: deserializeMetadata(output),
2404
2389
  ...contents,
2405
2390
  };
2406
- return Promise.resolve(response);
2391
+ return response;
2407
2392
  };
2408
2393
  exports.de_CreateRoleCommand = de_CreateRoleCommand;
2409
2394
  const de_CreateRoleCommandError = async (output, context) => {
@@ -2433,10 +2418,9 @@ const de_CreateRoleCommandError = async (output, context) => {
2433
2418
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2434
2419
  default:
2435
2420
  const parsedBody = parsedOutput.body;
2436
- (0, smithy_client_1.throwDefaultError)({
2421
+ return throwDefaultError({
2437
2422
  output,
2438
2423
  parsedBody: parsedBody.Error,
2439
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2440
2424
  errorCode,
2441
2425
  });
2442
2426
  }
@@ -2452,7 +2436,7 @@ const de_CreateSAMLProviderCommand = async (output, context) => {
2452
2436
  $metadata: deserializeMetadata(output),
2453
2437
  ...contents,
2454
2438
  };
2455
- return Promise.resolve(response);
2439
+ return response;
2456
2440
  };
2457
2441
  exports.de_CreateSAMLProviderCommand = de_CreateSAMLProviderCommand;
2458
2442
  const de_CreateSAMLProviderCommandError = async (output, context) => {
@@ -2479,10 +2463,9 @@ const de_CreateSAMLProviderCommandError = async (output, context) => {
2479
2463
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2480
2464
  default:
2481
2465
  const parsedBody = parsedOutput.body;
2482
- (0, smithy_client_1.throwDefaultError)({
2466
+ return throwDefaultError({
2483
2467
  output,
2484
2468
  parsedBody: parsedBody.Error,
2485
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2486
2469
  errorCode,
2487
2470
  });
2488
2471
  }
@@ -2498,7 +2481,7 @@ const de_CreateServiceLinkedRoleCommand = async (output, context) => {
2498
2481
  $metadata: deserializeMetadata(output),
2499
2482
  ...contents,
2500
2483
  };
2501
- return Promise.resolve(response);
2484
+ return response;
2502
2485
  };
2503
2486
  exports.de_CreateServiceLinkedRoleCommand = de_CreateServiceLinkedRoleCommand;
2504
2487
  const de_CreateServiceLinkedRoleCommandError = async (output, context) => {
@@ -2522,10 +2505,9 @@ const de_CreateServiceLinkedRoleCommandError = async (output, context) => {
2522
2505
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2523
2506
  default:
2524
2507
  const parsedBody = parsedOutput.body;
2525
- (0, smithy_client_1.throwDefaultError)({
2508
+ return throwDefaultError({
2526
2509
  output,
2527
2510
  parsedBody: parsedBody.Error,
2528
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2529
2511
  errorCode,
2530
2512
  });
2531
2513
  }
@@ -2541,7 +2523,7 @@ const de_CreateServiceSpecificCredentialCommand = async (output, context) => {
2541
2523
  $metadata: deserializeMetadata(output),
2542
2524
  ...contents,
2543
2525
  };
2544
- return Promise.resolve(response);
2526
+ return response;
2545
2527
  };
2546
2528
  exports.de_CreateServiceSpecificCredentialCommand = de_CreateServiceSpecificCredentialCommand;
2547
2529
  const de_CreateServiceSpecificCredentialCommandError = async (output, context) => {
@@ -2562,10 +2544,9 @@ const de_CreateServiceSpecificCredentialCommandError = async (output, context) =
2562
2544
  throw await de_ServiceNotSupportedExceptionRes(parsedOutput, context);
2563
2545
  default:
2564
2546
  const parsedBody = parsedOutput.body;
2565
- (0, smithy_client_1.throwDefaultError)({
2547
+ return throwDefaultError({
2566
2548
  output,
2567
2549
  parsedBody: parsedBody.Error,
2568
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2569
2550
  errorCode,
2570
2551
  });
2571
2552
  }
@@ -2581,7 +2562,7 @@ const de_CreateUserCommand = async (output, context) => {
2581
2562
  $metadata: deserializeMetadata(output),
2582
2563
  ...contents,
2583
2564
  };
2584
- return Promise.resolve(response);
2565
+ return response;
2585
2566
  };
2586
2567
  exports.de_CreateUserCommand = de_CreateUserCommand;
2587
2568
  const de_CreateUserCommandError = async (output, context) => {
@@ -2611,10 +2592,9 @@ const de_CreateUserCommandError = async (output, context) => {
2611
2592
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2612
2593
  default:
2613
2594
  const parsedBody = parsedOutput.body;
2614
- (0, smithy_client_1.throwDefaultError)({
2595
+ return throwDefaultError({
2615
2596
  output,
2616
2597
  parsedBody: parsedBody.Error,
2617
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2618
2598
  errorCode,
2619
2599
  });
2620
2600
  }
@@ -2630,7 +2610,7 @@ const de_CreateVirtualMFADeviceCommand = async (output, context) => {
2630
2610
  $metadata: deserializeMetadata(output),
2631
2611
  ...contents,
2632
2612
  };
2633
- return Promise.resolve(response);
2613
+ return response;
2634
2614
  };
2635
2615
  exports.de_CreateVirtualMFADeviceCommand = de_CreateVirtualMFADeviceCommand;
2636
2616
  const de_CreateVirtualMFADeviceCommandError = async (output, context) => {
@@ -2657,10 +2637,9 @@ const de_CreateVirtualMFADeviceCommandError = async (output, context) => {
2657
2637
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2658
2638
  default:
2659
2639
  const parsedBody = parsedOutput.body;
2660
- (0, smithy_client_1.throwDefaultError)({
2640
+ return throwDefaultError({
2661
2641
  output,
2662
2642
  parsedBody: parsedBody.Error,
2663
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2664
2643
  errorCode,
2665
2644
  });
2666
2645
  }
@@ -2673,7 +2652,7 @@ const de_DeactivateMFADeviceCommand = async (output, context) => {
2673
2652
  const response = {
2674
2653
  $metadata: deserializeMetadata(output),
2675
2654
  };
2676
- return Promise.resolve(response);
2655
+ return response;
2677
2656
  };
2678
2657
  exports.de_DeactivateMFADeviceCommand = de_DeactivateMFADeviceCommand;
2679
2658
  const de_DeactivateMFADeviceCommandError = async (output, context) => {
@@ -2697,10 +2676,9 @@ const de_DeactivateMFADeviceCommandError = async (output, context) => {
2697
2676
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2698
2677
  default:
2699
2678
  const parsedBody = parsedOutput.body;
2700
- (0, smithy_client_1.throwDefaultError)({
2679
+ return throwDefaultError({
2701
2680
  output,
2702
2681
  parsedBody: parsedBody.Error,
2703
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2704
2682
  errorCode,
2705
2683
  });
2706
2684
  }
@@ -2713,7 +2691,7 @@ const de_DeleteAccessKeyCommand = async (output, context) => {
2713
2691
  const response = {
2714
2692
  $metadata: deserializeMetadata(output),
2715
2693
  };
2716
- return Promise.resolve(response);
2694
+ return response;
2717
2695
  };
2718
2696
  exports.de_DeleteAccessKeyCommand = de_DeleteAccessKeyCommand;
2719
2697
  const de_DeleteAccessKeyCommandError = async (output, context) => {
@@ -2734,10 +2712,9 @@ const de_DeleteAccessKeyCommandError = async (output, context) => {
2734
2712
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2735
2713
  default:
2736
2714
  const parsedBody = parsedOutput.body;
2737
- (0, smithy_client_1.throwDefaultError)({
2715
+ return throwDefaultError({
2738
2716
  output,
2739
2717
  parsedBody: parsedBody.Error,
2740
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2741
2718
  errorCode,
2742
2719
  });
2743
2720
  }
@@ -2750,7 +2727,7 @@ const de_DeleteAccountAliasCommand = async (output, context) => {
2750
2727
  const response = {
2751
2728
  $metadata: deserializeMetadata(output),
2752
2729
  };
2753
- return Promise.resolve(response);
2730
+ return response;
2754
2731
  };
2755
2732
  exports.de_DeleteAccountAliasCommand = de_DeleteAccountAliasCommand;
2756
2733
  const de_DeleteAccountAliasCommandError = async (output, context) => {
@@ -2771,10 +2748,9 @@ const de_DeleteAccountAliasCommandError = async (output, context) => {
2771
2748
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2772
2749
  default:
2773
2750
  const parsedBody = parsedOutput.body;
2774
- (0, smithy_client_1.throwDefaultError)({
2751
+ return throwDefaultError({
2775
2752
  output,
2776
2753
  parsedBody: parsedBody.Error,
2777
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2778
2754
  errorCode,
2779
2755
  });
2780
2756
  }
@@ -2787,7 +2763,7 @@ const de_DeleteAccountPasswordPolicyCommand = async (output, context) => {
2787
2763
  const response = {
2788
2764
  $metadata: deserializeMetadata(output),
2789
2765
  };
2790
- return Promise.resolve(response);
2766
+ return response;
2791
2767
  };
2792
2768
  exports.de_DeleteAccountPasswordPolicyCommand = de_DeleteAccountPasswordPolicyCommand;
2793
2769
  const de_DeleteAccountPasswordPolicyCommandError = async (output, context) => {
@@ -2808,10 +2784,9 @@ const de_DeleteAccountPasswordPolicyCommandError = async (output, context) => {
2808
2784
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2809
2785
  default:
2810
2786
  const parsedBody = parsedOutput.body;
2811
- (0, smithy_client_1.throwDefaultError)({
2787
+ return throwDefaultError({
2812
2788
  output,
2813
2789
  parsedBody: parsedBody.Error,
2814
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2815
2790
  errorCode,
2816
2791
  });
2817
2792
  }
@@ -2824,7 +2799,7 @@ const de_DeleteGroupCommand = async (output, context) => {
2824
2799
  const response = {
2825
2800
  $metadata: deserializeMetadata(output),
2826
2801
  };
2827
- return Promise.resolve(response);
2802
+ return response;
2828
2803
  };
2829
2804
  exports.de_DeleteGroupCommand = de_DeleteGroupCommand;
2830
2805
  const de_DeleteGroupCommandError = async (output, context) => {
@@ -2848,10 +2823,9 @@ const de_DeleteGroupCommandError = async (output, context) => {
2848
2823
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2849
2824
  default:
2850
2825
  const parsedBody = parsedOutput.body;
2851
- (0, smithy_client_1.throwDefaultError)({
2826
+ return throwDefaultError({
2852
2827
  output,
2853
2828
  parsedBody: parsedBody.Error,
2854
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2855
2829
  errorCode,
2856
2830
  });
2857
2831
  }
@@ -2864,7 +2838,7 @@ const de_DeleteGroupPolicyCommand = async (output, context) => {
2864
2838
  const response = {
2865
2839
  $metadata: deserializeMetadata(output),
2866
2840
  };
2867
- return Promise.resolve(response);
2841
+ return response;
2868
2842
  };
2869
2843
  exports.de_DeleteGroupPolicyCommand = de_DeleteGroupPolicyCommand;
2870
2844
  const de_DeleteGroupPolicyCommandError = async (output, context) => {
@@ -2885,10 +2859,9 @@ const de_DeleteGroupPolicyCommandError = async (output, context) => {
2885
2859
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2886
2860
  default:
2887
2861
  const parsedBody = parsedOutput.body;
2888
- (0, smithy_client_1.throwDefaultError)({
2862
+ return throwDefaultError({
2889
2863
  output,
2890
2864
  parsedBody: parsedBody.Error,
2891
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2892
2865
  errorCode,
2893
2866
  });
2894
2867
  }
@@ -2901,7 +2874,7 @@ const de_DeleteInstanceProfileCommand = async (output, context) => {
2901
2874
  const response = {
2902
2875
  $metadata: deserializeMetadata(output),
2903
2876
  };
2904
- return Promise.resolve(response);
2877
+ return response;
2905
2878
  };
2906
2879
  exports.de_DeleteInstanceProfileCommand = de_DeleteInstanceProfileCommand;
2907
2880
  const de_DeleteInstanceProfileCommandError = async (output, context) => {
@@ -2925,10 +2898,9 @@ const de_DeleteInstanceProfileCommandError = async (output, context) => {
2925
2898
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2926
2899
  default:
2927
2900
  const parsedBody = parsedOutput.body;
2928
- (0, smithy_client_1.throwDefaultError)({
2901
+ return throwDefaultError({
2929
2902
  output,
2930
2903
  parsedBody: parsedBody.Error,
2931
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2932
2904
  errorCode,
2933
2905
  });
2934
2906
  }
@@ -2941,7 +2913,7 @@ const de_DeleteLoginProfileCommand = async (output, context) => {
2941
2913
  const response = {
2942
2914
  $metadata: deserializeMetadata(output),
2943
2915
  };
2944
- return Promise.resolve(response);
2916
+ return response;
2945
2917
  };
2946
2918
  exports.de_DeleteLoginProfileCommand = de_DeleteLoginProfileCommand;
2947
2919
  const de_DeleteLoginProfileCommandError = async (output, context) => {
@@ -2965,10 +2937,9 @@ const de_DeleteLoginProfileCommandError = async (output, context) => {
2965
2937
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2966
2938
  default:
2967
2939
  const parsedBody = parsedOutput.body;
2968
- (0, smithy_client_1.throwDefaultError)({
2940
+ return throwDefaultError({
2969
2941
  output,
2970
2942
  parsedBody: parsedBody.Error,
2971
- exceptionCtor: IAMServiceException_1.IAMServiceException,
2972
2943
  errorCode,
2973
2944
  });
2974
2945
  }
@@ -2981,7 +2952,7 @@ const de_DeleteOpenIDConnectProviderCommand = async (output, context) => {
2981
2952
  const response = {
2982
2953
  $metadata: deserializeMetadata(output),
2983
2954
  };
2984
- return Promise.resolve(response);
2955
+ return response;
2985
2956
  };
2986
2957
  exports.de_DeleteOpenIDConnectProviderCommand = de_DeleteOpenIDConnectProviderCommand;
2987
2958
  const de_DeleteOpenIDConnectProviderCommandError = async (output, context) => {
@@ -3002,10 +2973,9 @@ const de_DeleteOpenIDConnectProviderCommandError = async (output, context) => {
3002
2973
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3003
2974
  default:
3004
2975
  const parsedBody = parsedOutput.body;
3005
- (0, smithy_client_1.throwDefaultError)({
2976
+ return throwDefaultError({
3006
2977
  output,
3007
2978
  parsedBody: parsedBody.Error,
3008
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3009
2979
  errorCode,
3010
2980
  });
3011
2981
  }
@@ -3018,7 +2988,7 @@ const de_DeletePolicyCommand = async (output, context) => {
3018
2988
  const response = {
3019
2989
  $metadata: deserializeMetadata(output),
3020
2990
  };
3021
- return Promise.resolve(response);
2991
+ return response;
3022
2992
  };
3023
2993
  exports.de_DeletePolicyCommand = de_DeletePolicyCommand;
3024
2994
  const de_DeletePolicyCommandError = async (output, context) => {
@@ -3045,10 +3015,9 @@ const de_DeletePolicyCommandError = async (output, context) => {
3045
3015
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3046
3016
  default:
3047
3017
  const parsedBody = parsedOutput.body;
3048
- (0, smithy_client_1.throwDefaultError)({
3018
+ return throwDefaultError({
3049
3019
  output,
3050
3020
  parsedBody: parsedBody.Error,
3051
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3052
3021
  errorCode,
3053
3022
  });
3054
3023
  }
@@ -3061,7 +3030,7 @@ const de_DeletePolicyVersionCommand = async (output, context) => {
3061
3030
  const response = {
3062
3031
  $metadata: deserializeMetadata(output),
3063
3032
  };
3064
- return Promise.resolve(response);
3033
+ return response;
3065
3034
  };
3066
3035
  exports.de_DeletePolicyVersionCommand = de_DeletePolicyVersionCommand;
3067
3036
  const de_DeletePolicyVersionCommandError = async (output, context) => {
@@ -3088,10 +3057,9 @@ const de_DeletePolicyVersionCommandError = async (output, context) => {
3088
3057
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3089
3058
  default:
3090
3059
  const parsedBody = parsedOutput.body;
3091
- (0, smithy_client_1.throwDefaultError)({
3060
+ return throwDefaultError({
3092
3061
  output,
3093
3062
  parsedBody: parsedBody.Error,
3094
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3095
3063
  errorCode,
3096
3064
  });
3097
3065
  }
@@ -3104,7 +3072,7 @@ const de_DeleteRoleCommand = async (output, context) => {
3104
3072
  const response = {
3105
3073
  $metadata: deserializeMetadata(output),
3106
3074
  };
3107
- return Promise.resolve(response);
3075
+ return response;
3108
3076
  };
3109
3077
  exports.de_DeleteRoleCommand = de_DeleteRoleCommand;
3110
3078
  const de_DeleteRoleCommandError = async (output, context) => {
@@ -3134,10 +3102,9 @@ const de_DeleteRoleCommandError = async (output, context) => {
3134
3102
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
3135
3103
  default:
3136
3104
  const parsedBody = parsedOutput.body;
3137
- (0, smithy_client_1.throwDefaultError)({
3105
+ return throwDefaultError({
3138
3106
  output,
3139
3107
  parsedBody: parsedBody.Error,
3140
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3141
3108
  errorCode,
3142
3109
  });
3143
3110
  }
@@ -3150,7 +3117,7 @@ const de_DeleteRolePermissionsBoundaryCommand = async (output, context) => {
3150
3117
  const response = {
3151
3118
  $metadata: deserializeMetadata(output),
3152
3119
  };
3153
- return Promise.resolve(response);
3120
+ return response;
3154
3121
  };
3155
3122
  exports.de_DeleteRolePermissionsBoundaryCommand = de_DeleteRolePermissionsBoundaryCommand;
3156
3123
  const de_DeleteRolePermissionsBoundaryCommandError = async (output, context) => {
@@ -3171,10 +3138,9 @@ const de_DeleteRolePermissionsBoundaryCommandError = async (output, context) =>
3171
3138
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
3172
3139
  default:
3173
3140
  const parsedBody = parsedOutput.body;
3174
- (0, smithy_client_1.throwDefaultError)({
3141
+ return throwDefaultError({
3175
3142
  output,
3176
3143
  parsedBody: parsedBody.Error,
3177
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3178
3144
  errorCode,
3179
3145
  });
3180
3146
  }
@@ -3187,7 +3153,7 @@ const de_DeleteRolePolicyCommand = async (output, context) => {
3187
3153
  const response = {
3188
3154
  $metadata: deserializeMetadata(output),
3189
3155
  };
3190
- return Promise.resolve(response);
3156
+ return response;
3191
3157
  };
3192
3158
  exports.de_DeleteRolePolicyCommand = de_DeleteRolePolicyCommand;
3193
3159
  const de_DeleteRolePolicyCommandError = async (output, context) => {
@@ -3211,10 +3177,9 @@ const de_DeleteRolePolicyCommandError = async (output, context) => {
3211
3177
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
3212
3178
  default:
3213
3179
  const parsedBody = parsedOutput.body;
3214
- (0, smithy_client_1.throwDefaultError)({
3180
+ return throwDefaultError({
3215
3181
  output,
3216
3182
  parsedBody: parsedBody.Error,
3217
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3218
3183
  errorCode,
3219
3184
  });
3220
3185
  }
@@ -3227,7 +3192,7 @@ const de_DeleteSAMLProviderCommand = async (output, context) => {
3227
3192
  const response = {
3228
3193
  $metadata: deserializeMetadata(output),
3229
3194
  };
3230
- return Promise.resolve(response);
3195
+ return response;
3231
3196
  };
3232
3197
  exports.de_DeleteSAMLProviderCommand = de_DeleteSAMLProviderCommand;
3233
3198
  const de_DeleteSAMLProviderCommandError = async (output, context) => {
@@ -3251,10 +3216,9 @@ const de_DeleteSAMLProviderCommandError = async (output, context) => {
3251
3216
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3252
3217
  default:
3253
3218
  const parsedBody = parsedOutput.body;
3254
- (0, smithy_client_1.throwDefaultError)({
3219
+ return throwDefaultError({
3255
3220
  output,
3256
3221
  parsedBody: parsedBody.Error,
3257
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3258
3222
  errorCode,
3259
3223
  });
3260
3224
  }
@@ -3267,7 +3231,7 @@ const de_DeleteServerCertificateCommand = async (output, context) => {
3267
3231
  const response = {
3268
3232
  $metadata: deserializeMetadata(output),
3269
3233
  };
3270
- return Promise.resolve(response);
3234
+ return response;
3271
3235
  };
3272
3236
  exports.de_DeleteServerCertificateCommand = de_DeleteServerCertificateCommand;
3273
3237
  const de_DeleteServerCertificateCommandError = async (output, context) => {
@@ -3291,10 +3255,9 @@ const de_DeleteServerCertificateCommandError = async (output, context) => {
3291
3255
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3292
3256
  default:
3293
3257
  const parsedBody = parsedOutput.body;
3294
- (0, smithy_client_1.throwDefaultError)({
3258
+ return throwDefaultError({
3295
3259
  output,
3296
3260
  parsedBody: parsedBody.Error,
3297
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3298
3261
  errorCode,
3299
3262
  });
3300
3263
  }
@@ -3310,7 +3273,7 @@ const de_DeleteServiceLinkedRoleCommand = async (output, context) => {
3310
3273
  $metadata: deserializeMetadata(output),
3311
3274
  ...contents,
3312
3275
  };
3313
- return Promise.resolve(response);
3276
+ return response;
3314
3277
  };
3315
3278
  exports.de_DeleteServiceLinkedRoleCommand = de_DeleteServiceLinkedRoleCommand;
3316
3279
  const de_DeleteServiceLinkedRoleCommandError = async (output, context) => {
@@ -3331,10 +3294,9 @@ const de_DeleteServiceLinkedRoleCommandError = async (output, context) => {
3331
3294
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3332
3295
  default:
3333
3296
  const parsedBody = parsedOutput.body;
3334
- (0, smithy_client_1.throwDefaultError)({
3297
+ return throwDefaultError({
3335
3298
  output,
3336
3299
  parsedBody: parsedBody.Error,
3337
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3338
3300
  errorCode,
3339
3301
  });
3340
3302
  }
@@ -3347,7 +3309,7 @@ const de_DeleteServiceSpecificCredentialCommand = async (output, context) => {
3347
3309
  const response = {
3348
3310
  $metadata: deserializeMetadata(output),
3349
3311
  };
3350
- return Promise.resolve(response);
3312
+ return response;
3351
3313
  };
3352
3314
  exports.de_DeleteServiceSpecificCredentialCommand = de_DeleteServiceSpecificCredentialCommand;
3353
3315
  const de_DeleteServiceSpecificCredentialCommandError = async (output, context) => {
@@ -3362,10 +3324,9 @@ const de_DeleteServiceSpecificCredentialCommandError = async (output, context) =
3362
3324
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
3363
3325
  default:
3364
3326
  const parsedBody = parsedOutput.body;
3365
- (0, smithy_client_1.throwDefaultError)({
3327
+ return throwDefaultError({
3366
3328
  output,
3367
3329
  parsedBody: parsedBody.Error,
3368
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3369
3330
  errorCode,
3370
3331
  });
3371
3332
  }
@@ -3378,7 +3339,7 @@ const de_DeleteSigningCertificateCommand = async (output, context) => {
3378
3339
  const response = {
3379
3340
  $metadata: deserializeMetadata(output),
3380
3341
  };
3381
- return Promise.resolve(response);
3342
+ return response;
3382
3343
  };
3383
3344
  exports.de_DeleteSigningCertificateCommand = de_DeleteSigningCertificateCommand;
3384
3345
  const de_DeleteSigningCertificateCommandError = async (output, context) => {
@@ -3399,10 +3360,9 @@ const de_DeleteSigningCertificateCommandError = async (output, context) => {
3399
3360
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3400
3361
  default:
3401
3362
  const parsedBody = parsedOutput.body;
3402
- (0, smithy_client_1.throwDefaultError)({
3363
+ return throwDefaultError({
3403
3364
  output,
3404
3365
  parsedBody: parsedBody.Error,
3405
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3406
3366
  errorCode,
3407
3367
  });
3408
3368
  }
@@ -3415,7 +3375,7 @@ const de_DeleteSSHPublicKeyCommand = async (output, context) => {
3415
3375
  const response = {
3416
3376
  $metadata: deserializeMetadata(output),
3417
3377
  };
3418
- return Promise.resolve(response);
3378
+ return response;
3419
3379
  };
3420
3380
  exports.de_DeleteSSHPublicKeyCommand = de_DeleteSSHPublicKeyCommand;
3421
3381
  const de_DeleteSSHPublicKeyCommandError = async (output, context) => {
@@ -3430,10 +3390,9 @@ const de_DeleteSSHPublicKeyCommandError = async (output, context) => {
3430
3390
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
3431
3391
  default:
3432
3392
  const parsedBody = parsedOutput.body;
3433
- (0, smithy_client_1.throwDefaultError)({
3393
+ return throwDefaultError({
3434
3394
  output,
3435
3395
  parsedBody: parsedBody.Error,
3436
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3437
3396
  errorCode,
3438
3397
  });
3439
3398
  }
@@ -3446,7 +3405,7 @@ const de_DeleteUserCommand = async (output, context) => {
3446
3405
  const response = {
3447
3406
  $metadata: deserializeMetadata(output),
3448
3407
  };
3449
- return Promise.resolve(response);
3408
+ return response;
3450
3409
  };
3451
3410
  exports.de_DeleteUserCommand = de_DeleteUserCommand;
3452
3411
  const de_DeleteUserCommandError = async (output, context) => {
@@ -3473,10 +3432,9 @@ const de_DeleteUserCommandError = async (output, context) => {
3473
3432
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3474
3433
  default:
3475
3434
  const parsedBody = parsedOutput.body;
3476
- (0, smithy_client_1.throwDefaultError)({
3435
+ return throwDefaultError({
3477
3436
  output,
3478
3437
  parsedBody: parsedBody.Error,
3479
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3480
3438
  errorCode,
3481
3439
  });
3482
3440
  }
@@ -3489,7 +3447,7 @@ const de_DeleteUserPermissionsBoundaryCommand = async (output, context) => {
3489
3447
  const response = {
3490
3448
  $metadata: deserializeMetadata(output),
3491
3449
  };
3492
- return Promise.resolve(response);
3450
+ return response;
3493
3451
  };
3494
3452
  exports.de_DeleteUserPermissionsBoundaryCommand = de_DeleteUserPermissionsBoundaryCommand;
3495
3453
  const de_DeleteUserPermissionsBoundaryCommandError = async (output, context) => {
@@ -3507,10 +3465,9 @@ const de_DeleteUserPermissionsBoundaryCommandError = async (output, context) =>
3507
3465
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3508
3466
  default:
3509
3467
  const parsedBody = parsedOutput.body;
3510
- (0, smithy_client_1.throwDefaultError)({
3468
+ return throwDefaultError({
3511
3469
  output,
3512
3470
  parsedBody: parsedBody.Error,
3513
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3514
3471
  errorCode,
3515
3472
  });
3516
3473
  }
@@ -3523,7 +3480,7 @@ const de_DeleteUserPolicyCommand = async (output, context) => {
3523
3480
  const response = {
3524
3481
  $metadata: deserializeMetadata(output),
3525
3482
  };
3526
- return Promise.resolve(response);
3483
+ return response;
3527
3484
  };
3528
3485
  exports.de_DeleteUserPolicyCommand = de_DeleteUserPolicyCommand;
3529
3486
  const de_DeleteUserPolicyCommandError = async (output, context) => {
@@ -3544,10 +3501,9 @@ const de_DeleteUserPolicyCommandError = async (output, context) => {
3544
3501
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3545
3502
  default:
3546
3503
  const parsedBody = parsedOutput.body;
3547
- (0, smithy_client_1.throwDefaultError)({
3504
+ return throwDefaultError({
3548
3505
  output,
3549
3506
  parsedBody: parsedBody.Error,
3550
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3551
3507
  errorCode,
3552
3508
  });
3553
3509
  }
@@ -3560,7 +3516,7 @@ const de_DeleteVirtualMFADeviceCommand = async (output, context) => {
3560
3516
  const response = {
3561
3517
  $metadata: deserializeMetadata(output),
3562
3518
  };
3563
- return Promise.resolve(response);
3519
+ return response;
3564
3520
  };
3565
3521
  exports.de_DeleteVirtualMFADeviceCommand = de_DeleteVirtualMFADeviceCommand;
3566
3522
  const de_DeleteVirtualMFADeviceCommandError = async (output, context) => {
@@ -3584,10 +3540,9 @@ const de_DeleteVirtualMFADeviceCommandError = async (output, context) => {
3584
3540
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3585
3541
  default:
3586
3542
  const parsedBody = parsedOutput.body;
3587
- (0, smithy_client_1.throwDefaultError)({
3543
+ return throwDefaultError({
3588
3544
  output,
3589
3545
  parsedBody: parsedBody.Error,
3590
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3591
3546
  errorCode,
3592
3547
  });
3593
3548
  }
@@ -3600,7 +3555,7 @@ const de_DetachGroupPolicyCommand = async (output, context) => {
3600
3555
  const response = {
3601
3556
  $metadata: deserializeMetadata(output),
3602
3557
  };
3603
- return Promise.resolve(response);
3558
+ return response;
3604
3559
  };
3605
3560
  exports.de_DetachGroupPolicyCommand = de_DetachGroupPolicyCommand;
3606
3561
  const de_DetachGroupPolicyCommandError = async (output, context) => {
@@ -3624,10 +3579,9 @@ const de_DetachGroupPolicyCommandError = async (output, context) => {
3624
3579
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3625
3580
  default:
3626
3581
  const parsedBody = parsedOutput.body;
3627
- (0, smithy_client_1.throwDefaultError)({
3582
+ return throwDefaultError({
3628
3583
  output,
3629
3584
  parsedBody: parsedBody.Error,
3630
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3631
3585
  errorCode,
3632
3586
  });
3633
3587
  }
@@ -3640,7 +3594,7 @@ const de_DetachRolePolicyCommand = async (output, context) => {
3640
3594
  const response = {
3641
3595
  $metadata: deserializeMetadata(output),
3642
3596
  };
3643
- return Promise.resolve(response);
3597
+ return response;
3644
3598
  };
3645
3599
  exports.de_DetachRolePolicyCommand = de_DetachRolePolicyCommand;
3646
3600
  const de_DetachRolePolicyCommandError = async (output, context) => {
@@ -3667,10 +3621,9 @@ const de_DetachRolePolicyCommandError = async (output, context) => {
3667
3621
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
3668
3622
  default:
3669
3623
  const parsedBody = parsedOutput.body;
3670
- (0, smithy_client_1.throwDefaultError)({
3624
+ return throwDefaultError({
3671
3625
  output,
3672
3626
  parsedBody: parsedBody.Error,
3673
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3674
3627
  errorCode,
3675
3628
  });
3676
3629
  }
@@ -3683,7 +3636,7 @@ const de_DetachUserPolicyCommand = async (output, context) => {
3683
3636
  const response = {
3684
3637
  $metadata: deserializeMetadata(output),
3685
3638
  };
3686
- return Promise.resolve(response);
3639
+ return response;
3687
3640
  };
3688
3641
  exports.de_DetachUserPolicyCommand = de_DetachUserPolicyCommand;
3689
3642
  const de_DetachUserPolicyCommandError = async (output, context) => {
@@ -3707,10 +3660,9 @@ const de_DetachUserPolicyCommandError = async (output, context) => {
3707
3660
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3708
3661
  default:
3709
3662
  const parsedBody = parsedOutput.body;
3710
- (0, smithy_client_1.throwDefaultError)({
3663
+ return throwDefaultError({
3711
3664
  output,
3712
3665
  parsedBody: parsedBody.Error,
3713
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3714
3666
  errorCode,
3715
3667
  });
3716
3668
  }
@@ -3723,7 +3675,7 @@ const de_EnableMFADeviceCommand = async (output, context) => {
3723
3675
  const response = {
3724
3676
  $metadata: deserializeMetadata(output),
3725
3677
  };
3726
- return Promise.resolve(response);
3678
+ return response;
3727
3679
  };
3728
3680
  exports.de_EnableMFADeviceCommand = de_EnableMFADeviceCommand;
3729
3681
  const de_EnableMFADeviceCommandError = async (output, context) => {
@@ -3753,10 +3705,9 @@ const de_EnableMFADeviceCommandError = async (output, context) => {
3753
3705
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3754
3706
  default:
3755
3707
  const parsedBody = parsedOutput.body;
3756
- (0, smithy_client_1.throwDefaultError)({
3708
+ return throwDefaultError({
3757
3709
  output,
3758
3710
  parsedBody: parsedBody.Error,
3759
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3760
3711
  errorCode,
3761
3712
  });
3762
3713
  }
@@ -3772,7 +3723,7 @@ const de_GenerateCredentialReportCommand = async (output, context) => {
3772
3723
  $metadata: deserializeMetadata(output),
3773
3724
  ...contents,
3774
3725
  };
3775
- return Promise.resolve(response);
3726
+ return response;
3776
3727
  };
3777
3728
  exports.de_GenerateCredentialReportCommand = de_GenerateCredentialReportCommand;
3778
3729
  const de_GenerateCredentialReportCommandError = async (output, context) => {
@@ -3790,10 +3741,9 @@ const de_GenerateCredentialReportCommandError = async (output, context) => {
3790
3741
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3791
3742
  default:
3792
3743
  const parsedBody = parsedOutput.body;
3793
- (0, smithy_client_1.throwDefaultError)({
3744
+ return throwDefaultError({
3794
3745
  output,
3795
3746
  parsedBody: parsedBody.Error,
3796
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3797
3747
  errorCode,
3798
3748
  });
3799
3749
  }
@@ -3809,7 +3759,7 @@ const de_GenerateOrganizationsAccessReportCommand = async (output, context) => {
3809
3759
  $metadata: deserializeMetadata(output),
3810
3760
  ...contents,
3811
3761
  };
3812
- return Promise.resolve(response);
3762
+ return response;
3813
3763
  };
3814
3764
  exports.de_GenerateOrganizationsAccessReportCommand = de_GenerateOrganizationsAccessReportCommand;
3815
3765
  const de_GenerateOrganizationsAccessReportCommandError = async (output, context) => {
@@ -3824,10 +3774,9 @@ const de_GenerateOrganizationsAccessReportCommandError = async (output, context)
3824
3774
  throw await de_ReportGenerationLimitExceededExceptionRes(parsedOutput, context);
3825
3775
  default:
3826
3776
  const parsedBody = parsedOutput.body;
3827
- (0, smithy_client_1.throwDefaultError)({
3777
+ return throwDefaultError({
3828
3778
  output,
3829
3779
  parsedBody: parsedBody.Error,
3830
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3831
3780
  errorCode,
3832
3781
  });
3833
3782
  }
@@ -3843,7 +3792,7 @@ const de_GenerateServiceLastAccessedDetailsCommand = async (output, context) =>
3843
3792
  $metadata: deserializeMetadata(output),
3844
3793
  ...contents,
3845
3794
  };
3846
- return Promise.resolve(response);
3795
+ return response;
3847
3796
  };
3848
3797
  exports.de_GenerateServiceLastAccessedDetailsCommand = de_GenerateServiceLastAccessedDetailsCommand;
3849
3798
  const de_GenerateServiceLastAccessedDetailsCommandError = async (output, context) => {
@@ -3861,10 +3810,9 @@ const de_GenerateServiceLastAccessedDetailsCommandError = async (output, context
3861
3810
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
3862
3811
  default:
3863
3812
  const parsedBody = parsedOutput.body;
3864
- (0, smithy_client_1.throwDefaultError)({
3813
+ return throwDefaultError({
3865
3814
  output,
3866
3815
  parsedBody: parsedBody.Error,
3867
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3868
3816
  errorCode,
3869
3817
  });
3870
3818
  }
@@ -3880,7 +3828,7 @@ const de_GetAccessKeyLastUsedCommand = async (output, context) => {
3880
3828
  $metadata: deserializeMetadata(output),
3881
3829
  ...contents,
3882
3830
  };
3883
- return Promise.resolve(response);
3831
+ return response;
3884
3832
  };
3885
3833
  exports.de_GetAccessKeyLastUsedCommand = de_GetAccessKeyLastUsedCommand;
3886
3834
  const de_GetAccessKeyLastUsedCommandError = async (output, context) => {
@@ -3895,10 +3843,9 @@ const de_GetAccessKeyLastUsedCommandError = async (output, context) => {
3895
3843
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
3896
3844
  default:
3897
3845
  const parsedBody = parsedOutput.body;
3898
- (0, smithy_client_1.throwDefaultError)({
3846
+ return throwDefaultError({
3899
3847
  output,
3900
3848
  parsedBody: parsedBody.Error,
3901
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3902
3849
  errorCode,
3903
3850
  });
3904
3851
  }
@@ -3914,7 +3861,7 @@ const de_GetAccountAuthorizationDetailsCommand = async (output, context) => {
3914
3861
  $metadata: deserializeMetadata(output),
3915
3862
  ...contents,
3916
3863
  };
3917
- return Promise.resolve(response);
3864
+ return response;
3918
3865
  };
3919
3866
  exports.de_GetAccountAuthorizationDetailsCommand = de_GetAccountAuthorizationDetailsCommand;
3920
3867
  const de_GetAccountAuthorizationDetailsCommandError = async (output, context) => {
@@ -3929,10 +3876,9 @@ const de_GetAccountAuthorizationDetailsCommandError = async (output, context) =>
3929
3876
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3930
3877
  default:
3931
3878
  const parsedBody = parsedOutput.body;
3932
- (0, smithy_client_1.throwDefaultError)({
3879
+ return throwDefaultError({
3933
3880
  output,
3934
3881
  parsedBody: parsedBody.Error,
3935
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3936
3882
  errorCode,
3937
3883
  });
3938
3884
  }
@@ -3948,7 +3894,7 @@ const de_GetAccountPasswordPolicyCommand = async (output, context) => {
3948
3894
  $metadata: deserializeMetadata(output),
3949
3895
  ...contents,
3950
3896
  };
3951
- return Promise.resolve(response);
3897
+ return response;
3952
3898
  };
3953
3899
  exports.de_GetAccountPasswordPolicyCommand = de_GetAccountPasswordPolicyCommand;
3954
3900
  const de_GetAccountPasswordPolicyCommandError = async (output, context) => {
@@ -3966,10 +3912,9 @@ const de_GetAccountPasswordPolicyCommandError = async (output, context) => {
3966
3912
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3967
3913
  default:
3968
3914
  const parsedBody = parsedOutput.body;
3969
- (0, smithy_client_1.throwDefaultError)({
3915
+ return throwDefaultError({
3970
3916
  output,
3971
3917
  parsedBody: parsedBody.Error,
3972
- exceptionCtor: IAMServiceException_1.IAMServiceException,
3973
3918
  errorCode,
3974
3919
  });
3975
3920
  }
@@ -3985,7 +3930,7 @@ const de_GetAccountSummaryCommand = async (output, context) => {
3985
3930
  $metadata: deserializeMetadata(output),
3986
3931
  ...contents,
3987
3932
  };
3988
- return Promise.resolve(response);
3933
+ return response;
3989
3934
  };
3990
3935
  exports.de_GetAccountSummaryCommand = de_GetAccountSummaryCommand;
3991
3936
  const de_GetAccountSummaryCommandError = async (output, context) => {
@@ -4000,10 +3945,9 @@ const de_GetAccountSummaryCommandError = async (output, context) => {
4000
3945
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4001
3946
  default:
4002
3947
  const parsedBody = parsedOutput.body;
4003
- (0, smithy_client_1.throwDefaultError)({
3948
+ return throwDefaultError({
4004
3949
  output,
4005
3950
  parsedBody: parsedBody.Error,
4006
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4007
3951
  errorCode,
4008
3952
  });
4009
3953
  }
@@ -4019,7 +3963,7 @@ const de_GetContextKeysForCustomPolicyCommand = async (output, context) => {
4019
3963
  $metadata: deserializeMetadata(output),
4020
3964
  ...contents,
4021
3965
  };
4022
- return Promise.resolve(response);
3966
+ return response;
4023
3967
  };
4024
3968
  exports.de_GetContextKeysForCustomPolicyCommand = de_GetContextKeysForCustomPolicyCommand;
4025
3969
  const de_GetContextKeysForCustomPolicyCommandError = async (output, context) => {
@@ -4034,10 +3978,9 @@ const de_GetContextKeysForCustomPolicyCommandError = async (output, context) =>
4034
3978
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
4035
3979
  default:
4036
3980
  const parsedBody = parsedOutput.body;
4037
- (0, smithy_client_1.throwDefaultError)({
3981
+ return throwDefaultError({
4038
3982
  output,
4039
3983
  parsedBody: parsedBody.Error,
4040
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4041
3984
  errorCode,
4042
3985
  });
4043
3986
  }
@@ -4053,7 +3996,7 @@ const de_GetContextKeysForPrincipalPolicyCommand = async (output, context) => {
4053
3996
  $metadata: deserializeMetadata(output),
4054
3997
  ...contents,
4055
3998
  };
4056
- return Promise.resolve(response);
3999
+ return response;
4057
4000
  };
4058
4001
  exports.de_GetContextKeysForPrincipalPolicyCommand = de_GetContextKeysForPrincipalPolicyCommand;
4059
4002
  const de_GetContextKeysForPrincipalPolicyCommandError = async (output, context) => {
@@ -4071,10 +4014,9 @@ const de_GetContextKeysForPrincipalPolicyCommandError = async (output, context)
4071
4014
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
4072
4015
  default:
4073
4016
  const parsedBody = parsedOutput.body;
4074
- (0, smithy_client_1.throwDefaultError)({
4017
+ return throwDefaultError({
4075
4018
  output,
4076
4019
  parsedBody: parsedBody.Error,
4077
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4078
4020
  errorCode,
4079
4021
  });
4080
4022
  }
@@ -4090,7 +4032,7 @@ const de_GetCredentialReportCommand = async (output, context) => {
4090
4032
  $metadata: deserializeMetadata(output),
4091
4033
  ...contents,
4092
4034
  };
4093
- return Promise.resolve(response);
4035
+ return response;
4094
4036
  };
4095
4037
  exports.de_GetCredentialReportCommand = de_GetCredentialReportCommand;
4096
4038
  const de_GetCredentialReportCommandError = async (output, context) => {
@@ -4114,10 +4056,9 @@ const de_GetCredentialReportCommandError = async (output, context) => {
4114
4056
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4115
4057
  default:
4116
4058
  const parsedBody = parsedOutput.body;
4117
- (0, smithy_client_1.throwDefaultError)({
4059
+ return throwDefaultError({
4118
4060
  output,
4119
4061
  parsedBody: parsedBody.Error,
4120
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4121
4062
  errorCode,
4122
4063
  });
4123
4064
  }
@@ -4133,7 +4074,7 @@ const de_GetGroupCommand = async (output, context) => {
4133
4074
  $metadata: deserializeMetadata(output),
4134
4075
  ...contents,
4135
4076
  };
4136
- return Promise.resolve(response);
4077
+ return response;
4137
4078
  };
4138
4079
  exports.de_GetGroupCommand = de_GetGroupCommand;
4139
4080
  const de_GetGroupCommandError = async (output, context) => {
@@ -4151,10 +4092,9 @@ const de_GetGroupCommandError = async (output, context) => {
4151
4092
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4152
4093
  default:
4153
4094
  const parsedBody = parsedOutput.body;
4154
- (0, smithy_client_1.throwDefaultError)({
4095
+ return throwDefaultError({
4155
4096
  output,
4156
4097
  parsedBody: parsedBody.Error,
4157
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4158
4098
  errorCode,
4159
4099
  });
4160
4100
  }
@@ -4170,7 +4110,7 @@ const de_GetGroupPolicyCommand = async (output, context) => {
4170
4110
  $metadata: deserializeMetadata(output),
4171
4111
  ...contents,
4172
4112
  };
4173
- return Promise.resolve(response);
4113
+ return response;
4174
4114
  };
4175
4115
  exports.de_GetGroupPolicyCommand = de_GetGroupPolicyCommand;
4176
4116
  const de_GetGroupPolicyCommandError = async (output, context) => {
@@ -4188,10 +4128,9 @@ const de_GetGroupPolicyCommandError = async (output, context) => {
4188
4128
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4189
4129
  default:
4190
4130
  const parsedBody = parsedOutput.body;
4191
- (0, smithy_client_1.throwDefaultError)({
4131
+ return throwDefaultError({
4192
4132
  output,
4193
4133
  parsedBody: parsedBody.Error,
4194
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4195
4134
  errorCode,
4196
4135
  });
4197
4136
  }
@@ -4207,7 +4146,7 @@ const de_GetInstanceProfileCommand = async (output, context) => {
4207
4146
  $metadata: deserializeMetadata(output),
4208
4147
  ...contents,
4209
4148
  };
4210
- return Promise.resolve(response);
4149
+ return response;
4211
4150
  };
4212
4151
  exports.de_GetInstanceProfileCommand = de_GetInstanceProfileCommand;
4213
4152
  const de_GetInstanceProfileCommandError = async (output, context) => {
@@ -4225,10 +4164,9 @@ const de_GetInstanceProfileCommandError = async (output, context) => {
4225
4164
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4226
4165
  default:
4227
4166
  const parsedBody = parsedOutput.body;
4228
- (0, smithy_client_1.throwDefaultError)({
4167
+ return throwDefaultError({
4229
4168
  output,
4230
4169
  parsedBody: parsedBody.Error,
4231
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4232
4170
  errorCode,
4233
4171
  });
4234
4172
  }
@@ -4244,7 +4182,7 @@ const de_GetLoginProfileCommand = async (output, context) => {
4244
4182
  $metadata: deserializeMetadata(output),
4245
4183
  ...contents,
4246
4184
  };
4247
- return Promise.resolve(response);
4185
+ return response;
4248
4186
  };
4249
4187
  exports.de_GetLoginProfileCommand = de_GetLoginProfileCommand;
4250
4188
  const de_GetLoginProfileCommandError = async (output, context) => {
@@ -4262,10 +4200,9 @@ const de_GetLoginProfileCommandError = async (output, context) => {
4262
4200
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4263
4201
  default:
4264
4202
  const parsedBody = parsedOutput.body;
4265
- (0, smithy_client_1.throwDefaultError)({
4203
+ return throwDefaultError({
4266
4204
  output,
4267
4205
  parsedBody: parsedBody.Error,
4268
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4269
4206
  errorCode,
4270
4207
  });
4271
4208
  }
@@ -4281,7 +4218,7 @@ const de_GetOpenIDConnectProviderCommand = async (output, context) => {
4281
4218
  $metadata: deserializeMetadata(output),
4282
4219
  ...contents,
4283
4220
  };
4284
- return Promise.resolve(response);
4221
+ return response;
4285
4222
  };
4286
4223
  exports.de_GetOpenIDConnectProviderCommand = de_GetOpenIDConnectProviderCommand;
4287
4224
  const de_GetOpenIDConnectProviderCommandError = async (output, context) => {
@@ -4302,10 +4239,9 @@ const de_GetOpenIDConnectProviderCommandError = async (output, context) => {
4302
4239
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4303
4240
  default:
4304
4241
  const parsedBody = parsedOutput.body;
4305
- (0, smithy_client_1.throwDefaultError)({
4242
+ return throwDefaultError({
4306
4243
  output,
4307
4244
  parsedBody: parsedBody.Error,
4308
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4309
4245
  errorCode,
4310
4246
  });
4311
4247
  }
@@ -4321,7 +4257,7 @@ const de_GetOrganizationsAccessReportCommand = async (output, context) => {
4321
4257
  $metadata: deserializeMetadata(output),
4322
4258
  ...contents,
4323
4259
  };
4324
- return Promise.resolve(response);
4260
+ return response;
4325
4261
  };
4326
4262
  exports.de_GetOrganizationsAccessReportCommand = de_GetOrganizationsAccessReportCommand;
4327
4263
  const de_GetOrganizationsAccessReportCommandError = async (output, context) => {
@@ -4336,10 +4272,9 @@ const de_GetOrganizationsAccessReportCommandError = async (output, context) => {
4336
4272
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
4337
4273
  default:
4338
4274
  const parsedBody = parsedOutput.body;
4339
- (0, smithy_client_1.throwDefaultError)({
4275
+ return throwDefaultError({
4340
4276
  output,
4341
4277
  parsedBody: parsedBody.Error,
4342
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4343
4278
  errorCode,
4344
4279
  });
4345
4280
  }
@@ -4355,7 +4290,7 @@ const de_GetPolicyCommand = async (output, context) => {
4355
4290
  $metadata: deserializeMetadata(output),
4356
4291
  ...contents,
4357
4292
  };
4358
- return Promise.resolve(response);
4293
+ return response;
4359
4294
  };
4360
4295
  exports.de_GetPolicyCommand = de_GetPolicyCommand;
4361
4296
  const de_GetPolicyCommandError = async (output, context) => {
@@ -4376,10 +4311,9 @@ const de_GetPolicyCommandError = async (output, context) => {
4376
4311
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4377
4312
  default:
4378
4313
  const parsedBody = parsedOutput.body;
4379
- (0, smithy_client_1.throwDefaultError)({
4314
+ return throwDefaultError({
4380
4315
  output,
4381
4316
  parsedBody: parsedBody.Error,
4382
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4383
4317
  errorCode,
4384
4318
  });
4385
4319
  }
@@ -4395,7 +4329,7 @@ const de_GetPolicyVersionCommand = async (output, context) => {
4395
4329
  $metadata: deserializeMetadata(output),
4396
4330
  ...contents,
4397
4331
  };
4398
- return Promise.resolve(response);
4332
+ return response;
4399
4333
  };
4400
4334
  exports.de_GetPolicyVersionCommand = de_GetPolicyVersionCommand;
4401
4335
  const de_GetPolicyVersionCommandError = async (output, context) => {
@@ -4416,10 +4350,9 @@ const de_GetPolicyVersionCommandError = async (output, context) => {
4416
4350
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4417
4351
  default:
4418
4352
  const parsedBody = parsedOutput.body;
4419
- (0, smithy_client_1.throwDefaultError)({
4353
+ return throwDefaultError({
4420
4354
  output,
4421
4355
  parsedBody: parsedBody.Error,
4422
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4423
4356
  errorCode,
4424
4357
  });
4425
4358
  }
@@ -4435,7 +4368,7 @@ const de_GetRoleCommand = async (output, context) => {
4435
4368
  $metadata: deserializeMetadata(output),
4436
4369
  ...contents,
4437
4370
  };
4438
- return Promise.resolve(response);
4371
+ return response;
4439
4372
  };
4440
4373
  exports.de_GetRoleCommand = de_GetRoleCommand;
4441
4374
  const de_GetRoleCommandError = async (output, context) => {
@@ -4453,10 +4386,9 @@ const de_GetRoleCommandError = async (output, context) => {
4453
4386
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4454
4387
  default:
4455
4388
  const parsedBody = parsedOutput.body;
4456
- (0, smithy_client_1.throwDefaultError)({
4389
+ return throwDefaultError({
4457
4390
  output,
4458
4391
  parsedBody: parsedBody.Error,
4459
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4460
4392
  errorCode,
4461
4393
  });
4462
4394
  }
@@ -4472,7 +4404,7 @@ const de_GetRolePolicyCommand = async (output, context) => {
4472
4404
  $metadata: deserializeMetadata(output),
4473
4405
  ...contents,
4474
4406
  };
4475
- return Promise.resolve(response);
4407
+ return response;
4476
4408
  };
4477
4409
  exports.de_GetRolePolicyCommand = de_GetRolePolicyCommand;
4478
4410
  const de_GetRolePolicyCommandError = async (output, context) => {
@@ -4490,10 +4422,9 @@ const de_GetRolePolicyCommandError = async (output, context) => {
4490
4422
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4491
4423
  default:
4492
4424
  const parsedBody = parsedOutput.body;
4493
- (0, smithy_client_1.throwDefaultError)({
4425
+ return throwDefaultError({
4494
4426
  output,
4495
4427
  parsedBody: parsedBody.Error,
4496
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4497
4428
  errorCode,
4498
4429
  });
4499
4430
  }
@@ -4509,7 +4440,7 @@ const de_GetSAMLProviderCommand = async (output, context) => {
4509
4440
  $metadata: deserializeMetadata(output),
4510
4441
  ...contents,
4511
4442
  };
4512
- return Promise.resolve(response);
4443
+ return response;
4513
4444
  };
4514
4445
  exports.de_GetSAMLProviderCommand = de_GetSAMLProviderCommand;
4515
4446
  const de_GetSAMLProviderCommandError = async (output, context) => {
@@ -4530,10 +4461,9 @@ const de_GetSAMLProviderCommandError = async (output, context) => {
4530
4461
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4531
4462
  default:
4532
4463
  const parsedBody = parsedOutput.body;
4533
- (0, smithy_client_1.throwDefaultError)({
4464
+ return throwDefaultError({
4534
4465
  output,
4535
4466
  parsedBody: parsedBody.Error,
4536
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4537
4467
  errorCode,
4538
4468
  });
4539
4469
  }
@@ -4549,7 +4479,7 @@ const de_GetServerCertificateCommand = async (output, context) => {
4549
4479
  $metadata: deserializeMetadata(output),
4550
4480
  ...contents,
4551
4481
  };
4552
- return Promise.resolve(response);
4482
+ return response;
4553
4483
  };
4554
4484
  exports.de_GetServerCertificateCommand = de_GetServerCertificateCommand;
4555
4485
  const de_GetServerCertificateCommandError = async (output, context) => {
@@ -4567,10 +4497,9 @@ const de_GetServerCertificateCommandError = async (output, context) => {
4567
4497
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4568
4498
  default:
4569
4499
  const parsedBody = parsedOutput.body;
4570
- (0, smithy_client_1.throwDefaultError)({
4500
+ return throwDefaultError({
4571
4501
  output,
4572
4502
  parsedBody: parsedBody.Error,
4573
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4574
4503
  errorCode,
4575
4504
  });
4576
4505
  }
@@ -4586,7 +4515,7 @@ const de_GetServiceLastAccessedDetailsCommand = async (output, context) => {
4586
4515
  $metadata: deserializeMetadata(output),
4587
4516
  ...contents,
4588
4517
  };
4589
- return Promise.resolve(response);
4518
+ return response;
4590
4519
  };
4591
4520
  exports.de_GetServiceLastAccessedDetailsCommand = de_GetServiceLastAccessedDetailsCommand;
4592
4521
  const de_GetServiceLastAccessedDetailsCommandError = async (output, context) => {
@@ -4604,10 +4533,9 @@ const de_GetServiceLastAccessedDetailsCommandError = async (output, context) =>
4604
4533
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
4605
4534
  default:
4606
4535
  const parsedBody = parsedOutput.body;
4607
- (0, smithy_client_1.throwDefaultError)({
4536
+ return throwDefaultError({
4608
4537
  output,
4609
4538
  parsedBody: parsedBody.Error,
4610
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4611
4539
  errorCode,
4612
4540
  });
4613
4541
  }
@@ -4623,7 +4551,7 @@ const de_GetServiceLastAccessedDetailsWithEntitiesCommand = async (output, conte
4623
4551
  $metadata: deserializeMetadata(output),
4624
4552
  ...contents,
4625
4553
  };
4626
- return Promise.resolve(response);
4554
+ return response;
4627
4555
  };
4628
4556
  exports.de_GetServiceLastAccessedDetailsWithEntitiesCommand = de_GetServiceLastAccessedDetailsWithEntitiesCommand;
4629
4557
  const de_GetServiceLastAccessedDetailsWithEntitiesCommandError = async (output, context) => {
@@ -4641,10 +4569,9 @@ const de_GetServiceLastAccessedDetailsWithEntitiesCommandError = async (output,
4641
4569
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
4642
4570
  default:
4643
4571
  const parsedBody = parsedOutput.body;
4644
- (0, smithy_client_1.throwDefaultError)({
4572
+ return throwDefaultError({
4645
4573
  output,
4646
4574
  parsedBody: parsedBody.Error,
4647
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4648
4575
  errorCode,
4649
4576
  });
4650
4577
  }
@@ -4660,7 +4587,7 @@ const de_GetServiceLinkedRoleDeletionStatusCommand = async (output, context) =>
4660
4587
  $metadata: deserializeMetadata(output),
4661
4588
  ...contents,
4662
4589
  };
4663
- return Promise.resolve(response);
4590
+ return response;
4664
4591
  };
4665
4592
  exports.de_GetServiceLinkedRoleDeletionStatusCommand = de_GetServiceLinkedRoleDeletionStatusCommand;
4666
4593
  const de_GetServiceLinkedRoleDeletionStatusCommandError = async (output, context) => {
@@ -4681,10 +4608,9 @@ const de_GetServiceLinkedRoleDeletionStatusCommandError = async (output, context
4681
4608
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4682
4609
  default:
4683
4610
  const parsedBody = parsedOutput.body;
4684
- (0, smithy_client_1.throwDefaultError)({
4611
+ return throwDefaultError({
4685
4612
  output,
4686
4613
  parsedBody: parsedBody.Error,
4687
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4688
4614
  errorCode,
4689
4615
  });
4690
4616
  }
@@ -4700,7 +4626,7 @@ const de_GetSSHPublicKeyCommand = async (output, context) => {
4700
4626
  $metadata: deserializeMetadata(output),
4701
4627
  ...contents,
4702
4628
  };
4703
- return Promise.resolve(response);
4629
+ return response;
4704
4630
  };
4705
4631
  exports.de_GetSSHPublicKeyCommand = de_GetSSHPublicKeyCommand;
4706
4632
  const de_GetSSHPublicKeyCommandError = async (output, context) => {
@@ -4718,10 +4644,9 @@ const de_GetSSHPublicKeyCommandError = async (output, context) => {
4718
4644
  throw await de_UnrecognizedPublicKeyEncodingExceptionRes(parsedOutput, context);
4719
4645
  default:
4720
4646
  const parsedBody = parsedOutput.body;
4721
- (0, smithy_client_1.throwDefaultError)({
4647
+ return throwDefaultError({
4722
4648
  output,
4723
4649
  parsedBody: parsedBody.Error,
4724
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4725
4650
  errorCode,
4726
4651
  });
4727
4652
  }
@@ -4737,7 +4662,7 @@ const de_GetUserCommand = async (output, context) => {
4737
4662
  $metadata: deserializeMetadata(output),
4738
4663
  ...contents,
4739
4664
  };
4740
- return Promise.resolve(response);
4665
+ return response;
4741
4666
  };
4742
4667
  exports.de_GetUserCommand = de_GetUserCommand;
4743
4668
  const de_GetUserCommandError = async (output, context) => {
@@ -4755,10 +4680,9 @@ const de_GetUserCommandError = async (output, context) => {
4755
4680
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4756
4681
  default:
4757
4682
  const parsedBody = parsedOutput.body;
4758
- (0, smithy_client_1.throwDefaultError)({
4683
+ return throwDefaultError({
4759
4684
  output,
4760
4685
  parsedBody: parsedBody.Error,
4761
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4762
4686
  errorCode,
4763
4687
  });
4764
4688
  }
@@ -4774,7 +4698,7 @@ const de_GetUserPolicyCommand = async (output, context) => {
4774
4698
  $metadata: deserializeMetadata(output),
4775
4699
  ...contents,
4776
4700
  };
4777
- return Promise.resolve(response);
4701
+ return response;
4778
4702
  };
4779
4703
  exports.de_GetUserPolicyCommand = de_GetUserPolicyCommand;
4780
4704
  const de_GetUserPolicyCommandError = async (output, context) => {
@@ -4792,10 +4716,9 @@ const de_GetUserPolicyCommandError = async (output, context) => {
4792
4716
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4793
4717
  default:
4794
4718
  const parsedBody = parsedOutput.body;
4795
- (0, smithy_client_1.throwDefaultError)({
4719
+ return throwDefaultError({
4796
4720
  output,
4797
4721
  parsedBody: parsedBody.Error,
4798
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4799
4722
  errorCode,
4800
4723
  });
4801
4724
  }
@@ -4811,7 +4734,7 @@ const de_ListAccessKeysCommand = async (output, context) => {
4811
4734
  $metadata: deserializeMetadata(output),
4812
4735
  ...contents,
4813
4736
  };
4814
- return Promise.resolve(response);
4737
+ return response;
4815
4738
  };
4816
4739
  exports.de_ListAccessKeysCommand = de_ListAccessKeysCommand;
4817
4740
  const de_ListAccessKeysCommandError = async (output, context) => {
@@ -4829,10 +4752,9 @@ const de_ListAccessKeysCommandError = async (output, context) => {
4829
4752
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4830
4753
  default:
4831
4754
  const parsedBody = parsedOutput.body;
4832
- (0, smithy_client_1.throwDefaultError)({
4755
+ return throwDefaultError({
4833
4756
  output,
4834
4757
  parsedBody: parsedBody.Error,
4835
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4836
4758
  errorCode,
4837
4759
  });
4838
4760
  }
@@ -4848,7 +4770,7 @@ const de_ListAccountAliasesCommand = async (output, context) => {
4848
4770
  $metadata: deserializeMetadata(output),
4849
4771
  ...contents,
4850
4772
  };
4851
- return Promise.resolve(response);
4773
+ return response;
4852
4774
  };
4853
4775
  exports.de_ListAccountAliasesCommand = de_ListAccountAliasesCommand;
4854
4776
  const de_ListAccountAliasesCommandError = async (output, context) => {
@@ -4863,10 +4785,9 @@ const de_ListAccountAliasesCommandError = async (output, context) => {
4863
4785
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4864
4786
  default:
4865
4787
  const parsedBody = parsedOutput.body;
4866
- (0, smithy_client_1.throwDefaultError)({
4788
+ return throwDefaultError({
4867
4789
  output,
4868
4790
  parsedBody: parsedBody.Error,
4869
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4870
4791
  errorCode,
4871
4792
  });
4872
4793
  }
@@ -4882,7 +4803,7 @@ const de_ListAttachedGroupPoliciesCommand = async (output, context) => {
4882
4803
  $metadata: deserializeMetadata(output),
4883
4804
  ...contents,
4884
4805
  };
4885
- return Promise.resolve(response);
4806
+ return response;
4886
4807
  };
4887
4808
  exports.de_ListAttachedGroupPoliciesCommand = de_ListAttachedGroupPoliciesCommand;
4888
4809
  const de_ListAttachedGroupPoliciesCommandError = async (output, context) => {
@@ -4903,10 +4824,9 @@ const de_ListAttachedGroupPoliciesCommandError = async (output, context) => {
4903
4824
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4904
4825
  default:
4905
4826
  const parsedBody = parsedOutput.body;
4906
- (0, smithy_client_1.throwDefaultError)({
4827
+ return throwDefaultError({
4907
4828
  output,
4908
4829
  parsedBody: parsedBody.Error,
4909
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4910
4830
  errorCode,
4911
4831
  });
4912
4832
  }
@@ -4922,7 +4842,7 @@ const de_ListAttachedRolePoliciesCommand = async (output, context) => {
4922
4842
  $metadata: deserializeMetadata(output),
4923
4843
  ...contents,
4924
4844
  };
4925
- return Promise.resolve(response);
4845
+ return response;
4926
4846
  };
4927
4847
  exports.de_ListAttachedRolePoliciesCommand = de_ListAttachedRolePoliciesCommand;
4928
4848
  const de_ListAttachedRolePoliciesCommandError = async (output, context) => {
@@ -4943,10 +4863,9 @@ const de_ListAttachedRolePoliciesCommandError = async (output, context) => {
4943
4863
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4944
4864
  default:
4945
4865
  const parsedBody = parsedOutput.body;
4946
- (0, smithy_client_1.throwDefaultError)({
4866
+ return throwDefaultError({
4947
4867
  output,
4948
4868
  parsedBody: parsedBody.Error,
4949
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4950
4869
  errorCode,
4951
4870
  });
4952
4871
  }
@@ -4962,7 +4881,7 @@ const de_ListAttachedUserPoliciesCommand = async (output, context) => {
4962
4881
  $metadata: deserializeMetadata(output),
4963
4882
  ...contents,
4964
4883
  };
4965
- return Promise.resolve(response);
4884
+ return response;
4966
4885
  };
4967
4886
  exports.de_ListAttachedUserPoliciesCommand = de_ListAttachedUserPoliciesCommand;
4968
4887
  const de_ListAttachedUserPoliciesCommandError = async (output, context) => {
@@ -4983,10 +4902,9 @@ const de_ListAttachedUserPoliciesCommandError = async (output, context) => {
4983
4902
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4984
4903
  default:
4985
4904
  const parsedBody = parsedOutput.body;
4986
- (0, smithy_client_1.throwDefaultError)({
4905
+ return throwDefaultError({
4987
4906
  output,
4988
4907
  parsedBody: parsedBody.Error,
4989
- exceptionCtor: IAMServiceException_1.IAMServiceException,
4990
4908
  errorCode,
4991
4909
  });
4992
4910
  }
@@ -5002,7 +4920,7 @@ const de_ListEntitiesForPolicyCommand = async (output, context) => {
5002
4920
  $metadata: deserializeMetadata(output),
5003
4921
  ...contents,
5004
4922
  };
5005
- return Promise.resolve(response);
4923
+ return response;
5006
4924
  };
5007
4925
  exports.de_ListEntitiesForPolicyCommand = de_ListEntitiesForPolicyCommand;
5008
4926
  const de_ListEntitiesForPolicyCommandError = async (output, context) => {
@@ -5023,10 +4941,9 @@ const de_ListEntitiesForPolicyCommandError = async (output, context) => {
5023
4941
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5024
4942
  default:
5025
4943
  const parsedBody = parsedOutput.body;
5026
- (0, smithy_client_1.throwDefaultError)({
4944
+ return throwDefaultError({
5027
4945
  output,
5028
4946
  parsedBody: parsedBody.Error,
5029
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5030
4947
  errorCode,
5031
4948
  });
5032
4949
  }
@@ -5042,7 +4959,7 @@ const de_ListGroupPoliciesCommand = async (output, context) => {
5042
4959
  $metadata: deserializeMetadata(output),
5043
4960
  ...contents,
5044
4961
  };
5045
- return Promise.resolve(response);
4962
+ return response;
5046
4963
  };
5047
4964
  exports.de_ListGroupPoliciesCommand = de_ListGroupPoliciesCommand;
5048
4965
  const de_ListGroupPoliciesCommandError = async (output, context) => {
@@ -5060,10 +4977,9 @@ const de_ListGroupPoliciesCommandError = async (output, context) => {
5060
4977
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5061
4978
  default:
5062
4979
  const parsedBody = parsedOutput.body;
5063
- (0, smithy_client_1.throwDefaultError)({
4980
+ return throwDefaultError({
5064
4981
  output,
5065
4982
  parsedBody: parsedBody.Error,
5066
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5067
4983
  errorCode,
5068
4984
  });
5069
4985
  }
@@ -5079,7 +4995,7 @@ const de_ListGroupsCommand = async (output, context) => {
5079
4995
  $metadata: deserializeMetadata(output),
5080
4996
  ...contents,
5081
4997
  };
5082
- return Promise.resolve(response);
4998
+ return response;
5083
4999
  };
5084
5000
  exports.de_ListGroupsCommand = de_ListGroupsCommand;
5085
5001
  const de_ListGroupsCommandError = async (output, context) => {
@@ -5094,10 +5010,9 @@ const de_ListGroupsCommandError = async (output, context) => {
5094
5010
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5095
5011
  default:
5096
5012
  const parsedBody = parsedOutput.body;
5097
- (0, smithy_client_1.throwDefaultError)({
5013
+ return throwDefaultError({
5098
5014
  output,
5099
5015
  parsedBody: parsedBody.Error,
5100
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5101
5016
  errorCode,
5102
5017
  });
5103
5018
  }
@@ -5113,7 +5028,7 @@ const de_ListGroupsForUserCommand = async (output, context) => {
5113
5028
  $metadata: deserializeMetadata(output),
5114
5029
  ...contents,
5115
5030
  };
5116
- return Promise.resolve(response);
5031
+ return response;
5117
5032
  };
5118
5033
  exports.de_ListGroupsForUserCommand = de_ListGroupsForUserCommand;
5119
5034
  const de_ListGroupsForUserCommandError = async (output, context) => {
@@ -5131,10 +5046,9 @@ const de_ListGroupsForUserCommandError = async (output, context) => {
5131
5046
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5132
5047
  default:
5133
5048
  const parsedBody = parsedOutput.body;
5134
- (0, smithy_client_1.throwDefaultError)({
5049
+ return throwDefaultError({
5135
5050
  output,
5136
5051
  parsedBody: parsedBody.Error,
5137
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5138
5052
  errorCode,
5139
5053
  });
5140
5054
  }
@@ -5150,7 +5064,7 @@ const de_ListInstanceProfilesCommand = async (output, context) => {
5150
5064
  $metadata: deserializeMetadata(output),
5151
5065
  ...contents,
5152
5066
  };
5153
- return Promise.resolve(response);
5067
+ return response;
5154
5068
  };
5155
5069
  exports.de_ListInstanceProfilesCommand = de_ListInstanceProfilesCommand;
5156
5070
  const de_ListInstanceProfilesCommandError = async (output, context) => {
@@ -5165,10 +5079,9 @@ const de_ListInstanceProfilesCommandError = async (output, context) => {
5165
5079
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5166
5080
  default:
5167
5081
  const parsedBody = parsedOutput.body;
5168
- (0, smithy_client_1.throwDefaultError)({
5082
+ return throwDefaultError({
5169
5083
  output,
5170
5084
  parsedBody: parsedBody.Error,
5171
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5172
5085
  errorCode,
5173
5086
  });
5174
5087
  }
@@ -5184,7 +5097,7 @@ const de_ListInstanceProfilesForRoleCommand = async (output, context) => {
5184
5097
  $metadata: deserializeMetadata(output),
5185
5098
  ...contents,
5186
5099
  };
5187
- return Promise.resolve(response);
5100
+ return response;
5188
5101
  };
5189
5102
  exports.de_ListInstanceProfilesForRoleCommand = de_ListInstanceProfilesForRoleCommand;
5190
5103
  const de_ListInstanceProfilesForRoleCommandError = async (output, context) => {
@@ -5202,10 +5115,9 @@ const de_ListInstanceProfilesForRoleCommandError = async (output, context) => {
5202
5115
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5203
5116
  default:
5204
5117
  const parsedBody = parsedOutput.body;
5205
- (0, smithy_client_1.throwDefaultError)({
5118
+ return throwDefaultError({
5206
5119
  output,
5207
5120
  parsedBody: parsedBody.Error,
5208
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5209
5121
  errorCode,
5210
5122
  });
5211
5123
  }
@@ -5221,7 +5133,7 @@ const de_ListInstanceProfileTagsCommand = async (output, context) => {
5221
5133
  $metadata: deserializeMetadata(output),
5222
5134
  ...contents,
5223
5135
  };
5224
- return Promise.resolve(response);
5136
+ return response;
5225
5137
  };
5226
5138
  exports.de_ListInstanceProfileTagsCommand = de_ListInstanceProfileTagsCommand;
5227
5139
  const de_ListInstanceProfileTagsCommandError = async (output, context) => {
@@ -5239,10 +5151,9 @@ const de_ListInstanceProfileTagsCommandError = async (output, context) => {
5239
5151
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5240
5152
  default:
5241
5153
  const parsedBody = parsedOutput.body;
5242
- (0, smithy_client_1.throwDefaultError)({
5154
+ return throwDefaultError({
5243
5155
  output,
5244
5156
  parsedBody: parsedBody.Error,
5245
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5246
5157
  errorCode,
5247
5158
  });
5248
5159
  }
@@ -5258,7 +5169,7 @@ const de_ListMFADevicesCommand = async (output, context) => {
5258
5169
  $metadata: deserializeMetadata(output),
5259
5170
  ...contents,
5260
5171
  };
5261
- return Promise.resolve(response);
5172
+ return response;
5262
5173
  };
5263
5174
  exports.de_ListMFADevicesCommand = de_ListMFADevicesCommand;
5264
5175
  const de_ListMFADevicesCommandError = async (output, context) => {
@@ -5276,10 +5187,9 @@ const de_ListMFADevicesCommandError = async (output, context) => {
5276
5187
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5277
5188
  default:
5278
5189
  const parsedBody = parsedOutput.body;
5279
- (0, smithy_client_1.throwDefaultError)({
5190
+ return throwDefaultError({
5280
5191
  output,
5281
5192
  parsedBody: parsedBody.Error,
5282
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5283
5193
  errorCode,
5284
5194
  });
5285
5195
  }
@@ -5295,7 +5205,7 @@ const de_ListMFADeviceTagsCommand = async (output, context) => {
5295
5205
  $metadata: deserializeMetadata(output),
5296
5206
  ...contents,
5297
5207
  };
5298
- return Promise.resolve(response);
5208
+ return response;
5299
5209
  };
5300
5210
  exports.de_ListMFADeviceTagsCommand = de_ListMFADeviceTagsCommand;
5301
5211
  const de_ListMFADeviceTagsCommandError = async (output, context) => {
@@ -5316,10 +5226,9 @@ const de_ListMFADeviceTagsCommandError = async (output, context) => {
5316
5226
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5317
5227
  default:
5318
5228
  const parsedBody = parsedOutput.body;
5319
- (0, smithy_client_1.throwDefaultError)({
5229
+ return throwDefaultError({
5320
5230
  output,
5321
5231
  parsedBody: parsedBody.Error,
5322
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5323
5232
  errorCode,
5324
5233
  });
5325
5234
  }
@@ -5335,7 +5244,7 @@ const de_ListOpenIDConnectProvidersCommand = async (output, context) => {
5335
5244
  $metadata: deserializeMetadata(output),
5336
5245
  ...contents,
5337
5246
  };
5338
- return Promise.resolve(response);
5247
+ return response;
5339
5248
  };
5340
5249
  exports.de_ListOpenIDConnectProvidersCommand = de_ListOpenIDConnectProvidersCommand;
5341
5250
  const de_ListOpenIDConnectProvidersCommandError = async (output, context) => {
@@ -5350,10 +5259,9 @@ const de_ListOpenIDConnectProvidersCommandError = async (output, context) => {
5350
5259
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5351
5260
  default:
5352
5261
  const parsedBody = parsedOutput.body;
5353
- (0, smithy_client_1.throwDefaultError)({
5262
+ return throwDefaultError({
5354
5263
  output,
5355
5264
  parsedBody: parsedBody.Error,
5356
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5357
5265
  errorCode,
5358
5266
  });
5359
5267
  }
@@ -5369,7 +5277,7 @@ const de_ListOpenIDConnectProviderTagsCommand = async (output, context) => {
5369
5277
  $metadata: deserializeMetadata(output),
5370
5278
  ...contents,
5371
5279
  };
5372
- return Promise.resolve(response);
5280
+ return response;
5373
5281
  };
5374
5282
  exports.de_ListOpenIDConnectProviderTagsCommand = de_ListOpenIDConnectProviderTagsCommand;
5375
5283
  const de_ListOpenIDConnectProviderTagsCommandError = async (output, context) => {
@@ -5390,10 +5298,9 @@ const de_ListOpenIDConnectProviderTagsCommandError = async (output, context) =>
5390
5298
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5391
5299
  default:
5392
5300
  const parsedBody = parsedOutput.body;
5393
- (0, smithy_client_1.throwDefaultError)({
5301
+ return throwDefaultError({
5394
5302
  output,
5395
5303
  parsedBody: parsedBody.Error,
5396
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5397
5304
  errorCode,
5398
5305
  });
5399
5306
  }
@@ -5409,7 +5316,7 @@ const de_ListPoliciesCommand = async (output, context) => {
5409
5316
  $metadata: deserializeMetadata(output),
5410
5317
  ...contents,
5411
5318
  };
5412
- return Promise.resolve(response);
5319
+ return response;
5413
5320
  };
5414
5321
  exports.de_ListPoliciesCommand = de_ListPoliciesCommand;
5415
5322
  const de_ListPoliciesCommandError = async (output, context) => {
@@ -5424,10 +5331,9 @@ const de_ListPoliciesCommandError = async (output, context) => {
5424
5331
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5425
5332
  default:
5426
5333
  const parsedBody = parsedOutput.body;
5427
- (0, smithy_client_1.throwDefaultError)({
5334
+ return throwDefaultError({
5428
5335
  output,
5429
5336
  parsedBody: parsedBody.Error,
5430
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5431
5337
  errorCode,
5432
5338
  });
5433
5339
  }
@@ -5443,7 +5349,7 @@ const de_ListPoliciesGrantingServiceAccessCommand = async (output, context) => {
5443
5349
  $metadata: deserializeMetadata(output),
5444
5350
  ...contents,
5445
5351
  };
5446
- return Promise.resolve(response);
5352
+ return response;
5447
5353
  };
5448
5354
  exports.de_ListPoliciesGrantingServiceAccessCommand = de_ListPoliciesGrantingServiceAccessCommand;
5449
5355
  const de_ListPoliciesGrantingServiceAccessCommandError = async (output, context) => {
@@ -5461,10 +5367,9 @@ const de_ListPoliciesGrantingServiceAccessCommandError = async (output, context)
5461
5367
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
5462
5368
  default:
5463
5369
  const parsedBody = parsedOutput.body;
5464
- (0, smithy_client_1.throwDefaultError)({
5370
+ return throwDefaultError({
5465
5371
  output,
5466
5372
  parsedBody: parsedBody.Error,
5467
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5468
5373
  errorCode,
5469
5374
  });
5470
5375
  }
@@ -5480,7 +5385,7 @@ const de_ListPolicyTagsCommand = async (output, context) => {
5480
5385
  $metadata: deserializeMetadata(output),
5481
5386
  ...contents,
5482
5387
  };
5483
- return Promise.resolve(response);
5388
+ return response;
5484
5389
  };
5485
5390
  exports.de_ListPolicyTagsCommand = de_ListPolicyTagsCommand;
5486
5391
  const de_ListPolicyTagsCommandError = async (output, context) => {
@@ -5501,10 +5406,9 @@ const de_ListPolicyTagsCommandError = async (output, context) => {
5501
5406
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5502
5407
  default:
5503
5408
  const parsedBody = parsedOutput.body;
5504
- (0, smithy_client_1.throwDefaultError)({
5409
+ return throwDefaultError({
5505
5410
  output,
5506
5411
  parsedBody: parsedBody.Error,
5507
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5508
5412
  errorCode,
5509
5413
  });
5510
5414
  }
@@ -5520,7 +5424,7 @@ const de_ListPolicyVersionsCommand = async (output, context) => {
5520
5424
  $metadata: deserializeMetadata(output),
5521
5425
  ...contents,
5522
5426
  };
5523
- return Promise.resolve(response);
5427
+ return response;
5524
5428
  };
5525
5429
  exports.de_ListPolicyVersionsCommand = de_ListPolicyVersionsCommand;
5526
5430
  const de_ListPolicyVersionsCommandError = async (output, context) => {
@@ -5541,10 +5445,9 @@ const de_ListPolicyVersionsCommandError = async (output, context) => {
5541
5445
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5542
5446
  default:
5543
5447
  const parsedBody = parsedOutput.body;
5544
- (0, smithy_client_1.throwDefaultError)({
5448
+ return throwDefaultError({
5545
5449
  output,
5546
5450
  parsedBody: parsedBody.Error,
5547
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5548
5451
  errorCode,
5549
5452
  });
5550
5453
  }
@@ -5560,7 +5463,7 @@ const de_ListRolePoliciesCommand = async (output, context) => {
5560
5463
  $metadata: deserializeMetadata(output),
5561
5464
  ...contents,
5562
5465
  };
5563
- return Promise.resolve(response);
5466
+ return response;
5564
5467
  };
5565
5468
  exports.de_ListRolePoliciesCommand = de_ListRolePoliciesCommand;
5566
5469
  const de_ListRolePoliciesCommandError = async (output, context) => {
@@ -5578,10 +5481,9 @@ const de_ListRolePoliciesCommandError = async (output, context) => {
5578
5481
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5579
5482
  default:
5580
5483
  const parsedBody = parsedOutput.body;
5581
- (0, smithy_client_1.throwDefaultError)({
5484
+ return throwDefaultError({
5582
5485
  output,
5583
5486
  parsedBody: parsedBody.Error,
5584
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5585
5487
  errorCode,
5586
5488
  });
5587
5489
  }
@@ -5597,7 +5499,7 @@ const de_ListRolesCommand = async (output, context) => {
5597
5499
  $metadata: deserializeMetadata(output),
5598
5500
  ...contents,
5599
5501
  };
5600
- return Promise.resolve(response);
5502
+ return response;
5601
5503
  };
5602
5504
  exports.de_ListRolesCommand = de_ListRolesCommand;
5603
5505
  const de_ListRolesCommandError = async (output, context) => {
@@ -5612,10 +5514,9 @@ const de_ListRolesCommandError = async (output, context) => {
5612
5514
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5613
5515
  default:
5614
5516
  const parsedBody = parsedOutput.body;
5615
- (0, smithy_client_1.throwDefaultError)({
5517
+ return throwDefaultError({
5616
5518
  output,
5617
5519
  parsedBody: parsedBody.Error,
5618
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5619
5520
  errorCode,
5620
5521
  });
5621
5522
  }
@@ -5631,7 +5532,7 @@ const de_ListRoleTagsCommand = async (output, context) => {
5631
5532
  $metadata: deserializeMetadata(output),
5632
5533
  ...contents,
5633
5534
  };
5634
- return Promise.resolve(response);
5535
+ return response;
5635
5536
  };
5636
5537
  exports.de_ListRoleTagsCommand = de_ListRoleTagsCommand;
5637
5538
  const de_ListRoleTagsCommandError = async (output, context) => {
@@ -5649,10 +5550,9 @@ const de_ListRoleTagsCommandError = async (output, context) => {
5649
5550
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5650
5551
  default:
5651
5552
  const parsedBody = parsedOutput.body;
5652
- (0, smithy_client_1.throwDefaultError)({
5553
+ return throwDefaultError({
5653
5554
  output,
5654
5555
  parsedBody: parsedBody.Error,
5655
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5656
5556
  errorCode,
5657
5557
  });
5658
5558
  }
@@ -5668,7 +5568,7 @@ const de_ListSAMLProvidersCommand = async (output, context) => {
5668
5568
  $metadata: deserializeMetadata(output),
5669
5569
  ...contents,
5670
5570
  };
5671
- return Promise.resolve(response);
5571
+ return response;
5672
5572
  };
5673
5573
  exports.de_ListSAMLProvidersCommand = de_ListSAMLProvidersCommand;
5674
5574
  const de_ListSAMLProvidersCommandError = async (output, context) => {
@@ -5683,10 +5583,9 @@ const de_ListSAMLProvidersCommandError = async (output, context) => {
5683
5583
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5684
5584
  default:
5685
5585
  const parsedBody = parsedOutput.body;
5686
- (0, smithy_client_1.throwDefaultError)({
5586
+ return throwDefaultError({
5687
5587
  output,
5688
5588
  parsedBody: parsedBody.Error,
5689
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5690
5589
  errorCode,
5691
5590
  });
5692
5591
  }
@@ -5702,7 +5601,7 @@ const de_ListSAMLProviderTagsCommand = async (output, context) => {
5702
5601
  $metadata: deserializeMetadata(output),
5703
5602
  ...contents,
5704
5603
  };
5705
- return Promise.resolve(response);
5604
+ return response;
5706
5605
  };
5707
5606
  exports.de_ListSAMLProviderTagsCommand = de_ListSAMLProviderTagsCommand;
5708
5607
  const de_ListSAMLProviderTagsCommandError = async (output, context) => {
@@ -5723,10 +5622,9 @@ const de_ListSAMLProviderTagsCommandError = async (output, context) => {
5723
5622
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5724
5623
  default:
5725
5624
  const parsedBody = parsedOutput.body;
5726
- (0, smithy_client_1.throwDefaultError)({
5625
+ return throwDefaultError({
5727
5626
  output,
5728
5627
  parsedBody: parsedBody.Error,
5729
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5730
5628
  errorCode,
5731
5629
  });
5732
5630
  }
@@ -5742,7 +5640,7 @@ const de_ListServerCertificatesCommand = async (output, context) => {
5742
5640
  $metadata: deserializeMetadata(output),
5743
5641
  ...contents,
5744
5642
  };
5745
- return Promise.resolve(response);
5643
+ return response;
5746
5644
  };
5747
5645
  exports.de_ListServerCertificatesCommand = de_ListServerCertificatesCommand;
5748
5646
  const de_ListServerCertificatesCommandError = async (output, context) => {
@@ -5757,10 +5655,9 @@ const de_ListServerCertificatesCommandError = async (output, context) => {
5757
5655
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5758
5656
  default:
5759
5657
  const parsedBody = parsedOutput.body;
5760
- (0, smithy_client_1.throwDefaultError)({
5658
+ return throwDefaultError({
5761
5659
  output,
5762
5660
  parsedBody: parsedBody.Error,
5763
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5764
5661
  errorCode,
5765
5662
  });
5766
5663
  }
@@ -5776,7 +5673,7 @@ const de_ListServerCertificateTagsCommand = async (output, context) => {
5776
5673
  $metadata: deserializeMetadata(output),
5777
5674
  ...contents,
5778
5675
  };
5779
- return Promise.resolve(response);
5676
+ return response;
5780
5677
  };
5781
5678
  exports.de_ListServerCertificateTagsCommand = de_ListServerCertificateTagsCommand;
5782
5679
  const de_ListServerCertificateTagsCommandError = async (output, context) => {
@@ -5794,10 +5691,9 @@ const de_ListServerCertificateTagsCommandError = async (output, context) => {
5794
5691
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5795
5692
  default:
5796
5693
  const parsedBody = parsedOutput.body;
5797
- (0, smithy_client_1.throwDefaultError)({
5694
+ return throwDefaultError({
5798
5695
  output,
5799
5696
  parsedBody: parsedBody.Error,
5800
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5801
5697
  errorCode,
5802
5698
  });
5803
5699
  }
@@ -5813,7 +5709,7 @@ const de_ListServiceSpecificCredentialsCommand = async (output, context) => {
5813
5709
  $metadata: deserializeMetadata(output),
5814
5710
  ...contents,
5815
5711
  };
5816
- return Promise.resolve(response);
5712
+ return response;
5817
5713
  };
5818
5714
  exports.de_ListServiceSpecificCredentialsCommand = de_ListServiceSpecificCredentialsCommand;
5819
5715
  const de_ListServiceSpecificCredentialsCommandError = async (output, context) => {
@@ -5831,10 +5727,9 @@ const de_ListServiceSpecificCredentialsCommandError = async (output, context) =>
5831
5727
  throw await de_ServiceNotSupportedExceptionRes(parsedOutput, context);
5832
5728
  default:
5833
5729
  const parsedBody = parsedOutput.body;
5834
- (0, smithy_client_1.throwDefaultError)({
5730
+ return throwDefaultError({
5835
5731
  output,
5836
5732
  parsedBody: parsedBody.Error,
5837
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5838
5733
  errorCode,
5839
5734
  });
5840
5735
  }
@@ -5850,7 +5745,7 @@ const de_ListSigningCertificatesCommand = async (output, context) => {
5850
5745
  $metadata: deserializeMetadata(output),
5851
5746
  ...contents,
5852
5747
  };
5853
- return Promise.resolve(response);
5748
+ return response;
5854
5749
  };
5855
5750
  exports.de_ListSigningCertificatesCommand = de_ListSigningCertificatesCommand;
5856
5751
  const de_ListSigningCertificatesCommandError = async (output, context) => {
@@ -5868,10 +5763,9 @@ const de_ListSigningCertificatesCommandError = async (output, context) => {
5868
5763
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5869
5764
  default:
5870
5765
  const parsedBody = parsedOutput.body;
5871
- (0, smithy_client_1.throwDefaultError)({
5766
+ return throwDefaultError({
5872
5767
  output,
5873
5768
  parsedBody: parsedBody.Error,
5874
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5875
5769
  errorCode,
5876
5770
  });
5877
5771
  }
@@ -5887,7 +5781,7 @@ const de_ListSSHPublicKeysCommand = async (output, context) => {
5887
5781
  $metadata: deserializeMetadata(output),
5888
5782
  ...contents,
5889
5783
  };
5890
- return Promise.resolve(response);
5784
+ return response;
5891
5785
  };
5892
5786
  exports.de_ListSSHPublicKeysCommand = de_ListSSHPublicKeysCommand;
5893
5787
  const de_ListSSHPublicKeysCommandError = async (output, context) => {
@@ -5902,10 +5796,9 @@ const de_ListSSHPublicKeysCommandError = async (output, context) => {
5902
5796
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
5903
5797
  default:
5904
5798
  const parsedBody = parsedOutput.body;
5905
- (0, smithy_client_1.throwDefaultError)({
5799
+ return throwDefaultError({
5906
5800
  output,
5907
5801
  parsedBody: parsedBody.Error,
5908
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5909
5802
  errorCode,
5910
5803
  });
5911
5804
  }
@@ -5921,7 +5814,7 @@ const de_ListUserPoliciesCommand = async (output, context) => {
5921
5814
  $metadata: deserializeMetadata(output),
5922
5815
  ...contents,
5923
5816
  };
5924
- return Promise.resolve(response);
5817
+ return response;
5925
5818
  };
5926
5819
  exports.de_ListUserPoliciesCommand = de_ListUserPoliciesCommand;
5927
5820
  const de_ListUserPoliciesCommandError = async (output, context) => {
@@ -5939,10 +5832,9 @@ const de_ListUserPoliciesCommandError = async (output, context) => {
5939
5832
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5940
5833
  default:
5941
5834
  const parsedBody = parsedOutput.body;
5942
- (0, smithy_client_1.throwDefaultError)({
5835
+ return throwDefaultError({
5943
5836
  output,
5944
5837
  parsedBody: parsedBody.Error,
5945
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5946
5838
  errorCode,
5947
5839
  });
5948
5840
  }
@@ -5958,7 +5850,7 @@ const de_ListUsersCommand = async (output, context) => {
5958
5850
  $metadata: deserializeMetadata(output),
5959
5851
  ...contents,
5960
5852
  };
5961
- return Promise.resolve(response);
5853
+ return response;
5962
5854
  };
5963
5855
  exports.de_ListUsersCommand = de_ListUsersCommand;
5964
5856
  const de_ListUsersCommandError = async (output, context) => {
@@ -5973,10 +5865,9 @@ const de_ListUsersCommandError = async (output, context) => {
5973
5865
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5974
5866
  default:
5975
5867
  const parsedBody = parsedOutput.body;
5976
- (0, smithy_client_1.throwDefaultError)({
5868
+ return throwDefaultError({
5977
5869
  output,
5978
5870
  parsedBody: parsedBody.Error,
5979
- exceptionCtor: IAMServiceException_1.IAMServiceException,
5980
5871
  errorCode,
5981
5872
  });
5982
5873
  }
@@ -5992,7 +5883,7 @@ const de_ListUserTagsCommand = async (output, context) => {
5992
5883
  $metadata: deserializeMetadata(output),
5993
5884
  ...contents,
5994
5885
  };
5995
- return Promise.resolve(response);
5886
+ return response;
5996
5887
  };
5997
5888
  exports.de_ListUserTagsCommand = de_ListUserTagsCommand;
5998
5889
  const de_ListUserTagsCommandError = async (output, context) => {
@@ -6010,10 +5901,9 @@ const de_ListUserTagsCommandError = async (output, context) => {
6010
5901
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6011
5902
  default:
6012
5903
  const parsedBody = parsedOutput.body;
6013
- (0, smithy_client_1.throwDefaultError)({
5904
+ return throwDefaultError({
6014
5905
  output,
6015
5906
  parsedBody: parsedBody.Error,
6016
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6017
5907
  errorCode,
6018
5908
  });
6019
5909
  }
@@ -6029,7 +5919,7 @@ const de_ListVirtualMFADevicesCommand = async (output, context) => {
6029
5919
  $metadata: deserializeMetadata(output),
6030
5920
  ...contents,
6031
5921
  };
6032
- return Promise.resolve(response);
5922
+ return response;
6033
5923
  };
6034
5924
  exports.de_ListVirtualMFADevicesCommand = de_ListVirtualMFADevicesCommand;
6035
5925
  const de_ListVirtualMFADevicesCommandError = async (output, context) => {
@@ -6039,10 +5929,9 @@ const de_ListVirtualMFADevicesCommandError = async (output, context) => {
6039
5929
  };
6040
5930
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
6041
5931
  const parsedBody = parsedOutput.body;
6042
- (0, smithy_client_1.throwDefaultError)({
5932
+ return throwDefaultError({
6043
5933
  output,
6044
5934
  parsedBody: parsedBody.Error,
6045
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6046
5935
  errorCode,
6047
5936
  });
6048
5937
  };
@@ -6054,7 +5943,7 @@ const de_PutGroupPolicyCommand = async (output, context) => {
6054
5943
  const response = {
6055
5944
  $metadata: deserializeMetadata(output),
6056
5945
  };
6057
- return Promise.resolve(response);
5946
+ return response;
6058
5947
  };
6059
5948
  exports.de_PutGroupPolicyCommand = de_PutGroupPolicyCommand;
6060
5949
  const de_PutGroupPolicyCommandError = async (output, context) => {
@@ -6078,10 +5967,9 @@ const de_PutGroupPolicyCommandError = async (output, context) => {
6078
5967
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6079
5968
  default:
6080
5969
  const parsedBody = parsedOutput.body;
6081
- (0, smithy_client_1.throwDefaultError)({
5970
+ return throwDefaultError({
6082
5971
  output,
6083
5972
  parsedBody: parsedBody.Error,
6084
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6085
5973
  errorCode,
6086
5974
  });
6087
5975
  }
@@ -6094,7 +5982,7 @@ const de_PutRolePermissionsBoundaryCommand = async (output, context) => {
6094
5982
  const response = {
6095
5983
  $metadata: deserializeMetadata(output),
6096
5984
  };
6097
- return Promise.resolve(response);
5985
+ return response;
6098
5986
  };
6099
5987
  exports.de_PutRolePermissionsBoundaryCommand = de_PutRolePermissionsBoundaryCommand;
6100
5988
  const de_PutRolePermissionsBoundaryCommandError = async (output, context) => {
@@ -6121,10 +6009,9 @@ const de_PutRolePermissionsBoundaryCommandError = async (output, context) => {
6121
6009
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
6122
6010
  default:
6123
6011
  const parsedBody = parsedOutput.body;
6124
- (0, smithy_client_1.throwDefaultError)({
6012
+ return throwDefaultError({
6125
6013
  output,
6126
6014
  parsedBody: parsedBody.Error,
6127
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6128
6015
  errorCode,
6129
6016
  });
6130
6017
  }
@@ -6137,7 +6024,7 @@ const de_PutRolePolicyCommand = async (output, context) => {
6137
6024
  const response = {
6138
6025
  $metadata: deserializeMetadata(output),
6139
6026
  };
6140
- return Promise.resolve(response);
6027
+ return response;
6141
6028
  };
6142
6029
  exports.de_PutRolePolicyCommand = de_PutRolePolicyCommand;
6143
6030
  const de_PutRolePolicyCommandError = async (output, context) => {
@@ -6164,10 +6051,9 @@ const de_PutRolePolicyCommandError = async (output, context) => {
6164
6051
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
6165
6052
  default:
6166
6053
  const parsedBody = parsedOutput.body;
6167
- (0, smithy_client_1.throwDefaultError)({
6054
+ return throwDefaultError({
6168
6055
  output,
6169
6056
  parsedBody: parsedBody.Error,
6170
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6171
6057
  errorCode,
6172
6058
  });
6173
6059
  }
@@ -6180,7 +6066,7 @@ const de_PutUserPermissionsBoundaryCommand = async (output, context) => {
6180
6066
  const response = {
6181
6067
  $metadata: deserializeMetadata(output),
6182
6068
  };
6183
- return Promise.resolve(response);
6069
+ return response;
6184
6070
  };
6185
6071
  exports.de_PutUserPermissionsBoundaryCommand = de_PutUserPermissionsBoundaryCommand;
6186
6072
  const de_PutUserPermissionsBoundaryCommandError = async (output, context) => {
@@ -6204,10 +6090,9 @@ const de_PutUserPermissionsBoundaryCommandError = async (output, context) => {
6204
6090
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6205
6091
  default:
6206
6092
  const parsedBody = parsedOutput.body;
6207
- (0, smithy_client_1.throwDefaultError)({
6093
+ return throwDefaultError({
6208
6094
  output,
6209
6095
  parsedBody: parsedBody.Error,
6210
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6211
6096
  errorCode,
6212
6097
  });
6213
6098
  }
@@ -6220,7 +6105,7 @@ const de_PutUserPolicyCommand = async (output, context) => {
6220
6105
  const response = {
6221
6106
  $metadata: deserializeMetadata(output),
6222
6107
  };
6223
- return Promise.resolve(response);
6108
+ return response;
6224
6109
  };
6225
6110
  exports.de_PutUserPolicyCommand = de_PutUserPolicyCommand;
6226
6111
  const de_PutUserPolicyCommandError = async (output, context) => {
@@ -6244,10 +6129,9 @@ const de_PutUserPolicyCommandError = async (output, context) => {
6244
6129
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6245
6130
  default:
6246
6131
  const parsedBody = parsedOutput.body;
6247
- (0, smithy_client_1.throwDefaultError)({
6132
+ return throwDefaultError({
6248
6133
  output,
6249
6134
  parsedBody: parsedBody.Error,
6250
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6251
6135
  errorCode,
6252
6136
  });
6253
6137
  }
@@ -6260,7 +6144,7 @@ const de_RemoveClientIDFromOpenIDConnectProviderCommand = async (output, context
6260
6144
  const response = {
6261
6145
  $metadata: deserializeMetadata(output),
6262
6146
  };
6263
- return Promise.resolve(response);
6147
+ return response;
6264
6148
  };
6265
6149
  exports.de_RemoveClientIDFromOpenIDConnectProviderCommand = de_RemoveClientIDFromOpenIDConnectProviderCommand;
6266
6150
  const de_RemoveClientIDFromOpenIDConnectProviderCommandError = async (output, context) => {
@@ -6281,10 +6165,9 @@ const de_RemoveClientIDFromOpenIDConnectProviderCommandError = async (output, co
6281
6165
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6282
6166
  default:
6283
6167
  const parsedBody = parsedOutput.body;
6284
- (0, smithy_client_1.throwDefaultError)({
6168
+ return throwDefaultError({
6285
6169
  output,
6286
6170
  parsedBody: parsedBody.Error,
6287
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6288
6171
  errorCode,
6289
6172
  });
6290
6173
  }
@@ -6297,7 +6180,7 @@ const de_RemoveRoleFromInstanceProfileCommand = async (output, context) => {
6297
6180
  const response = {
6298
6181
  $metadata: deserializeMetadata(output),
6299
6182
  };
6300
- return Promise.resolve(response);
6183
+ return response;
6301
6184
  };
6302
6185
  exports.de_RemoveRoleFromInstanceProfileCommand = de_RemoveRoleFromInstanceProfileCommand;
6303
6186
  const de_RemoveRoleFromInstanceProfileCommandError = async (output, context) => {
@@ -6321,10 +6204,9 @@ const de_RemoveRoleFromInstanceProfileCommandError = async (output, context) =>
6321
6204
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
6322
6205
  default:
6323
6206
  const parsedBody = parsedOutput.body;
6324
- (0, smithy_client_1.throwDefaultError)({
6207
+ return throwDefaultError({
6325
6208
  output,
6326
6209
  parsedBody: parsedBody.Error,
6327
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6328
6210
  errorCode,
6329
6211
  });
6330
6212
  }
@@ -6337,7 +6219,7 @@ const de_RemoveUserFromGroupCommand = async (output, context) => {
6337
6219
  const response = {
6338
6220
  $metadata: deserializeMetadata(output),
6339
6221
  };
6340
- return Promise.resolve(response);
6222
+ return response;
6341
6223
  };
6342
6224
  exports.de_RemoveUserFromGroupCommand = de_RemoveUserFromGroupCommand;
6343
6225
  const de_RemoveUserFromGroupCommandError = async (output, context) => {
@@ -6358,10 +6240,9 @@ const de_RemoveUserFromGroupCommandError = async (output, context) => {
6358
6240
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6359
6241
  default:
6360
6242
  const parsedBody = parsedOutput.body;
6361
- (0, smithy_client_1.throwDefaultError)({
6243
+ return throwDefaultError({
6362
6244
  output,
6363
6245
  parsedBody: parsedBody.Error,
6364
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6365
6246
  errorCode,
6366
6247
  });
6367
6248
  }
@@ -6377,7 +6258,7 @@ const de_ResetServiceSpecificCredentialCommand = async (output, context) => {
6377
6258
  $metadata: deserializeMetadata(output),
6378
6259
  ...contents,
6379
6260
  };
6380
- return Promise.resolve(response);
6261
+ return response;
6381
6262
  };
6382
6263
  exports.de_ResetServiceSpecificCredentialCommand = de_ResetServiceSpecificCredentialCommand;
6383
6264
  const de_ResetServiceSpecificCredentialCommandError = async (output, context) => {
@@ -6392,10 +6273,9 @@ const de_ResetServiceSpecificCredentialCommandError = async (output, context) =>
6392
6273
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
6393
6274
  default:
6394
6275
  const parsedBody = parsedOutput.body;
6395
- (0, smithy_client_1.throwDefaultError)({
6276
+ return throwDefaultError({
6396
6277
  output,
6397
6278
  parsedBody: parsedBody.Error,
6398
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6399
6279
  errorCode,
6400
6280
  });
6401
6281
  }
@@ -6408,7 +6288,7 @@ const de_ResyncMFADeviceCommand = async (output, context) => {
6408
6288
  const response = {
6409
6289
  $metadata: deserializeMetadata(output),
6410
6290
  };
6411
- return Promise.resolve(response);
6291
+ return response;
6412
6292
  };
6413
6293
  exports.de_ResyncMFADeviceCommand = de_ResyncMFADeviceCommand;
6414
6294
  const de_ResyncMFADeviceCommandError = async (output, context) => {
@@ -6432,10 +6312,9 @@ const de_ResyncMFADeviceCommandError = async (output, context) => {
6432
6312
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6433
6313
  default:
6434
6314
  const parsedBody = parsedOutput.body;
6435
- (0, smithy_client_1.throwDefaultError)({
6315
+ return throwDefaultError({
6436
6316
  output,
6437
6317
  parsedBody: parsedBody.Error,
6438
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6439
6318
  errorCode,
6440
6319
  });
6441
6320
  }
@@ -6448,7 +6327,7 @@ const de_SetDefaultPolicyVersionCommand = async (output, context) => {
6448
6327
  const response = {
6449
6328
  $metadata: deserializeMetadata(output),
6450
6329
  };
6451
- return Promise.resolve(response);
6330
+ return response;
6452
6331
  };
6453
6332
  exports.de_SetDefaultPolicyVersionCommand = de_SetDefaultPolicyVersionCommand;
6454
6333
  const de_SetDefaultPolicyVersionCommandError = async (output, context) => {
@@ -6472,10 +6351,9 @@ const de_SetDefaultPolicyVersionCommandError = async (output, context) => {
6472
6351
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6473
6352
  default:
6474
6353
  const parsedBody = parsedOutput.body;
6475
- (0, smithy_client_1.throwDefaultError)({
6354
+ return throwDefaultError({
6476
6355
  output,
6477
6356
  parsedBody: parsedBody.Error,
6478
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6479
6357
  errorCode,
6480
6358
  });
6481
6359
  }
@@ -6488,7 +6366,7 @@ const de_SetSecurityTokenServicePreferencesCommand = async (output, context) =>
6488
6366
  const response = {
6489
6367
  $metadata: deserializeMetadata(output),
6490
6368
  };
6491
- return Promise.resolve(response);
6369
+ return response;
6492
6370
  };
6493
6371
  exports.de_SetSecurityTokenServicePreferencesCommand = de_SetSecurityTokenServicePreferencesCommand;
6494
6372
  const de_SetSecurityTokenServicePreferencesCommandError = async (output, context) => {
@@ -6503,10 +6381,9 @@ const de_SetSecurityTokenServicePreferencesCommandError = async (output, context
6503
6381
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6504
6382
  default:
6505
6383
  const parsedBody = parsedOutput.body;
6506
- (0, smithy_client_1.throwDefaultError)({
6384
+ return throwDefaultError({
6507
6385
  output,
6508
6386
  parsedBody: parsedBody.Error,
6509
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6510
6387
  errorCode,
6511
6388
  });
6512
6389
  }
@@ -6522,7 +6399,7 @@ const de_SimulateCustomPolicyCommand = async (output, context) => {
6522
6399
  $metadata: deserializeMetadata(output),
6523
6400
  ...contents,
6524
6401
  };
6525
- return Promise.resolve(response);
6402
+ return response;
6526
6403
  };
6527
6404
  exports.de_SimulateCustomPolicyCommand = de_SimulateCustomPolicyCommand;
6528
6405
  const de_SimulateCustomPolicyCommandError = async (output, context) => {
@@ -6540,10 +6417,9 @@ const de_SimulateCustomPolicyCommandError = async (output, context) => {
6540
6417
  throw await de_PolicyEvaluationExceptionRes(parsedOutput, context);
6541
6418
  default:
6542
6419
  const parsedBody = parsedOutput.body;
6543
- (0, smithy_client_1.throwDefaultError)({
6420
+ return throwDefaultError({
6544
6421
  output,
6545
6422
  parsedBody: parsedBody.Error,
6546
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6547
6423
  errorCode,
6548
6424
  });
6549
6425
  }
@@ -6559,7 +6435,7 @@ const de_SimulatePrincipalPolicyCommand = async (output, context) => {
6559
6435
  $metadata: deserializeMetadata(output),
6560
6436
  ...contents,
6561
6437
  };
6562
- return Promise.resolve(response);
6438
+ return response;
6563
6439
  };
6564
6440
  exports.de_SimulatePrincipalPolicyCommand = de_SimulatePrincipalPolicyCommand;
6565
6441
  const de_SimulatePrincipalPolicyCommandError = async (output, context) => {
@@ -6580,10 +6456,9 @@ const de_SimulatePrincipalPolicyCommandError = async (output, context) => {
6580
6456
  throw await de_PolicyEvaluationExceptionRes(parsedOutput, context);
6581
6457
  default:
6582
6458
  const parsedBody = parsedOutput.body;
6583
- (0, smithy_client_1.throwDefaultError)({
6459
+ return throwDefaultError({
6584
6460
  output,
6585
6461
  parsedBody: parsedBody.Error,
6586
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6587
6462
  errorCode,
6588
6463
  });
6589
6464
  }
@@ -6596,7 +6471,7 @@ const de_TagInstanceProfileCommand = async (output, context) => {
6596
6471
  const response = {
6597
6472
  $metadata: deserializeMetadata(output),
6598
6473
  };
6599
- return Promise.resolve(response);
6474
+ return response;
6600
6475
  };
6601
6476
  exports.de_TagInstanceProfileCommand = de_TagInstanceProfileCommand;
6602
6477
  const de_TagInstanceProfileCommandError = async (output, context) => {
@@ -6623,10 +6498,9 @@ const de_TagInstanceProfileCommandError = async (output, context) => {
6623
6498
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6624
6499
  default:
6625
6500
  const parsedBody = parsedOutput.body;
6626
- (0, smithy_client_1.throwDefaultError)({
6501
+ return throwDefaultError({
6627
6502
  output,
6628
6503
  parsedBody: parsedBody.Error,
6629
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6630
6504
  errorCode,
6631
6505
  });
6632
6506
  }
@@ -6639,7 +6513,7 @@ const de_TagMFADeviceCommand = async (output, context) => {
6639
6513
  const response = {
6640
6514
  $metadata: deserializeMetadata(output),
6641
6515
  };
6642
- return Promise.resolve(response);
6516
+ return response;
6643
6517
  };
6644
6518
  exports.de_TagMFADeviceCommand = de_TagMFADeviceCommand;
6645
6519
  const de_TagMFADeviceCommandError = async (output, context) => {
@@ -6666,10 +6540,9 @@ const de_TagMFADeviceCommandError = async (output, context) => {
6666
6540
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6667
6541
  default:
6668
6542
  const parsedBody = parsedOutput.body;
6669
- (0, smithy_client_1.throwDefaultError)({
6543
+ return throwDefaultError({
6670
6544
  output,
6671
6545
  parsedBody: parsedBody.Error,
6672
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6673
6546
  errorCode,
6674
6547
  });
6675
6548
  }
@@ -6682,7 +6555,7 @@ const de_TagOpenIDConnectProviderCommand = async (output, context) => {
6682
6555
  const response = {
6683
6556
  $metadata: deserializeMetadata(output),
6684
6557
  };
6685
- return Promise.resolve(response);
6558
+ return response;
6686
6559
  };
6687
6560
  exports.de_TagOpenIDConnectProviderCommand = de_TagOpenIDConnectProviderCommand;
6688
6561
  const de_TagOpenIDConnectProviderCommandError = async (output, context) => {
@@ -6709,10 +6582,9 @@ const de_TagOpenIDConnectProviderCommandError = async (output, context) => {
6709
6582
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6710
6583
  default:
6711
6584
  const parsedBody = parsedOutput.body;
6712
- (0, smithy_client_1.throwDefaultError)({
6585
+ return throwDefaultError({
6713
6586
  output,
6714
6587
  parsedBody: parsedBody.Error,
6715
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6716
6588
  errorCode,
6717
6589
  });
6718
6590
  }
@@ -6725,7 +6597,7 @@ const de_TagPolicyCommand = async (output, context) => {
6725
6597
  const response = {
6726
6598
  $metadata: deserializeMetadata(output),
6727
6599
  };
6728
- return Promise.resolve(response);
6600
+ return response;
6729
6601
  };
6730
6602
  exports.de_TagPolicyCommand = de_TagPolicyCommand;
6731
6603
  const de_TagPolicyCommandError = async (output, context) => {
@@ -6752,10 +6624,9 @@ const de_TagPolicyCommandError = async (output, context) => {
6752
6624
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6753
6625
  default:
6754
6626
  const parsedBody = parsedOutput.body;
6755
- (0, smithy_client_1.throwDefaultError)({
6627
+ return throwDefaultError({
6756
6628
  output,
6757
6629
  parsedBody: parsedBody.Error,
6758
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6759
6630
  errorCode,
6760
6631
  });
6761
6632
  }
@@ -6768,7 +6639,7 @@ const de_TagRoleCommand = async (output, context) => {
6768
6639
  const response = {
6769
6640
  $metadata: deserializeMetadata(output),
6770
6641
  };
6771
- return Promise.resolve(response);
6642
+ return response;
6772
6643
  };
6773
6644
  exports.de_TagRoleCommand = de_TagRoleCommand;
6774
6645
  const de_TagRoleCommandError = async (output, context) => {
@@ -6795,10 +6666,9 @@ const de_TagRoleCommandError = async (output, context) => {
6795
6666
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6796
6667
  default:
6797
6668
  const parsedBody = parsedOutput.body;
6798
- (0, smithy_client_1.throwDefaultError)({
6669
+ return throwDefaultError({
6799
6670
  output,
6800
6671
  parsedBody: parsedBody.Error,
6801
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6802
6672
  errorCode,
6803
6673
  });
6804
6674
  }
@@ -6811,7 +6681,7 @@ const de_TagSAMLProviderCommand = async (output, context) => {
6811
6681
  const response = {
6812
6682
  $metadata: deserializeMetadata(output),
6813
6683
  };
6814
- return Promise.resolve(response);
6684
+ return response;
6815
6685
  };
6816
6686
  exports.de_TagSAMLProviderCommand = de_TagSAMLProviderCommand;
6817
6687
  const de_TagSAMLProviderCommandError = async (output, context) => {
@@ -6838,10 +6708,9 @@ const de_TagSAMLProviderCommandError = async (output, context) => {
6838
6708
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6839
6709
  default:
6840
6710
  const parsedBody = parsedOutput.body;
6841
- (0, smithy_client_1.throwDefaultError)({
6711
+ return throwDefaultError({
6842
6712
  output,
6843
6713
  parsedBody: parsedBody.Error,
6844
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6845
6714
  errorCode,
6846
6715
  });
6847
6716
  }
@@ -6854,7 +6723,7 @@ const de_TagServerCertificateCommand = async (output, context) => {
6854
6723
  const response = {
6855
6724
  $metadata: deserializeMetadata(output),
6856
6725
  };
6857
- return Promise.resolve(response);
6726
+ return response;
6858
6727
  };
6859
6728
  exports.de_TagServerCertificateCommand = de_TagServerCertificateCommand;
6860
6729
  const de_TagServerCertificateCommandError = async (output, context) => {
@@ -6881,10 +6750,9 @@ const de_TagServerCertificateCommandError = async (output, context) => {
6881
6750
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6882
6751
  default:
6883
6752
  const parsedBody = parsedOutput.body;
6884
- (0, smithy_client_1.throwDefaultError)({
6753
+ return throwDefaultError({
6885
6754
  output,
6886
6755
  parsedBody: parsedBody.Error,
6887
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6888
6756
  errorCode,
6889
6757
  });
6890
6758
  }
@@ -6897,7 +6765,7 @@ const de_TagUserCommand = async (output, context) => {
6897
6765
  const response = {
6898
6766
  $metadata: deserializeMetadata(output),
6899
6767
  };
6900
- return Promise.resolve(response);
6768
+ return response;
6901
6769
  };
6902
6770
  exports.de_TagUserCommand = de_TagUserCommand;
6903
6771
  const de_TagUserCommandError = async (output, context) => {
@@ -6924,10 +6792,9 @@ const de_TagUserCommandError = async (output, context) => {
6924
6792
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6925
6793
  default:
6926
6794
  const parsedBody = parsedOutput.body;
6927
- (0, smithy_client_1.throwDefaultError)({
6795
+ return throwDefaultError({
6928
6796
  output,
6929
6797
  parsedBody: parsedBody.Error,
6930
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6931
6798
  errorCode,
6932
6799
  });
6933
6800
  }
@@ -6940,7 +6807,7 @@ const de_UntagInstanceProfileCommand = async (output, context) => {
6940
6807
  const response = {
6941
6808
  $metadata: deserializeMetadata(output),
6942
6809
  };
6943
- return Promise.resolve(response);
6810
+ return response;
6944
6811
  };
6945
6812
  exports.de_UntagInstanceProfileCommand = de_UntagInstanceProfileCommand;
6946
6813
  const de_UntagInstanceProfileCommandError = async (output, context) => {
@@ -6964,10 +6831,9 @@ const de_UntagInstanceProfileCommandError = async (output, context) => {
6964
6831
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6965
6832
  default:
6966
6833
  const parsedBody = parsedOutput.body;
6967
- (0, smithy_client_1.throwDefaultError)({
6834
+ return throwDefaultError({
6968
6835
  output,
6969
6836
  parsedBody: parsedBody.Error,
6970
- exceptionCtor: IAMServiceException_1.IAMServiceException,
6971
6837
  errorCode,
6972
6838
  });
6973
6839
  }
@@ -6980,7 +6846,7 @@ const de_UntagMFADeviceCommand = async (output, context) => {
6980
6846
  const response = {
6981
6847
  $metadata: deserializeMetadata(output),
6982
6848
  };
6983
- return Promise.resolve(response);
6849
+ return response;
6984
6850
  };
6985
6851
  exports.de_UntagMFADeviceCommand = de_UntagMFADeviceCommand;
6986
6852
  const de_UntagMFADeviceCommandError = async (output, context) => {
@@ -7004,10 +6870,9 @@ const de_UntagMFADeviceCommandError = async (output, context) => {
7004
6870
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7005
6871
  default:
7006
6872
  const parsedBody = parsedOutput.body;
7007
- (0, smithy_client_1.throwDefaultError)({
6873
+ return throwDefaultError({
7008
6874
  output,
7009
6875
  parsedBody: parsedBody.Error,
7010
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7011
6876
  errorCode,
7012
6877
  });
7013
6878
  }
@@ -7020,7 +6885,7 @@ const de_UntagOpenIDConnectProviderCommand = async (output, context) => {
7020
6885
  const response = {
7021
6886
  $metadata: deserializeMetadata(output),
7022
6887
  };
7023
- return Promise.resolve(response);
6888
+ return response;
7024
6889
  };
7025
6890
  exports.de_UntagOpenIDConnectProviderCommand = de_UntagOpenIDConnectProviderCommand;
7026
6891
  const de_UntagOpenIDConnectProviderCommandError = async (output, context) => {
@@ -7044,10 +6909,9 @@ const de_UntagOpenIDConnectProviderCommandError = async (output, context) => {
7044
6909
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7045
6910
  default:
7046
6911
  const parsedBody = parsedOutput.body;
7047
- (0, smithy_client_1.throwDefaultError)({
6912
+ return throwDefaultError({
7048
6913
  output,
7049
6914
  parsedBody: parsedBody.Error,
7050
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7051
6915
  errorCode,
7052
6916
  });
7053
6917
  }
@@ -7060,7 +6924,7 @@ const de_UntagPolicyCommand = async (output, context) => {
7060
6924
  const response = {
7061
6925
  $metadata: deserializeMetadata(output),
7062
6926
  };
7063
- return Promise.resolve(response);
6927
+ return response;
7064
6928
  };
7065
6929
  exports.de_UntagPolicyCommand = de_UntagPolicyCommand;
7066
6930
  const de_UntagPolicyCommandError = async (output, context) => {
@@ -7084,10 +6948,9 @@ const de_UntagPolicyCommandError = async (output, context) => {
7084
6948
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7085
6949
  default:
7086
6950
  const parsedBody = parsedOutput.body;
7087
- (0, smithy_client_1.throwDefaultError)({
6951
+ return throwDefaultError({
7088
6952
  output,
7089
6953
  parsedBody: parsedBody.Error,
7090
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7091
6954
  errorCode,
7092
6955
  });
7093
6956
  }
@@ -7100,7 +6963,7 @@ const de_UntagRoleCommand = async (output, context) => {
7100
6963
  const response = {
7101
6964
  $metadata: deserializeMetadata(output),
7102
6965
  };
7103
- return Promise.resolve(response);
6966
+ return response;
7104
6967
  };
7105
6968
  exports.de_UntagRoleCommand = de_UntagRoleCommand;
7106
6969
  const de_UntagRoleCommandError = async (output, context) => {
@@ -7121,10 +6984,9 @@ const de_UntagRoleCommandError = async (output, context) => {
7121
6984
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7122
6985
  default:
7123
6986
  const parsedBody = parsedOutput.body;
7124
- (0, smithy_client_1.throwDefaultError)({
6987
+ return throwDefaultError({
7125
6988
  output,
7126
6989
  parsedBody: parsedBody.Error,
7127
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7128
6990
  errorCode,
7129
6991
  });
7130
6992
  }
@@ -7137,7 +6999,7 @@ const de_UntagSAMLProviderCommand = async (output, context) => {
7137
6999
  const response = {
7138
7000
  $metadata: deserializeMetadata(output),
7139
7001
  };
7140
- return Promise.resolve(response);
7002
+ return response;
7141
7003
  };
7142
7004
  exports.de_UntagSAMLProviderCommand = de_UntagSAMLProviderCommand;
7143
7005
  const de_UntagSAMLProviderCommandError = async (output, context) => {
@@ -7161,10 +7023,9 @@ const de_UntagSAMLProviderCommandError = async (output, context) => {
7161
7023
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7162
7024
  default:
7163
7025
  const parsedBody = parsedOutput.body;
7164
- (0, smithy_client_1.throwDefaultError)({
7026
+ return throwDefaultError({
7165
7027
  output,
7166
7028
  parsedBody: parsedBody.Error,
7167
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7168
7029
  errorCode,
7169
7030
  });
7170
7031
  }
@@ -7177,7 +7038,7 @@ const de_UntagServerCertificateCommand = async (output, context) => {
7177
7038
  const response = {
7178
7039
  $metadata: deserializeMetadata(output),
7179
7040
  };
7180
- return Promise.resolve(response);
7041
+ return response;
7181
7042
  };
7182
7043
  exports.de_UntagServerCertificateCommand = de_UntagServerCertificateCommand;
7183
7044
  const de_UntagServerCertificateCommandError = async (output, context) => {
@@ -7201,10 +7062,9 @@ const de_UntagServerCertificateCommandError = async (output, context) => {
7201
7062
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7202
7063
  default:
7203
7064
  const parsedBody = parsedOutput.body;
7204
- (0, smithy_client_1.throwDefaultError)({
7065
+ return throwDefaultError({
7205
7066
  output,
7206
7067
  parsedBody: parsedBody.Error,
7207
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7208
7068
  errorCode,
7209
7069
  });
7210
7070
  }
@@ -7217,7 +7077,7 @@ const de_UntagUserCommand = async (output, context) => {
7217
7077
  const response = {
7218
7078
  $metadata: deserializeMetadata(output),
7219
7079
  };
7220
- return Promise.resolve(response);
7080
+ return response;
7221
7081
  };
7222
7082
  exports.de_UntagUserCommand = de_UntagUserCommand;
7223
7083
  const de_UntagUserCommandError = async (output, context) => {
@@ -7238,10 +7098,9 @@ const de_UntagUserCommandError = async (output, context) => {
7238
7098
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7239
7099
  default:
7240
7100
  const parsedBody = parsedOutput.body;
7241
- (0, smithy_client_1.throwDefaultError)({
7101
+ return throwDefaultError({
7242
7102
  output,
7243
7103
  parsedBody: parsedBody.Error,
7244
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7245
7104
  errorCode,
7246
7105
  });
7247
7106
  }
@@ -7254,7 +7113,7 @@ const de_UpdateAccessKeyCommand = async (output, context) => {
7254
7113
  const response = {
7255
7114
  $metadata: deserializeMetadata(output),
7256
7115
  };
7257
- return Promise.resolve(response);
7116
+ return response;
7258
7117
  };
7259
7118
  exports.de_UpdateAccessKeyCommand = de_UpdateAccessKeyCommand;
7260
7119
  const de_UpdateAccessKeyCommandError = async (output, context) => {
@@ -7275,10 +7134,9 @@ const de_UpdateAccessKeyCommandError = async (output, context) => {
7275
7134
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7276
7135
  default:
7277
7136
  const parsedBody = parsedOutput.body;
7278
- (0, smithy_client_1.throwDefaultError)({
7137
+ return throwDefaultError({
7279
7138
  output,
7280
7139
  parsedBody: parsedBody.Error,
7281
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7282
7140
  errorCode,
7283
7141
  });
7284
7142
  }
@@ -7291,7 +7149,7 @@ const de_UpdateAccountPasswordPolicyCommand = async (output, context) => {
7291
7149
  const response = {
7292
7150
  $metadata: deserializeMetadata(output),
7293
7151
  };
7294
- return Promise.resolve(response);
7152
+ return response;
7295
7153
  };
7296
7154
  exports.de_UpdateAccountPasswordPolicyCommand = de_UpdateAccountPasswordPolicyCommand;
7297
7155
  const de_UpdateAccountPasswordPolicyCommandError = async (output, context) => {
@@ -7315,10 +7173,9 @@ const de_UpdateAccountPasswordPolicyCommandError = async (output, context) => {
7315
7173
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7316
7174
  default:
7317
7175
  const parsedBody = parsedOutput.body;
7318
- (0, smithy_client_1.throwDefaultError)({
7176
+ return throwDefaultError({
7319
7177
  output,
7320
7178
  parsedBody: parsedBody.Error,
7321
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7322
7179
  errorCode,
7323
7180
  });
7324
7181
  }
@@ -7331,7 +7188,7 @@ const de_UpdateAssumeRolePolicyCommand = async (output, context) => {
7331
7188
  const response = {
7332
7189
  $metadata: deserializeMetadata(output),
7333
7190
  };
7334
- return Promise.resolve(response);
7191
+ return response;
7335
7192
  };
7336
7193
  exports.de_UpdateAssumeRolePolicyCommand = de_UpdateAssumeRolePolicyCommand;
7337
7194
  const de_UpdateAssumeRolePolicyCommandError = async (output, context) => {
@@ -7358,10 +7215,9 @@ const de_UpdateAssumeRolePolicyCommandError = async (output, context) => {
7358
7215
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
7359
7216
  default:
7360
7217
  const parsedBody = parsedOutput.body;
7361
- (0, smithy_client_1.throwDefaultError)({
7218
+ return throwDefaultError({
7362
7219
  output,
7363
7220
  parsedBody: parsedBody.Error,
7364
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7365
7221
  errorCode,
7366
7222
  });
7367
7223
  }
@@ -7374,7 +7230,7 @@ const de_UpdateGroupCommand = async (output, context) => {
7374
7230
  const response = {
7375
7231
  $metadata: deserializeMetadata(output),
7376
7232
  };
7377
- return Promise.resolve(response);
7233
+ return response;
7378
7234
  };
7379
7235
  exports.de_UpdateGroupCommand = de_UpdateGroupCommand;
7380
7236
  const de_UpdateGroupCommandError = async (output, context) => {
@@ -7398,10 +7254,9 @@ const de_UpdateGroupCommandError = async (output, context) => {
7398
7254
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7399
7255
  default:
7400
7256
  const parsedBody = parsedOutput.body;
7401
- (0, smithy_client_1.throwDefaultError)({
7257
+ return throwDefaultError({
7402
7258
  output,
7403
7259
  parsedBody: parsedBody.Error,
7404
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7405
7260
  errorCode,
7406
7261
  });
7407
7262
  }
@@ -7414,7 +7269,7 @@ const de_UpdateLoginProfileCommand = async (output, context) => {
7414
7269
  const response = {
7415
7270
  $metadata: deserializeMetadata(output),
7416
7271
  };
7417
- return Promise.resolve(response);
7272
+ return response;
7418
7273
  };
7419
7274
  exports.de_UpdateLoginProfileCommand = de_UpdateLoginProfileCommand;
7420
7275
  const de_UpdateLoginProfileCommandError = async (output, context) => {
@@ -7441,10 +7296,9 @@ const de_UpdateLoginProfileCommandError = async (output, context) => {
7441
7296
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7442
7297
  default:
7443
7298
  const parsedBody = parsedOutput.body;
7444
- (0, smithy_client_1.throwDefaultError)({
7299
+ return throwDefaultError({
7445
7300
  output,
7446
7301
  parsedBody: parsedBody.Error,
7447
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7448
7302
  errorCode,
7449
7303
  });
7450
7304
  }
@@ -7457,7 +7311,7 @@ const de_UpdateOpenIDConnectProviderThumbprintCommand = async (output, context)
7457
7311
  const response = {
7458
7312
  $metadata: deserializeMetadata(output),
7459
7313
  };
7460
- return Promise.resolve(response);
7314
+ return response;
7461
7315
  };
7462
7316
  exports.de_UpdateOpenIDConnectProviderThumbprintCommand = de_UpdateOpenIDConnectProviderThumbprintCommand;
7463
7317
  const de_UpdateOpenIDConnectProviderThumbprintCommandError = async (output, context) => {
@@ -7478,10 +7332,9 @@ const de_UpdateOpenIDConnectProviderThumbprintCommandError = async (output, cont
7478
7332
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7479
7333
  default:
7480
7334
  const parsedBody = parsedOutput.body;
7481
- (0, smithy_client_1.throwDefaultError)({
7335
+ return throwDefaultError({
7482
7336
  output,
7483
7337
  parsedBody: parsedBody.Error,
7484
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7485
7338
  errorCode,
7486
7339
  });
7487
7340
  }
@@ -7497,7 +7350,7 @@ const de_UpdateRoleCommand = async (output, context) => {
7497
7350
  $metadata: deserializeMetadata(output),
7498
7351
  ...contents,
7499
7352
  };
7500
- return Promise.resolve(response);
7353
+ return response;
7501
7354
  };
7502
7355
  exports.de_UpdateRoleCommand = de_UpdateRoleCommand;
7503
7356
  const de_UpdateRoleCommandError = async (output, context) => {
@@ -7518,10 +7371,9 @@ const de_UpdateRoleCommandError = async (output, context) => {
7518
7371
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
7519
7372
  default:
7520
7373
  const parsedBody = parsedOutput.body;
7521
- (0, smithy_client_1.throwDefaultError)({
7374
+ return throwDefaultError({
7522
7375
  output,
7523
7376
  parsedBody: parsedBody.Error,
7524
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7525
7377
  errorCode,
7526
7378
  });
7527
7379
  }
@@ -7537,7 +7389,7 @@ const de_UpdateRoleDescriptionCommand = async (output, context) => {
7537
7389
  $metadata: deserializeMetadata(output),
7538
7390
  ...contents,
7539
7391
  };
7540
- return Promise.resolve(response);
7392
+ return response;
7541
7393
  };
7542
7394
  exports.de_UpdateRoleDescriptionCommand = de_UpdateRoleDescriptionCommand;
7543
7395
  const de_UpdateRoleDescriptionCommandError = async (output, context) => {
@@ -7558,10 +7410,9 @@ const de_UpdateRoleDescriptionCommandError = async (output, context) => {
7558
7410
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
7559
7411
  default:
7560
7412
  const parsedBody = parsedOutput.body;
7561
- (0, smithy_client_1.throwDefaultError)({
7413
+ return throwDefaultError({
7562
7414
  output,
7563
7415
  parsedBody: parsedBody.Error,
7564
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7565
7416
  errorCode,
7566
7417
  });
7567
7418
  }
@@ -7577,7 +7428,7 @@ const de_UpdateSAMLProviderCommand = async (output, context) => {
7577
7428
  $metadata: deserializeMetadata(output),
7578
7429
  ...contents,
7579
7430
  };
7580
- return Promise.resolve(response);
7431
+ return response;
7581
7432
  };
7582
7433
  exports.de_UpdateSAMLProviderCommand = de_UpdateSAMLProviderCommand;
7583
7434
  const de_UpdateSAMLProviderCommandError = async (output, context) => {
@@ -7601,10 +7452,9 @@ const de_UpdateSAMLProviderCommandError = async (output, context) => {
7601
7452
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7602
7453
  default:
7603
7454
  const parsedBody = parsedOutput.body;
7604
- (0, smithy_client_1.throwDefaultError)({
7455
+ return throwDefaultError({
7605
7456
  output,
7606
7457
  parsedBody: parsedBody.Error,
7607
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7608
7458
  errorCode,
7609
7459
  });
7610
7460
  }
@@ -7617,7 +7467,7 @@ const de_UpdateServerCertificateCommand = async (output, context) => {
7617
7467
  const response = {
7618
7468
  $metadata: deserializeMetadata(output),
7619
7469
  };
7620
- return Promise.resolve(response);
7470
+ return response;
7621
7471
  };
7622
7472
  exports.de_UpdateServerCertificateCommand = de_UpdateServerCertificateCommand;
7623
7473
  const de_UpdateServerCertificateCommandError = async (output, context) => {
@@ -7641,10 +7491,9 @@ const de_UpdateServerCertificateCommandError = async (output, context) => {
7641
7491
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7642
7492
  default:
7643
7493
  const parsedBody = parsedOutput.body;
7644
- (0, smithy_client_1.throwDefaultError)({
7494
+ return throwDefaultError({
7645
7495
  output,
7646
7496
  parsedBody: parsedBody.Error,
7647
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7648
7497
  errorCode,
7649
7498
  });
7650
7499
  }
@@ -7657,7 +7506,7 @@ const de_UpdateServiceSpecificCredentialCommand = async (output, context) => {
7657
7506
  const response = {
7658
7507
  $metadata: deserializeMetadata(output),
7659
7508
  };
7660
- return Promise.resolve(response);
7509
+ return response;
7661
7510
  };
7662
7511
  exports.de_UpdateServiceSpecificCredentialCommand = de_UpdateServiceSpecificCredentialCommand;
7663
7512
  const de_UpdateServiceSpecificCredentialCommandError = async (output, context) => {
@@ -7672,10 +7521,9 @@ const de_UpdateServiceSpecificCredentialCommandError = async (output, context) =
7672
7521
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
7673
7522
  default:
7674
7523
  const parsedBody = parsedOutput.body;
7675
- (0, smithy_client_1.throwDefaultError)({
7524
+ return throwDefaultError({
7676
7525
  output,
7677
7526
  parsedBody: parsedBody.Error,
7678
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7679
7527
  errorCode,
7680
7528
  });
7681
7529
  }
@@ -7688,7 +7536,7 @@ const de_UpdateSigningCertificateCommand = async (output, context) => {
7688
7536
  const response = {
7689
7537
  $metadata: deserializeMetadata(output),
7690
7538
  };
7691
- return Promise.resolve(response);
7539
+ return response;
7692
7540
  };
7693
7541
  exports.de_UpdateSigningCertificateCommand = de_UpdateSigningCertificateCommand;
7694
7542
  const de_UpdateSigningCertificateCommandError = async (output, context) => {
@@ -7709,10 +7557,9 @@ const de_UpdateSigningCertificateCommandError = async (output, context) => {
7709
7557
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7710
7558
  default:
7711
7559
  const parsedBody = parsedOutput.body;
7712
- (0, smithy_client_1.throwDefaultError)({
7560
+ return throwDefaultError({
7713
7561
  output,
7714
7562
  parsedBody: parsedBody.Error,
7715
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7716
7563
  errorCode,
7717
7564
  });
7718
7565
  }
@@ -7725,7 +7572,7 @@ const de_UpdateSSHPublicKeyCommand = async (output, context) => {
7725
7572
  const response = {
7726
7573
  $metadata: deserializeMetadata(output),
7727
7574
  };
7728
- return Promise.resolve(response);
7575
+ return response;
7729
7576
  };
7730
7577
  exports.de_UpdateSSHPublicKeyCommand = de_UpdateSSHPublicKeyCommand;
7731
7578
  const de_UpdateSSHPublicKeyCommandError = async (output, context) => {
@@ -7740,10 +7587,9 @@ const de_UpdateSSHPublicKeyCommandError = async (output, context) => {
7740
7587
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
7741
7588
  default:
7742
7589
  const parsedBody = parsedOutput.body;
7743
- (0, smithy_client_1.throwDefaultError)({
7590
+ return throwDefaultError({
7744
7591
  output,
7745
7592
  parsedBody: parsedBody.Error,
7746
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7747
7593
  errorCode,
7748
7594
  });
7749
7595
  }
@@ -7756,7 +7602,7 @@ const de_UpdateUserCommand = async (output, context) => {
7756
7602
  const response = {
7757
7603
  $metadata: deserializeMetadata(output),
7758
7604
  };
7759
- return Promise.resolve(response);
7605
+ return response;
7760
7606
  };
7761
7607
  exports.de_UpdateUserCommand = de_UpdateUserCommand;
7762
7608
  const de_UpdateUserCommandError = async (output, context) => {
@@ -7786,10 +7632,9 @@ const de_UpdateUserCommandError = async (output, context) => {
7786
7632
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7787
7633
  default:
7788
7634
  const parsedBody = parsedOutput.body;
7789
- (0, smithy_client_1.throwDefaultError)({
7635
+ return throwDefaultError({
7790
7636
  output,
7791
7637
  parsedBody: parsedBody.Error,
7792
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7793
7638
  errorCode,
7794
7639
  });
7795
7640
  }
@@ -7805,7 +7650,7 @@ const de_UploadServerCertificateCommand = async (output, context) => {
7805
7650
  $metadata: deserializeMetadata(output),
7806
7651
  ...contents,
7807
7652
  };
7808
- return Promise.resolve(response);
7653
+ return response;
7809
7654
  };
7810
7655
  exports.de_UploadServerCertificateCommand = de_UploadServerCertificateCommand;
7811
7656
  const de_UploadServerCertificateCommandError = async (output, context) => {
@@ -7838,10 +7683,9 @@ const de_UploadServerCertificateCommandError = async (output, context) => {
7838
7683
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7839
7684
  default:
7840
7685
  const parsedBody = parsedOutput.body;
7841
- (0, smithy_client_1.throwDefaultError)({
7686
+ return throwDefaultError({
7842
7687
  output,
7843
7688
  parsedBody: parsedBody.Error,
7844
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7845
7689
  errorCode,
7846
7690
  });
7847
7691
  }
@@ -7857,7 +7701,7 @@ const de_UploadSigningCertificateCommand = async (output, context) => {
7857
7701
  $metadata: deserializeMetadata(output),
7858
7702
  ...contents,
7859
7703
  };
7860
- return Promise.resolve(response);
7704
+ return response;
7861
7705
  };
7862
7706
  exports.de_UploadSigningCertificateCommand = de_UploadSigningCertificateCommand;
7863
7707
  const de_UploadSigningCertificateCommandError = async (output, context) => {
@@ -7890,10 +7734,9 @@ const de_UploadSigningCertificateCommandError = async (output, context) => {
7890
7734
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7891
7735
  default:
7892
7736
  const parsedBody = parsedOutput.body;
7893
- (0, smithy_client_1.throwDefaultError)({
7737
+ return throwDefaultError({
7894
7738
  output,
7895
7739
  parsedBody: parsedBody.Error,
7896
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7897
7740
  errorCode,
7898
7741
  });
7899
7742
  }
@@ -7909,7 +7752,7 @@ const de_UploadSSHPublicKeyCommand = async (output, context) => {
7909
7752
  $metadata: deserializeMetadata(output),
7910
7753
  ...contents,
7911
7754
  };
7912
- return Promise.resolve(response);
7755
+ return response;
7913
7756
  };
7914
7757
  exports.de_UploadSSHPublicKeyCommand = de_UploadSSHPublicKeyCommand;
7915
7758
  const de_UploadSSHPublicKeyCommandError = async (output, context) => {
@@ -7936,10 +7779,9 @@ const de_UploadSSHPublicKeyCommandError = async (output, context) => {
7936
7779
  throw await de_UnrecognizedPublicKeyEncodingExceptionRes(parsedOutput, context);
7937
7780
  default:
7938
7781
  const parsedBody = parsedOutput.body;
7939
- (0, smithy_client_1.throwDefaultError)({
7782
+ return throwDefaultError({
7940
7783
  output,
7941
7784
  parsedBody: parsedBody.Error,
7942
- exceptionCtor: IAMServiceException_1.IAMServiceException,
7943
7785
  errorCode,
7944
7786
  });
7945
7787
  }
@@ -13027,6 +12869,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
13027
12869
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
13028
12870
  };
13029
12871
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
12872
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(IAMServiceException_1.IAMServiceException);
13030
12873
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
13031
12874
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
13032
12875
  const contents = {