@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.
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  import { IAMServiceException as __BaseException } from "../models/IAMServiceException";
5
5
  import { ConcurrentModificationException, CredentialReportExpiredException, CredentialReportNotPresentException, CredentialReportNotReadyException, DeleteConflictException, EntityAlreadyExistsException, EntityTemporarilyUnmodifiableException, InvalidAuthenticationCodeException, InvalidInputException, InvalidUserTypeException, LimitExceededException, MalformedPolicyDocumentException, NoSuchEntityException, PasswordPolicyViolationException, PolicyEvaluationException, PolicyNotAttachableException, ReportGenerationLimitExceededException, ServiceFailureException, ServiceNotSupportedException, UnmodifiableEntityException, UnrecognizedPublicKeyEncodingException, } from "../models/models_0";
@@ -1582,7 +1582,7 @@ export const de_AddClientIDToOpenIDConnectProviderCommand = async (output, conte
1582
1582
  const response = {
1583
1583
  $metadata: deserializeMetadata(output),
1584
1584
  };
1585
- return Promise.resolve(response);
1585
+ return response;
1586
1586
  };
1587
1587
  const de_AddClientIDToOpenIDConnectProviderCommandError = async (output, context) => {
1588
1588
  const parsedOutput = {
@@ -1605,10 +1605,9 @@ const de_AddClientIDToOpenIDConnectProviderCommandError = async (output, context
1605
1605
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1606
1606
  default:
1607
1607
  const parsedBody = parsedOutput.body;
1608
- throwDefaultError({
1608
+ return throwDefaultError({
1609
1609
  output,
1610
1610
  parsedBody: parsedBody.Error,
1611
- exceptionCtor: __BaseException,
1612
1611
  errorCode,
1613
1612
  });
1614
1613
  }
@@ -1621,7 +1620,7 @@ export const de_AddRoleToInstanceProfileCommand = async (output, context) => {
1621
1620
  const response = {
1622
1621
  $metadata: deserializeMetadata(output),
1623
1622
  };
1624
- return Promise.resolve(response);
1623
+ return response;
1625
1624
  };
1626
1625
  const de_AddRoleToInstanceProfileCommandError = async (output, context) => {
1627
1626
  const parsedOutput = {
@@ -1647,10 +1646,9 @@ const de_AddRoleToInstanceProfileCommandError = async (output, context) => {
1647
1646
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
1648
1647
  default:
1649
1648
  const parsedBody = parsedOutput.body;
1650
- throwDefaultError({
1649
+ return throwDefaultError({
1651
1650
  output,
1652
1651
  parsedBody: parsedBody.Error,
1653
- exceptionCtor: __BaseException,
1654
1652
  errorCode,
1655
1653
  });
1656
1654
  }
@@ -1663,7 +1661,7 @@ export const de_AddUserToGroupCommand = async (output, context) => {
1663
1661
  const response = {
1664
1662
  $metadata: deserializeMetadata(output),
1665
1663
  };
1666
- return Promise.resolve(response);
1664
+ return response;
1667
1665
  };
1668
1666
  const de_AddUserToGroupCommandError = async (output, context) => {
1669
1667
  const parsedOutput = {
@@ -1683,10 +1681,9 @@ const de_AddUserToGroupCommandError = async (output, context) => {
1683
1681
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1684
1682
  default:
1685
1683
  const parsedBody = parsedOutput.body;
1686
- throwDefaultError({
1684
+ return throwDefaultError({
1687
1685
  output,
1688
1686
  parsedBody: parsedBody.Error,
1689
- exceptionCtor: __BaseException,
1690
1687
  errorCode,
1691
1688
  });
1692
1689
  }
@@ -1699,7 +1696,7 @@ export const de_AttachGroupPolicyCommand = async (output, context) => {
1699
1696
  const response = {
1700
1697
  $metadata: deserializeMetadata(output),
1701
1698
  };
1702
- return Promise.resolve(response);
1699
+ return response;
1703
1700
  };
1704
1701
  const de_AttachGroupPolicyCommandError = async (output, context) => {
1705
1702
  const parsedOutput = {
@@ -1725,10 +1722,9 @@ const de_AttachGroupPolicyCommandError = async (output, context) => {
1725
1722
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1726
1723
  default:
1727
1724
  const parsedBody = parsedOutput.body;
1728
- throwDefaultError({
1725
+ return throwDefaultError({
1729
1726
  output,
1730
1727
  parsedBody: parsedBody.Error,
1731
- exceptionCtor: __BaseException,
1732
1728
  errorCode,
1733
1729
  });
1734
1730
  }
@@ -1741,7 +1737,7 @@ export const de_AttachRolePolicyCommand = async (output, context) => {
1741
1737
  const response = {
1742
1738
  $metadata: deserializeMetadata(output),
1743
1739
  };
1744
- return Promise.resolve(response);
1740
+ return response;
1745
1741
  };
1746
1742
  const de_AttachRolePolicyCommandError = async (output, context) => {
1747
1743
  const parsedOutput = {
@@ -1770,10 +1766,9 @@ const de_AttachRolePolicyCommandError = async (output, context) => {
1770
1766
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
1771
1767
  default:
1772
1768
  const parsedBody = parsedOutput.body;
1773
- throwDefaultError({
1769
+ return throwDefaultError({
1774
1770
  output,
1775
1771
  parsedBody: parsedBody.Error,
1776
- exceptionCtor: __BaseException,
1777
1772
  errorCode,
1778
1773
  });
1779
1774
  }
@@ -1786,7 +1781,7 @@ export const de_AttachUserPolicyCommand = async (output, context) => {
1786
1781
  const response = {
1787
1782
  $metadata: deserializeMetadata(output),
1788
1783
  };
1789
- return Promise.resolve(response);
1784
+ return response;
1790
1785
  };
1791
1786
  const de_AttachUserPolicyCommandError = async (output, context) => {
1792
1787
  const parsedOutput = {
@@ -1812,10 +1807,9 @@ const de_AttachUserPolicyCommandError = async (output, context) => {
1812
1807
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1813
1808
  default:
1814
1809
  const parsedBody = parsedOutput.body;
1815
- throwDefaultError({
1810
+ return throwDefaultError({
1816
1811
  output,
1817
1812
  parsedBody: parsedBody.Error,
1818
- exceptionCtor: __BaseException,
1819
1813
  errorCode,
1820
1814
  });
1821
1815
  }
@@ -1828,7 +1822,7 @@ export const de_ChangePasswordCommand = async (output, context) => {
1828
1822
  const response = {
1829
1823
  $metadata: deserializeMetadata(output),
1830
1824
  };
1831
- return Promise.resolve(response);
1825
+ return response;
1832
1826
  };
1833
1827
  const de_ChangePasswordCommandError = async (output, context) => {
1834
1828
  const parsedOutput = {
@@ -1857,10 +1851,9 @@ const de_ChangePasswordCommandError = async (output, context) => {
1857
1851
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1858
1852
  default:
1859
1853
  const parsedBody = parsedOutput.body;
1860
- throwDefaultError({
1854
+ return throwDefaultError({
1861
1855
  output,
1862
1856
  parsedBody: parsedBody.Error,
1863
- exceptionCtor: __BaseException,
1864
1857
  errorCode,
1865
1858
  });
1866
1859
  }
@@ -1876,7 +1869,7 @@ export const de_CreateAccessKeyCommand = async (output, context) => {
1876
1869
  $metadata: deserializeMetadata(output),
1877
1870
  ...contents,
1878
1871
  };
1879
- return Promise.resolve(response);
1872
+ return response;
1880
1873
  };
1881
1874
  const de_CreateAccessKeyCommandError = async (output, context) => {
1882
1875
  const parsedOutput = {
@@ -1896,10 +1889,9 @@ const de_CreateAccessKeyCommandError = async (output, context) => {
1896
1889
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1897
1890
  default:
1898
1891
  const parsedBody = parsedOutput.body;
1899
- throwDefaultError({
1892
+ return throwDefaultError({
1900
1893
  output,
1901
1894
  parsedBody: parsedBody.Error,
1902
- exceptionCtor: __BaseException,
1903
1895
  errorCode,
1904
1896
  });
1905
1897
  }
@@ -1912,7 +1904,7 @@ export const de_CreateAccountAliasCommand = async (output, context) => {
1912
1904
  const response = {
1913
1905
  $metadata: deserializeMetadata(output),
1914
1906
  };
1915
- return Promise.resolve(response);
1907
+ return response;
1916
1908
  };
1917
1909
  const de_CreateAccountAliasCommandError = async (output, context) => {
1918
1910
  const parsedOutput = {
@@ -1932,10 +1924,9 @@ const de_CreateAccountAliasCommandError = async (output, context) => {
1932
1924
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1933
1925
  default:
1934
1926
  const parsedBody = parsedOutput.body;
1935
- throwDefaultError({
1927
+ return throwDefaultError({
1936
1928
  output,
1937
1929
  parsedBody: parsedBody.Error,
1938
- exceptionCtor: __BaseException,
1939
1930
  errorCode,
1940
1931
  });
1941
1932
  }
@@ -1951,7 +1942,7 @@ export const de_CreateGroupCommand = async (output, context) => {
1951
1942
  $metadata: deserializeMetadata(output),
1952
1943
  ...contents,
1953
1944
  };
1954
- return Promise.resolve(response);
1945
+ return response;
1955
1946
  };
1956
1947
  const de_CreateGroupCommandError = async (output, context) => {
1957
1948
  const parsedOutput = {
@@ -1974,10 +1965,9 @@ const de_CreateGroupCommandError = async (output, context) => {
1974
1965
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
1975
1966
  default:
1976
1967
  const parsedBody = parsedOutput.body;
1977
- throwDefaultError({
1968
+ return throwDefaultError({
1978
1969
  output,
1979
1970
  parsedBody: parsedBody.Error,
1980
- exceptionCtor: __BaseException,
1981
1971
  errorCode,
1982
1972
  });
1983
1973
  }
@@ -1993,7 +1983,7 @@ export const de_CreateInstanceProfileCommand = async (output, context) => {
1993
1983
  $metadata: deserializeMetadata(output),
1994
1984
  ...contents,
1995
1985
  };
1996
- return Promise.resolve(response);
1986
+ return response;
1997
1987
  };
1998
1988
  const de_CreateInstanceProfileCommandError = async (output, context) => {
1999
1989
  const parsedOutput = {
@@ -2019,10 +2009,9 @@ const de_CreateInstanceProfileCommandError = async (output, context) => {
2019
2009
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2020
2010
  default:
2021
2011
  const parsedBody = parsedOutput.body;
2022
- throwDefaultError({
2012
+ return throwDefaultError({
2023
2013
  output,
2024
2014
  parsedBody: parsedBody.Error,
2025
- exceptionCtor: __BaseException,
2026
2015
  errorCode,
2027
2016
  });
2028
2017
  }
@@ -2038,7 +2027,7 @@ export const de_CreateLoginProfileCommand = async (output, context) => {
2038
2027
  $metadata: deserializeMetadata(output),
2039
2028
  ...contents,
2040
2029
  };
2041
- return Promise.resolve(response);
2030
+ return response;
2042
2031
  };
2043
2032
  const de_CreateLoginProfileCommandError = async (output, context) => {
2044
2033
  const parsedOutput = {
@@ -2064,10 +2053,9 @@ const de_CreateLoginProfileCommandError = async (output, context) => {
2064
2053
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2065
2054
  default:
2066
2055
  const parsedBody = parsedOutput.body;
2067
- throwDefaultError({
2056
+ return throwDefaultError({
2068
2057
  output,
2069
2058
  parsedBody: parsedBody.Error,
2070
- exceptionCtor: __BaseException,
2071
2059
  errorCode,
2072
2060
  });
2073
2061
  }
@@ -2083,7 +2071,7 @@ export const de_CreateOpenIDConnectProviderCommand = async (output, context) =>
2083
2071
  $metadata: deserializeMetadata(output),
2084
2072
  ...contents,
2085
2073
  };
2086
- return Promise.resolve(response);
2074
+ return response;
2087
2075
  };
2088
2076
  const de_CreateOpenIDConnectProviderCommandError = async (output, context) => {
2089
2077
  const parsedOutput = {
@@ -2109,10 +2097,9 @@ const de_CreateOpenIDConnectProviderCommandError = async (output, context) => {
2109
2097
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2110
2098
  default:
2111
2099
  const parsedBody = parsedOutput.body;
2112
- throwDefaultError({
2100
+ return throwDefaultError({
2113
2101
  output,
2114
2102
  parsedBody: parsedBody.Error,
2115
- exceptionCtor: __BaseException,
2116
2103
  errorCode,
2117
2104
  });
2118
2105
  }
@@ -2128,7 +2115,7 @@ export const de_CreatePolicyCommand = async (output, context) => {
2128
2115
  $metadata: deserializeMetadata(output),
2129
2116
  ...contents,
2130
2117
  };
2131
- return Promise.resolve(response);
2118
+ return response;
2132
2119
  };
2133
2120
  const de_CreatePolicyCommandError = async (output, context) => {
2134
2121
  const parsedOutput = {
@@ -2157,10 +2144,9 @@ const de_CreatePolicyCommandError = async (output, context) => {
2157
2144
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2158
2145
  default:
2159
2146
  const parsedBody = parsedOutput.body;
2160
- throwDefaultError({
2147
+ return throwDefaultError({
2161
2148
  output,
2162
2149
  parsedBody: parsedBody.Error,
2163
- exceptionCtor: __BaseException,
2164
2150
  errorCode,
2165
2151
  });
2166
2152
  }
@@ -2176,7 +2162,7 @@ export const de_CreatePolicyVersionCommand = async (output, context) => {
2176
2162
  $metadata: deserializeMetadata(output),
2177
2163
  ...contents,
2178
2164
  };
2179
- return Promise.resolve(response);
2165
+ return response;
2180
2166
  };
2181
2167
  const de_CreatePolicyVersionCommandError = async (output, context) => {
2182
2168
  const parsedOutput = {
@@ -2202,10 +2188,9 @@ const de_CreatePolicyVersionCommandError = async (output, context) => {
2202
2188
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2203
2189
  default:
2204
2190
  const parsedBody = parsedOutput.body;
2205
- throwDefaultError({
2191
+ return throwDefaultError({
2206
2192
  output,
2207
2193
  parsedBody: parsedBody.Error,
2208
- exceptionCtor: __BaseException,
2209
2194
  errorCode,
2210
2195
  });
2211
2196
  }
@@ -2221,7 +2206,7 @@ export const de_CreateRoleCommand = async (output, context) => {
2221
2206
  $metadata: deserializeMetadata(output),
2222
2207
  ...contents,
2223
2208
  };
2224
- return Promise.resolve(response);
2209
+ return response;
2225
2210
  };
2226
2211
  const de_CreateRoleCommandError = async (output, context) => {
2227
2212
  const parsedOutput = {
@@ -2250,10 +2235,9 @@ const de_CreateRoleCommandError = async (output, context) => {
2250
2235
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2251
2236
  default:
2252
2237
  const parsedBody = parsedOutput.body;
2253
- throwDefaultError({
2238
+ return throwDefaultError({
2254
2239
  output,
2255
2240
  parsedBody: parsedBody.Error,
2256
- exceptionCtor: __BaseException,
2257
2241
  errorCode,
2258
2242
  });
2259
2243
  }
@@ -2269,7 +2253,7 @@ export const de_CreateSAMLProviderCommand = async (output, context) => {
2269
2253
  $metadata: deserializeMetadata(output),
2270
2254
  ...contents,
2271
2255
  };
2272
- return Promise.resolve(response);
2256
+ return response;
2273
2257
  };
2274
2258
  const de_CreateSAMLProviderCommandError = async (output, context) => {
2275
2259
  const parsedOutput = {
@@ -2295,10 +2279,9 @@ const de_CreateSAMLProviderCommandError = async (output, context) => {
2295
2279
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2296
2280
  default:
2297
2281
  const parsedBody = parsedOutput.body;
2298
- throwDefaultError({
2282
+ return throwDefaultError({
2299
2283
  output,
2300
2284
  parsedBody: parsedBody.Error,
2301
- exceptionCtor: __BaseException,
2302
2285
  errorCode,
2303
2286
  });
2304
2287
  }
@@ -2314,7 +2297,7 @@ export const de_CreateServiceLinkedRoleCommand = async (output, context) => {
2314
2297
  $metadata: deserializeMetadata(output),
2315
2298
  ...contents,
2316
2299
  };
2317
- return Promise.resolve(response);
2300
+ return response;
2318
2301
  };
2319
2302
  const de_CreateServiceLinkedRoleCommandError = async (output, context) => {
2320
2303
  const parsedOutput = {
@@ -2337,10 +2320,9 @@ const de_CreateServiceLinkedRoleCommandError = async (output, context) => {
2337
2320
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2338
2321
  default:
2339
2322
  const parsedBody = parsedOutput.body;
2340
- throwDefaultError({
2323
+ return throwDefaultError({
2341
2324
  output,
2342
2325
  parsedBody: parsedBody.Error,
2343
- exceptionCtor: __BaseException,
2344
2326
  errorCode,
2345
2327
  });
2346
2328
  }
@@ -2356,7 +2338,7 @@ export const de_CreateServiceSpecificCredentialCommand = async (output, context)
2356
2338
  $metadata: deserializeMetadata(output),
2357
2339
  ...contents,
2358
2340
  };
2359
- return Promise.resolve(response);
2341
+ return response;
2360
2342
  };
2361
2343
  const de_CreateServiceSpecificCredentialCommandError = async (output, context) => {
2362
2344
  const parsedOutput = {
@@ -2376,10 +2358,9 @@ const de_CreateServiceSpecificCredentialCommandError = async (output, context) =
2376
2358
  throw await de_ServiceNotSupportedExceptionRes(parsedOutput, context);
2377
2359
  default:
2378
2360
  const parsedBody = parsedOutput.body;
2379
- throwDefaultError({
2361
+ return throwDefaultError({
2380
2362
  output,
2381
2363
  parsedBody: parsedBody.Error,
2382
- exceptionCtor: __BaseException,
2383
2364
  errorCode,
2384
2365
  });
2385
2366
  }
@@ -2395,7 +2376,7 @@ export const de_CreateUserCommand = async (output, context) => {
2395
2376
  $metadata: deserializeMetadata(output),
2396
2377
  ...contents,
2397
2378
  };
2398
- return Promise.resolve(response);
2379
+ return response;
2399
2380
  };
2400
2381
  const de_CreateUserCommandError = async (output, context) => {
2401
2382
  const parsedOutput = {
@@ -2424,10 +2405,9 @@ const de_CreateUserCommandError = async (output, context) => {
2424
2405
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2425
2406
  default:
2426
2407
  const parsedBody = parsedOutput.body;
2427
- throwDefaultError({
2408
+ return throwDefaultError({
2428
2409
  output,
2429
2410
  parsedBody: parsedBody.Error,
2430
- exceptionCtor: __BaseException,
2431
2411
  errorCode,
2432
2412
  });
2433
2413
  }
@@ -2443,7 +2423,7 @@ export const de_CreateVirtualMFADeviceCommand = async (output, context) => {
2443
2423
  $metadata: deserializeMetadata(output),
2444
2424
  ...contents,
2445
2425
  };
2446
- return Promise.resolve(response);
2426
+ return response;
2447
2427
  };
2448
2428
  const de_CreateVirtualMFADeviceCommandError = async (output, context) => {
2449
2429
  const parsedOutput = {
@@ -2469,10 +2449,9 @@ const de_CreateVirtualMFADeviceCommandError = async (output, context) => {
2469
2449
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2470
2450
  default:
2471
2451
  const parsedBody = parsedOutput.body;
2472
- throwDefaultError({
2452
+ return throwDefaultError({
2473
2453
  output,
2474
2454
  parsedBody: parsedBody.Error,
2475
- exceptionCtor: __BaseException,
2476
2455
  errorCode,
2477
2456
  });
2478
2457
  }
@@ -2485,7 +2464,7 @@ export const de_DeactivateMFADeviceCommand = async (output, context) => {
2485
2464
  const response = {
2486
2465
  $metadata: deserializeMetadata(output),
2487
2466
  };
2488
- return Promise.resolve(response);
2467
+ return response;
2489
2468
  };
2490
2469
  const de_DeactivateMFADeviceCommandError = async (output, context) => {
2491
2470
  const parsedOutput = {
@@ -2508,10 +2487,9 @@ const de_DeactivateMFADeviceCommandError = async (output, context) => {
2508
2487
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2509
2488
  default:
2510
2489
  const parsedBody = parsedOutput.body;
2511
- throwDefaultError({
2490
+ return throwDefaultError({
2512
2491
  output,
2513
2492
  parsedBody: parsedBody.Error,
2514
- exceptionCtor: __BaseException,
2515
2493
  errorCode,
2516
2494
  });
2517
2495
  }
@@ -2524,7 +2502,7 @@ export const de_DeleteAccessKeyCommand = async (output, context) => {
2524
2502
  const response = {
2525
2503
  $metadata: deserializeMetadata(output),
2526
2504
  };
2527
- return Promise.resolve(response);
2505
+ return response;
2528
2506
  };
2529
2507
  const de_DeleteAccessKeyCommandError = async (output, context) => {
2530
2508
  const parsedOutput = {
@@ -2544,10 +2522,9 @@ const de_DeleteAccessKeyCommandError = async (output, context) => {
2544
2522
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2545
2523
  default:
2546
2524
  const parsedBody = parsedOutput.body;
2547
- throwDefaultError({
2525
+ return throwDefaultError({
2548
2526
  output,
2549
2527
  parsedBody: parsedBody.Error,
2550
- exceptionCtor: __BaseException,
2551
2528
  errorCode,
2552
2529
  });
2553
2530
  }
@@ -2560,7 +2537,7 @@ export const de_DeleteAccountAliasCommand = async (output, context) => {
2560
2537
  const response = {
2561
2538
  $metadata: deserializeMetadata(output),
2562
2539
  };
2563
- return Promise.resolve(response);
2540
+ return response;
2564
2541
  };
2565
2542
  const de_DeleteAccountAliasCommandError = async (output, context) => {
2566
2543
  const parsedOutput = {
@@ -2580,10 +2557,9 @@ const de_DeleteAccountAliasCommandError = async (output, context) => {
2580
2557
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2581
2558
  default:
2582
2559
  const parsedBody = parsedOutput.body;
2583
- throwDefaultError({
2560
+ return throwDefaultError({
2584
2561
  output,
2585
2562
  parsedBody: parsedBody.Error,
2586
- exceptionCtor: __BaseException,
2587
2563
  errorCode,
2588
2564
  });
2589
2565
  }
@@ -2596,7 +2572,7 @@ export const de_DeleteAccountPasswordPolicyCommand = async (output, context) =>
2596
2572
  const response = {
2597
2573
  $metadata: deserializeMetadata(output),
2598
2574
  };
2599
- return Promise.resolve(response);
2575
+ return response;
2600
2576
  };
2601
2577
  const de_DeleteAccountPasswordPolicyCommandError = async (output, context) => {
2602
2578
  const parsedOutput = {
@@ -2616,10 +2592,9 @@ const de_DeleteAccountPasswordPolicyCommandError = async (output, context) => {
2616
2592
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2617
2593
  default:
2618
2594
  const parsedBody = parsedOutput.body;
2619
- throwDefaultError({
2595
+ return throwDefaultError({
2620
2596
  output,
2621
2597
  parsedBody: parsedBody.Error,
2622
- exceptionCtor: __BaseException,
2623
2598
  errorCode,
2624
2599
  });
2625
2600
  }
@@ -2632,7 +2607,7 @@ export const de_DeleteGroupCommand = async (output, context) => {
2632
2607
  const response = {
2633
2608
  $metadata: deserializeMetadata(output),
2634
2609
  };
2635
- return Promise.resolve(response);
2610
+ return response;
2636
2611
  };
2637
2612
  const de_DeleteGroupCommandError = async (output, context) => {
2638
2613
  const parsedOutput = {
@@ -2655,10 +2630,9 @@ const de_DeleteGroupCommandError = async (output, context) => {
2655
2630
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2656
2631
  default:
2657
2632
  const parsedBody = parsedOutput.body;
2658
- throwDefaultError({
2633
+ return throwDefaultError({
2659
2634
  output,
2660
2635
  parsedBody: parsedBody.Error,
2661
- exceptionCtor: __BaseException,
2662
2636
  errorCode,
2663
2637
  });
2664
2638
  }
@@ -2671,7 +2645,7 @@ export const de_DeleteGroupPolicyCommand = async (output, context) => {
2671
2645
  const response = {
2672
2646
  $metadata: deserializeMetadata(output),
2673
2647
  };
2674
- return Promise.resolve(response);
2648
+ return response;
2675
2649
  };
2676
2650
  const de_DeleteGroupPolicyCommandError = async (output, context) => {
2677
2651
  const parsedOutput = {
@@ -2691,10 +2665,9 @@ const de_DeleteGroupPolicyCommandError = async (output, context) => {
2691
2665
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2692
2666
  default:
2693
2667
  const parsedBody = parsedOutput.body;
2694
- throwDefaultError({
2668
+ return throwDefaultError({
2695
2669
  output,
2696
2670
  parsedBody: parsedBody.Error,
2697
- exceptionCtor: __BaseException,
2698
2671
  errorCode,
2699
2672
  });
2700
2673
  }
@@ -2707,7 +2680,7 @@ export const de_DeleteInstanceProfileCommand = async (output, context) => {
2707
2680
  const response = {
2708
2681
  $metadata: deserializeMetadata(output),
2709
2682
  };
2710
- return Promise.resolve(response);
2683
+ return response;
2711
2684
  };
2712
2685
  const de_DeleteInstanceProfileCommandError = async (output, context) => {
2713
2686
  const parsedOutput = {
@@ -2730,10 +2703,9 @@ const de_DeleteInstanceProfileCommandError = async (output, context) => {
2730
2703
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2731
2704
  default:
2732
2705
  const parsedBody = parsedOutput.body;
2733
- throwDefaultError({
2706
+ return throwDefaultError({
2734
2707
  output,
2735
2708
  parsedBody: parsedBody.Error,
2736
- exceptionCtor: __BaseException,
2737
2709
  errorCode,
2738
2710
  });
2739
2711
  }
@@ -2746,7 +2718,7 @@ export const de_DeleteLoginProfileCommand = async (output, context) => {
2746
2718
  const response = {
2747
2719
  $metadata: deserializeMetadata(output),
2748
2720
  };
2749
- return Promise.resolve(response);
2721
+ return response;
2750
2722
  };
2751
2723
  const de_DeleteLoginProfileCommandError = async (output, context) => {
2752
2724
  const parsedOutput = {
@@ -2769,10 +2741,9 @@ const de_DeleteLoginProfileCommandError = async (output, context) => {
2769
2741
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2770
2742
  default:
2771
2743
  const parsedBody = parsedOutput.body;
2772
- throwDefaultError({
2744
+ return throwDefaultError({
2773
2745
  output,
2774
2746
  parsedBody: parsedBody.Error,
2775
- exceptionCtor: __BaseException,
2776
2747
  errorCode,
2777
2748
  });
2778
2749
  }
@@ -2785,7 +2756,7 @@ export const de_DeleteOpenIDConnectProviderCommand = async (output, context) =>
2785
2756
  const response = {
2786
2757
  $metadata: deserializeMetadata(output),
2787
2758
  };
2788
- return Promise.resolve(response);
2759
+ return response;
2789
2760
  };
2790
2761
  const de_DeleteOpenIDConnectProviderCommandError = async (output, context) => {
2791
2762
  const parsedOutput = {
@@ -2805,10 +2776,9 @@ const de_DeleteOpenIDConnectProviderCommandError = async (output, context) => {
2805
2776
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2806
2777
  default:
2807
2778
  const parsedBody = parsedOutput.body;
2808
- throwDefaultError({
2779
+ return throwDefaultError({
2809
2780
  output,
2810
2781
  parsedBody: parsedBody.Error,
2811
- exceptionCtor: __BaseException,
2812
2782
  errorCode,
2813
2783
  });
2814
2784
  }
@@ -2821,7 +2791,7 @@ export const de_DeletePolicyCommand = async (output, context) => {
2821
2791
  const response = {
2822
2792
  $metadata: deserializeMetadata(output),
2823
2793
  };
2824
- return Promise.resolve(response);
2794
+ return response;
2825
2795
  };
2826
2796
  const de_DeletePolicyCommandError = async (output, context) => {
2827
2797
  const parsedOutput = {
@@ -2847,10 +2817,9 @@ const de_DeletePolicyCommandError = async (output, context) => {
2847
2817
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2848
2818
  default:
2849
2819
  const parsedBody = parsedOutput.body;
2850
- throwDefaultError({
2820
+ return throwDefaultError({
2851
2821
  output,
2852
2822
  parsedBody: parsedBody.Error,
2853
- exceptionCtor: __BaseException,
2854
2823
  errorCode,
2855
2824
  });
2856
2825
  }
@@ -2863,7 +2832,7 @@ export const de_DeletePolicyVersionCommand = async (output, context) => {
2863
2832
  const response = {
2864
2833
  $metadata: deserializeMetadata(output),
2865
2834
  };
2866
- return Promise.resolve(response);
2835
+ return response;
2867
2836
  };
2868
2837
  const de_DeletePolicyVersionCommandError = async (output, context) => {
2869
2838
  const parsedOutput = {
@@ -2889,10 +2858,9 @@ const de_DeletePolicyVersionCommandError = async (output, context) => {
2889
2858
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
2890
2859
  default:
2891
2860
  const parsedBody = parsedOutput.body;
2892
- throwDefaultError({
2861
+ return throwDefaultError({
2893
2862
  output,
2894
2863
  parsedBody: parsedBody.Error,
2895
- exceptionCtor: __BaseException,
2896
2864
  errorCode,
2897
2865
  });
2898
2866
  }
@@ -2905,7 +2873,7 @@ export const de_DeleteRoleCommand = async (output, context) => {
2905
2873
  const response = {
2906
2874
  $metadata: deserializeMetadata(output),
2907
2875
  };
2908
- return Promise.resolve(response);
2876
+ return response;
2909
2877
  };
2910
2878
  const de_DeleteRoleCommandError = async (output, context) => {
2911
2879
  const parsedOutput = {
@@ -2934,10 +2902,9 @@ const de_DeleteRoleCommandError = async (output, context) => {
2934
2902
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
2935
2903
  default:
2936
2904
  const parsedBody = parsedOutput.body;
2937
- throwDefaultError({
2905
+ return throwDefaultError({
2938
2906
  output,
2939
2907
  parsedBody: parsedBody.Error,
2940
- exceptionCtor: __BaseException,
2941
2908
  errorCode,
2942
2909
  });
2943
2910
  }
@@ -2950,7 +2917,7 @@ export const de_DeleteRolePermissionsBoundaryCommand = async (output, context) =
2950
2917
  const response = {
2951
2918
  $metadata: deserializeMetadata(output),
2952
2919
  };
2953
- return Promise.resolve(response);
2920
+ return response;
2954
2921
  };
2955
2922
  const de_DeleteRolePermissionsBoundaryCommandError = async (output, context) => {
2956
2923
  const parsedOutput = {
@@ -2970,10 +2937,9 @@ const de_DeleteRolePermissionsBoundaryCommandError = async (output, context) =>
2970
2937
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
2971
2938
  default:
2972
2939
  const parsedBody = parsedOutput.body;
2973
- throwDefaultError({
2940
+ return throwDefaultError({
2974
2941
  output,
2975
2942
  parsedBody: parsedBody.Error,
2976
- exceptionCtor: __BaseException,
2977
2943
  errorCode,
2978
2944
  });
2979
2945
  }
@@ -2986,7 +2952,7 @@ export const de_DeleteRolePolicyCommand = async (output, context) => {
2986
2952
  const response = {
2987
2953
  $metadata: deserializeMetadata(output),
2988
2954
  };
2989
- return Promise.resolve(response);
2955
+ return response;
2990
2956
  };
2991
2957
  const de_DeleteRolePolicyCommandError = async (output, context) => {
2992
2958
  const parsedOutput = {
@@ -3009,10 +2975,9 @@ const de_DeleteRolePolicyCommandError = async (output, context) => {
3009
2975
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
3010
2976
  default:
3011
2977
  const parsedBody = parsedOutput.body;
3012
- throwDefaultError({
2978
+ return throwDefaultError({
3013
2979
  output,
3014
2980
  parsedBody: parsedBody.Error,
3015
- exceptionCtor: __BaseException,
3016
2981
  errorCode,
3017
2982
  });
3018
2983
  }
@@ -3025,7 +2990,7 @@ export const de_DeleteSAMLProviderCommand = async (output, context) => {
3025
2990
  const response = {
3026
2991
  $metadata: deserializeMetadata(output),
3027
2992
  };
3028
- return Promise.resolve(response);
2993
+ return response;
3029
2994
  };
3030
2995
  const de_DeleteSAMLProviderCommandError = async (output, context) => {
3031
2996
  const parsedOutput = {
@@ -3048,10 +3013,9 @@ const de_DeleteSAMLProviderCommandError = async (output, context) => {
3048
3013
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3049
3014
  default:
3050
3015
  const parsedBody = parsedOutput.body;
3051
- throwDefaultError({
3016
+ return throwDefaultError({
3052
3017
  output,
3053
3018
  parsedBody: parsedBody.Error,
3054
- exceptionCtor: __BaseException,
3055
3019
  errorCode,
3056
3020
  });
3057
3021
  }
@@ -3064,7 +3028,7 @@ export const de_DeleteServerCertificateCommand = async (output, context) => {
3064
3028
  const response = {
3065
3029
  $metadata: deserializeMetadata(output),
3066
3030
  };
3067
- return Promise.resolve(response);
3031
+ return response;
3068
3032
  };
3069
3033
  const de_DeleteServerCertificateCommandError = async (output, context) => {
3070
3034
  const parsedOutput = {
@@ -3087,10 +3051,9 @@ const de_DeleteServerCertificateCommandError = async (output, context) => {
3087
3051
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3088
3052
  default:
3089
3053
  const parsedBody = parsedOutput.body;
3090
- throwDefaultError({
3054
+ return throwDefaultError({
3091
3055
  output,
3092
3056
  parsedBody: parsedBody.Error,
3093
- exceptionCtor: __BaseException,
3094
3057
  errorCode,
3095
3058
  });
3096
3059
  }
@@ -3106,7 +3069,7 @@ export const de_DeleteServiceLinkedRoleCommand = async (output, context) => {
3106
3069
  $metadata: deserializeMetadata(output),
3107
3070
  ...contents,
3108
3071
  };
3109
- return Promise.resolve(response);
3072
+ return response;
3110
3073
  };
3111
3074
  const de_DeleteServiceLinkedRoleCommandError = async (output, context) => {
3112
3075
  const parsedOutput = {
@@ -3126,10 +3089,9 @@ const de_DeleteServiceLinkedRoleCommandError = async (output, context) => {
3126
3089
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3127
3090
  default:
3128
3091
  const parsedBody = parsedOutput.body;
3129
- throwDefaultError({
3092
+ return throwDefaultError({
3130
3093
  output,
3131
3094
  parsedBody: parsedBody.Error,
3132
- exceptionCtor: __BaseException,
3133
3095
  errorCode,
3134
3096
  });
3135
3097
  }
@@ -3142,7 +3104,7 @@ export const de_DeleteServiceSpecificCredentialCommand = async (output, context)
3142
3104
  const response = {
3143
3105
  $metadata: deserializeMetadata(output),
3144
3106
  };
3145
- return Promise.resolve(response);
3107
+ return response;
3146
3108
  };
3147
3109
  const de_DeleteServiceSpecificCredentialCommandError = async (output, context) => {
3148
3110
  const parsedOutput = {
@@ -3156,10 +3118,9 @@ const de_DeleteServiceSpecificCredentialCommandError = async (output, context) =
3156
3118
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
3157
3119
  default:
3158
3120
  const parsedBody = parsedOutput.body;
3159
- throwDefaultError({
3121
+ return throwDefaultError({
3160
3122
  output,
3161
3123
  parsedBody: parsedBody.Error,
3162
- exceptionCtor: __BaseException,
3163
3124
  errorCode,
3164
3125
  });
3165
3126
  }
@@ -3172,7 +3133,7 @@ export const de_DeleteSigningCertificateCommand = async (output, context) => {
3172
3133
  const response = {
3173
3134
  $metadata: deserializeMetadata(output),
3174
3135
  };
3175
- return Promise.resolve(response);
3136
+ return response;
3176
3137
  };
3177
3138
  const de_DeleteSigningCertificateCommandError = async (output, context) => {
3178
3139
  const parsedOutput = {
@@ -3192,10 +3153,9 @@ const de_DeleteSigningCertificateCommandError = async (output, context) => {
3192
3153
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3193
3154
  default:
3194
3155
  const parsedBody = parsedOutput.body;
3195
- throwDefaultError({
3156
+ return throwDefaultError({
3196
3157
  output,
3197
3158
  parsedBody: parsedBody.Error,
3198
- exceptionCtor: __BaseException,
3199
3159
  errorCode,
3200
3160
  });
3201
3161
  }
@@ -3208,7 +3168,7 @@ export const de_DeleteSSHPublicKeyCommand = async (output, context) => {
3208
3168
  const response = {
3209
3169
  $metadata: deserializeMetadata(output),
3210
3170
  };
3211
- return Promise.resolve(response);
3171
+ return response;
3212
3172
  };
3213
3173
  const de_DeleteSSHPublicKeyCommandError = async (output, context) => {
3214
3174
  const parsedOutput = {
@@ -3222,10 +3182,9 @@ const de_DeleteSSHPublicKeyCommandError = async (output, context) => {
3222
3182
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
3223
3183
  default:
3224
3184
  const parsedBody = parsedOutput.body;
3225
- throwDefaultError({
3185
+ return throwDefaultError({
3226
3186
  output,
3227
3187
  parsedBody: parsedBody.Error,
3228
- exceptionCtor: __BaseException,
3229
3188
  errorCode,
3230
3189
  });
3231
3190
  }
@@ -3238,7 +3197,7 @@ export const de_DeleteUserCommand = async (output, context) => {
3238
3197
  const response = {
3239
3198
  $metadata: deserializeMetadata(output),
3240
3199
  };
3241
- return Promise.resolve(response);
3200
+ return response;
3242
3201
  };
3243
3202
  const de_DeleteUserCommandError = async (output, context) => {
3244
3203
  const parsedOutput = {
@@ -3264,10 +3223,9 @@ const de_DeleteUserCommandError = async (output, context) => {
3264
3223
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3265
3224
  default:
3266
3225
  const parsedBody = parsedOutput.body;
3267
- throwDefaultError({
3226
+ return throwDefaultError({
3268
3227
  output,
3269
3228
  parsedBody: parsedBody.Error,
3270
- exceptionCtor: __BaseException,
3271
3229
  errorCode,
3272
3230
  });
3273
3231
  }
@@ -3280,7 +3238,7 @@ export const de_DeleteUserPermissionsBoundaryCommand = async (output, context) =
3280
3238
  const response = {
3281
3239
  $metadata: deserializeMetadata(output),
3282
3240
  };
3283
- return Promise.resolve(response);
3241
+ return response;
3284
3242
  };
3285
3243
  const de_DeleteUserPermissionsBoundaryCommandError = async (output, context) => {
3286
3244
  const parsedOutput = {
@@ -3297,10 +3255,9 @@ const de_DeleteUserPermissionsBoundaryCommandError = async (output, context) =>
3297
3255
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3298
3256
  default:
3299
3257
  const parsedBody = parsedOutput.body;
3300
- throwDefaultError({
3258
+ return throwDefaultError({
3301
3259
  output,
3302
3260
  parsedBody: parsedBody.Error,
3303
- exceptionCtor: __BaseException,
3304
3261
  errorCode,
3305
3262
  });
3306
3263
  }
@@ -3313,7 +3270,7 @@ export const de_DeleteUserPolicyCommand = async (output, context) => {
3313
3270
  const response = {
3314
3271
  $metadata: deserializeMetadata(output),
3315
3272
  };
3316
- return Promise.resolve(response);
3273
+ return response;
3317
3274
  };
3318
3275
  const de_DeleteUserPolicyCommandError = async (output, context) => {
3319
3276
  const parsedOutput = {
@@ -3333,10 +3290,9 @@ const de_DeleteUserPolicyCommandError = async (output, context) => {
3333
3290
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3334
3291
  default:
3335
3292
  const parsedBody = parsedOutput.body;
3336
- throwDefaultError({
3293
+ return throwDefaultError({
3337
3294
  output,
3338
3295
  parsedBody: parsedBody.Error,
3339
- exceptionCtor: __BaseException,
3340
3296
  errorCode,
3341
3297
  });
3342
3298
  }
@@ -3349,7 +3305,7 @@ export const de_DeleteVirtualMFADeviceCommand = async (output, context) => {
3349
3305
  const response = {
3350
3306
  $metadata: deserializeMetadata(output),
3351
3307
  };
3352
- return Promise.resolve(response);
3308
+ return response;
3353
3309
  };
3354
3310
  const de_DeleteVirtualMFADeviceCommandError = async (output, context) => {
3355
3311
  const parsedOutput = {
@@ -3372,10 +3328,9 @@ const de_DeleteVirtualMFADeviceCommandError = async (output, context) => {
3372
3328
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3373
3329
  default:
3374
3330
  const parsedBody = parsedOutput.body;
3375
- throwDefaultError({
3331
+ return throwDefaultError({
3376
3332
  output,
3377
3333
  parsedBody: parsedBody.Error,
3378
- exceptionCtor: __BaseException,
3379
3334
  errorCode,
3380
3335
  });
3381
3336
  }
@@ -3388,7 +3343,7 @@ export const de_DetachGroupPolicyCommand = async (output, context) => {
3388
3343
  const response = {
3389
3344
  $metadata: deserializeMetadata(output),
3390
3345
  };
3391
- return Promise.resolve(response);
3346
+ return response;
3392
3347
  };
3393
3348
  const de_DetachGroupPolicyCommandError = async (output, context) => {
3394
3349
  const parsedOutput = {
@@ -3411,10 +3366,9 @@ const de_DetachGroupPolicyCommandError = async (output, context) => {
3411
3366
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3412
3367
  default:
3413
3368
  const parsedBody = parsedOutput.body;
3414
- throwDefaultError({
3369
+ return throwDefaultError({
3415
3370
  output,
3416
3371
  parsedBody: parsedBody.Error,
3417
- exceptionCtor: __BaseException,
3418
3372
  errorCode,
3419
3373
  });
3420
3374
  }
@@ -3427,7 +3381,7 @@ export const de_DetachRolePolicyCommand = async (output, context) => {
3427
3381
  const response = {
3428
3382
  $metadata: deserializeMetadata(output),
3429
3383
  };
3430
- return Promise.resolve(response);
3384
+ return response;
3431
3385
  };
3432
3386
  const de_DetachRolePolicyCommandError = async (output, context) => {
3433
3387
  const parsedOutput = {
@@ -3453,10 +3407,9 @@ const de_DetachRolePolicyCommandError = async (output, context) => {
3453
3407
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
3454
3408
  default:
3455
3409
  const parsedBody = parsedOutput.body;
3456
- throwDefaultError({
3410
+ return throwDefaultError({
3457
3411
  output,
3458
3412
  parsedBody: parsedBody.Error,
3459
- exceptionCtor: __BaseException,
3460
3413
  errorCode,
3461
3414
  });
3462
3415
  }
@@ -3469,7 +3422,7 @@ export const de_DetachUserPolicyCommand = async (output, context) => {
3469
3422
  const response = {
3470
3423
  $metadata: deserializeMetadata(output),
3471
3424
  };
3472
- return Promise.resolve(response);
3425
+ return response;
3473
3426
  };
3474
3427
  const de_DetachUserPolicyCommandError = async (output, context) => {
3475
3428
  const parsedOutput = {
@@ -3492,10 +3445,9 @@ const de_DetachUserPolicyCommandError = async (output, context) => {
3492
3445
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3493
3446
  default:
3494
3447
  const parsedBody = parsedOutput.body;
3495
- throwDefaultError({
3448
+ return throwDefaultError({
3496
3449
  output,
3497
3450
  parsedBody: parsedBody.Error,
3498
- exceptionCtor: __BaseException,
3499
3451
  errorCode,
3500
3452
  });
3501
3453
  }
@@ -3508,7 +3460,7 @@ export const de_EnableMFADeviceCommand = async (output, context) => {
3508
3460
  const response = {
3509
3461
  $metadata: deserializeMetadata(output),
3510
3462
  };
3511
- return Promise.resolve(response);
3463
+ return response;
3512
3464
  };
3513
3465
  const de_EnableMFADeviceCommandError = async (output, context) => {
3514
3466
  const parsedOutput = {
@@ -3537,10 +3489,9 @@ const de_EnableMFADeviceCommandError = async (output, context) => {
3537
3489
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3538
3490
  default:
3539
3491
  const parsedBody = parsedOutput.body;
3540
- throwDefaultError({
3492
+ return throwDefaultError({
3541
3493
  output,
3542
3494
  parsedBody: parsedBody.Error,
3543
- exceptionCtor: __BaseException,
3544
3495
  errorCode,
3545
3496
  });
3546
3497
  }
@@ -3556,7 +3507,7 @@ export const de_GenerateCredentialReportCommand = async (output, context) => {
3556
3507
  $metadata: deserializeMetadata(output),
3557
3508
  ...contents,
3558
3509
  };
3559
- return Promise.resolve(response);
3510
+ return response;
3560
3511
  };
3561
3512
  const de_GenerateCredentialReportCommandError = async (output, context) => {
3562
3513
  const parsedOutput = {
@@ -3573,10 +3524,9 @@ const de_GenerateCredentialReportCommandError = async (output, context) => {
3573
3524
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3574
3525
  default:
3575
3526
  const parsedBody = parsedOutput.body;
3576
- throwDefaultError({
3527
+ return throwDefaultError({
3577
3528
  output,
3578
3529
  parsedBody: parsedBody.Error,
3579
- exceptionCtor: __BaseException,
3580
3530
  errorCode,
3581
3531
  });
3582
3532
  }
@@ -3592,7 +3542,7 @@ export const de_GenerateOrganizationsAccessReportCommand = async (output, contex
3592
3542
  $metadata: deserializeMetadata(output),
3593
3543
  ...contents,
3594
3544
  };
3595
- return Promise.resolve(response);
3545
+ return response;
3596
3546
  };
3597
3547
  const de_GenerateOrganizationsAccessReportCommandError = async (output, context) => {
3598
3548
  const parsedOutput = {
@@ -3606,10 +3556,9 @@ const de_GenerateOrganizationsAccessReportCommandError = async (output, context)
3606
3556
  throw await de_ReportGenerationLimitExceededExceptionRes(parsedOutput, context);
3607
3557
  default:
3608
3558
  const parsedBody = parsedOutput.body;
3609
- throwDefaultError({
3559
+ return throwDefaultError({
3610
3560
  output,
3611
3561
  parsedBody: parsedBody.Error,
3612
- exceptionCtor: __BaseException,
3613
3562
  errorCode,
3614
3563
  });
3615
3564
  }
@@ -3625,7 +3574,7 @@ export const de_GenerateServiceLastAccessedDetailsCommand = async (output, conte
3625
3574
  $metadata: deserializeMetadata(output),
3626
3575
  ...contents,
3627
3576
  };
3628
- return Promise.resolve(response);
3577
+ return response;
3629
3578
  };
3630
3579
  const de_GenerateServiceLastAccessedDetailsCommandError = async (output, context) => {
3631
3580
  const parsedOutput = {
@@ -3642,10 +3591,9 @@ const de_GenerateServiceLastAccessedDetailsCommandError = async (output, context
3642
3591
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
3643
3592
  default:
3644
3593
  const parsedBody = parsedOutput.body;
3645
- throwDefaultError({
3594
+ return throwDefaultError({
3646
3595
  output,
3647
3596
  parsedBody: parsedBody.Error,
3648
- exceptionCtor: __BaseException,
3649
3597
  errorCode,
3650
3598
  });
3651
3599
  }
@@ -3661,7 +3609,7 @@ export const de_GetAccessKeyLastUsedCommand = async (output, context) => {
3661
3609
  $metadata: deserializeMetadata(output),
3662
3610
  ...contents,
3663
3611
  };
3664
- return Promise.resolve(response);
3612
+ return response;
3665
3613
  };
3666
3614
  const de_GetAccessKeyLastUsedCommandError = async (output, context) => {
3667
3615
  const parsedOutput = {
@@ -3675,10 +3623,9 @@ const de_GetAccessKeyLastUsedCommandError = async (output, context) => {
3675
3623
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
3676
3624
  default:
3677
3625
  const parsedBody = parsedOutput.body;
3678
- throwDefaultError({
3626
+ return throwDefaultError({
3679
3627
  output,
3680
3628
  parsedBody: parsedBody.Error,
3681
- exceptionCtor: __BaseException,
3682
3629
  errorCode,
3683
3630
  });
3684
3631
  }
@@ -3694,7 +3641,7 @@ export const de_GetAccountAuthorizationDetailsCommand = async (output, context)
3694
3641
  $metadata: deserializeMetadata(output),
3695
3642
  ...contents,
3696
3643
  };
3697
- return Promise.resolve(response);
3644
+ return response;
3698
3645
  };
3699
3646
  const de_GetAccountAuthorizationDetailsCommandError = async (output, context) => {
3700
3647
  const parsedOutput = {
@@ -3708,10 +3655,9 @@ const de_GetAccountAuthorizationDetailsCommandError = async (output, context) =>
3708
3655
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3709
3656
  default:
3710
3657
  const parsedBody = parsedOutput.body;
3711
- throwDefaultError({
3658
+ return throwDefaultError({
3712
3659
  output,
3713
3660
  parsedBody: parsedBody.Error,
3714
- exceptionCtor: __BaseException,
3715
3661
  errorCode,
3716
3662
  });
3717
3663
  }
@@ -3727,7 +3673,7 @@ export const de_GetAccountPasswordPolicyCommand = async (output, context) => {
3727
3673
  $metadata: deserializeMetadata(output),
3728
3674
  ...contents,
3729
3675
  };
3730
- return Promise.resolve(response);
3676
+ return response;
3731
3677
  };
3732
3678
  const de_GetAccountPasswordPolicyCommandError = async (output, context) => {
3733
3679
  const parsedOutput = {
@@ -3744,10 +3690,9 @@ const de_GetAccountPasswordPolicyCommandError = async (output, context) => {
3744
3690
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3745
3691
  default:
3746
3692
  const parsedBody = parsedOutput.body;
3747
- throwDefaultError({
3693
+ return throwDefaultError({
3748
3694
  output,
3749
3695
  parsedBody: parsedBody.Error,
3750
- exceptionCtor: __BaseException,
3751
3696
  errorCode,
3752
3697
  });
3753
3698
  }
@@ -3763,7 +3708,7 @@ export const de_GetAccountSummaryCommand = async (output, context) => {
3763
3708
  $metadata: deserializeMetadata(output),
3764
3709
  ...contents,
3765
3710
  };
3766
- return Promise.resolve(response);
3711
+ return response;
3767
3712
  };
3768
3713
  const de_GetAccountSummaryCommandError = async (output, context) => {
3769
3714
  const parsedOutput = {
@@ -3777,10 +3722,9 @@ const de_GetAccountSummaryCommandError = async (output, context) => {
3777
3722
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3778
3723
  default:
3779
3724
  const parsedBody = parsedOutput.body;
3780
- throwDefaultError({
3725
+ return throwDefaultError({
3781
3726
  output,
3782
3727
  parsedBody: parsedBody.Error,
3783
- exceptionCtor: __BaseException,
3784
3728
  errorCode,
3785
3729
  });
3786
3730
  }
@@ -3796,7 +3740,7 @@ export const de_GetContextKeysForCustomPolicyCommand = async (output, context) =
3796
3740
  $metadata: deserializeMetadata(output),
3797
3741
  ...contents,
3798
3742
  };
3799
- return Promise.resolve(response);
3743
+ return response;
3800
3744
  };
3801
3745
  const de_GetContextKeysForCustomPolicyCommandError = async (output, context) => {
3802
3746
  const parsedOutput = {
@@ -3810,10 +3754,9 @@ const de_GetContextKeysForCustomPolicyCommandError = async (output, context) =>
3810
3754
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
3811
3755
  default:
3812
3756
  const parsedBody = parsedOutput.body;
3813
- throwDefaultError({
3757
+ return throwDefaultError({
3814
3758
  output,
3815
3759
  parsedBody: parsedBody.Error,
3816
- exceptionCtor: __BaseException,
3817
3760
  errorCode,
3818
3761
  });
3819
3762
  }
@@ -3829,7 +3772,7 @@ export const de_GetContextKeysForPrincipalPolicyCommand = async (output, context
3829
3772
  $metadata: deserializeMetadata(output),
3830
3773
  ...contents,
3831
3774
  };
3832
- return Promise.resolve(response);
3775
+ return response;
3833
3776
  };
3834
3777
  const de_GetContextKeysForPrincipalPolicyCommandError = async (output, context) => {
3835
3778
  const parsedOutput = {
@@ -3846,10 +3789,9 @@ const de_GetContextKeysForPrincipalPolicyCommandError = async (output, context)
3846
3789
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
3847
3790
  default:
3848
3791
  const parsedBody = parsedOutput.body;
3849
- throwDefaultError({
3792
+ return throwDefaultError({
3850
3793
  output,
3851
3794
  parsedBody: parsedBody.Error,
3852
- exceptionCtor: __BaseException,
3853
3795
  errorCode,
3854
3796
  });
3855
3797
  }
@@ -3865,7 +3807,7 @@ export const de_GetCredentialReportCommand = async (output, context) => {
3865
3807
  $metadata: deserializeMetadata(output),
3866
3808
  ...contents,
3867
3809
  };
3868
- return Promise.resolve(response);
3810
+ return response;
3869
3811
  };
3870
3812
  const de_GetCredentialReportCommandError = async (output, context) => {
3871
3813
  const parsedOutput = {
@@ -3888,10 +3830,9 @@ const de_GetCredentialReportCommandError = async (output, context) => {
3888
3830
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3889
3831
  default:
3890
3832
  const parsedBody = parsedOutput.body;
3891
- throwDefaultError({
3833
+ return throwDefaultError({
3892
3834
  output,
3893
3835
  parsedBody: parsedBody.Error,
3894
- exceptionCtor: __BaseException,
3895
3836
  errorCode,
3896
3837
  });
3897
3838
  }
@@ -3907,7 +3848,7 @@ export const de_GetGroupCommand = async (output, context) => {
3907
3848
  $metadata: deserializeMetadata(output),
3908
3849
  ...contents,
3909
3850
  };
3910
- return Promise.resolve(response);
3851
+ return response;
3911
3852
  };
3912
3853
  const de_GetGroupCommandError = async (output, context) => {
3913
3854
  const parsedOutput = {
@@ -3924,10 +3865,9 @@ const de_GetGroupCommandError = async (output, context) => {
3924
3865
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3925
3866
  default:
3926
3867
  const parsedBody = parsedOutput.body;
3927
- throwDefaultError({
3868
+ return throwDefaultError({
3928
3869
  output,
3929
3870
  parsedBody: parsedBody.Error,
3930
- exceptionCtor: __BaseException,
3931
3871
  errorCode,
3932
3872
  });
3933
3873
  }
@@ -3943,7 +3883,7 @@ export const de_GetGroupPolicyCommand = async (output, context) => {
3943
3883
  $metadata: deserializeMetadata(output),
3944
3884
  ...contents,
3945
3885
  };
3946
- return Promise.resolve(response);
3886
+ return response;
3947
3887
  };
3948
3888
  const de_GetGroupPolicyCommandError = async (output, context) => {
3949
3889
  const parsedOutput = {
@@ -3960,10 +3900,9 @@ const de_GetGroupPolicyCommandError = async (output, context) => {
3960
3900
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3961
3901
  default:
3962
3902
  const parsedBody = parsedOutput.body;
3963
- throwDefaultError({
3903
+ return throwDefaultError({
3964
3904
  output,
3965
3905
  parsedBody: parsedBody.Error,
3966
- exceptionCtor: __BaseException,
3967
3906
  errorCode,
3968
3907
  });
3969
3908
  }
@@ -3979,7 +3918,7 @@ export const de_GetInstanceProfileCommand = async (output, context) => {
3979
3918
  $metadata: deserializeMetadata(output),
3980
3919
  ...contents,
3981
3920
  };
3982
- return Promise.resolve(response);
3921
+ return response;
3983
3922
  };
3984
3923
  const de_GetInstanceProfileCommandError = async (output, context) => {
3985
3924
  const parsedOutput = {
@@ -3996,10 +3935,9 @@ const de_GetInstanceProfileCommandError = async (output, context) => {
3996
3935
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
3997
3936
  default:
3998
3937
  const parsedBody = parsedOutput.body;
3999
- throwDefaultError({
3938
+ return throwDefaultError({
4000
3939
  output,
4001
3940
  parsedBody: parsedBody.Error,
4002
- exceptionCtor: __BaseException,
4003
3941
  errorCode,
4004
3942
  });
4005
3943
  }
@@ -4015,7 +3953,7 @@ export const de_GetLoginProfileCommand = async (output, context) => {
4015
3953
  $metadata: deserializeMetadata(output),
4016
3954
  ...contents,
4017
3955
  };
4018
- return Promise.resolve(response);
3956
+ return response;
4019
3957
  };
4020
3958
  const de_GetLoginProfileCommandError = async (output, context) => {
4021
3959
  const parsedOutput = {
@@ -4032,10 +3970,9 @@ const de_GetLoginProfileCommandError = async (output, context) => {
4032
3970
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4033
3971
  default:
4034
3972
  const parsedBody = parsedOutput.body;
4035
- throwDefaultError({
3973
+ return throwDefaultError({
4036
3974
  output,
4037
3975
  parsedBody: parsedBody.Error,
4038
- exceptionCtor: __BaseException,
4039
3976
  errorCode,
4040
3977
  });
4041
3978
  }
@@ -4051,7 +3988,7 @@ export const de_GetOpenIDConnectProviderCommand = async (output, context) => {
4051
3988
  $metadata: deserializeMetadata(output),
4052
3989
  ...contents,
4053
3990
  };
4054
- return Promise.resolve(response);
3991
+ return response;
4055
3992
  };
4056
3993
  const de_GetOpenIDConnectProviderCommandError = async (output, context) => {
4057
3994
  const parsedOutput = {
@@ -4071,10 +4008,9 @@ const de_GetOpenIDConnectProviderCommandError = async (output, context) => {
4071
4008
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4072
4009
  default:
4073
4010
  const parsedBody = parsedOutput.body;
4074
- throwDefaultError({
4011
+ return throwDefaultError({
4075
4012
  output,
4076
4013
  parsedBody: parsedBody.Error,
4077
- exceptionCtor: __BaseException,
4078
4014
  errorCode,
4079
4015
  });
4080
4016
  }
@@ -4090,7 +4026,7 @@ export const de_GetOrganizationsAccessReportCommand = async (output, context) =>
4090
4026
  $metadata: deserializeMetadata(output),
4091
4027
  ...contents,
4092
4028
  };
4093
- return Promise.resolve(response);
4029
+ return response;
4094
4030
  };
4095
4031
  const de_GetOrganizationsAccessReportCommandError = async (output, context) => {
4096
4032
  const parsedOutput = {
@@ -4104,10 +4040,9 @@ const de_GetOrganizationsAccessReportCommandError = async (output, context) => {
4104
4040
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
4105
4041
  default:
4106
4042
  const parsedBody = parsedOutput.body;
4107
- throwDefaultError({
4043
+ return throwDefaultError({
4108
4044
  output,
4109
4045
  parsedBody: parsedBody.Error,
4110
- exceptionCtor: __BaseException,
4111
4046
  errorCode,
4112
4047
  });
4113
4048
  }
@@ -4123,7 +4058,7 @@ export const de_GetPolicyCommand = async (output, context) => {
4123
4058
  $metadata: deserializeMetadata(output),
4124
4059
  ...contents,
4125
4060
  };
4126
- return Promise.resolve(response);
4061
+ return response;
4127
4062
  };
4128
4063
  const de_GetPolicyCommandError = async (output, context) => {
4129
4064
  const parsedOutput = {
@@ -4143,10 +4078,9 @@ const de_GetPolicyCommandError = async (output, context) => {
4143
4078
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4144
4079
  default:
4145
4080
  const parsedBody = parsedOutput.body;
4146
- throwDefaultError({
4081
+ return throwDefaultError({
4147
4082
  output,
4148
4083
  parsedBody: parsedBody.Error,
4149
- exceptionCtor: __BaseException,
4150
4084
  errorCode,
4151
4085
  });
4152
4086
  }
@@ -4162,7 +4096,7 @@ export const de_GetPolicyVersionCommand = async (output, context) => {
4162
4096
  $metadata: deserializeMetadata(output),
4163
4097
  ...contents,
4164
4098
  };
4165
- return Promise.resolve(response);
4099
+ return response;
4166
4100
  };
4167
4101
  const de_GetPolicyVersionCommandError = async (output, context) => {
4168
4102
  const parsedOutput = {
@@ -4182,10 +4116,9 @@ const de_GetPolicyVersionCommandError = async (output, context) => {
4182
4116
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4183
4117
  default:
4184
4118
  const parsedBody = parsedOutput.body;
4185
- throwDefaultError({
4119
+ return throwDefaultError({
4186
4120
  output,
4187
4121
  parsedBody: parsedBody.Error,
4188
- exceptionCtor: __BaseException,
4189
4122
  errorCode,
4190
4123
  });
4191
4124
  }
@@ -4201,7 +4134,7 @@ export const de_GetRoleCommand = async (output, context) => {
4201
4134
  $metadata: deserializeMetadata(output),
4202
4135
  ...contents,
4203
4136
  };
4204
- return Promise.resolve(response);
4137
+ return response;
4205
4138
  };
4206
4139
  const de_GetRoleCommandError = async (output, context) => {
4207
4140
  const parsedOutput = {
@@ -4218,10 +4151,9 @@ const de_GetRoleCommandError = async (output, context) => {
4218
4151
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4219
4152
  default:
4220
4153
  const parsedBody = parsedOutput.body;
4221
- throwDefaultError({
4154
+ return throwDefaultError({
4222
4155
  output,
4223
4156
  parsedBody: parsedBody.Error,
4224
- exceptionCtor: __BaseException,
4225
4157
  errorCode,
4226
4158
  });
4227
4159
  }
@@ -4237,7 +4169,7 @@ export const de_GetRolePolicyCommand = async (output, context) => {
4237
4169
  $metadata: deserializeMetadata(output),
4238
4170
  ...contents,
4239
4171
  };
4240
- return Promise.resolve(response);
4172
+ return response;
4241
4173
  };
4242
4174
  const de_GetRolePolicyCommandError = async (output, context) => {
4243
4175
  const parsedOutput = {
@@ -4254,10 +4186,9 @@ const de_GetRolePolicyCommandError = async (output, context) => {
4254
4186
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4255
4187
  default:
4256
4188
  const parsedBody = parsedOutput.body;
4257
- throwDefaultError({
4189
+ return throwDefaultError({
4258
4190
  output,
4259
4191
  parsedBody: parsedBody.Error,
4260
- exceptionCtor: __BaseException,
4261
4192
  errorCode,
4262
4193
  });
4263
4194
  }
@@ -4273,7 +4204,7 @@ export const de_GetSAMLProviderCommand = async (output, context) => {
4273
4204
  $metadata: deserializeMetadata(output),
4274
4205
  ...contents,
4275
4206
  };
4276
- return Promise.resolve(response);
4207
+ return response;
4277
4208
  };
4278
4209
  const de_GetSAMLProviderCommandError = async (output, context) => {
4279
4210
  const parsedOutput = {
@@ -4293,10 +4224,9 @@ const de_GetSAMLProviderCommandError = async (output, context) => {
4293
4224
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4294
4225
  default:
4295
4226
  const parsedBody = parsedOutput.body;
4296
- throwDefaultError({
4227
+ return throwDefaultError({
4297
4228
  output,
4298
4229
  parsedBody: parsedBody.Error,
4299
- exceptionCtor: __BaseException,
4300
4230
  errorCode,
4301
4231
  });
4302
4232
  }
@@ -4312,7 +4242,7 @@ export const de_GetServerCertificateCommand = async (output, context) => {
4312
4242
  $metadata: deserializeMetadata(output),
4313
4243
  ...contents,
4314
4244
  };
4315
- return Promise.resolve(response);
4245
+ return response;
4316
4246
  };
4317
4247
  const de_GetServerCertificateCommandError = async (output, context) => {
4318
4248
  const parsedOutput = {
@@ -4329,10 +4259,9 @@ const de_GetServerCertificateCommandError = async (output, context) => {
4329
4259
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4330
4260
  default:
4331
4261
  const parsedBody = parsedOutput.body;
4332
- throwDefaultError({
4262
+ return throwDefaultError({
4333
4263
  output,
4334
4264
  parsedBody: parsedBody.Error,
4335
- exceptionCtor: __BaseException,
4336
4265
  errorCode,
4337
4266
  });
4338
4267
  }
@@ -4348,7 +4277,7 @@ export const de_GetServiceLastAccessedDetailsCommand = async (output, context) =
4348
4277
  $metadata: deserializeMetadata(output),
4349
4278
  ...contents,
4350
4279
  };
4351
- return Promise.resolve(response);
4280
+ return response;
4352
4281
  };
4353
4282
  const de_GetServiceLastAccessedDetailsCommandError = async (output, context) => {
4354
4283
  const parsedOutput = {
@@ -4365,10 +4294,9 @@ const de_GetServiceLastAccessedDetailsCommandError = async (output, context) =>
4365
4294
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
4366
4295
  default:
4367
4296
  const parsedBody = parsedOutput.body;
4368
- throwDefaultError({
4297
+ return throwDefaultError({
4369
4298
  output,
4370
4299
  parsedBody: parsedBody.Error,
4371
- exceptionCtor: __BaseException,
4372
4300
  errorCode,
4373
4301
  });
4374
4302
  }
@@ -4384,7 +4312,7 @@ export const de_GetServiceLastAccessedDetailsWithEntitiesCommand = async (output
4384
4312
  $metadata: deserializeMetadata(output),
4385
4313
  ...contents,
4386
4314
  };
4387
- return Promise.resolve(response);
4315
+ return response;
4388
4316
  };
4389
4317
  const de_GetServiceLastAccessedDetailsWithEntitiesCommandError = async (output, context) => {
4390
4318
  const parsedOutput = {
@@ -4401,10 +4329,9 @@ const de_GetServiceLastAccessedDetailsWithEntitiesCommandError = async (output,
4401
4329
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
4402
4330
  default:
4403
4331
  const parsedBody = parsedOutput.body;
4404
- throwDefaultError({
4332
+ return throwDefaultError({
4405
4333
  output,
4406
4334
  parsedBody: parsedBody.Error,
4407
- exceptionCtor: __BaseException,
4408
4335
  errorCode,
4409
4336
  });
4410
4337
  }
@@ -4420,7 +4347,7 @@ export const de_GetServiceLinkedRoleDeletionStatusCommand = async (output, conte
4420
4347
  $metadata: deserializeMetadata(output),
4421
4348
  ...contents,
4422
4349
  };
4423
- return Promise.resolve(response);
4350
+ return response;
4424
4351
  };
4425
4352
  const de_GetServiceLinkedRoleDeletionStatusCommandError = async (output, context) => {
4426
4353
  const parsedOutput = {
@@ -4440,10 +4367,9 @@ const de_GetServiceLinkedRoleDeletionStatusCommandError = async (output, context
4440
4367
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4441
4368
  default:
4442
4369
  const parsedBody = parsedOutput.body;
4443
- throwDefaultError({
4370
+ return throwDefaultError({
4444
4371
  output,
4445
4372
  parsedBody: parsedBody.Error,
4446
- exceptionCtor: __BaseException,
4447
4373
  errorCode,
4448
4374
  });
4449
4375
  }
@@ -4459,7 +4385,7 @@ export const de_GetSSHPublicKeyCommand = async (output, context) => {
4459
4385
  $metadata: deserializeMetadata(output),
4460
4386
  ...contents,
4461
4387
  };
4462
- return Promise.resolve(response);
4388
+ return response;
4463
4389
  };
4464
4390
  const de_GetSSHPublicKeyCommandError = async (output, context) => {
4465
4391
  const parsedOutput = {
@@ -4476,10 +4402,9 @@ const de_GetSSHPublicKeyCommandError = async (output, context) => {
4476
4402
  throw await de_UnrecognizedPublicKeyEncodingExceptionRes(parsedOutput, context);
4477
4403
  default:
4478
4404
  const parsedBody = parsedOutput.body;
4479
- throwDefaultError({
4405
+ return throwDefaultError({
4480
4406
  output,
4481
4407
  parsedBody: parsedBody.Error,
4482
- exceptionCtor: __BaseException,
4483
4408
  errorCode,
4484
4409
  });
4485
4410
  }
@@ -4495,7 +4420,7 @@ export const de_GetUserCommand = async (output, context) => {
4495
4420
  $metadata: deserializeMetadata(output),
4496
4421
  ...contents,
4497
4422
  };
4498
- return Promise.resolve(response);
4423
+ return response;
4499
4424
  };
4500
4425
  const de_GetUserCommandError = async (output, context) => {
4501
4426
  const parsedOutput = {
@@ -4512,10 +4437,9 @@ const de_GetUserCommandError = async (output, context) => {
4512
4437
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4513
4438
  default:
4514
4439
  const parsedBody = parsedOutput.body;
4515
- throwDefaultError({
4440
+ return throwDefaultError({
4516
4441
  output,
4517
4442
  parsedBody: parsedBody.Error,
4518
- exceptionCtor: __BaseException,
4519
4443
  errorCode,
4520
4444
  });
4521
4445
  }
@@ -4531,7 +4455,7 @@ export const de_GetUserPolicyCommand = async (output, context) => {
4531
4455
  $metadata: deserializeMetadata(output),
4532
4456
  ...contents,
4533
4457
  };
4534
- return Promise.resolve(response);
4458
+ return response;
4535
4459
  };
4536
4460
  const de_GetUserPolicyCommandError = async (output, context) => {
4537
4461
  const parsedOutput = {
@@ -4548,10 +4472,9 @@ const de_GetUserPolicyCommandError = async (output, context) => {
4548
4472
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4549
4473
  default:
4550
4474
  const parsedBody = parsedOutput.body;
4551
- throwDefaultError({
4475
+ return throwDefaultError({
4552
4476
  output,
4553
4477
  parsedBody: parsedBody.Error,
4554
- exceptionCtor: __BaseException,
4555
4478
  errorCode,
4556
4479
  });
4557
4480
  }
@@ -4567,7 +4490,7 @@ export const de_ListAccessKeysCommand = async (output, context) => {
4567
4490
  $metadata: deserializeMetadata(output),
4568
4491
  ...contents,
4569
4492
  };
4570
- return Promise.resolve(response);
4493
+ return response;
4571
4494
  };
4572
4495
  const de_ListAccessKeysCommandError = async (output, context) => {
4573
4496
  const parsedOutput = {
@@ -4584,10 +4507,9 @@ const de_ListAccessKeysCommandError = async (output, context) => {
4584
4507
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4585
4508
  default:
4586
4509
  const parsedBody = parsedOutput.body;
4587
- throwDefaultError({
4510
+ return throwDefaultError({
4588
4511
  output,
4589
4512
  parsedBody: parsedBody.Error,
4590
- exceptionCtor: __BaseException,
4591
4513
  errorCode,
4592
4514
  });
4593
4515
  }
@@ -4603,7 +4525,7 @@ export const de_ListAccountAliasesCommand = async (output, context) => {
4603
4525
  $metadata: deserializeMetadata(output),
4604
4526
  ...contents,
4605
4527
  };
4606
- return Promise.resolve(response);
4528
+ return response;
4607
4529
  };
4608
4530
  const de_ListAccountAliasesCommandError = async (output, context) => {
4609
4531
  const parsedOutput = {
@@ -4617,10 +4539,9 @@ const de_ListAccountAliasesCommandError = async (output, context) => {
4617
4539
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4618
4540
  default:
4619
4541
  const parsedBody = parsedOutput.body;
4620
- throwDefaultError({
4542
+ return throwDefaultError({
4621
4543
  output,
4622
4544
  parsedBody: parsedBody.Error,
4623
- exceptionCtor: __BaseException,
4624
4545
  errorCode,
4625
4546
  });
4626
4547
  }
@@ -4636,7 +4557,7 @@ export const de_ListAttachedGroupPoliciesCommand = async (output, context) => {
4636
4557
  $metadata: deserializeMetadata(output),
4637
4558
  ...contents,
4638
4559
  };
4639
- return Promise.resolve(response);
4560
+ return response;
4640
4561
  };
4641
4562
  const de_ListAttachedGroupPoliciesCommandError = async (output, context) => {
4642
4563
  const parsedOutput = {
@@ -4656,10 +4577,9 @@ const de_ListAttachedGroupPoliciesCommandError = async (output, context) => {
4656
4577
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4657
4578
  default:
4658
4579
  const parsedBody = parsedOutput.body;
4659
- throwDefaultError({
4580
+ return throwDefaultError({
4660
4581
  output,
4661
4582
  parsedBody: parsedBody.Error,
4662
- exceptionCtor: __BaseException,
4663
4583
  errorCode,
4664
4584
  });
4665
4585
  }
@@ -4675,7 +4595,7 @@ export const de_ListAttachedRolePoliciesCommand = async (output, context) => {
4675
4595
  $metadata: deserializeMetadata(output),
4676
4596
  ...contents,
4677
4597
  };
4678
- return Promise.resolve(response);
4598
+ return response;
4679
4599
  };
4680
4600
  const de_ListAttachedRolePoliciesCommandError = async (output, context) => {
4681
4601
  const parsedOutput = {
@@ -4695,10 +4615,9 @@ const de_ListAttachedRolePoliciesCommandError = async (output, context) => {
4695
4615
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4696
4616
  default:
4697
4617
  const parsedBody = parsedOutput.body;
4698
- throwDefaultError({
4618
+ return throwDefaultError({
4699
4619
  output,
4700
4620
  parsedBody: parsedBody.Error,
4701
- exceptionCtor: __BaseException,
4702
4621
  errorCode,
4703
4622
  });
4704
4623
  }
@@ -4714,7 +4633,7 @@ export const de_ListAttachedUserPoliciesCommand = async (output, context) => {
4714
4633
  $metadata: deserializeMetadata(output),
4715
4634
  ...contents,
4716
4635
  };
4717
- return Promise.resolve(response);
4636
+ return response;
4718
4637
  };
4719
4638
  const de_ListAttachedUserPoliciesCommandError = async (output, context) => {
4720
4639
  const parsedOutput = {
@@ -4734,10 +4653,9 @@ const de_ListAttachedUserPoliciesCommandError = async (output, context) => {
4734
4653
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4735
4654
  default:
4736
4655
  const parsedBody = parsedOutput.body;
4737
- throwDefaultError({
4656
+ return throwDefaultError({
4738
4657
  output,
4739
4658
  parsedBody: parsedBody.Error,
4740
- exceptionCtor: __BaseException,
4741
4659
  errorCode,
4742
4660
  });
4743
4661
  }
@@ -4753,7 +4671,7 @@ export const de_ListEntitiesForPolicyCommand = async (output, context) => {
4753
4671
  $metadata: deserializeMetadata(output),
4754
4672
  ...contents,
4755
4673
  };
4756
- return Promise.resolve(response);
4674
+ return response;
4757
4675
  };
4758
4676
  const de_ListEntitiesForPolicyCommandError = async (output, context) => {
4759
4677
  const parsedOutput = {
@@ -4773,10 +4691,9 @@ const de_ListEntitiesForPolicyCommandError = async (output, context) => {
4773
4691
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4774
4692
  default:
4775
4693
  const parsedBody = parsedOutput.body;
4776
- throwDefaultError({
4694
+ return throwDefaultError({
4777
4695
  output,
4778
4696
  parsedBody: parsedBody.Error,
4779
- exceptionCtor: __BaseException,
4780
4697
  errorCode,
4781
4698
  });
4782
4699
  }
@@ -4792,7 +4709,7 @@ export const de_ListGroupPoliciesCommand = async (output, context) => {
4792
4709
  $metadata: deserializeMetadata(output),
4793
4710
  ...contents,
4794
4711
  };
4795
- return Promise.resolve(response);
4712
+ return response;
4796
4713
  };
4797
4714
  const de_ListGroupPoliciesCommandError = async (output, context) => {
4798
4715
  const parsedOutput = {
@@ -4809,10 +4726,9 @@ const de_ListGroupPoliciesCommandError = async (output, context) => {
4809
4726
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4810
4727
  default:
4811
4728
  const parsedBody = parsedOutput.body;
4812
- throwDefaultError({
4729
+ return throwDefaultError({
4813
4730
  output,
4814
4731
  parsedBody: parsedBody.Error,
4815
- exceptionCtor: __BaseException,
4816
4732
  errorCode,
4817
4733
  });
4818
4734
  }
@@ -4828,7 +4744,7 @@ export const de_ListGroupsCommand = async (output, context) => {
4828
4744
  $metadata: deserializeMetadata(output),
4829
4745
  ...contents,
4830
4746
  };
4831
- return Promise.resolve(response);
4747
+ return response;
4832
4748
  };
4833
4749
  const de_ListGroupsCommandError = async (output, context) => {
4834
4750
  const parsedOutput = {
@@ -4842,10 +4758,9 @@ const de_ListGroupsCommandError = async (output, context) => {
4842
4758
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4843
4759
  default:
4844
4760
  const parsedBody = parsedOutput.body;
4845
- throwDefaultError({
4761
+ return throwDefaultError({
4846
4762
  output,
4847
4763
  parsedBody: parsedBody.Error,
4848
- exceptionCtor: __BaseException,
4849
4764
  errorCode,
4850
4765
  });
4851
4766
  }
@@ -4861,7 +4776,7 @@ export const de_ListGroupsForUserCommand = async (output, context) => {
4861
4776
  $metadata: deserializeMetadata(output),
4862
4777
  ...contents,
4863
4778
  };
4864
- return Promise.resolve(response);
4779
+ return response;
4865
4780
  };
4866
4781
  const de_ListGroupsForUserCommandError = async (output, context) => {
4867
4782
  const parsedOutput = {
@@ -4878,10 +4793,9 @@ const de_ListGroupsForUserCommandError = async (output, context) => {
4878
4793
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4879
4794
  default:
4880
4795
  const parsedBody = parsedOutput.body;
4881
- throwDefaultError({
4796
+ return throwDefaultError({
4882
4797
  output,
4883
4798
  parsedBody: parsedBody.Error,
4884
- exceptionCtor: __BaseException,
4885
4799
  errorCode,
4886
4800
  });
4887
4801
  }
@@ -4897,7 +4811,7 @@ export const de_ListInstanceProfilesCommand = async (output, context) => {
4897
4811
  $metadata: deserializeMetadata(output),
4898
4812
  ...contents,
4899
4813
  };
4900
- return Promise.resolve(response);
4814
+ return response;
4901
4815
  };
4902
4816
  const de_ListInstanceProfilesCommandError = async (output, context) => {
4903
4817
  const parsedOutput = {
@@ -4911,10 +4825,9 @@ const de_ListInstanceProfilesCommandError = async (output, context) => {
4911
4825
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4912
4826
  default:
4913
4827
  const parsedBody = parsedOutput.body;
4914
- throwDefaultError({
4828
+ return throwDefaultError({
4915
4829
  output,
4916
4830
  parsedBody: parsedBody.Error,
4917
- exceptionCtor: __BaseException,
4918
4831
  errorCode,
4919
4832
  });
4920
4833
  }
@@ -4930,7 +4843,7 @@ export const de_ListInstanceProfilesForRoleCommand = async (output, context) =>
4930
4843
  $metadata: deserializeMetadata(output),
4931
4844
  ...contents,
4932
4845
  };
4933
- return Promise.resolve(response);
4846
+ return response;
4934
4847
  };
4935
4848
  const de_ListInstanceProfilesForRoleCommandError = async (output, context) => {
4936
4849
  const parsedOutput = {
@@ -4947,10 +4860,9 @@ const de_ListInstanceProfilesForRoleCommandError = async (output, context) => {
4947
4860
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4948
4861
  default:
4949
4862
  const parsedBody = parsedOutput.body;
4950
- throwDefaultError({
4863
+ return throwDefaultError({
4951
4864
  output,
4952
4865
  parsedBody: parsedBody.Error,
4953
- exceptionCtor: __BaseException,
4954
4866
  errorCode,
4955
4867
  });
4956
4868
  }
@@ -4966,7 +4878,7 @@ export const de_ListInstanceProfileTagsCommand = async (output, context) => {
4966
4878
  $metadata: deserializeMetadata(output),
4967
4879
  ...contents,
4968
4880
  };
4969
- return Promise.resolve(response);
4881
+ return response;
4970
4882
  };
4971
4883
  const de_ListInstanceProfileTagsCommandError = async (output, context) => {
4972
4884
  const parsedOutput = {
@@ -4983,10 +4895,9 @@ const de_ListInstanceProfileTagsCommandError = async (output, context) => {
4983
4895
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
4984
4896
  default:
4985
4897
  const parsedBody = parsedOutput.body;
4986
- throwDefaultError({
4898
+ return throwDefaultError({
4987
4899
  output,
4988
4900
  parsedBody: parsedBody.Error,
4989
- exceptionCtor: __BaseException,
4990
4901
  errorCode,
4991
4902
  });
4992
4903
  }
@@ -5002,7 +4913,7 @@ export const de_ListMFADevicesCommand = async (output, context) => {
5002
4913
  $metadata: deserializeMetadata(output),
5003
4914
  ...contents,
5004
4915
  };
5005
- return Promise.resolve(response);
4916
+ return response;
5006
4917
  };
5007
4918
  const de_ListMFADevicesCommandError = async (output, context) => {
5008
4919
  const parsedOutput = {
@@ -5019,10 +4930,9 @@ const de_ListMFADevicesCommandError = async (output, context) => {
5019
4930
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5020
4931
  default:
5021
4932
  const parsedBody = parsedOutput.body;
5022
- throwDefaultError({
4933
+ return throwDefaultError({
5023
4934
  output,
5024
4935
  parsedBody: parsedBody.Error,
5025
- exceptionCtor: __BaseException,
5026
4936
  errorCode,
5027
4937
  });
5028
4938
  }
@@ -5038,7 +4948,7 @@ export const de_ListMFADeviceTagsCommand = async (output, context) => {
5038
4948
  $metadata: deserializeMetadata(output),
5039
4949
  ...contents,
5040
4950
  };
5041
- return Promise.resolve(response);
4951
+ return response;
5042
4952
  };
5043
4953
  const de_ListMFADeviceTagsCommandError = async (output, context) => {
5044
4954
  const parsedOutput = {
@@ -5058,10 +4968,9 @@ const de_ListMFADeviceTagsCommandError = async (output, context) => {
5058
4968
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5059
4969
  default:
5060
4970
  const parsedBody = parsedOutput.body;
5061
- throwDefaultError({
4971
+ return throwDefaultError({
5062
4972
  output,
5063
4973
  parsedBody: parsedBody.Error,
5064
- exceptionCtor: __BaseException,
5065
4974
  errorCode,
5066
4975
  });
5067
4976
  }
@@ -5077,7 +4986,7 @@ export const de_ListOpenIDConnectProvidersCommand = async (output, context) => {
5077
4986
  $metadata: deserializeMetadata(output),
5078
4987
  ...contents,
5079
4988
  };
5080
- return Promise.resolve(response);
4989
+ return response;
5081
4990
  };
5082
4991
  const de_ListOpenIDConnectProvidersCommandError = async (output, context) => {
5083
4992
  const parsedOutput = {
@@ -5091,10 +5000,9 @@ const de_ListOpenIDConnectProvidersCommandError = async (output, context) => {
5091
5000
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5092
5001
  default:
5093
5002
  const parsedBody = parsedOutput.body;
5094
- throwDefaultError({
5003
+ return throwDefaultError({
5095
5004
  output,
5096
5005
  parsedBody: parsedBody.Error,
5097
- exceptionCtor: __BaseException,
5098
5006
  errorCode,
5099
5007
  });
5100
5008
  }
@@ -5110,7 +5018,7 @@ export const de_ListOpenIDConnectProviderTagsCommand = async (output, context) =
5110
5018
  $metadata: deserializeMetadata(output),
5111
5019
  ...contents,
5112
5020
  };
5113
- return Promise.resolve(response);
5021
+ return response;
5114
5022
  };
5115
5023
  const de_ListOpenIDConnectProviderTagsCommandError = async (output, context) => {
5116
5024
  const parsedOutput = {
@@ -5130,10 +5038,9 @@ const de_ListOpenIDConnectProviderTagsCommandError = async (output, context) =>
5130
5038
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5131
5039
  default:
5132
5040
  const parsedBody = parsedOutput.body;
5133
- throwDefaultError({
5041
+ return throwDefaultError({
5134
5042
  output,
5135
5043
  parsedBody: parsedBody.Error,
5136
- exceptionCtor: __BaseException,
5137
5044
  errorCode,
5138
5045
  });
5139
5046
  }
@@ -5149,7 +5056,7 @@ export const de_ListPoliciesCommand = async (output, context) => {
5149
5056
  $metadata: deserializeMetadata(output),
5150
5057
  ...contents,
5151
5058
  };
5152
- return Promise.resolve(response);
5059
+ return response;
5153
5060
  };
5154
5061
  const de_ListPoliciesCommandError = async (output, context) => {
5155
5062
  const parsedOutput = {
@@ -5163,10 +5070,9 @@ const de_ListPoliciesCommandError = async (output, context) => {
5163
5070
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5164
5071
  default:
5165
5072
  const parsedBody = parsedOutput.body;
5166
- throwDefaultError({
5073
+ return throwDefaultError({
5167
5074
  output,
5168
5075
  parsedBody: parsedBody.Error,
5169
- exceptionCtor: __BaseException,
5170
5076
  errorCode,
5171
5077
  });
5172
5078
  }
@@ -5182,7 +5088,7 @@ export const de_ListPoliciesGrantingServiceAccessCommand = async (output, contex
5182
5088
  $metadata: deserializeMetadata(output),
5183
5089
  ...contents,
5184
5090
  };
5185
- return Promise.resolve(response);
5091
+ return response;
5186
5092
  };
5187
5093
  const de_ListPoliciesGrantingServiceAccessCommandError = async (output, context) => {
5188
5094
  const parsedOutput = {
@@ -5199,10 +5105,9 @@ const de_ListPoliciesGrantingServiceAccessCommandError = async (output, context)
5199
5105
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
5200
5106
  default:
5201
5107
  const parsedBody = parsedOutput.body;
5202
- throwDefaultError({
5108
+ return throwDefaultError({
5203
5109
  output,
5204
5110
  parsedBody: parsedBody.Error,
5205
- exceptionCtor: __BaseException,
5206
5111
  errorCode,
5207
5112
  });
5208
5113
  }
@@ -5218,7 +5123,7 @@ export const de_ListPolicyTagsCommand = async (output, context) => {
5218
5123
  $metadata: deserializeMetadata(output),
5219
5124
  ...contents,
5220
5125
  };
5221
- return Promise.resolve(response);
5126
+ return response;
5222
5127
  };
5223
5128
  const de_ListPolicyTagsCommandError = async (output, context) => {
5224
5129
  const parsedOutput = {
@@ -5238,10 +5143,9 @@ const de_ListPolicyTagsCommandError = async (output, context) => {
5238
5143
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5239
5144
  default:
5240
5145
  const parsedBody = parsedOutput.body;
5241
- throwDefaultError({
5146
+ return throwDefaultError({
5242
5147
  output,
5243
5148
  parsedBody: parsedBody.Error,
5244
- exceptionCtor: __BaseException,
5245
5149
  errorCode,
5246
5150
  });
5247
5151
  }
@@ -5257,7 +5161,7 @@ export const de_ListPolicyVersionsCommand = async (output, context) => {
5257
5161
  $metadata: deserializeMetadata(output),
5258
5162
  ...contents,
5259
5163
  };
5260
- return Promise.resolve(response);
5164
+ return response;
5261
5165
  };
5262
5166
  const de_ListPolicyVersionsCommandError = async (output, context) => {
5263
5167
  const parsedOutput = {
@@ -5277,10 +5181,9 @@ const de_ListPolicyVersionsCommandError = async (output, context) => {
5277
5181
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5278
5182
  default:
5279
5183
  const parsedBody = parsedOutput.body;
5280
- throwDefaultError({
5184
+ return throwDefaultError({
5281
5185
  output,
5282
5186
  parsedBody: parsedBody.Error,
5283
- exceptionCtor: __BaseException,
5284
5187
  errorCode,
5285
5188
  });
5286
5189
  }
@@ -5296,7 +5199,7 @@ export const de_ListRolePoliciesCommand = async (output, context) => {
5296
5199
  $metadata: deserializeMetadata(output),
5297
5200
  ...contents,
5298
5201
  };
5299
- return Promise.resolve(response);
5202
+ return response;
5300
5203
  };
5301
5204
  const de_ListRolePoliciesCommandError = async (output, context) => {
5302
5205
  const parsedOutput = {
@@ -5313,10 +5216,9 @@ const de_ListRolePoliciesCommandError = async (output, context) => {
5313
5216
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5314
5217
  default:
5315
5218
  const parsedBody = parsedOutput.body;
5316
- throwDefaultError({
5219
+ return throwDefaultError({
5317
5220
  output,
5318
5221
  parsedBody: parsedBody.Error,
5319
- exceptionCtor: __BaseException,
5320
5222
  errorCode,
5321
5223
  });
5322
5224
  }
@@ -5332,7 +5234,7 @@ export const de_ListRolesCommand = async (output, context) => {
5332
5234
  $metadata: deserializeMetadata(output),
5333
5235
  ...contents,
5334
5236
  };
5335
- return Promise.resolve(response);
5237
+ return response;
5336
5238
  };
5337
5239
  const de_ListRolesCommandError = async (output, context) => {
5338
5240
  const parsedOutput = {
@@ -5346,10 +5248,9 @@ const de_ListRolesCommandError = async (output, context) => {
5346
5248
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5347
5249
  default:
5348
5250
  const parsedBody = parsedOutput.body;
5349
- throwDefaultError({
5251
+ return throwDefaultError({
5350
5252
  output,
5351
5253
  parsedBody: parsedBody.Error,
5352
- exceptionCtor: __BaseException,
5353
5254
  errorCode,
5354
5255
  });
5355
5256
  }
@@ -5365,7 +5266,7 @@ export const de_ListRoleTagsCommand = async (output, context) => {
5365
5266
  $metadata: deserializeMetadata(output),
5366
5267
  ...contents,
5367
5268
  };
5368
- return Promise.resolve(response);
5269
+ return response;
5369
5270
  };
5370
5271
  const de_ListRoleTagsCommandError = async (output, context) => {
5371
5272
  const parsedOutput = {
@@ -5382,10 +5283,9 @@ const de_ListRoleTagsCommandError = async (output, context) => {
5382
5283
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5383
5284
  default:
5384
5285
  const parsedBody = parsedOutput.body;
5385
- throwDefaultError({
5286
+ return throwDefaultError({
5386
5287
  output,
5387
5288
  parsedBody: parsedBody.Error,
5388
- exceptionCtor: __BaseException,
5389
5289
  errorCode,
5390
5290
  });
5391
5291
  }
@@ -5401,7 +5301,7 @@ export const de_ListSAMLProvidersCommand = async (output, context) => {
5401
5301
  $metadata: deserializeMetadata(output),
5402
5302
  ...contents,
5403
5303
  };
5404
- return Promise.resolve(response);
5304
+ return response;
5405
5305
  };
5406
5306
  const de_ListSAMLProvidersCommandError = async (output, context) => {
5407
5307
  const parsedOutput = {
@@ -5415,10 +5315,9 @@ const de_ListSAMLProvidersCommandError = async (output, context) => {
5415
5315
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5416
5316
  default:
5417
5317
  const parsedBody = parsedOutput.body;
5418
- throwDefaultError({
5318
+ return throwDefaultError({
5419
5319
  output,
5420
5320
  parsedBody: parsedBody.Error,
5421
- exceptionCtor: __BaseException,
5422
5321
  errorCode,
5423
5322
  });
5424
5323
  }
@@ -5434,7 +5333,7 @@ export const de_ListSAMLProviderTagsCommand = async (output, context) => {
5434
5333
  $metadata: deserializeMetadata(output),
5435
5334
  ...contents,
5436
5335
  };
5437
- return Promise.resolve(response);
5336
+ return response;
5438
5337
  };
5439
5338
  const de_ListSAMLProviderTagsCommandError = async (output, context) => {
5440
5339
  const parsedOutput = {
@@ -5454,10 +5353,9 @@ const de_ListSAMLProviderTagsCommandError = async (output, context) => {
5454
5353
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5455
5354
  default:
5456
5355
  const parsedBody = parsedOutput.body;
5457
- throwDefaultError({
5356
+ return throwDefaultError({
5458
5357
  output,
5459
5358
  parsedBody: parsedBody.Error,
5460
- exceptionCtor: __BaseException,
5461
5359
  errorCode,
5462
5360
  });
5463
5361
  }
@@ -5473,7 +5371,7 @@ export const de_ListServerCertificatesCommand = async (output, context) => {
5473
5371
  $metadata: deserializeMetadata(output),
5474
5372
  ...contents,
5475
5373
  };
5476
- return Promise.resolve(response);
5374
+ return response;
5477
5375
  };
5478
5376
  const de_ListServerCertificatesCommandError = async (output, context) => {
5479
5377
  const parsedOutput = {
@@ -5487,10 +5385,9 @@ const de_ListServerCertificatesCommandError = async (output, context) => {
5487
5385
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5488
5386
  default:
5489
5387
  const parsedBody = parsedOutput.body;
5490
- throwDefaultError({
5388
+ return throwDefaultError({
5491
5389
  output,
5492
5390
  parsedBody: parsedBody.Error,
5493
- exceptionCtor: __BaseException,
5494
5391
  errorCode,
5495
5392
  });
5496
5393
  }
@@ -5506,7 +5403,7 @@ export const de_ListServerCertificateTagsCommand = async (output, context) => {
5506
5403
  $metadata: deserializeMetadata(output),
5507
5404
  ...contents,
5508
5405
  };
5509
- return Promise.resolve(response);
5406
+ return response;
5510
5407
  };
5511
5408
  const de_ListServerCertificateTagsCommandError = async (output, context) => {
5512
5409
  const parsedOutput = {
@@ -5523,10 +5420,9 @@ const de_ListServerCertificateTagsCommandError = async (output, context) => {
5523
5420
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5524
5421
  default:
5525
5422
  const parsedBody = parsedOutput.body;
5526
- throwDefaultError({
5423
+ return throwDefaultError({
5527
5424
  output,
5528
5425
  parsedBody: parsedBody.Error,
5529
- exceptionCtor: __BaseException,
5530
5426
  errorCode,
5531
5427
  });
5532
5428
  }
@@ -5542,7 +5438,7 @@ export const de_ListServiceSpecificCredentialsCommand = async (output, context)
5542
5438
  $metadata: deserializeMetadata(output),
5543
5439
  ...contents,
5544
5440
  };
5545
- return Promise.resolve(response);
5441
+ return response;
5546
5442
  };
5547
5443
  const de_ListServiceSpecificCredentialsCommandError = async (output, context) => {
5548
5444
  const parsedOutput = {
@@ -5559,10 +5455,9 @@ const de_ListServiceSpecificCredentialsCommandError = async (output, context) =>
5559
5455
  throw await de_ServiceNotSupportedExceptionRes(parsedOutput, context);
5560
5456
  default:
5561
5457
  const parsedBody = parsedOutput.body;
5562
- throwDefaultError({
5458
+ return throwDefaultError({
5563
5459
  output,
5564
5460
  parsedBody: parsedBody.Error,
5565
- exceptionCtor: __BaseException,
5566
5461
  errorCode,
5567
5462
  });
5568
5463
  }
@@ -5578,7 +5473,7 @@ export const de_ListSigningCertificatesCommand = async (output, context) => {
5578
5473
  $metadata: deserializeMetadata(output),
5579
5474
  ...contents,
5580
5475
  };
5581
- return Promise.resolve(response);
5476
+ return response;
5582
5477
  };
5583
5478
  const de_ListSigningCertificatesCommandError = async (output, context) => {
5584
5479
  const parsedOutput = {
@@ -5595,10 +5490,9 @@ const de_ListSigningCertificatesCommandError = async (output, context) => {
5595
5490
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5596
5491
  default:
5597
5492
  const parsedBody = parsedOutput.body;
5598
- throwDefaultError({
5493
+ return throwDefaultError({
5599
5494
  output,
5600
5495
  parsedBody: parsedBody.Error,
5601
- exceptionCtor: __BaseException,
5602
5496
  errorCode,
5603
5497
  });
5604
5498
  }
@@ -5614,7 +5508,7 @@ export const de_ListSSHPublicKeysCommand = async (output, context) => {
5614
5508
  $metadata: deserializeMetadata(output),
5615
5509
  ...contents,
5616
5510
  };
5617
- return Promise.resolve(response);
5511
+ return response;
5618
5512
  };
5619
5513
  const de_ListSSHPublicKeysCommandError = async (output, context) => {
5620
5514
  const parsedOutput = {
@@ -5628,10 +5522,9 @@ const de_ListSSHPublicKeysCommandError = async (output, context) => {
5628
5522
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
5629
5523
  default:
5630
5524
  const parsedBody = parsedOutput.body;
5631
- throwDefaultError({
5525
+ return throwDefaultError({
5632
5526
  output,
5633
5527
  parsedBody: parsedBody.Error,
5634
- exceptionCtor: __BaseException,
5635
5528
  errorCode,
5636
5529
  });
5637
5530
  }
@@ -5647,7 +5540,7 @@ export const de_ListUserPoliciesCommand = async (output, context) => {
5647
5540
  $metadata: deserializeMetadata(output),
5648
5541
  ...contents,
5649
5542
  };
5650
- return Promise.resolve(response);
5543
+ return response;
5651
5544
  };
5652
5545
  const de_ListUserPoliciesCommandError = async (output, context) => {
5653
5546
  const parsedOutput = {
@@ -5664,10 +5557,9 @@ const de_ListUserPoliciesCommandError = async (output, context) => {
5664
5557
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5665
5558
  default:
5666
5559
  const parsedBody = parsedOutput.body;
5667
- throwDefaultError({
5560
+ return throwDefaultError({
5668
5561
  output,
5669
5562
  parsedBody: parsedBody.Error,
5670
- exceptionCtor: __BaseException,
5671
5563
  errorCode,
5672
5564
  });
5673
5565
  }
@@ -5683,7 +5575,7 @@ export const de_ListUsersCommand = async (output, context) => {
5683
5575
  $metadata: deserializeMetadata(output),
5684
5576
  ...contents,
5685
5577
  };
5686
- return Promise.resolve(response);
5578
+ return response;
5687
5579
  };
5688
5580
  const de_ListUsersCommandError = async (output, context) => {
5689
5581
  const parsedOutput = {
@@ -5697,10 +5589,9 @@ const de_ListUsersCommandError = async (output, context) => {
5697
5589
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5698
5590
  default:
5699
5591
  const parsedBody = parsedOutput.body;
5700
- throwDefaultError({
5592
+ return throwDefaultError({
5701
5593
  output,
5702
5594
  parsedBody: parsedBody.Error,
5703
- exceptionCtor: __BaseException,
5704
5595
  errorCode,
5705
5596
  });
5706
5597
  }
@@ -5716,7 +5607,7 @@ export const de_ListUserTagsCommand = async (output, context) => {
5716
5607
  $metadata: deserializeMetadata(output),
5717
5608
  ...contents,
5718
5609
  };
5719
- return Promise.resolve(response);
5610
+ return response;
5720
5611
  };
5721
5612
  const de_ListUserTagsCommandError = async (output, context) => {
5722
5613
  const parsedOutput = {
@@ -5733,10 +5624,9 @@ const de_ListUserTagsCommandError = async (output, context) => {
5733
5624
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5734
5625
  default:
5735
5626
  const parsedBody = parsedOutput.body;
5736
- throwDefaultError({
5627
+ return throwDefaultError({
5737
5628
  output,
5738
5629
  parsedBody: parsedBody.Error,
5739
- exceptionCtor: __BaseException,
5740
5630
  errorCode,
5741
5631
  });
5742
5632
  }
@@ -5752,7 +5642,7 @@ export const de_ListVirtualMFADevicesCommand = async (output, context) => {
5752
5642
  $metadata: deserializeMetadata(output),
5753
5643
  ...contents,
5754
5644
  };
5755
- return Promise.resolve(response);
5645
+ return response;
5756
5646
  };
5757
5647
  const de_ListVirtualMFADevicesCommandError = async (output, context) => {
5758
5648
  const parsedOutput = {
@@ -5761,10 +5651,9 @@ const de_ListVirtualMFADevicesCommandError = async (output, context) => {
5761
5651
  };
5762
5652
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
5763
5653
  const parsedBody = parsedOutput.body;
5764
- throwDefaultError({
5654
+ return throwDefaultError({
5765
5655
  output,
5766
5656
  parsedBody: parsedBody.Error,
5767
- exceptionCtor: __BaseException,
5768
5657
  errorCode,
5769
5658
  });
5770
5659
  };
@@ -5776,7 +5665,7 @@ export const de_PutGroupPolicyCommand = async (output, context) => {
5776
5665
  const response = {
5777
5666
  $metadata: deserializeMetadata(output),
5778
5667
  };
5779
- return Promise.resolve(response);
5668
+ return response;
5780
5669
  };
5781
5670
  const de_PutGroupPolicyCommandError = async (output, context) => {
5782
5671
  const parsedOutput = {
@@ -5799,10 +5688,9 @@ const de_PutGroupPolicyCommandError = async (output, context) => {
5799
5688
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5800
5689
  default:
5801
5690
  const parsedBody = parsedOutput.body;
5802
- throwDefaultError({
5691
+ return throwDefaultError({
5803
5692
  output,
5804
5693
  parsedBody: parsedBody.Error,
5805
- exceptionCtor: __BaseException,
5806
5694
  errorCode,
5807
5695
  });
5808
5696
  }
@@ -5815,7 +5703,7 @@ export const de_PutRolePermissionsBoundaryCommand = async (output, context) => {
5815
5703
  const response = {
5816
5704
  $metadata: deserializeMetadata(output),
5817
5705
  };
5818
- return Promise.resolve(response);
5706
+ return response;
5819
5707
  };
5820
5708
  const de_PutRolePermissionsBoundaryCommandError = async (output, context) => {
5821
5709
  const parsedOutput = {
@@ -5841,10 +5729,9 @@ const de_PutRolePermissionsBoundaryCommandError = async (output, context) => {
5841
5729
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
5842
5730
  default:
5843
5731
  const parsedBody = parsedOutput.body;
5844
- throwDefaultError({
5732
+ return throwDefaultError({
5845
5733
  output,
5846
5734
  parsedBody: parsedBody.Error,
5847
- exceptionCtor: __BaseException,
5848
5735
  errorCode,
5849
5736
  });
5850
5737
  }
@@ -5857,7 +5744,7 @@ export const de_PutRolePolicyCommand = async (output, context) => {
5857
5744
  const response = {
5858
5745
  $metadata: deserializeMetadata(output),
5859
5746
  };
5860
- return Promise.resolve(response);
5747
+ return response;
5861
5748
  };
5862
5749
  const de_PutRolePolicyCommandError = async (output, context) => {
5863
5750
  const parsedOutput = {
@@ -5883,10 +5770,9 @@ const de_PutRolePolicyCommandError = async (output, context) => {
5883
5770
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
5884
5771
  default:
5885
5772
  const parsedBody = parsedOutput.body;
5886
- throwDefaultError({
5773
+ return throwDefaultError({
5887
5774
  output,
5888
5775
  parsedBody: parsedBody.Error,
5889
- exceptionCtor: __BaseException,
5890
5776
  errorCode,
5891
5777
  });
5892
5778
  }
@@ -5899,7 +5785,7 @@ export const de_PutUserPermissionsBoundaryCommand = async (output, context) => {
5899
5785
  const response = {
5900
5786
  $metadata: deserializeMetadata(output),
5901
5787
  };
5902
- return Promise.resolve(response);
5788
+ return response;
5903
5789
  };
5904
5790
  const de_PutUserPermissionsBoundaryCommandError = async (output, context) => {
5905
5791
  const parsedOutput = {
@@ -5922,10 +5808,9 @@ const de_PutUserPermissionsBoundaryCommandError = async (output, context) => {
5922
5808
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5923
5809
  default:
5924
5810
  const parsedBody = parsedOutput.body;
5925
- throwDefaultError({
5811
+ return throwDefaultError({
5926
5812
  output,
5927
5813
  parsedBody: parsedBody.Error,
5928
- exceptionCtor: __BaseException,
5929
5814
  errorCode,
5930
5815
  });
5931
5816
  }
@@ -5938,7 +5823,7 @@ export const de_PutUserPolicyCommand = async (output, context) => {
5938
5823
  const response = {
5939
5824
  $metadata: deserializeMetadata(output),
5940
5825
  };
5941
- return Promise.resolve(response);
5826
+ return response;
5942
5827
  };
5943
5828
  const de_PutUserPolicyCommandError = async (output, context) => {
5944
5829
  const parsedOutput = {
@@ -5961,10 +5846,9 @@ const de_PutUserPolicyCommandError = async (output, context) => {
5961
5846
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5962
5847
  default:
5963
5848
  const parsedBody = parsedOutput.body;
5964
- throwDefaultError({
5849
+ return throwDefaultError({
5965
5850
  output,
5966
5851
  parsedBody: parsedBody.Error,
5967
- exceptionCtor: __BaseException,
5968
5852
  errorCode,
5969
5853
  });
5970
5854
  }
@@ -5977,7 +5861,7 @@ export const de_RemoveClientIDFromOpenIDConnectProviderCommand = async (output,
5977
5861
  const response = {
5978
5862
  $metadata: deserializeMetadata(output),
5979
5863
  };
5980
- return Promise.resolve(response);
5864
+ return response;
5981
5865
  };
5982
5866
  const de_RemoveClientIDFromOpenIDConnectProviderCommandError = async (output, context) => {
5983
5867
  const parsedOutput = {
@@ -5997,10 +5881,9 @@ const de_RemoveClientIDFromOpenIDConnectProviderCommandError = async (output, co
5997
5881
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
5998
5882
  default:
5999
5883
  const parsedBody = parsedOutput.body;
6000
- throwDefaultError({
5884
+ return throwDefaultError({
6001
5885
  output,
6002
5886
  parsedBody: parsedBody.Error,
6003
- exceptionCtor: __BaseException,
6004
5887
  errorCode,
6005
5888
  });
6006
5889
  }
@@ -6013,7 +5896,7 @@ export const de_RemoveRoleFromInstanceProfileCommand = async (output, context) =
6013
5896
  const response = {
6014
5897
  $metadata: deserializeMetadata(output),
6015
5898
  };
6016
- return Promise.resolve(response);
5899
+ return response;
6017
5900
  };
6018
5901
  const de_RemoveRoleFromInstanceProfileCommandError = async (output, context) => {
6019
5902
  const parsedOutput = {
@@ -6036,10 +5919,9 @@ const de_RemoveRoleFromInstanceProfileCommandError = async (output, context) =>
6036
5919
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
6037
5920
  default:
6038
5921
  const parsedBody = parsedOutput.body;
6039
- throwDefaultError({
5922
+ return throwDefaultError({
6040
5923
  output,
6041
5924
  parsedBody: parsedBody.Error,
6042
- exceptionCtor: __BaseException,
6043
5925
  errorCode,
6044
5926
  });
6045
5927
  }
@@ -6052,7 +5934,7 @@ export const de_RemoveUserFromGroupCommand = async (output, context) => {
6052
5934
  const response = {
6053
5935
  $metadata: deserializeMetadata(output),
6054
5936
  };
6055
- return Promise.resolve(response);
5937
+ return response;
6056
5938
  };
6057
5939
  const de_RemoveUserFromGroupCommandError = async (output, context) => {
6058
5940
  const parsedOutput = {
@@ -6072,10 +5954,9 @@ const de_RemoveUserFromGroupCommandError = async (output, context) => {
6072
5954
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6073
5955
  default:
6074
5956
  const parsedBody = parsedOutput.body;
6075
- throwDefaultError({
5957
+ return throwDefaultError({
6076
5958
  output,
6077
5959
  parsedBody: parsedBody.Error,
6078
- exceptionCtor: __BaseException,
6079
5960
  errorCode,
6080
5961
  });
6081
5962
  }
@@ -6091,7 +5972,7 @@ export const de_ResetServiceSpecificCredentialCommand = async (output, context)
6091
5972
  $metadata: deserializeMetadata(output),
6092
5973
  ...contents,
6093
5974
  };
6094
- return Promise.resolve(response);
5975
+ return response;
6095
5976
  };
6096
5977
  const de_ResetServiceSpecificCredentialCommandError = async (output, context) => {
6097
5978
  const parsedOutput = {
@@ -6105,10 +5986,9 @@ const de_ResetServiceSpecificCredentialCommandError = async (output, context) =>
6105
5986
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
6106
5987
  default:
6107
5988
  const parsedBody = parsedOutput.body;
6108
- throwDefaultError({
5989
+ return throwDefaultError({
6109
5990
  output,
6110
5991
  parsedBody: parsedBody.Error,
6111
- exceptionCtor: __BaseException,
6112
5992
  errorCode,
6113
5993
  });
6114
5994
  }
@@ -6121,7 +6001,7 @@ export const de_ResyncMFADeviceCommand = async (output, context) => {
6121
6001
  const response = {
6122
6002
  $metadata: deserializeMetadata(output),
6123
6003
  };
6124
- return Promise.resolve(response);
6004
+ return response;
6125
6005
  };
6126
6006
  const de_ResyncMFADeviceCommandError = async (output, context) => {
6127
6007
  const parsedOutput = {
@@ -6144,10 +6024,9 @@ const de_ResyncMFADeviceCommandError = async (output, context) => {
6144
6024
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6145
6025
  default:
6146
6026
  const parsedBody = parsedOutput.body;
6147
- throwDefaultError({
6027
+ return throwDefaultError({
6148
6028
  output,
6149
6029
  parsedBody: parsedBody.Error,
6150
- exceptionCtor: __BaseException,
6151
6030
  errorCode,
6152
6031
  });
6153
6032
  }
@@ -6160,7 +6039,7 @@ export const de_SetDefaultPolicyVersionCommand = async (output, context) => {
6160
6039
  const response = {
6161
6040
  $metadata: deserializeMetadata(output),
6162
6041
  };
6163
- return Promise.resolve(response);
6042
+ return response;
6164
6043
  };
6165
6044
  const de_SetDefaultPolicyVersionCommandError = async (output, context) => {
6166
6045
  const parsedOutput = {
@@ -6183,10 +6062,9 @@ const de_SetDefaultPolicyVersionCommandError = async (output, context) => {
6183
6062
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6184
6063
  default:
6185
6064
  const parsedBody = parsedOutput.body;
6186
- throwDefaultError({
6065
+ return throwDefaultError({
6187
6066
  output,
6188
6067
  parsedBody: parsedBody.Error,
6189
- exceptionCtor: __BaseException,
6190
6068
  errorCode,
6191
6069
  });
6192
6070
  }
@@ -6199,7 +6077,7 @@ export const de_SetSecurityTokenServicePreferencesCommand = async (output, conte
6199
6077
  const response = {
6200
6078
  $metadata: deserializeMetadata(output),
6201
6079
  };
6202
- return Promise.resolve(response);
6080
+ return response;
6203
6081
  };
6204
6082
  const de_SetSecurityTokenServicePreferencesCommandError = async (output, context) => {
6205
6083
  const parsedOutput = {
@@ -6213,10 +6091,9 @@ const de_SetSecurityTokenServicePreferencesCommandError = async (output, context
6213
6091
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6214
6092
  default:
6215
6093
  const parsedBody = parsedOutput.body;
6216
- throwDefaultError({
6094
+ return throwDefaultError({
6217
6095
  output,
6218
6096
  parsedBody: parsedBody.Error,
6219
- exceptionCtor: __BaseException,
6220
6097
  errorCode,
6221
6098
  });
6222
6099
  }
@@ -6232,7 +6109,7 @@ export const de_SimulateCustomPolicyCommand = async (output, context) => {
6232
6109
  $metadata: deserializeMetadata(output),
6233
6110
  ...contents,
6234
6111
  };
6235
- return Promise.resolve(response);
6112
+ return response;
6236
6113
  };
6237
6114
  const de_SimulateCustomPolicyCommandError = async (output, context) => {
6238
6115
  const parsedOutput = {
@@ -6249,10 +6126,9 @@ const de_SimulateCustomPolicyCommandError = async (output, context) => {
6249
6126
  throw await de_PolicyEvaluationExceptionRes(parsedOutput, context);
6250
6127
  default:
6251
6128
  const parsedBody = parsedOutput.body;
6252
- throwDefaultError({
6129
+ return throwDefaultError({
6253
6130
  output,
6254
6131
  parsedBody: parsedBody.Error,
6255
- exceptionCtor: __BaseException,
6256
6132
  errorCode,
6257
6133
  });
6258
6134
  }
@@ -6268,7 +6144,7 @@ export const de_SimulatePrincipalPolicyCommand = async (output, context) => {
6268
6144
  $metadata: deserializeMetadata(output),
6269
6145
  ...contents,
6270
6146
  };
6271
- return Promise.resolve(response);
6147
+ return response;
6272
6148
  };
6273
6149
  const de_SimulatePrincipalPolicyCommandError = async (output, context) => {
6274
6150
  const parsedOutput = {
@@ -6288,10 +6164,9 @@ const de_SimulatePrincipalPolicyCommandError = async (output, context) => {
6288
6164
  throw await de_PolicyEvaluationExceptionRes(parsedOutput, context);
6289
6165
  default:
6290
6166
  const parsedBody = parsedOutput.body;
6291
- throwDefaultError({
6167
+ return throwDefaultError({
6292
6168
  output,
6293
6169
  parsedBody: parsedBody.Error,
6294
- exceptionCtor: __BaseException,
6295
6170
  errorCode,
6296
6171
  });
6297
6172
  }
@@ -6304,7 +6179,7 @@ export const de_TagInstanceProfileCommand = async (output, context) => {
6304
6179
  const response = {
6305
6180
  $metadata: deserializeMetadata(output),
6306
6181
  };
6307
- return Promise.resolve(response);
6182
+ return response;
6308
6183
  };
6309
6184
  const de_TagInstanceProfileCommandError = async (output, context) => {
6310
6185
  const parsedOutput = {
@@ -6330,10 +6205,9 @@ const de_TagInstanceProfileCommandError = async (output, context) => {
6330
6205
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6331
6206
  default:
6332
6207
  const parsedBody = parsedOutput.body;
6333
- throwDefaultError({
6208
+ return throwDefaultError({
6334
6209
  output,
6335
6210
  parsedBody: parsedBody.Error,
6336
- exceptionCtor: __BaseException,
6337
6211
  errorCode,
6338
6212
  });
6339
6213
  }
@@ -6346,7 +6220,7 @@ export const de_TagMFADeviceCommand = async (output, context) => {
6346
6220
  const response = {
6347
6221
  $metadata: deserializeMetadata(output),
6348
6222
  };
6349
- return Promise.resolve(response);
6223
+ return response;
6350
6224
  };
6351
6225
  const de_TagMFADeviceCommandError = async (output, context) => {
6352
6226
  const parsedOutput = {
@@ -6372,10 +6246,9 @@ const de_TagMFADeviceCommandError = async (output, context) => {
6372
6246
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6373
6247
  default:
6374
6248
  const parsedBody = parsedOutput.body;
6375
- throwDefaultError({
6249
+ return throwDefaultError({
6376
6250
  output,
6377
6251
  parsedBody: parsedBody.Error,
6378
- exceptionCtor: __BaseException,
6379
6252
  errorCode,
6380
6253
  });
6381
6254
  }
@@ -6388,7 +6261,7 @@ export const de_TagOpenIDConnectProviderCommand = async (output, context) => {
6388
6261
  const response = {
6389
6262
  $metadata: deserializeMetadata(output),
6390
6263
  };
6391
- return Promise.resolve(response);
6264
+ return response;
6392
6265
  };
6393
6266
  const de_TagOpenIDConnectProviderCommandError = async (output, context) => {
6394
6267
  const parsedOutput = {
@@ -6414,10 +6287,9 @@ const de_TagOpenIDConnectProviderCommandError = async (output, context) => {
6414
6287
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6415
6288
  default:
6416
6289
  const parsedBody = parsedOutput.body;
6417
- throwDefaultError({
6290
+ return throwDefaultError({
6418
6291
  output,
6419
6292
  parsedBody: parsedBody.Error,
6420
- exceptionCtor: __BaseException,
6421
6293
  errorCode,
6422
6294
  });
6423
6295
  }
@@ -6430,7 +6302,7 @@ export const de_TagPolicyCommand = async (output, context) => {
6430
6302
  const response = {
6431
6303
  $metadata: deserializeMetadata(output),
6432
6304
  };
6433
- return Promise.resolve(response);
6305
+ return response;
6434
6306
  };
6435
6307
  const de_TagPolicyCommandError = async (output, context) => {
6436
6308
  const parsedOutput = {
@@ -6456,10 +6328,9 @@ const de_TagPolicyCommandError = async (output, context) => {
6456
6328
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6457
6329
  default:
6458
6330
  const parsedBody = parsedOutput.body;
6459
- throwDefaultError({
6331
+ return throwDefaultError({
6460
6332
  output,
6461
6333
  parsedBody: parsedBody.Error,
6462
- exceptionCtor: __BaseException,
6463
6334
  errorCode,
6464
6335
  });
6465
6336
  }
@@ -6472,7 +6343,7 @@ export const de_TagRoleCommand = async (output, context) => {
6472
6343
  const response = {
6473
6344
  $metadata: deserializeMetadata(output),
6474
6345
  };
6475
- return Promise.resolve(response);
6346
+ return response;
6476
6347
  };
6477
6348
  const de_TagRoleCommandError = async (output, context) => {
6478
6349
  const parsedOutput = {
@@ -6498,10 +6369,9 @@ const de_TagRoleCommandError = async (output, context) => {
6498
6369
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6499
6370
  default:
6500
6371
  const parsedBody = parsedOutput.body;
6501
- throwDefaultError({
6372
+ return throwDefaultError({
6502
6373
  output,
6503
6374
  parsedBody: parsedBody.Error,
6504
- exceptionCtor: __BaseException,
6505
6375
  errorCode,
6506
6376
  });
6507
6377
  }
@@ -6514,7 +6384,7 @@ export const de_TagSAMLProviderCommand = async (output, context) => {
6514
6384
  const response = {
6515
6385
  $metadata: deserializeMetadata(output),
6516
6386
  };
6517
- return Promise.resolve(response);
6387
+ return response;
6518
6388
  };
6519
6389
  const de_TagSAMLProviderCommandError = async (output, context) => {
6520
6390
  const parsedOutput = {
@@ -6540,10 +6410,9 @@ const de_TagSAMLProviderCommandError = async (output, context) => {
6540
6410
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6541
6411
  default:
6542
6412
  const parsedBody = parsedOutput.body;
6543
- throwDefaultError({
6413
+ return throwDefaultError({
6544
6414
  output,
6545
6415
  parsedBody: parsedBody.Error,
6546
- exceptionCtor: __BaseException,
6547
6416
  errorCode,
6548
6417
  });
6549
6418
  }
@@ -6556,7 +6425,7 @@ export const de_TagServerCertificateCommand = async (output, context) => {
6556
6425
  const response = {
6557
6426
  $metadata: deserializeMetadata(output),
6558
6427
  };
6559
- return Promise.resolve(response);
6428
+ return response;
6560
6429
  };
6561
6430
  const de_TagServerCertificateCommandError = async (output, context) => {
6562
6431
  const parsedOutput = {
@@ -6582,10 +6451,9 @@ const de_TagServerCertificateCommandError = async (output, context) => {
6582
6451
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6583
6452
  default:
6584
6453
  const parsedBody = parsedOutput.body;
6585
- throwDefaultError({
6454
+ return throwDefaultError({
6586
6455
  output,
6587
6456
  parsedBody: parsedBody.Error,
6588
- exceptionCtor: __BaseException,
6589
6457
  errorCode,
6590
6458
  });
6591
6459
  }
@@ -6598,7 +6466,7 @@ export const de_TagUserCommand = async (output, context) => {
6598
6466
  const response = {
6599
6467
  $metadata: deserializeMetadata(output),
6600
6468
  };
6601
- return Promise.resolve(response);
6469
+ return response;
6602
6470
  };
6603
6471
  const de_TagUserCommandError = async (output, context) => {
6604
6472
  const parsedOutput = {
@@ -6624,10 +6492,9 @@ const de_TagUserCommandError = async (output, context) => {
6624
6492
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6625
6493
  default:
6626
6494
  const parsedBody = parsedOutput.body;
6627
- throwDefaultError({
6495
+ return throwDefaultError({
6628
6496
  output,
6629
6497
  parsedBody: parsedBody.Error,
6630
- exceptionCtor: __BaseException,
6631
6498
  errorCode,
6632
6499
  });
6633
6500
  }
@@ -6640,7 +6507,7 @@ export const de_UntagInstanceProfileCommand = async (output, context) => {
6640
6507
  const response = {
6641
6508
  $metadata: deserializeMetadata(output),
6642
6509
  };
6643
- return Promise.resolve(response);
6510
+ return response;
6644
6511
  };
6645
6512
  const de_UntagInstanceProfileCommandError = async (output, context) => {
6646
6513
  const parsedOutput = {
@@ -6663,10 +6530,9 @@ const de_UntagInstanceProfileCommandError = async (output, context) => {
6663
6530
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6664
6531
  default:
6665
6532
  const parsedBody = parsedOutput.body;
6666
- throwDefaultError({
6533
+ return throwDefaultError({
6667
6534
  output,
6668
6535
  parsedBody: parsedBody.Error,
6669
- exceptionCtor: __BaseException,
6670
6536
  errorCode,
6671
6537
  });
6672
6538
  }
@@ -6679,7 +6545,7 @@ export const de_UntagMFADeviceCommand = async (output, context) => {
6679
6545
  const response = {
6680
6546
  $metadata: deserializeMetadata(output),
6681
6547
  };
6682
- return Promise.resolve(response);
6548
+ return response;
6683
6549
  };
6684
6550
  const de_UntagMFADeviceCommandError = async (output, context) => {
6685
6551
  const parsedOutput = {
@@ -6702,10 +6568,9 @@ const de_UntagMFADeviceCommandError = async (output, context) => {
6702
6568
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6703
6569
  default:
6704
6570
  const parsedBody = parsedOutput.body;
6705
- throwDefaultError({
6571
+ return throwDefaultError({
6706
6572
  output,
6707
6573
  parsedBody: parsedBody.Error,
6708
- exceptionCtor: __BaseException,
6709
6574
  errorCode,
6710
6575
  });
6711
6576
  }
@@ -6718,7 +6583,7 @@ export const de_UntagOpenIDConnectProviderCommand = async (output, context) => {
6718
6583
  const response = {
6719
6584
  $metadata: deserializeMetadata(output),
6720
6585
  };
6721
- return Promise.resolve(response);
6586
+ return response;
6722
6587
  };
6723
6588
  const de_UntagOpenIDConnectProviderCommandError = async (output, context) => {
6724
6589
  const parsedOutput = {
@@ -6741,10 +6606,9 @@ const de_UntagOpenIDConnectProviderCommandError = async (output, context) => {
6741
6606
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6742
6607
  default:
6743
6608
  const parsedBody = parsedOutput.body;
6744
- throwDefaultError({
6609
+ return throwDefaultError({
6745
6610
  output,
6746
6611
  parsedBody: parsedBody.Error,
6747
- exceptionCtor: __BaseException,
6748
6612
  errorCode,
6749
6613
  });
6750
6614
  }
@@ -6757,7 +6621,7 @@ export const de_UntagPolicyCommand = async (output, context) => {
6757
6621
  const response = {
6758
6622
  $metadata: deserializeMetadata(output),
6759
6623
  };
6760
- return Promise.resolve(response);
6624
+ return response;
6761
6625
  };
6762
6626
  const de_UntagPolicyCommandError = async (output, context) => {
6763
6627
  const parsedOutput = {
@@ -6780,10 +6644,9 @@ const de_UntagPolicyCommandError = async (output, context) => {
6780
6644
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6781
6645
  default:
6782
6646
  const parsedBody = parsedOutput.body;
6783
- throwDefaultError({
6647
+ return throwDefaultError({
6784
6648
  output,
6785
6649
  parsedBody: parsedBody.Error,
6786
- exceptionCtor: __BaseException,
6787
6650
  errorCode,
6788
6651
  });
6789
6652
  }
@@ -6796,7 +6659,7 @@ export const de_UntagRoleCommand = async (output, context) => {
6796
6659
  const response = {
6797
6660
  $metadata: deserializeMetadata(output),
6798
6661
  };
6799
- return Promise.resolve(response);
6662
+ return response;
6800
6663
  };
6801
6664
  const de_UntagRoleCommandError = async (output, context) => {
6802
6665
  const parsedOutput = {
@@ -6816,10 +6679,9 @@ const de_UntagRoleCommandError = async (output, context) => {
6816
6679
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6817
6680
  default:
6818
6681
  const parsedBody = parsedOutput.body;
6819
- throwDefaultError({
6682
+ return throwDefaultError({
6820
6683
  output,
6821
6684
  parsedBody: parsedBody.Error,
6822
- exceptionCtor: __BaseException,
6823
6685
  errorCode,
6824
6686
  });
6825
6687
  }
@@ -6832,7 +6694,7 @@ export const de_UntagSAMLProviderCommand = async (output, context) => {
6832
6694
  const response = {
6833
6695
  $metadata: deserializeMetadata(output),
6834
6696
  };
6835
- return Promise.resolve(response);
6697
+ return response;
6836
6698
  };
6837
6699
  const de_UntagSAMLProviderCommandError = async (output, context) => {
6838
6700
  const parsedOutput = {
@@ -6855,10 +6717,9 @@ const de_UntagSAMLProviderCommandError = async (output, context) => {
6855
6717
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6856
6718
  default:
6857
6719
  const parsedBody = parsedOutput.body;
6858
- throwDefaultError({
6720
+ return throwDefaultError({
6859
6721
  output,
6860
6722
  parsedBody: parsedBody.Error,
6861
- exceptionCtor: __BaseException,
6862
6723
  errorCode,
6863
6724
  });
6864
6725
  }
@@ -6871,7 +6732,7 @@ export const de_UntagServerCertificateCommand = async (output, context) => {
6871
6732
  const response = {
6872
6733
  $metadata: deserializeMetadata(output),
6873
6734
  };
6874
- return Promise.resolve(response);
6735
+ return response;
6875
6736
  };
6876
6737
  const de_UntagServerCertificateCommandError = async (output, context) => {
6877
6738
  const parsedOutput = {
@@ -6894,10 +6755,9 @@ const de_UntagServerCertificateCommandError = async (output, context) => {
6894
6755
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6895
6756
  default:
6896
6757
  const parsedBody = parsedOutput.body;
6897
- throwDefaultError({
6758
+ return throwDefaultError({
6898
6759
  output,
6899
6760
  parsedBody: parsedBody.Error,
6900
- exceptionCtor: __BaseException,
6901
6761
  errorCode,
6902
6762
  });
6903
6763
  }
@@ -6910,7 +6770,7 @@ export const de_UntagUserCommand = async (output, context) => {
6910
6770
  const response = {
6911
6771
  $metadata: deserializeMetadata(output),
6912
6772
  };
6913
- return Promise.resolve(response);
6773
+ return response;
6914
6774
  };
6915
6775
  const de_UntagUserCommandError = async (output, context) => {
6916
6776
  const parsedOutput = {
@@ -6930,10 +6790,9 @@ const de_UntagUserCommandError = async (output, context) => {
6930
6790
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6931
6791
  default:
6932
6792
  const parsedBody = parsedOutput.body;
6933
- throwDefaultError({
6793
+ return throwDefaultError({
6934
6794
  output,
6935
6795
  parsedBody: parsedBody.Error,
6936
- exceptionCtor: __BaseException,
6937
6796
  errorCode,
6938
6797
  });
6939
6798
  }
@@ -6946,7 +6805,7 @@ export const de_UpdateAccessKeyCommand = async (output, context) => {
6946
6805
  const response = {
6947
6806
  $metadata: deserializeMetadata(output),
6948
6807
  };
6949
- return Promise.resolve(response);
6808
+ return response;
6950
6809
  };
6951
6810
  const de_UpdateAccessKeyCommandError = async (output, context) => {
6952
6811
  const parsedOutput = {
@@ -6966,10 +6825,9 @@ const de_UpdateAccessKeyCommandError = async (output, context) => {
6966
6825
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
6967
6826
  default:
6968
6827
  const parsedBody = parsedOutput.body;
6969
- throwDefaultError({
6828
+ return throwDefaultError({
6970
6829
  output,
6971
6830
  parsedBody: parsedBody.Error,
6972
- exceptionCtor: __BaseException,
6973
6831
  errorCode,
6974
6832
  });
6975
6833
  }
@@ -6982,7 +6840,7 @@ export const de_UpdateAccountPasswordPolicyCommand = async (output, context) =>
6982
6840
  const response = {
6983
6841
  $metadata: deserializeMetadata(output),
6984
6842
  };
6985
- return Promise.resolve(response);
6843
+ return response;
6986
6844
  };
6987
6845
  const de_UpdateAccountPasswordPolicyCommandError = async (output, context) => {
6988
6846
  const parsedOutput = {
@@ -7005,10 +6863,9 @@ const de_UpdateAccountPasswordPolicyCommandError = async (output, context) => {
7005
6863
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7006
6864
  default:
7007
6865
  const parsedBody = parsedOutput.body;
7008
- throwDefaultError({
6866
+ return throwDefaultError({
7009
6867
  output,
7010
6868
  parsedBody: parsedBody.Error,
7011
- exceptionCtor: __BaseException,
7012
6869
  errorCode,
7013
6870
  });
7014
6871
  }
@@ -7021,7 +6878,7 @@ export const de_UpdateAssumeRolePolicyCommand = async (output, context) => {
7021
6878
  const response = {
7022
6879
  $metadata: deserializeMetadata(output),
7023
6880
  };
7024
- return Promise.resolve(response);
6881
+ return response;
7025
6882
  };
7026
6883
  const de_UpdateAssumeRolePolicyCommandError = async (output, context) => {
7027
6884
  const parsedOutput = {
@@ -7047,10 +6904,9 @@ const de_UpdateAssumeRolePolicyCommandError = async (output, context) => {
7047
6904
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
7048
6905
  default:
7049
6906
  const parsedBody = parsedOutput.body;
7050
- throwDefaultError({
6907
+ return throwDefaultError({
7051
6908
  output,
7052
6909
  parsedBody: parsedBody.Error,
7053
- exceptionCtor: __BaseException,
7054
6910
  errorCode,
7055
6911
  });
7056
6912
  }
@@ -7063,7 +6919,7 @@ export const de_UpdateGroupCommand = async (output, context) => {
7063
6919
  const response = {
7064
6920
  $metadata: deserializeMetadata(output),
7065
6921
  };
7066
- return Promise.resolve(response);
6922
+ return response;
7067
6923
  };
7068
6924
  const de_UpdateGroupCommandError = async (output, context) => {
7069
6925
  const parsedOutput = {
@@ -7086,10 +6942,9 @@ const de_UpdateGroupCommandError = async (output, context) => {
7086
6942
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7087
6943
  default:
7088
6944
  const parsedBody = parsedOutput.body;
7089
- throwDefaultError({
6945
+ return throwDefaultError({
7090
6946
  output,
7091
6947
  parsedBody: parsedBody.Error,
7092
- exceptionCtor: __BaseException,
7093
6948
  errorCode,
7094
6949
  });
7095
6950
  }
@@ -7102,7 +6957,7 @@ export const de_UpdateLoginProfileCommand = async (output, context) => {
7102
6957
  const response = {
7103
6958
  $metadata: deserializeMetadata(output),
7104
6959
  };
7105
- return Promise.resolve(response);
6960
+ return response;
7106
6961
  };
7107
6962
  const de_UpdateLoginProfileCommandError = async (output, context) => {
7108
6963
  const parsedOutput = {
@@ -7128,10 +6983,9 @@ const de_UpdateLoginProfileCommandError = async (output, context) => {
7128
6983
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7129
6984
  default:
7130
6985
  const parsedBody = parsedOutput.body;
7131
- throwDefaultError({
6986
+ return throwDefaultError({
7132
6987
  output,
7133
6988
  parsedBody: parsedBody.Error,
7134
- exceptionCtor: __BaseException,
7135
6989
  errorCode,
7136
6990
  });
7137
6991
  }
@@ -7144,7 +6998,7 @@ export const de_UpdateOpenIDConnectProviderThumbprintCommand = async (output, co
7144
6998
  const response = {
7145
6999
  $metadata: deserializeMetadata(output),
7146
7000
  };
7147
- return Promise.resolve(response);
7001
+ return response;
7148
7002
  };
7149
7003
  const de_UpdateOpenIDConnectProviderThumbprintCommandError = async (output, context) => {
7150
7004
  const parsedOutput = {
@@ -7164,10 +7018,9 @@ const de_UpdateOpenIDConnectProviderThumbprintCommandError = async (output, cont
7164
7018
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7165
7019
  default:
7166
7020
  const parsedBody = parsedOutput.body;
7167
- throwDefaultError({
7021
+ return throwDefaultError({
7168
7022
  output,
7169
7023
  parsedBody: parsedBody.Error,
7170
- exceptionCtor: __BaseException,
7171
7024
  errorCode,
7172
7025
  });
7173
7026
  }
@@ -7183,7 +7036,7 @@ export const de_UpdateRoleCommand = async (output, context) => {
7183
7036
  $metadata: deserializeMetadata(output),
7184
7037
  ...contents,
7185
7038
  };
7186
- return Promise.resolve(response);
7039
+ return response;
7187
7040
  };
7188
7041
  const de_UpdateRoleCommandError = async (output, context) => {
7189
7042
  const parsedOutput = {
@@ -7203,10 +7056,9 @@ const de_UpdateRoleCommandError = async (output, context) => {
7203
7056
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
7204
7057
  default:
7205
7058
  const parsedBody = parsedOutput.body;
7206
- throwDefaultError({
7059
+ return throwDefaultError({
7207
7060
  output,
7208
7061
  parsedBody: parsedBody.Error,
7209
- exceptionCtor: __BaseException,
7210
7062
  errorCode,
7211
7063
  });
7212
7064
  }
@@ -7222,7 +7074,7 @@ export const de_UpdateRoleDescriptionCommand = async (output, context) => {
7222
7074
  $metadata: deserializeMetadata(output),
7223
7075
  ...contents,
7224
7076
  };
7225
- return Promise.resolve(response);
7077
+ return response;
7226
7078
  };
7227
7079
  const de_UpdateRoleDescriptionCommandError = async (output, context) => {
7228
7080
  const parsedOutput = {
@@ -7242,10 +7094,9 @@ const de_UpdateRoleDescriptionCommandError = async (output, context) => {
7242
7094
  throw await de_UnmodifiableEntityExceptionRes(parsedOutput, context);
7243
7095
  default:
7244
7096
  const parsedBody = parsedOutput.body;
7245
- throwDefaultError({
7097
+ return throwDefaultError({
7246
7098
  output,
7247
7099
  parsedBody: parsedBody.Error,
7248
- exceptionCtor: __BaseException,
7249
7100
  errorCode,
7250
7101
  });
7251
7102
  }
@@ -7261,7 +7112,7 @@ export const de_UpdateSAMLProviderCommand = async (output, context) => {
7261
7112
  $metadata: deserializeMetadata(output),
7262
7113
  ...contents,
7263
7114
  };
7264
- return Promise.resolve(response);
7115
+ return response;
7265
7116
  };
7266
7117
  const de_UpdateSAMLProviderCommandError = async (output, context) => {
7267
7118
  const parsedOutput = {
@@ -7284,10 +7135,9 @@ const de_UpdateSAMLProviderCommandError = async (output, context) => {
7284
7135
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7285
7136
  default:
7286
7137
  const parsedBody = parsedOutput.body;
7287
- throwDefaultError({
7138
+ return throwDefaultError({
7288
7139
  output,
7289
7140
  parsedBody: parsedBody.Error,
7290
- exceptionCtor: __BaseException,
7291
7141
  errorCode,
7292
7142
  });
7293
7143
  }
@@ -7300,7 +7150,7 @@ export const de_UpdateServerCertificateCommand = async (output, context) => {
7300
7150
  const response = {
7301
7151
  $metadata: deserializeMetadata(output),
7302
7152
  };
7303
- return Promise.resolve(response);
7153
+ return response;
7304
7154
  };
7305
7155
  const de_UpdateServerCertificateCommandError = async (output, context) => {
7306
7156
  const parsedOutput = {
@@ -7323,10 +7173,9 @@ const de_UpdateServerCertificateCommandError = async (output, context) => {
7323
7173
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7324
7174
  default:
7325
7175
  const parsedBody = parsedOutput.body;
7326
- throwDefaultError({
7176
+ return throwDefaultError({
7327
7177
  output,
7328
7178
  parsedBody: parsedBody.Error,
7329
- exceptionCtor: __BaseException,
7330
7179
  errorCode,
7331
7180
  });
7332
7181
  }
@@ -7339,7 +7188,7 @@ export const de_UpdateServiceSpecificCredentialCommand = async (output, context)
7339
7188
  const response = {
7340
7189
  $metadata: deserializeMetadata(output),
7341
7190
  };
7342
- return Promise.resolve(response);
7191
+ return response;
7343
7192
  };
7344
7193
  const de_UpdateServiceSpecificCredentialCommandError = async (output, context) => {
7345
7194
  const parsedOutput = {
@@ -7353,10 +7202,9 @@ const de_UpdateServiceSpecificCredentialCommandError = async (output, context) =
7353
7202
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
7354
7203
  default:
7355
7204
  const parsedBody = parsedOutput.body;
7356
- throwDefaultError({
7205
+ return throwDefaultError({
7357
7206
  output,
7358
7207
  parsedBody: parsedBody.Error,
7359
- exceptionCtor: __BaseException,
7360
7208
  errorCode,
7361
7209
  });
7362
7210
  }
@@ -7369,7 +7217,7 @@ export const de_UpdateSigningCertificateCommand = async (output, context) => {
7369
7217
  const response = {
7370
7218
  $metadata: deserializeMetadata(output),
7371
7219
  };
7372
- return Promise.resolve(response);
7220
+ return response;
7373
7221
  };
7374
7222
  const de_UpdateSigningCertificateCommandError = async (output, context) => {
7375
7223
  const parsedOutput = {
@@ -7389,10 +7237,9 @@ const de_UpdateSigningCertificateCommandError = async (output, context) => {
7389
7237
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7390
7238
  default:
7391
7239
  const parsedBody = parsedOutput.body;
7392
- throwDefaultError({
7240
+ return throwDefaultError({
7393
7241
  output,
7394
7242
  parsedBody: parsedBody.Error,
7395
- exceptionCtor: __BaseException,
7396
7243
  errorCode,
7397
7244
  });
7398
7245
  }
@@ -7405,7 +7252,7 @@ export const de_UpdateSSHPublicKeyCommand = async (output, context) => {
7405
7252
  const response = {
7406
7253
  $metadata: deserializeMetadata(output),
7407
7254
  };
7408
- return Promise.resolve(response);
7255
+ return response;
7409
7256
  };
7410
7257
  const de_UpdateSSHPublicKeyCommandError = async (output, context) => {
7411
7258
  const parsedOutput = {
@@ -7419,10 +7266,9 @@ const de_UpdateSSHPublicKeyCommandError = async (output, context) => {
7419
7266
  throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
7420
7267
  default:
7421
7268
  const parsedBody = parsedOutput.body;
7422
- throwDefaultError({
7269
+ return throwDefaultError({
7423
7270
  output,
7424
7271
  parsedBody: parsedBody.Error,
7425
- exceptionCtor: __BaseException,
7426
7272
  errorCode,
7427
7273
  });
7428
7274
  }
@@ -7435,7 +7281,7 @@ export const de_UpdateUserCommand = async (output, context) => {
7435
7281
  const response = {
7436
7282
  $metadata: deserializeMetadata(output),
7437
7283
  };
7438
- return Promise.resolve(response);
7284
+ return response;
7439
7285
  };
7440
7286
  const de_UpdateUserCommandError = async (output, context) => {
7441
7287
  const parsedOutput = {
@@ -7464,10 +7310,9 @@ const de_UpdateUserCommandError = async (output, context) => {
7464
7310
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7465
7311
  default:
7466
7312
  const parsedBody = parsedOutput.body;
7467
- throwDefaultError({
7313
+ return throwDefaultError({
7468
7314
  output,
7469
7315
  parsedBody: parsedBody.Error,
7470
- exceptionCtor: __BaseException,
7471
7316
  errorCode,
7472
7317
  });
7473
7318
  }
@@ -7483,7 +7328,7 @@ export const de_UploadServerCertificateCommand = async (output, context) => {
7483
7328
  $metadata: deserializeMetadata(output),
7484
7329
  ...contents,
7485
7330
  };
7486
- return Promise.resolve(response);
7331
+ return response;
7487
7332
  };
7488
7333
  const de_UploadServerCertificateCommandError = async (output, context) => {
7489
7334
  const parsedOutput = {
@@ -7515,10 +7360,9 @@ const de_UploadServerCertificateCommandError = async (output, context) => {
7515
7360
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7516
7361
  default:
7517
7362
  const parsedBody = parsedOutput.body;
7518
- throwDefaultError({
7363
+ return throwDefaultError({
7519
7364
  output,
7520
7365
  parsedBody: parsedBody.Error,
7521
- exceptionCtor: __BaseException,
7522
7366
  errorCode,
7523
7367
  });
7524
7368
  }
@@ -7534,7 +7378,7 @@ export const de_UploadSigningCertificateCommand = async (output, context) => {
7534
7378
  $metadata: deserializeMetadata(output),
7535
7379
  ...contents,
7536
7380
  };
7537
- return Promise.resolve(response);
7381
+ return response;
7538
7382
  };
7539
7383
  const de_UploadSigningCertificateCommandError = async (output, context) => {
7540
7384
  const parsedOutput = {
@@ -7566,10 +7410,9 @@ const de_UploadSigningCertificateCommandError = async (output, context) => {
7566
7410
  throw await de_ServiceFailureExceptionRes(parsedOutput, context);
7567
7411
  default:
7568
7412
  const parsedBody = parsedOutput.body;
7569
- throwDefaultError({
7413
+ return throwDefaultError({
7570
7414
  output,
7571
7415
  parsedBody: parsedBody.Error,
7572
- exceptionCtor: __BaseException,
7573
7416
  errorCode,
7574
7417
  });
7575
7418
  }
@@ -7585,7 +7428,7 @@ export const de_UploadSSHPublicKeyCommand = async (output, context) => {
7585
7428
  $metadata: deserializeMetadata(output),
7586
7429
  ...contents,
7587
7430
  };
7588
- return Promise.resolve(response);
7431
+ return response;
7589
7432
  };
7590
7433
  const de_UploadSSHPublicKeyCommandError = async (output, context) => {
7591
7434
  const parsedOutput = {
@@ -7611,10 +7454,9 @@ const de_UploadSSHPublicKeyCommandError = async (output, context) => {
7611
7454
  throw await de_UnrecognizedPublicKeyEncodingExceptionRes(parsedOutput, context);
7612
7455
  default:
7613
7456
  const parsedBody = parsedOutput.body;
7614
- throwDefaultError({
7457
+ return throwDefaultError({
7615
7458
  output,
7616
7459
  parsedBody: parsedBody.Error,
7617
- exceptionCtor: __BaseException,
7618
7460
  errorCode,
7619
7461
  });
7620
7462
  }
@@ -12702,6 +12544,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
12702
12544
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
12703
12545
  };
12704
12546
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
12547
+ const throwDefaultError = withBaseException(__BaseException);
12705
12548
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
12706
12549
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
12707
12550
  const contents = {