@aws-sdk/client-redshift 3.312.0 → 3.316.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, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, 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, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  import { AccessToClusterDeniedFault, AccessToSnapshotDeniedFault, AuthenticationProfileAlreadyExistsFault, AuthenticationProfileNotFoundFault, AuthenticationProfileQuotaExceededFault, AuthorizationAlreadyExistsFault, AuthorizationNotFoundFault, AuthorizationQuotaExceededFault, BatchDeleteRequestSizeExceededFault, BatchModifyClusterSnapshotsLimitExceededFault, BucketNotFoundFault, ClusterAlreadyExistsFault, ClusterNotFoundFault, ClusterOnLatestRevisionFault, ClusterParameterGroupAlreadyExistsFault, ClusterParameterGroupNotFoundFault, ClusterParameterGroupQuotaExceededFault, ClusterQuotaExceededFault, ClusterSecurityGroupAlreadyExistsFault, ClusterSecurityGroupNotFoundFault, ClusterSecurityGroupQuotaExceededFault, ClusterSnapshotAlreadyExistsFault, ClusterSnapshotNotFoundFault, ClusterSnapshotQuotaExceededFault, ClusterSubnetGroupAlreadyExistsFault, ClusterSubnetGroupNotFoundFault, ClusterSubnetGroupQuotaExceededFault, ClusterSubnetQuotaExceededFault, CopyToRegionDisabledFault, DependentServiceRequestThrottlingFault, DependentServiceUnavailableFault, EndpointAlreadyExistsFault, EndpointAuthorizationAlreadyExistsFault, EndpointAuthorizationsPerClusterLimitExceededFault, EndpointNotFoundFault, EndpointsPerAuthorizationLimitExceededFault, EndpointsPerClusterLimitExceededFault, EventSubscriptionQuotaExceededFault, HsmClientCertificateAlreadyExistsFault, HsmClientCertificateNotFoundFault, HsmClientCertificateQuotaExceededFault, HsmConfigurationAlreadyExistsFault, HsmConfigurationNotFoundFault, HsmConfigurationQuotaExceededFault, InsufficientClusterCapacityFault, InvalidAuthenticationProfileRequestFault, InvalidAuthorizationStateFault, InvalidClusterParameterGroupStateFault, InvalidClusterSecurityGroupStateFault, InvalidClusterSnapshotScheduleStateFault, InvalidClusterSnapshotStateFault, InvalidClusterStateFault, InvalidClusterSubnetGroupStateFault, InvalidClusterSubnetStateFault, InvalidClusterTrackFault, InvalidDataShareFault, InvalidElasticIpFault, InvalidEndpointStateFault, InvalidHsmClientCertificateStateFault, InvalidHsmConfigurationStateFault, InvalidNamespaceFault, InvalidReservedNodeStateFault, InvalidRetentionPeriodFault, InvalidScheduledActionFault, InvalidScheduleFault, InvalidSnapshotCopyGrantStateFault, InvalidSubnet, InvalidSubscriptionStateFault, InvalidTagFault, InvalidUsageLimitFault, InvalidVPCNetworkStateFault, LimitExceededFault, NumberOfNodesPerClusterLimitExceededFault, NumberOfNodesQuotaExceededFault, PartnerNotFoundFault, ReservedNodeAlreadyExistsFault, ReservedNodeAlreadyMigratedFault, ReservedNodeNotFoundFault, ReservedNodeOfferingNotFoundFault, ResizeNotFoundFault, ResourceNotFoundFault, ScheduledActionAlreadyExistsFault, ScheduledActionNotFoundFault, ScheduledActionQuotaExceededFault, ScheduledActionTypeUnsupportedFault, ScheduleDefinitionTypeUnsupportedFault, SnapshotCopyGrantAlreadyExistsFault, SnapshotCopyGrantNotFoundFault, SnapshotCopyGrantQuotaExceededFault, SnapshotScheduleAlreadyExistsFault, SnapshotScheduleNotFoundFault, SnapshotScheduleQuotaExceededFault, SNSInvalidTopicFault, SNSNoAuthorizationFault, SNSTopicArnNotFoundFault, SourceNotFoundFault, SubscriptionAlreadyExistFault, SubscriptionCategoryNotFoundFault, SubscriptionEventIdNotFoundFault, SubscriptionNotFoundFault, SubscriptionSeverityNotFoundFault, TagLimitExceededFault, UnauthorizedOperation, UnauthorizedPartnerIntegrationFault, UnsupportedOperationFault, UsageLimitAlreadyExistsFault, UsageLimitNotFoundFault, } from "../models/models_0";
5
5
  import { EndpointAuthorizationNotFoundFault, IncompatibleOrderableOptions, InProgressTableRestoreQuotaExceededFault, InsufficientS3BucketPolicyFault, InvalidRestoreFault, InvalidS3BucketNameFault, InvalidS3KeyPrefixFault, InvalidTableRestoreArgumentFault, ReservedNodeExchangeNotFoundFault, ReservedNodeQuotaExceededFault, SnapshotCopyAlreadyDisabledFault, SnapshotCopyAlreadyEnabledFault, SnapshotCopyDisabledFault, SnapshotScheduleUpdateInProgressFault, SubnetAlreadyInUse, TableLimitExceededFault, TableRestoreNotFoundFault, UnknownSnapshotCopyRegionFault, UnsupportedOptionFault, } from "../models/models_1";
@@ -1203,7 +1203,7 @@ export const de_AcceptReservedNodeExchangeCommand = async (output, context) => {
1203
1203
  $metadata: deserializeMetadata(output),
1204
1204
  ...contents,
1205
1205
  };
1206
- return Promise.resolve(response);
1206
+ return response;
1207
1207
  };
1208
1208
  const de_AcceptReservedNodeExchangeCommandError = async (output, context) => {
1209
1209
  const parsedOutput = {
@@ -1235,10 +1235,9 @@ const de_AcceptReservedNodeExchangeCommandError = async (output, context) => {
1235
1235
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
1236
1236
  default:
1237
1237
  const parsedBody = parsedOutput.body;
1238
- throwDefaultError({
1238
+ return throwDefaultError({
1239
1239
  output,
1240
1240
  parsedBody: parsedBody.Error,
1241
- exceptionCtor: __BaseException,
1242
1241
  errorCode,
1243
1242
  });
1244
1243
  }
@@ -1254,7 +1253,7 @@ export const de_AddPartnerCommand = async (output, context) => {
1254
1253
  $metadata: deserializeMetadata(output),
1255
1254
  ...contents,
1256
1255
  };
1257
- return Promise.resolve(response);
1256
+ return response;
1258
1257
  };
1259
1258
  const de_AddPartnerCommandError = async (output, context) => {
1260
1259
  const parsedOutput = {
@@ -1274,10 +1273,9 @@ const de_AddPartnerCommandError = async (output, context) => {
1274
1273
  throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
1275
1274
  default:
1276
1275
  const parsedBody = parsedOutput.body;
1277
- throwDefaultError({
1276
+ return throwDefaultError({
1278
1277
  output,
1279
1278
  parsedBody: parsedBody.Error,
1280
- exceptionCtor: __BaseException,
1281
1279
  errorCode,
1282
1280
  });
1283
1281
  }
@@ -1293,7 +1291,7 @@ export const de_AssociateDataShareConsumerCommand = async (output, context) => {
1293
1291
  $metadata: deserializeMetadata(output),
1294
1292
  ...contents,
1295
1293
  };
1296
- return Promise.resolve(response);
1294
+ return response;
1297
1295
  };
1298
1296
  const de_AssociateDataShareConsumerCommandError = async (output, context) => {
1299
1297
  const parsedOutput = {
@@ -1310,10 +1308,9 @@ const de_AssociateDataShareConsumerCommandError = async (output, context) => {
1310
1308
  throw await de_InvalidNamespaceFaultRes(parsedOutput, context);
1311
1309
  default:
1312
1310
  const parsedBody = parsedOutput.body;
1313
- throwDefaultError({
1311
+ return throwDefaultError({
1314
1312
  output,
1315
1313
  parsedBody: parsedBody.Error,
1316
- exceptionCtor: __BaseException,
1317
1314
  errorCode,
1318
1315
  });
1319
1316
  }
@@ -1329,7 +1326,7 @@ export const de_AuthorizeClusterSecurityGroupIngressCommand = async (output, con
1329
1326
  $metadata: deserializeMetadata(output),
1330
1327
  ...contents,
1331
1328
  };
1332
- return Promise.resolve(response);
1329
+ return response;
1333
1330
  };
1334
1331
  const de_AuthorizeClusterSecurityGroupIngressCommandError = async (output, context) => {
1335
1332
  const parsedOutput = {
@@ -1352,10 +1349,9 @@ const de_AuthorizeClusterSecurityGroupIngressCommandError = async (output, conte
1352
1349
  throw await de_InvalidClusterSecurityGroupStateFaultRes(parsedOutput, context);
1353
1350
  default:
1354
1351
  const parsedBody = parsedOutput.body;
1355
- throwDefaultError({
1352
+ return throwDefaultError({
1356
1353
  output,
1357
1354
  parsedBody: parsedBody.Error,
1358
- exceptionCtor: __BaseException,
1359
1355
  errorCode,
1360
1356
  });
1361
1357
  }
@@ -1371,7 +1367,7 @@ export const de_AuthorizeDataShareCommand = async (output, context) => {
1371
1367
  $metadata: deserializeMetadata(output),
1372
1368
  ...contents,
1373
1369
  };
1374
- return Promise.resolve(response);
1370
+ return response;
1375
1371
  };
1376
1372
  const de_AuthorizeDataShareCommandError = async (output, context) => {
1377
1373
  const parsedOutput = {
@@ -1385,10 +1381,9 @@ const de_AuthorizeDataShareCommandError = async (output, context) => {
1385
1381
  throw await de_InvalidDataShareFaultRes(parsedOutput, context);
1386
1382
  default:
1387
1383
  const parsedBody = parsedOutput.body;
1388
- throwDefaultError({
1384
+ return throwDefaultError({
1389
1385
  output,
1390
1386
  parsedBody: parsedBody.Error,
1391
- exceptionCtor: __BaseException,
1392
1387
  errorCode,
1393
1388
  });
1394
1389
  }
@@ -1404,7 +1399,7 @@ export const de_AuthorizeEndpointAccessCommand = async (output, context) => {
1404
1399
  $metadata: deserializeMetadata(output),
1405
1400
  ...contents,
1406
1401
  };
1407
- return Promise.resolve(response);
1402
+ return response;
1408
1403
  };
1409
1404
  const de_AuthorizeEndpointAccessCommandError = async (output, context) => {
1410
1405
  const parsedOutput = {
@@ -1433,10 +1428,9 @@ const de_AuthorizeEndpointAccessCommandError = async (output, context) => {
1433
1428
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
1434
1429
  default:
1435
1430
  const parsedBody = parsedOutput.body;
1436
- throwDefaultError({
1431
+ return throwDefaultError({
1437
1432
  output,
1438
1433
  parsedBody: parsedBody.Error,
1439
- exceptionCtor: __BaseException,
1440
1434
  errorCode,
1441
1435
  });
1442
1436
  }
@@ -1452,7 +1446,7 @@ export const de_AuthorizeSnapshotAccessCommand = async (output, context) => {
1452
1446
  $metadata: deserializeMetadata(output),
1453
1447
  ...contents,
1454
1448
  };
1455
- return Promise.resolve(response);
1449
+ return response;
1456
1450
  };
1457
1451
  const de_AuthorizeSnapshotAccessCommandError = async (output, context) => {
1458
1452
  const parsedOutput = {
@@ -1484,10 +1478,9 @@ const de_AuthorizeSnapshotAccessCommandError = async (output, context) => {
1484
1478
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
1485
1479
  default:
1486
1480
  const parsedBody = parsedOutput.body;
1487
- throwDefaultError({
1481
+ return throwDefaultError({
1488
1482
  output,
1489
1483
  parsedBody: parsedBody.Error,
1490
- exceptionCtor: __BaseException,
1491
1484
  errorCode,
1492
1485
  });
1493
1486
  }
@@ -1503,7 +1496,7 @@ export const de_BatchDeleteClusterSnapshotsCommand = async (output, context) =>
1503
1496
  $metadata: deserializeMetadata(output),
1504
1497
  ...contents,
1505
1498
  };
1506
- return Promise.resolve(response);
1499
+ return response;
1507
1500
  };
1508
1501
  const de_BatchDeleteClusterSnapshotsCommandError = async (output, context) => {
1509
1502
  const parsedOutput = {
@@ -1517,10 +1510,9 @@ const de_BatchDeleteClusterSnapshotsCommandError = async (output, context) => {
1517
1510
  throw await de_BatchDeleteRequestSizeExceededFaultRes(parsedOutput, context);
1518
1511
  default:
1519
1512
  const parsedBody = parsedOutput.body;
1520
- throwDefaultError({
1513
+ return throwDefaultError({
1521
1514
  output,
1522
1515
  parsedBody: parsedBody.Error,
1523
- exceptionCtor: __BaseException,
1524
1516
  errorCode,
1525
1517
  });
1526
1518
  }
@@ -1536,7 +1528,7 @@ export const de_BatchModifyClusterSnapshotsCommand = async (output, context) =>
1536
1528
  $metadata: deserializeMetadata(output),
1537
1529
  ...contents,
1538
1530
  };
1539
- return Promise.resolve(response);
1531
+ return response;
1540
1532
  };
1541
1533
  const de_BatchModifyClusterSnapshotsCommandError = async (output, context) => {
1542
1534
  const parsedOutput = {
@@ -1553,10 +1545,9 @@ const de_BatchModifyClusterSnapshotsCommandError = async (output, context) => {
1553
1545
  throw await de_InvalidRetentionPeriodFaultRes(parsedOutput, context);
1554
1546
  default:
1555
1547
  const parsedBody = parsedOutput.body;
1556
- throwDefaultError({
1548
+ return throwDefaultError({
1557
1549
  output,
1558
1550
  parsedBody: parsedBody.Error,
1559
- exceptionCtor: __BaseException,
1560
1551
  errorCode,
1561
1552
  });
1562
1553
  }
@@ -1572,7 +1563,7 @@ export const de_CancelResizeCommand = async (output, context) => {
1572
1563
  $metadata: deserializeMetadata(output),
1573
1564
  ...contents,
1574
1565
  };
1575
- return Promise.resolve(response);
1566
+ return response;
1576
1567
  };
1577
1568
  const de_CancelResizeCommandError = async (output, context) => {
1578
1569
  const parsedOutput = {
@@ -1595,10 +1586,9 @@ const de_CancelResizeCommandError = async (output, context) => {
1595
1586
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
1596
1587
  default:
1597
1588
  const parsedBody = parsedOutput.body;
1598
- throwDefaultError({
1589
+ return throwDefaultError({
1599
1590
  output,
1600
1591
  parsedBody: parsedBody.Error,
1601
- exceptionCtor: __BaseException,
1602
1592
  errorCode,
1603
1593
  });
1604
1594
  }
@@ -1614,7 +1604,7 @@ export const de_CopyClusterSnapshotCommand = async (output, context) => {
1614
1604
  $metadata: deserializeMetadata(output),
1615
1605
  ...contents,
1616
1606
  };
1617
- return Promise.resolve(response);
1607
+ return response;
1618
1608
  };
1619
1609
  const de_CopyClusterSnapshotCommandError = async (output, context) => {
1620
1610
  const parsedOutput = {
@@ -1640,10 +1630,9 @@ const de_CopyClusterSnapshotCommandError = async (output, context) => {
1640
1630
  throw await de_InvalidRetentionPeriodFaultRes(parsedOutput, context);
1641
1631
  default:
1642
1632
  const parsedBody = parsedOutput.body;
1643
- throwDefaultError({
1633
+ return throwDefaultError({
1644
1634
  output,
1645
1635
  parsedBody: parsedBody.Error,
1646
- exceptionCtor: __BaseException,
1647
1636
  errorCode,
1648
1637
  });
1649
1638
  }
@@ -1659,7 +1648,7 @@ export const de_CreateAuthenticationProfileCommand = async (output, context) =>
1659
1648
  $metadata: deserializeMetadata(output),
1660
1649
  ...contents,
1661
1650
  };
1662
- return Promise.resolve(response);
1651
+ return response;
1663
1652
  };
1664
1653
  const de_CreateAuthenticationProfileCommandError = async (output, context) => {
1665
1654
  const parsedOutput = {
@@ -1679,10 +1668,9 @@ const de_CreateAuthenticationProfileCommandError = async (output, context) => {
1679
1668
  throw await de_InvalidAuthenticationProfileRequestFaultRes(parsedOutput, context);
1680
1669
  default:
1681
1670
  const parsedBody = parsedOutput.body;
1682
- throwDefaultError({
1671
+ return throwDefaultError({
1683
1672
  output,
1684
1673
  parsedBody: parsedBody.Error,
1685
- exceptionCtor: __BaseException,
1686
1674
  errorCode,
1687
1675
  });
1688
1676
  }
@@ -1698,7 +1686,7 @@ export const de_CreateClusterCommand = async (output, context) => {
1698
1686
  $metadata: deserializeMetadata(output),
1699
1687
  ...contents,
1700
1688
  };
1701
- return Promise.resolve(response);
1689
+ return response;
1702
1690
  };
1703
1691
  const de_CreateClusterCommandError = async (output, context) => {
1704
1692
  const parsedOutput = {
@@ -1775,10 +1763,9 @@ const de_CreateClusterCommandError = async (output, context) => {
1775
1763
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
1776
1764
  default:
1777
1765
  const parsedBody = parsedOutput.body;
1778
- throwDefaultError({
1766
+ return throwDefaultError({
1779
1767
  output,
1780
1768
  parsedBody: parsedBody.Error,
1781
- exceptionCtor: __BaseException,
1782
1769
  errorCode,
1783
1770
  });
1784
1771
  }
@@ -1794,7 +1781,7 @@ export const de_CreateClusterParameterGroupCommand = async (output, context) =>
1794
1781
  $metadata: deserializeMetadata(output),
1795
1782
  ...contents,
1796
1783
  };
1797
- return Promise.resolve(response);
1784
+ return response;
1798
1785
  };
1799
1786
  const de_CreateClusterParameterGroupCommandError = async (output, context) => {
1800
1787
  const parsedOutput = {
@@ -1817,10 +1804,9 @@ const de_CreateClusterParameterGroupCommandError = async (output, context) => {
1817
1804
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
1818
1805
  default:
1819
1806
  const parsedBody = parsedOutput.body;
1820
- throwDefaultError({
1807
+ return throwDefaultError({
1821
1808
  output,
1822
1809
  parsedBody: parsedBody.Error,
1823
- exceptionCtor: __BaseException,
1824
1810
  errorCode,
1825
1811
  });
1826
1812
  }
@@ -1836,7 +1822,7 @@ export const de_CreateClusterSecurityGroupCommand = async (output, context) => {
1836
1822
  $metadata: deserializeMetadata(output),
1837
1823
  ...contents,
1838
1824
  };
1839
- return Promise.resolve(response);
1825
+ return response;
1840
1826
  };
1841
1827
  const de_CreateClusterSecurityGroupCommandError = async (output, context) => {
1842
1828
  const parsedOutput = {
@@ -1859,10 +1845,9 @@ const de_CreateClusterSecurityGroupCommandError = async (output, context) => {
1859
1845
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
1860
1846
  default:
1861
1847
  const parsedBody = parsedOutput.body;
1862
- throwDefaultError({
1848
+ return throwDefaultError({
1863
1849
  output,
1864
1850
  parsedBody: parsedBody.Error,
1865
- exceptionCtor: __BaseException,
1866
1851
  errorCode,
1867
1852
  });
1868
1853
  }
@@ -1878,7 +1863,7 @@ export const de_CreateClusterSnapshotCommand = async (output, context) => {
1878
1863
  $metadata: deserializeMetadata(output),
1879
1864
  ...contents,
1880
1865
  };
1881
- return Promise.resolve(response);
1866
+ return response;
1882
1867
  };
1883
1868
  const de_CreateClusterSnapshotCommandError = async (output, context) => {
1884
1869
  const parsedOutput = {
@@ -1910,10 +1895,9 @@ const de_CreateClusterSnapshotCommandError = async (output, context) => {
1910
1895
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
1911
1896
  default:
1912
1897
  const parsedBody = parsedOutput.body;
1913
- throwDefaultError({
1898
+ return throwDefaultError({
1914
1899
  output,
1915
1900
  parsedBody: parsedBody.Error,
1916
- exceptionCtor: __BaseException,
1917
1901
  errorCode,
1918
1902
  });
1919
1903
  }
@@ -1929,7 +1913,7 @@ export const de_CreateClusterSubnetGroupCommand = async (output, context) => {
1929
1913
  $metadata: deserializeMetadata(output),
1930
1914
  ...contents,
1931
1915
  };
1932
- return Promise.resolve(response);
1916
+ return response;
1933
1917
  };
1934
1918
  const de_CreateClusterSubnetGroupCommandError = async (output, context) => {
1935
1919
  const parsedOutput = {
@@ -1964,10 +1948,9 @@ const de_CreateClusterSubnetGroupCommandError = async (output, context) => {
1964
1948
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
1965
1949
  default:
1966
1950
  const parsedBody = parsedOutput.body;
1967
- throwDefaultError({
1951
+ return throwDefaultError({
1968
1952
  output,
1969
1953
  parsedBody: parsedBody.Error,
1970
- exceptionCtor: __BaseException,
1971
1954
  errorCode,
1972
1955
  });
1973
1956
  }
@@ -1983,7 +1966,7 @@ export const de_CreateEndpointAccessCommand = async (output, context) => {
1983
1966
  $metadata: deserializeMetadata(output),
1984
1967
  ...contents,
1985
1968
  };
1986
- return Promise.resolve(response);
1969
+ return response;
1987
1970
  };
1988
1971
  const de_CreateEndpointAccessCommandError = async (output, context) => {
1989
1972
  const parsedOutput = {
@@ -2024,10 +2007,9 @@ const de_CreateEndpointAccessCommandError = async (output, context) => {
2024
2007
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
2025
2008
  default:
2026
2009
  const parsedBody = parsedOutput.body;
2027
- throwDefaultError({
2010
+ return throwDefaultError({
2028
2011
  output,
2029
2012
  parsedBody: parsedBody.Error,
2030
- exceptionCtor: __BaseException,
2031
2013
  errorCode,
2032
2014
  });
2033
2015
  }
@@ -2043,7 +2025,7 @@ export const de_CreateEventSubscriptionCommand = async (output, context) => {
2043
2025
  $metadata: deserializeMetadata(output),
2044
2026
  ...contents,
2045
2027
  };
2046
- return Promise.resolve(response);
2028
+ return response;
2047
2029
  };
2048
2030
  const de_CreateEventSubscriptionCommandError = async (output, context) => {
2049
2031
  const parsedOutput = {
@@ -2087,10 +2069,9 @@ const de_CreateEventSubscriptionCommandError = async (output, context) => {
2087
2069
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2088
2070
  default:
2089
2071
  const parsedBody = parsedOutput.body;
2090
- throwDefaultError({
2072
+ return throwDefaultError({
2091
2073
  output,
2092
2074
  parsedBody: parsedBody.Error,
2093
- exceptionCtor: __BaseException,
2094
2075
  errorCode,
2095
2076
  });
2096
2077
  }
@@ -2106,7 +2087,7 @@ export const de_CreateHsmClientCertificateCommand = async (output, context) => {
2106
2087
  $metadata: deserializeMetadata(output),
2107
2088
  ...contents,
2108
2089
  };
2109
- return Promise.resolve(response);
2090
+ return response;
2110
2091
  };
2111
2092
  const de_CreateHsmClientCertificateCommandError = async (output, context) => {
2112
2093
  const parsedOutput = {
@@ -2129,10 +2110,9 @@ const de_CreateHsmClientCertificateCommandError = async (output, context) => {
2129
2110
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2130
2111
  default:
2131
2112
  const parsedBody = parsedOutput.body;
2132
- throwDefaultError({
2113
+ return throwDefaultError({
2133
2114
  output,
2134
2115
  parsedBody: parsedBody.Error,
2135
- exceptionCtor: __BaseException,
2136
2116
  errorCode,
2137
2117
  });
2138
2118
  }
@@ -2148,7 +2128,7 @@ export const de_CreateHsmConfigurationCommand = async (output, context) => {
2148
2128
  $metadata: deserializeMetadata(output),
2149
2129
  ...contents,
2150
2130
  };
2151
- return Promise.resolve(response);
2131
+ return response;
2152
2132
  };
2153
2133
  const de_CreateHsmConfigurationCommandError = async (output, context) => {
2154
2134
  const parsedOutput = {
@@ -2171,10 +2151,9 @@ const de_CreateHsmConfigurationCommandError = async (output, context) => {
2171
2151
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2172
2152
  default:
2173
2153
  const parsedBody = parsedOutput.body;
2174
- throwDefaultError({
2154
+ return throwDefaultError({
2175
2155
  output,
2176
2156
  parsedBody: parsedBody.Error,
2177
- exceptionCtor: __BaseException,
2178
2157
  errorCode,
2179
2158
  });
2180
2159
  }
@@ -2190,7 +2169,7 @@ export const de_CreateScheduledActionCommand = async (output, context) => {
2190
2169
  $metadata: deserializeMetadata(output),
2191
2170
  ...contents,
2192
2171
  };
2193
- return Promise.resolve(response);
2172
+ return response;
2194
2173
  };
2195
2174
  const de_CreateScheduledActionCommandError = async (output, context) => {
2196
2175
  const parsedOutput = {
@@ -2219,10 +2198,9 @@ const de_CreateScheduledActionCommandError = async (output, context) => {
2219
2198
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
2220
2199
  default:
2221
2200
  const parsedBody = parsedOutput.body;
2222
- throwDefaultError({
2201
+ return throwDefaultError({
2223
2202
  output,
2224
2203
  parsedBody: parsedBody.Error,
2225
- exceptionCtor: __BaseException,
2226
2204
  errorCode,
2227
2205
  });
2228
2206
  }
@@ -2238,7 +2216,7 @@ export const de_CreateSnapshotCopyGrantCommand = async (output, context) => {
2238
2216
  $metadata: deserializeMetadata(output),
2239
2217
  ...contents,
2240
2218
  };
2241
- return Promise.resolve(response);
2219
+ return response;
2242
2220
  };
2243
2221
  const de_CreateSnapshotCopyGrantCommandError = async (output, context) => {
2244
2222
  const parsedOutput = {
@@ -2267,10 +2245,9 @@ const de_CreateSnapshotCopyGrantCommandError = async (output, context) => {
2267
2245
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2268
2246
  default:
2269
2247
  const parsedBody = parsedOutput.body;
2270
- throwDefaultError({
2248
+ return throwDefaultError({
2271
2249
  output,
2272
2250
  parsedBody: parsedBody.Error,
2273
- exceptionCtor: __BaseException,
2274
2251
  errorCode,
2275
2252
  });
2276
2253
  }
@@ -2286,7 +2263,7 @@ export const de_CreateSnapshotScheduleCommand = async (output, context) => {
2286
2263
  $metadata: deserializeMetadata(output),
2287
2264
  ...contents,
2288
2265
  };
2289
- return Promise.resolve(response);
2266
+ return response;
2290
2267
  };
2291
2268
  const de_CreateSnapshotScheduleCommandError = async (output, context) => {
2292
2269
  const parsedOutput = {
@@ -2315,10 +2292,9 @@ const de_CreateSnapshotScheduleCommandError = async (output, context) => {
2315
2292
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2316
2293
  default:
2317
2294
  const parsedBody = parsedOutput.body;
2318
- throwDefaultError({
2295
+ return throwDefaultError({
2319
2296
  output,
2320
2297
  parsedBody: parsedBody.Error,
2321
- exceptionCtor: __BaseException,
2322
2298
  errorCode,
2323
2299
  });
2324
2300
  }
@@ -2331,7 +2307,7 @@ export const de_CreateTagsCommand = async (output, context) => {
2331
2307
  const response = {
2332
2308
  $metadata: deserializeMetadata(output),
2333
2309
  };
2334
- return Promise.resolve(response);
2310
+ return response;
2335
2311
  };
2336
2312
  const de_CreateTagsCommandError = async (output, context) => {
2337
2313
  const parsedOutput = {
@@ -2354,10 +2330,9 @@ const de_CreateTagsCommandError = async (output, context) => {
2354
2330
  throw await de_TagLimitExceededFaultRes(parsedOutput, context);
2355
2331
  default:
2356
2332
  const parsedBody = parsedOutput.body;
2357
- throwDefaultError({
2333
+ return throwDefaultError({
2358
2334
  output,
2359
2335
  parsedBody: parsedBody.Error,
2360
- exceptionCtor: __BaseException,
2361
2336
  errorCode,
2362
2337
  });
2363
2338
  }
@@ -2373,7 +2348,7 @@ export const de_CreateUsageLimitCommand = async (output, context) => {
2373
2348
  $metadata: deserializeMetadata(output),
2374
2349
  ...contents,
2375
2350
  };
2376
- return Promise.resolve(response);
2351
+ return response;
2377
2352
  };
2378
2353
  const de_CreateUsageLimitCommandError = async (output, context) => {
2379
2354
  const parsedOutput = {
@@ -2405,10 +2380,9 @@ const de_CreateUsageLimitCommandError = async (output, context) => {
2405
2380
  throw await de_UsageLimitAlreadyExistsFaultRes(parsedOutput, context);
2406
2381
  default:
2407
2382
  const parsedBody = parsedOutput.body;
2408
- throwDefaultError({
2383
+ return throwDefaultError({
2409
2384
  output,
2410
2385
  parsedBody: parsedBody.Error,
2411
- exceptionCtor: __BaseException,
2412
2386
  errorCode,
2413
2387
  });
2414
2388
  }
@@ -2424,7 +2398,7 @@ export const de_DeauthorizeDataShareCommand = async (output, context) => {
2424
2398
  $metadata: deserializeMetadata(output),
2425
2399
  ...contents,
2426
2400
  };
2427
- return Promise.resolve(response);
2401
+ return response;
2428
2402
  };
2429
2403
  const de_DeauthorizeDataShareCommandError = async (output, context) => {
2430
2404
  const parsedOutput = {
@@ -2438,10 +2412,9 @@ const de_DeauthorizeDataShareCommandError = async (output, context) => {
2438
2412
  throw await de_InvalidDataShareFaultRes(parsedOutput, context);
2439
2413
  default:
2440
2414
  const parsedBody = parsedOutput.body;
2441
- throwDefaultError({
2415
+ return throwDefaultError({
2442
2416
  output,
2443
2417
  parsedBody: parsedBody.Error,
2444
- exceptionCtor: __BaseException,
2445
2418
  errorCode,
2446
2419
  });
2447
2420
  }
@@ -2457,7 +2430,7 @@ export const de_DeleteAuthenticationProfileCommand = async (output, context) =>
2457
2430
  $metadata: deserializeMetadata(output),
2458
2431
  ...contents,
2459
2432
  };
2460
- return Promise.resolve(response);
2433
+ return response;
2461
2434
  };
2462
2435
  const de_DeleteAuthenticationProfileCommandError = async (output, context) => {
2463
2436
  const parsedOutput = {
@@ -2474,10 +2447,9 @@ const de_DeleteAuthenticationProfileCommandError = async (output, context) => {
2474
2447
  throw await de_InvalidAuthenticationProfileRequestFaultRes(parsedOutput, context);
2475
2448
  default:
2476
2449
  const parsedBody = parsedOutput.body;
2477
- throwDefaultError({
2450
+ return throwDefaultError({
2478
2451
  output,
2479
2452
  parsedBody: parsedBody.Error,
2480
- exceptionCtor: __BaseException,
2481
2453
  errorCode,
2482
2454
  });
2483
2455
  }
@@ -2493,7 +2465,7 @@ export const de_DeleteClusterCommand = async (output, context) => {
2493
2465
  $metadata: deserializeMetadata(output),
2494
2466
  ...contents,
2495
2467
  };
2496
- return Promise.resolve(response);
2468
+ return response;
2497
2469
  };
2498
2470
  const de_DeleteClusterCommandError = async (output, context) => {
2499
2471
  const parsedOutput = {
@@ -2519,10 +2491,9 @@ const de_DeleteClusterCommandError = async (output, context) => {
2519
2491
  throw await de_InvalidRetentionPeriodFaultRes(parsedOutput, context);
2520
2492
  default:
2521
2493
  const parsedBody = parsedOutput.body;
2522
- throwDefaultError({
2494
+ return throwDefaultError({
2523
2495
  output,
2524
2496
  parsedBody: parsedBody.Error,
2525
- exceptionCtor: __BaseException,
2526
2497
  errorCode,
2527
2498
  });
2528
2499
  }
@@ -2535,7 +2506,7 @@ export const de_DeleteClusterParameterGroupCommand = async (output, context) =>
2535
2506
  const response = {
2536
2507
  $metadata: deserializeMetadata(output),
2537
2508
  };
2538
- return Promise.resolve(response);
2509
+ return response;
2539
2510
  };
2540
2511
  const de_DeleteClusterParameterGroupCommandError = async (output, context) => {
2541
2512
  const parsedOutput = {
@@ -2552,10 +2523,9 @@ const de_DeleteClusterParameterGroupCommandError = async (output, context) => {
2552
2523
  throw await de_InvalidClusterParameterGroupStateFaultRes(parsedOutput, context);
2553
2524
  default:
2554
2525
  const parsedBody = parsedOutput.body;
2555
- throwDefaultError({
2526
+ return throwDefaultError({
2556
2527
  output,
2557
2528
  parsedBody: parsedBody.Error,
2558
- exceptionCtor: __BaseException,
2559
2529
  errorCode,
2560
2530
  });
2561
2531
  }
@@ -2568,7 +2538,7 @@ export const de_DeleteClusterSecurityGroupCommand = async (output, context) => {
2568
2538
  const response = {
2569
2539
  $metadata: deserializeMetadata(output),
2570
2540
  };
2571
- return Promise.resolve(response);
2541
+ return response;
2572
2542
  };
2573
2543
  const de_DeleteClusterSecurityGroupCommandError = async (output, context) => {
2574
2544
  const parsedOutput = {
@@ -2585,10 +2555,9 @@ const de_DeleteClusterSecurityGroupCommandError = async (output, context) => {
2585
2555
  throw await de_InvalidClusterSecurityGroupStateFaultRes(parsedOutput, context);
2586
2556
  default:
2587
2557
  const parsedBody = parsedOutput.body;
2588
- throwDefaultError({
2558
+ return throwDefaultError({
2589
2559
  output,
2590
2560
  parsedBody: parsedBody.Error,
2591
- exceptionCtor: __BaseException,
2592
2561
  errorCode,
2593
2562
  });
2594
2563
  }
@@ -2604,7 +2573,7 @@ export const de_DeleteClusterSnapshotCommand = async (output, context) => {
2604
2573
  $metadata: deserializeMetadata(output),
2605
2574
  ...contents,
2606
2575
  };
2607
- return Promise.resolve(response);
2576
+ return response;
2608
2577
  };
2609
2578
  const de_DeleteClusterSnapshotCommandError = async (output, context) => {
2610
2579
  const parsedOutput = {
@@ -2621,10 +2590,9 @@ const de_DeleteClusterSnapshotCommandError = async (output, context) => {
2621
2590
  throw await de_InvalidClusterSnapshotStateFaultRes(parsedOutput, context);
2622
2591
  default:
2623
2592
  const parsedBody = parsedOutput.body;
2624
- throwDefaultError({
2593
+ return throwDefaultError({
2625
2594
  output,
2626
2595
  parsedBody: parsedBody.Error,
2627
- exceptionCtor: __BaseException,
2628
2596
  errorCode,
2629
2597
  });
2630
2598
  }
@@ -2637,7 +2605,7 @@ export const de_DeleteClusterSubnetGroupCommand = async (output, context) => {
2637
2605
  const response = {
2638
2606
  $metadata: deserializeMetadata(output),
2639
2607
  };
2640
- return Promise.resolve(response);
2608
+ return response;
2641
2609
  };
2642
2610
  const de_DeleteClusterSubnetGroupCommandError = async (output, context) => {
2643
2611
  const parsedOutput = {
@@ -2657,10 +2625,9 @@ const de_DeleteClusterSubnetGroupCommandError = async (output, context) => {
2657
2625
  throw await de_InvalidClusterSubnetStateFaultRes(parsedOutput, context);
2658
2626
  default:
2659
2627
  const parsedBody = parsedOutput.body;
2660
- throwDefaultError({
2628
+ return throwDefaultError({
2661
2629
  output,
2662
2630
  parsedBody: parsedBody.Error,
2663
- exceptionCtor: __BaseException,
2664
2631
  errorCode,
2665
2632
  });
2666
2633
  }
@@ -2676,7 +2643,7 @@ export const de_DeleteEndpointAccessCommand = async (output, context) => {
2676
2643
  $metadata: deserializeMetadata(output),
2677
2644
  ...contents,
2678
2645
  };
2679
- return Promise.resolve(response);
2646
+ return response;
2680
2647
  };
2681
2648
  const de_DeleteEndpointAccessCommandError = async (output, context) => {
2682
2649
  const parsedOutput = {
@@ -2702,10 +2669,9 @@ const de_DeleteEndpointAccessCommandError = async (output, context) => {
2702
2669
  throw await de_InvalidEndpointStateFaultRes(parsedOutput, context);
2703
2670
  default:
2704
2671
  const parsedBody = parsedOutput.body;
2705
- throwDefaultError({
2672
+ return throwDefaultError({
2706
2673
  output,
2707
2674
  parsedBody: parsedBody.Error,
2708
- exceptionCtor: __BaseException,
2709
2675
  errorCode,
2710
2676
  });
2711
2677
  }
@@ -2718,7 +2684,7 @@ export const de_DeleteEventSubscriptionCommand = async (output, context) => {
2718
2684
  const response = {
2719
2685
  $metadata: deserializeMetadata(output),
2720
2686
  };
2721
- return Promise.resolve(response);
2687
+ return response;
2722
2688
  };
2723
2689
  const de_DeleteEventSubscriptionCommandError = async (output, context) => {
2724
2690
  const parsedOutput = {
@@ -2735,10 +2701,9 @@ const de_DeleteEventSubscriptionCommandError = async (output, context) => {
2735
2701
  throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
2736
2702
  default:
2737
2703
  const parsedBody = parsedOutput.body;
2738
- throwDefaultError({
2704
+ return throwDefaultError({
2739
2705
  output,
2740
2706
  parsedBody: parsedBody.Error,
2741
- exceptionCtor: __BaseException,
2742
2707
  errorCode,
2743
2708
  });
2744
2709
  }
@@ -2751,7 +2716,7 @@ export const de_DeleteHsmClientCertificateCommand = async (output, context) => {
2751
2716
  const response = {
2752
2717
  $metadata: deserializeMetadata(output),
2753
2718
  };
2754
- return Promise.resolve(response);
2719
+ return response;
2755
2720
  };
2756
2721
  const de_DeleteHsmClientCertificateCommandError = async (output, context) => {
2757
2722
  const parsedOutput = {
@@ -2768,10 +2733,9 @@ const de_DeleteHsmClientCertificateCommandError = async (output, context) => {
2768
2733
  throw await de_InvalidHsmClientCertificateStateFaultRes(parsedOutput, context);
2769
2734
  default:
2770
2735
  const parsedBody = parsedOutput.body;
2771
- throwDefaultError({
2736
+ return throwDefaultError({
2772
2737
  output,
2773
2738
  parsedBody: parsedBody.Error,
2774
- exceptionCtor: __BaseException,
2775
2739
  errorCode,
2776
2740
  });
2777
2741
  }
@@ -2784,7 +2748,7 @@ export const de_DeleteHsmConfigurationCommand = async (output, context) => {
2784
2748
  const response = {
2785
2749
  $metadata: deserializeMetadata(output),
2786
2750
  };
2787
- return Promise.resolve(response);
2751
+ return response;
2788
2752
  };
2789
2753
  const de_DeleteHsmConfigurationCommandError = async (output, context) => {
2790
2754
  const parsedOutput = {
@@ -2801,10 +2765,9 @@ const de_DeleteHsmConfigurationCommandError = async (output, context) => {
2801
2765
  throw await de_InvalidHsmConfigurationStateFaultRes(parsedOutput, context);
2802
2766
  default:
2803
2767
  const parsedBody = parsedOutput.body;
2804
- throwDefaultError({
2768
+ return throwDefaultError({
2805
2769
  output,
2806
2770
  parsedBody: parsedBody.Error,
2807
- exceptionCtor: __BaseException,
2808
2771
  errorCode,
2809
2772
  });
2810
2773
  }
@@ -2820,7 +2783,7 @@ export const de_DeletePartnerCommand = async (output, context) => {
2820
2783
  $metadata: deserializeMetadata(output),
2821
2784
  ...contents,
2822
2785
  };
2823
- return Promise.resolve(response);
2786
+ return response;
2824
2787
  };
2825
2788
  const de_DeletePartnerCommandError = async (output, context) => {
2826
2789
  const parsedOutput = {
@@ -2840,10 +2803,9 @@ const de_DeletePartnerCommandError = async (output, context) => {
2840
2803
  throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
2841
2804
  default:
2842
2805
  const parsedBody = parsedOutput.body;
2843
- throwDefaultError({
2806
+ return throwDefaultError({
2844
2807
  output,
2845
2808
  parsedBody: parsedBody.Error,
2846
- exceptionCtor: __BaseException,
2847
2809
  errorCode,
2848
2810
  });
2849
2811
  }
@@ -2856,7 +2818,7 @@ export const de_DeleteScheduledActionCommand = async (output, context) => {
2856
2818
  const response = {
2857
2819
  $metadata: deserializeMetadata(output),
2858
2820
  };
2859
- return Promise.resolve(response);
2821
+ return response;
2860
2822
  };
2861
2823
  const de_DeleteScheduledActionCommandError = async (output, context) => {
2862
2824
  const parsedOutput = {
@@ -2873,10 +2835,9 @@ const de_DeleteScheduledActionCommandError = async (output, context) => {
2873
2835
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
2874
2836
  default:
2875
2837
  const parsedBody = parsedOutput.body;
2876
- throwDefaultError({
2838
+ return throwDefaultError({
2877
2839
  output,
2878
2840
  parsedBody: parsedBody.Error,
2879
- exceptionCtor: __BaseException,
2880
2841
  errorCode,
2881
2842
  });
2882
2843
  }
@@ -2889,7 +2850,7 @@ export const de_DeleteSnapshotCopyGrantCommand = async (output, context) => {
2889
2850
  const response = {
2890
2851
  $metadata: deserializeMetadata(output),
2891
2852
  };
2892
- return Promise.resolve(response);
2853
+ return response;
2893
2854
  };
2894
2855
  const de_DeleteSnapshotCopyGrantCommandError = async (output, context) => {
2895
2856
  const parsedOutput = {
@@ -2906,10 +2867,9 @@ const de_DeleteSnapshotCopyGrantCommandError = async (output, context) => {
2906
2867
  throw await de_SnapshotCopyGrantNotFoundFaultRes(parsedOutput, context);
2907
2868
  default:
2908
2869
  const parsedBody = parsedOutput.body;
2909
- throwDefaultError({
2870
+ return throwDefaultError({
2910
2871
  output,
2911
2872
  parsedBody: parsedBody.Error,
2912
- exceptionCtor: __BaseException,
2913
2873
  errorCode,
2914
2874
  });
2915
2875
  }
@@ -2922,7 +2882,7 @@ export const de_DeleteSnapshotScheduleCommand = async (output, context) => {
2922
2882
  const response = {
2923
2883
  $metadata: deserializeMetadata(output),
2924
2884
  };
2925
- return Promise.resolve(response);
2885
+ return response;
2926
2886
  };
2927
2887
  const de_DeleteSnapshotScheduleCommandError = async (output, context) => {
2928
2888
  const parsedOutput = {
@@ -2939,10 +2899,9 @@ const de_DeleteSnapshotScheduleCommandError = async (output, context) => {
2939
2899
  throw await de_SnapshotScheduleNotFoundFaultRes(parsedOutput, context);
2940
2900
  default:
2941
2901
  const parsedBody = parsedOutput.body;
2942
- throwDefaultError({
2902
+ return throwDefaultError({
2943
2903
  output,
2944
2904
  parsedBody: parsedBody.Error,
2945
- exceptionCtor: __BaseException,
2946
2905
  errorCode,
2947
2906
  });
2948
2907
  }
@@ -2955,7 +2914,7 @@ export const de_DeleteTagsCommand = async (output, context) => {
2955
2914
  const response = {
2956
2915
  $metadata: deserializeMetadata(output),
2957
2916
  };
2958
- return Promise.resolve(response);
2917
+ return response;
2959
2918
  };
2960
2919
  const de_DeleteTagsCommandError = async (output, context) => {
2961
2920
  const parsedOutput = {
@@ -2972,10 +2931,9 @@ const de_DeleteTagsCommandError = async (output, context) => {
2972
2931
  throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
2973
2932
  default:
2974
2933
  const parsedBody = parsedOutput.body;
2975
- throwDefaultError({
2934
+ return throwDefaultError({
2976
2935
  output,
2977
2936
  parsedBody: parsedBody.Error,
2978
- exceptionCtor: __BaseException,
2979
2937
  errorCode,
2980
2938
  });
2981
2939
  }
@@ -2988,7 +2946,7 @@ export const de_DeleteUsageLimitCommand = async (output, context) => {
2988
2946
  const response = {
2989
2947
  $metadata: deserializeMetadata(output),
2990
2948
  };
2991
- return Promise.resolve(response);
2949
+ return response;
2992
2950
  };
2993
2951
  const de_DeleteUsageLimitCommandError = async (output, context) => {
2994
2952
  const parsedOutput = {
@@ -3005,10 +2963,9 @@ const de_DeleteUsageLimitCommandError = async (output, context) => {
3005
2963
  throw await de_UsageLimitNotFoundFaultRes(parsedOutput, context);
3006
2964
  default:
3007
2965
  const parsedBody = parsedOutput.body;
3008
- throwDefaultError({
2966
+ return throwDefaultError({
3009
2967
  output,
3010
2968
  parsedBody: parsedBody.Error,
3011
- exceptionCtor: __BaseException,
3012
2969
  errorCode,
3013
2970
  });
3014
2971
  }
@@ -3024,7 +2981,7 @@ export const de_DescribeAccountAttributesCommand = async (output, context) => {
3024
2981
  $metadata: deserializeMetadata(output),
3025
2982
  ...contents,
3026
2983
  };
3027
- return Promise.resolve(response);
2984
+ return response;
3028
2985
  };
3029
2986
  const de_DescribeAccountAttributesCommandError = async (output, context) => {
3030
2987
  const parsedOutput = {
@@ -3033,10 +2990,9 @@ const de_DescribeAccountAttributesCommandError = async (output, context) => {
3033
2990
  };
3034
2991
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3035
2992
  const parsedBody = parsedOutput.body;
3036
- throwDefaultError({
2993
+ return throwDefaultError({
3037
2994
  output,
3038
2995
  parsedBody: parsedBody.Error,
3039
- exceptionCtor: __BaseException,
3040
2996
  errorCode,
3041
2997
  });
3042
2998
  };
@@ -3051,7 +3007,7 @@ export const de_DescribeAuthenticationProfilesCommand = async (output, context)
3051
3007
  $metadata: deserializeMetadata(output),
3052
3008
  ...contents,
3053
3009
  };
3054
- return Promise.resolve(response);
3010
+ return response;
3055
3011
  };
3056
3012
  const de_DescribeAuthenticationProfilesCommandError = async (output, context) => {
3057
3013
  const parsedOutput = {
@@ -3068,10 +3024,9 @@ const de_DescribeAuthenticationProfilesCommandError = async (output, context) =>
3068
3024
  throw await de_InvalidAuthenticationProfileRequestFaultRes(parsedOutput, context);
3069
3025
  default:
3070
3026
  const parsedBody = parsedOutput.body;
3071
- throwDefaultError({
3027
+ return throwDefaultError({
3072
3028
  output,
3073
3029
  parsedBody: parsedBody.Error,
3074
- exceptionCtor: __BaseException,
3075
3030
  errorCode,
3076
3031
  });
3077
3032
  }
@@ -3087,7 +3042,7 @@ export const de_DescribeClusterDbRevisionsCommand = async (output, context) => {
3087
3042
  $metadata: deserializeMetadata(output),
3088
3043
  ...contents,
3089
3044
  };
3090
- return Promise.resolve(response);
3045
+ return response;
3091
3046
  };
3092
3047
  const de_DescribeClusterDbRevisionsCommandError = async (output, context) => {
3093
3048
  const parsedOutput = {
@@ -3104,10 +3059,9 @@ const de_DescribeClusterDbRevisionsCommandError = async (output, context) => {
3104
3059
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
3105
3060
  default:
3106
3061
  const parsedBody = parsedOutput.body;
3107
- throwDefaultError({
3062
+ return throwDefaultError({
3108
3063
  output,
3109
3064
  parsedBody: parsedBody.Error,
3110
- exceptionCtor: __BaseException,
3111
3065
  errorCode,
3112
3066
  });
3113
3067
  }
@@ -3123,7 +3077,7 @@ export const de_DescribeClusterParameterGroupsCommand = async (output, context)
3123
3077
  $metadata: deserializeMetadata(output),
3124
3078
  ...contents,
3125
3079
  };
3126
- return Promise.resolve(response);
3080
+ return response;
3127
3081
  };
3128
3082
  const de_DescribeClusterParameterGroupsCommandError = async (output, context) => {
3129
3083
  const parsedOutput = {
@@ -3140,10 +3094,9 @@ const de_DescribeClusterParameterGroupsCommandError = async (output, context) =>
3140
3094
  throw await de_InvalidTagFaultRes(parsedOutput, context);
3141
3095
  default:
3142
3096
  const parsedBody = parsedOutput.body;
3143
- throwDefaultError({
3097
+ return throwDefaultError({
3144
3098
  output,
3145
3099
  parsedBody: parsedBody.Error,
3146
- exceptionCtor: __BaseException,
3147
3100
  errorCode,
3148
3101
  });
3149
3102
  }
@@ -3159,7 +3112,7 @@ export const de_DescribeClusterParametersCommand = async (output, context) => {
3159
3112
  $metadata: deserializeMetadata(output),
3160
3113
  ...contents,
3161
3114
  };
3162
- return Promise.resolve(response);
3115
+ return response;
3163
3116
  };
3164
3117
  const de_DescribeClusterParametersCommandError = async (output, context) => {
3165
3118
  const parsedOutput = {
@@ -3173,10 +3126,9 @@ const de_DescribeClusterParametersCommandError = async (output, context) => {
3173
3126
  throw await de_ClusterParameterGroupNotFoundFaultRes(parsedOutput, context);
3174
3127
  default:
3175
3128
  const parsedBody = parsedOutput.body;
3176
- throwDefaultError({
3129
+ return throwDefaultError({
3177
3130
  output,
3178
3131
  parsedBody: parsedBody.Error,
3179
- exceptionCtor: __BaseException,
3180
3132
  errorCode,
3181
3133
  });
3182
3134
  }
@@ -3192,7 +3144,7 @@ export const de_DescribeClustersCommand = async (output, context) => {
3192
3144
  $metadata: deserializeMetadata(output),
3193
3145
  ...contents,
3194
3146
  };
3195
- return Promise.resolve(response);
3147
+ return response;
3196
3148
  };
3197
3149
  const de_DescribeClustersCommandError = async (output, context) => {
3198
3150
  const parsedOutput = {
@@ -3209,10 +3161,9 @@ const de_DescribeClustersCommandError = async (output, context) => {
3209
3161
  throw await de_InvalidTagFaultRes(parsedOutput, context);
3210
3162
  default:
3211
3163
  const parsedBody = parsedOutput.body;
3212
- throwDefaultError({
3164
+ return throwDefaultError({
3213
3165
  output,
3214
3166
  parsedBody: parsedBody.Error,
3215
- exceptionCtor: __BaseException,
3216
3167
  errorCode,
3217
3168
  });
3218
3169
  }
@@ -3228,7 +3179,7 @@ export const de_DescribeClusterSecurityGroupsCommand = async (output, context) =
3228
3179
  $metadata: deserializeMetadata(output),
3229
3180
  ...contents,
3230
3181
  };
3231
- return Promise.resolve(response);
3182
+ return response;
3232
3183
  };
3233
3184
  const de_DescribeClusterSecurityGroupsCommandError = async (output, context) => {
3234
3185
  const parsedOutput = {
@@ -3245,10 +3196,9 @@ const de_DescribeClusterSecurityGroupsCommandError = async (output, context) =>
3245
3196
  throw await de_InvalidTagFaultRes(parsedOutput, context);
3246
3197
  default:
3247
3198
  const parsedBody = parsedOutput.body;
3248
- throwDefaultError({
3199
+ return throwDefaultError({
3249
3200
  output,
3250
3201
  parsedBody: parsedBody.Error,
3251
- exceptionCtor: __BaseException,
3252
3202
  errorCode,
3253
3203
  });
3254
3204
  }
@@ -3264,7 +3214,7 @@ export const de_DescribeClusterSnapshotsCommand = async (output, context) => {
3264
3214
  $metadata: deserializeMetadata(output),
3265
3215
  ...contents,
3266
3216
  };
3267
- return Promise.resolve(response);
3217
+ return response;
3268
3218
  };
3269
3219
  const de_DescribeClusterSnapshotsCommandError = async (output, context) => {
3270
3220
  const parsedOutput = {
@@ -3287,10 +3237,9 @@ const de_DescribeClusterSnapshotsCommandError = async (output, context) => {
3287
3237
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
3288
3238
  default:
3289
3239
  const parsedBody = parsedOutput.body;
3290
- throwDefaultError({
3240
+ return throwDefaultError({
3291
3241
  output,
3292
3242
  parsedBody: parsedBody.Error,
3293
- exceptionCtor: __BaseException,
3294
3243
  errorCode,
3295
3244
  });
3296
3245
  }
@@ -3306,7 +3255,7 @@ export const de_DescribeClusterSubnetGroupsCommand = async (output, context) =>
3306
3255
  $metadata: deserializeMetadata(output),
3307
3256
  ...contents,
3308
3257
  };
3309
- return Promise.resolve(response);
3258
+ return response;
3310
3259
  };
3311
3260
  const de_DescribeClusterSubnetGroupsCommandError = async (output, context) => {
3312
3261
  const parsedOutput = {
@@ -3323,10 +3272,9 @@ const de_DescribeClusterSubnetGroupsCommandError = async (output, context) => {
3323
3272
  throw await de_InvalidTagFaultRes(parsedOutput, context);
3324
3273
  default:
3325
3274
  const parsedBody = parsedOutput.body;
3326
- throwDefaultError({
3275
+ return throwDefaultError({
3327
3276
  output,
3328
3277
  parsedBody: parsedBody.Error,
3329
- exceptionCtor: __BaseException,
3330
3278
  errorCode,
3331
3279
  });
3332
3280
  }
@@ -3342,7 +3290,7 @@ export const de_DescribeClusterTracksCommand = async (output, context) => {
3342
3290
  $metadata: deserializeMetadata(output),
3343
3291
  ...contents,
3344
3292
  };
3345
- return Promise.resolve(response);
3293
+ return response;
3346
3294
  };
3347
3295
  const de_DescribeClusterTracksCommandError = async (output, context) => {
3348
3296
  const parsedOutput = {
@@ -3359,10 +3307,9 @@ const de_DescribeClusterTracksCommandError = async (output, context) => {
3359
3307
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
3360
3308
  default:
3361
3309
  const parsedBody = parsedOutput.body;
3362
- throwDefaultError({
3310
+ return throwDefaultError({
3363
3311
  output,
3364
3312
  parsedBody: parsedBody.Error,
3365
- exceptionCtor: __BaseException,
3366
3313
  errorCode,
3367
3314
  });
3368
3315
  }
@@ -3378,7 +3325,7 @@ export const de_DescribeClusterVersionsCommand = async (output, context) => {
3378
3325
  $metadata: deserializeMetadata(output),
3379
3326
  ...contents,
3380
3327
  };
3381
- return Promise.resolve(response);
3328
+ return response;
3382
3329
  };
3383
3330
  const de_DescribeClusterVersionsCommandError = async (output, context) => {
3384
3331
  const parsedOutput = {
@@ -3387,10 +3334,9 @@ const de_DescribeClusterVersionsCommandError = async (output, context) => {
3387
3334
  };
3388
3335
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3389
3336
  const parsedBody = parsedOutput.body;
3390
- throwDefaultError({
3337
+ return throwDefaultError({
3391
3338
  output,
3392
3339
  parsedBody: parsedBody.Error,
3393
- exceptionCtor: __BaseException,
3394
3340
  errorCode,
3395
3341
  });
3396
3342
  };
@@ -3405,7 +3351,7 @@ export const de_DescribeDataSharesCommand = async (output, context) => {
3405
3351
  $metadata: deserializeMetadata(output),
3406
3352
  ...contents,
3407
3353
  };
3408
- return Promise.resolve(response);
3354
+ return response;
3409
3355
  };
3410
3356
  const de_DescribeDataSharesCommandError = async (output, context) => {
3411
3357
  const parsedOutput = {
@@ -3419,10 +3365,9 @@ const de_DescribeDataSharesCommandError = async (output, context) => {
3419
3365
  throw await de_InvalidDataShareFaultRes(parsedOutput, context);
3420
3366
  default:
3421
3367
  const parsedBody = parsedOutput.body;
3422
- throwDefaultError({
3368
+ return throwDefaultError({
3423
3369
  output,
3424
3370
  parsedBody: parsedBody.Error,
3425
- exceptionCtor: __BaseException,
3426
3371
  errorCode,
3427
3372
  });
3428
3373
  }
@@ -3438,7 +3383,7 @@ export const de_DescribeDataSharesForConsumerCommand = async (output, context) =
3438
3383
  $metadata: deserializeMetadata(output),
3439
3384
  ...contents,
3440
3385
  };
3441
- return Promise.resolve(response);
3386
+ return response;
3442
3387
  };
3443
3388
  const de_DescribeDataSharesForConsumerCommandError = async (output, context) => {
3444
3389
  const parsedOutput = {
@@ -3452,10 +3397,9 @@ const de_DescribeDataSharesForConsumerCommandError = async (output, context) =>
3452
3397
  throw await de_InvalidNamespaceFaultRes(parsedOutput, context);
3453
3398
  default:
3454
3399
  const parsedBody = parsedOutput.body;
3455
- throwDefaultError({
3400
+ return throwDefaultError({
3456
3401
  output,
3457
3402
  parsedBody: parsedBody.Error,
3458
- exceptionCtor: __BaseException,
3459
3403
  errorCode,
3460
3404
  });
3461
3405
  }
@@ -3471,7 +3415,7 @@ export const de_DescribeDataSharesForProducerCommand = async (output, context) =
3471
3415
  $metadata: deserializeMetadata(output),
3472
3416
  ...contents,
3473
3417
  };
3474
- return Promise.resolve(response);
3418
+ return response;
3475
3419
  };
3476
3420
  const de_DescribeDataSharesForProducerCommandError = async (output, context) => {
3477
3421
  const parsedOutput = {
@@ -3485,10 +3429,9 @@ const de_DescribeDataSharesForProducerCommandError = async (output, context) =>
3485
3429
  throw await de_InvalidNamespaceFaultRes(parsedOutput, context);
3486
3430
  default:
3487
3431
  const parsedBody = parsedOutput.body;
3488
- throwDefaultError({
3432
+ return throwDefaultError({
3489
3433
  output,
3490
3434
  parsedBody: parsedBody.Error,
3491
- exceptionCtor: __BaseException,
3492
3435
  errorCode,
3493
3436
  });
3494
3437
  }
@@ -3504,7 +3447,7 @@ export const de_DescribeDefaultClusterParametersCommand = async (output, context
3504
3447
  $metadata: deserializeMetadata(output),
3505
3448
  ...contents,
3506
3449
  };
3507
- return Promise.resolve(response);
3450
+ return response;
3508
3451
  };
3509
3452
  const de_DescribeDefaultClusterParametersCommandError = async (output, context) => {
3510
3453
  const parsedOutput = {
@@ -3513,10 +3456,9 @@ const de_DescribeDefaultClusterParametersCommandError = async (output, context)
3513
3456
  };
3514
3457
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3515
3458
  const parsedBody = parsedOutput.body;
3516
- throwDefaultError({
3459
+ return throwDefaultError({
3517
3460
  output,
3518
3461
  parsedBody: parsedBody.Error,
3519
- exceptionCtor: __BaseException,
3520
3462
  errorCode,
3521
3463
  });
3522
3464
  };
@@ -3531,7 +3473,7 @@ export const de_DescribeEndpointAccessCommand = async (output, context) => {
3531
3473
  $metadata: deserializeMetadata(output),
3532
3474
  ...contents,
3533
3475
  };
3534
- return Promise.resolve(response);
3476
+ return response;
3535
3477
  };
3536
3478
  const de_DescribeEndpointAccessCommandError = async (output, context) => {
3537
3479
  const parsedOutput = {
@@ -3551,10 +3493,9 @@ const de_DescribeEndpointAccessCommandError = async (output, context) => {
3551
3493
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
3552
3494
  default:
3553
3495
  const parsedBody = parsedOutput.body;
3554
- throwDefaultError({
3496
+ return throwDefaultError({
3555
3497
  output,
3556
3498
  parsedBody: parsedBody.Error,
3557
- exceptionCtor: __BaseException,
3558
3499
  errorCode,
3559
3500
  });
3560
3501
  }
@@ -3570,7 +3511,7 @@ export const de_DescribeEndpointAuthorizationCommand = async (output, context) =
3570
3511
  $metadata: deserializeMetadata(output),
3571
3512
  ...contents,
3572
3513
  };
3573
- return Promise.resolve(response);
3514
+ return response;
3574
3515
  };
3575
3516
  const de_DescribeEndpointAuthorizationCommandError = async (output, context) => {
3576
3517
  const parsedOutput = {
@@ -3587,10 +3528,9 @@ const de_DescribeEndpointAuthorizationCommandError = async (output, context) =>
3587
3528
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
3588
3529
  default:
3589
3530
  const parsedBody = parsedOutput.body;
3590
- throwDefaultError({
3531
+ return throwDefaultError({
3591
3532
  output,
3592
3533
  parsedBody: parsedBody.Error,
3593
- exceptionCtor: __BaseException,
3594
3534
  errorCode,
3595
3535
  });
3596
3536
  }
@@ -3606,7 +3546,7 @@ export const de_DescribeEventCategoriesCommand = async (output, context) => {
3606
3546
  $metadata: deserializeMetadata(output),
3607
3547
  ...contents,
3608
3548
  };
3609
- return Promise.resolve(response);
3549
+ return response;
3610
3550
  };
3611
3551
  const de_DescribeEventCategoriesCommandError = async (output, context) => {
3612
3552
  const parsedOutput = {
@@ -3615,10 +3555,9 @@ const de_DescribeEventCategoriesCommandError = async (output, context) => {
3615
3555
  };
3616
3556
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3617
3557
  const parsedBody = parsedOutput.body;
3618
- throwDefaultError({
3558
+ return throwDefaultError({
3619
3559
  output,
3620
3560
  parsedBody: parsedBody.Error,
3621
- exceptionCtor: __BaseException,
3622
3561
  errorCode,
3623
3562
  });
3624
3563
  };
@@ -3633,7 +3572,7 @@ export const de_DescribeEventsCommand = async (output, context) => {
3633
3572
  $metadata: deserializeMetadata(output),
3634
3573
  ...contents,
3635
3574
  };
3636
- return Promise.resolve(response);
3575
+ return response;
3637
3576
  };
3638
3577
  const de_DescribeEventsCommandError = async (output, context) => {
3639
3578
  const parsedOutput = {
@@ -3642,10 +3581,9 @@ const de_DescribeEventsCommandError = async (output, context) => {
3642
3581
  };
3643
3582
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3644
3583
  const parsedBody = parsedOutput.body;
3645
- throwDefaultError({
3584
+ return throwDefaultError({
3646
3585
  output,
3647
3586
  parsedBody: parsedBody.Error,
3648
- exceptionCtor: __BaseException,
3649
3587
  errorCode,
3650
3588
  });
3651
3589
  };
@@ -3660,7 +3598,7 @@ export const de_DescribeEventSubscriptionsCommand = async (output, context) => {
3660
3598
  $metadata: deserializeMetadata(output),
3661
3599
  ...contents,
3662
3600
  };
3663
- return Promise.resolve(response);
3601
+ return response;
3664
3602
  };
3665
3603
  const de_DescribeEventSubscriptionsCommandError = async (output, context) => {
3666
3604
  const parsedOutput = {
@@ -3677,10 +3615,9 @@ const de_DescribeEventSubscriptionsCommandError = async (output, context) => {
3677
3615
  throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
3678
3616
  default:
3679
3617
  const parsedBody = parsedOutput.body;
3680
- throwDefaultError({
3618
+ return throwDefaultError({
3681
3619
  output,
3682
3620
  parsedBody: parsedBody.Error,
3683
- exceptionCtor: __BaseException,
3684
3621
  errorCode,
3685
3622
  });
3686
3623
  }
@@ -3696,7 +3633,7 @@ export const de_DescribeHsmClientCertificatesCommand = async (output, context) =
3696
3633
  $metadata: deserializeMetadata(output),
3697
3634
  ...contents,
3698
3635
  };
3699
- return Promise.resolve(response);
3636
+ return response;
3700
3637
  };
3701
3638
  const de_DescribeHsmClientCertificatesCommandError = async (output, context) => {
3702
3639
  const parsedOutput = {
@@ -3713,10 +3650,9 @@ const de_DescribeHsmClientCertificatesCommandError = async (output, context) =>
3713
3650
  throw await de_InvalidTagFaultRes(parsedOutput, context);
3714
3651
  default:
3715
3652
  const parsedBody = parsedOutput.body;
3716
- throwDefaultError({
3653
+ return throwDefaultError({
3717
3654
  output,
3718
3655
  parsedBody: parsedBody.Error,
3719
- exceptionCtor: __BaseException,
3720
3656
  errorCode,
3721
3657
  });
3722
3658
  }
@@ -3732,7 +3668,7 @@ export const de_DescribeHsmConfigurationsCommand = async (output, context) => {
3732
3668
  $metadata: deserializeMetadata(output),
3733
3669
  ...contents,
3734
3670
  };
3735
- return Promise.resolve(response);
3671
+ return response;
3736
3672
  };
3737
3673
  const de_DescribeHsmConfigurationsCommandError = async (output, context) => {
3738
3674
  const parsedOutput = {
@@ -3749,10 +3685,9 @@ const de_DescribeHsmConfigurationsCommandError = async (output, context) => {
3749
3685
  throw await de_InvalidTagFaultRes(parsedOutput, context);
3750
3686
  default:
3751
3687
  const parsedBody = parsedOutput.body;
3752
- throwDefaultError({
3688
+ return throwDefaultError({
3753
3689
  output,
3754
3690
  parsedBody: parsedBody.Error,
3755
- exceptionCtor: __BaseException,
3756
3691
  errorCode,
3757
3692
  });
3758
3693
  }
@@ -3768,7 +3703,7 @@ export const de_DescribeLoggingStatusCommand = async (output, context) => {
3768
3703
  $metadata: deserializeMetadata(output),
3769
3704
  ...contents,
3770
3705
  };
3771
- return Promise.resolve(response);
3706
+ return response;
3772
3707
  };
3773
3708
  const de_DescribeLoggingStatusCommandError = async (output, context) => {
3774
3709
  const parsedOutput = {
@@ -3782,10 +3717,9 @@ const de_DescribeLoggingStatusCommandError = async (output, context) => {
3782
3717
  throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
3783
3718
  default:
3784
3719
  const parsedBody = parsedOutput.body;
3785
- throwDefaultError({
3720
+ return throwDefaultError({
3786
3721
  output,
3787
3722
  parsedBody: parsedBody.Error,
3788
- exceptionCtor: __BaseException,
3789
3723
  errorCode,
3790
3724
  });
3791
3725
  }
@@ -3801,7 +3735,7 @@ export const de_DescribeNodeConfigurationOptionsCommand = async (output, context
3801
3735
  $metadata: deserializeMetadata(output),
3802
3736
  ...contents,
3803
3737
  };
3804
- return Promise.resolve(response);
3738
+ return response;
3805
3739
  };
3806
3740
  const de_DescribeNodeConfigurationOptionsCommandError = async (output, context) => {
3807
3741
  const parsedOutput = {
@@ -3827,10 +3761,9 @@ const de_DescribeNodeConfigurationOptionsCommandError = async (output, context)
3827
3761
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
3828
3762
  default:
3829
3763
  const parsedBody = parsedOutput.body;
3830
- throwDefaultError({
3764
+ return throwDefaultError({
3831
3765
  output,
3832
3766
  parsedBody: parsedBody.Error,
3833
- exceptionCtor: __BaseException,
3834
3767
  errorCode,
3835
3768
  });
3836
3769
  }
@@ -3846,7 +3779,7 @@ export const de_DescribeOrderableClusterOptionsCommand = async (output, context)
3846
3779
  $metadata: deserializeMetadata(output),
3847
3780
  ...contents,
3848
3781
  };
3849
- return Promise.resolve(response);
3782
+ return response;
3850
3783
  };
3851
3784
  const de_DescribeOrderableClusterOptionsCommandError = async (output, context) => {
3852
3785
  const parsedOutput = {
@@ -3855,10 +3788,9 @@ const de_DescribeOrderableClusterOptionsCommandError = async (output, context) =
3855
3788
  };
3856
3789
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3857
3790
  const parsedBody = parsedOutput.body;
3858
- throwDefaultError({
3791
+ return throwDefaultError({
3859
3792
  output,
3860
3793
  parsedBody: parsedBody.Error,
3861
- exceptionCtor: __BaseException,
3862
3794
  errorCode,
3863
3795
  });
3864
3796
  };
@@ -3873,7 +3805,7 @@ export const de_DescribePartnersCommand = async (output, context) => {
3873
3805
  $metadata: deserializeMetadata(output),
3874
3806
  ...contents,
3875
3807
  };
3876
- return Promise.resolve(response);
3808
+ return response;
3877
3809
  };
3878
3810
  const de_DescribePartnersCommandError = async (output, context) => {
3879
3811
  const parsedOutput = {
@@ -3890,10 +3822,9 @@ const de_DescribePartnersCommandError = async (output, context) => {
3890
3822
  throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
3891
3823
  default:
3892
3824
  const parsedBody = parsedOutput.body;
3893
- throwDefaultError({
3825
+ return throwDefaultError({
3894
3826
  output,
3895
3827
  parsedBody: parsedBody.Error,
3896
- exceptionCtor: __BaseException,
3897
3828
  errorCode,
3898
3829
  });
3899
3830
  }
@@ -3909,7 +3840,7 @@ export const de_DescribeReservedNodeExchangeStatusCommand = async (output, conte
3909
3840
  $metadata: deserializeMetadata(output),
3910
3841
  ...contents,
3911
3842
  };
3912
- return Promise.resolve(response);
3843
+ return response;
3913
3844
  };
3914
3845
  const de_DescribeReservedNodeExchangeStatusCommandError = async (output, context) => {
3915
3846
  const parsedOutput = {
@@ -3929,10 +3860,9 @@ const de_DescribeReservedNodeExchangeStatusCommandError = async (output, context
3929
3860
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
3930
3861
  default:
3931
3862
  const parsedBody = parsedOutput.body;
3932
- throwDefaultError({
3863
+ return throwDefaultError({
3933
3864
  output,
3934
3865
  parsedBody: parsedBody.Error,
3935
- exceptionCtor: __BaseException,
3936
3866
  errorCode,
3937
3867
  });
3938
3868
  }
@@ -3948,7 +3878,7 @@ export const de_DescribeReservedNodeOfferingsCommand = async (output, context) =
3948
3878
  $metadata: deserializeMetadata(output),
3949
3879
  ...contents,
3950
3880
  };
3951
- return Promise.resolve(response);
3881
+ return response;
3952
3882
  };
3953
3883
  const de_DescribeReservedNodeOfferingsCommandError = async (output, context) => {
3954
3884
  const parsedOutput = {
@@ -3968,10 +3898,9 @@ const de_DescribeReservedNodeOfferingsCommandError = async (output, context) =>
3968
3898
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
3969
3899
  default:
3970
3900
  const parsedBody = parsedOutput.body;
3971
- throwDefaultError({
3901
+ return throwDefaultError({
3972
3902
  output,
3973
3903
  parsedBody: parsedBody.Error,
3974
- exceptionCtor: __BaseException,
3975
3904
  errorCode,
3976
3905
  });
3977
3906
  }
@@ -3987,7 +3916,7 @@ export const de_DescribeReservedNodesCommand = async (output, context) => {
3987
3916
  $metadata: deserializeMetadata(output),
3988
3917
  ...contents,
3989
3918
  };
3990
- return Promise.resolve(response);
3919
+ return response;
3991
3920
  };
3992
3921
  const de_DescribeReservedNodesCommandError = async (output, context) => {
3993
3922
  const parsedOutput = {
@@ -4004,10 +3933,9 @@ const de_DescribeReservedNodesCommandError = async (output, context) => {
4004
3933
  throw await de_ReservedNodeNotFoundFaultRes(parsedOutput, context);
4005
3934
  default:
4006
3935
  const parsedBody = parsedOutput.body;
4007
- throwDefaultError({
3936
+ return throwDefaultError({
4008
3937
  output,
4009
3938
  parsedBody: parsedBody.Error,
4010
- exceptionCtor: __BaseException,
4011
3939
  errorCode,
4012
3940
  });
4013
3941
  }
@@ -4023,7 +3951,7 @@ export const de_DescribeResizeCommand = async (output, context) => {
4023
3951
  $metadata: deserializeMetadata(output),
4024
3952
  ...contents,
4025
3953
  };
4026
- return Promise.resolve(response);
3954
+ return response;
4027
3955
  };
4028
3956
  const de_DescribeResizeCommandError = async (output, context) => {
4029
3957
  const parsedOutput = {
@@ -4040,10 +3968,9 @@ const de_DescribeResizeCommandError = async (output, context) => {
4040
3968
  throw await de_ResizeNotFoundFaultRes(parsedOutput, context);
4041
3969
  default:
4042
3970
  const parsedBody = parsedOutput.body;
4043
- throwDefaultError({
3971
+ return throwDefaultError({
4044
3972
  output,
4045
3973
  parsedBody: parsedBody.Error,
4046
- exceptionCtor: __BaseException,
4047
3974
  errorCode,
4048
3975
  });
4049
3976
  }
@@ -4059,7 +3986,7 @@ export const de_DescribeScheduledActionsCommand = async (output, context) => {
4059
3986
  $metadata: deserializeMetadata(output),
4060
3987
  ...contents,
4061
3988
  };
4062
- return Promise.resolve(response);
3989
+ return response;
4063
3990
  };
4064
3991
  const de_DescribeScheduledActionsCommandError = async (output, context) => {
4065
3992
  const parsedOutput = {
@@ -4076,10 +4003,9 @@ const de_DescribeScheduledActionsCommandError = async (output, context) => {
4076
4003
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
4077
4004
  default:
4078
4005
  const parsedBody = parsedOutput.body;
4079
- throwDefaultError({
4006
+ return throwDefaultError({
4080
4007
  output,
4081
4008
  parsedBody: parsedBody.Error,
4082
- exceptionCtor: __BaseException,
4083
4009
  errorCode,
4084
4010
  });
4085
4011
  }
@@ -4095,7 +4021,7 @@ export const de_DescribeSnapshotCopyGrantsCommand = async (output, context) => {
4095
4021
  $metadata: deserializeMetadata(output),
4096
4022
  ...contents,
4097
4023
  };
4098
- return Promise.resolve(response);
4024
+ return response;
4099
4025
  };
4100
4026
  const de_DescribeSnapshotCopyGrantsCommandError = async (output, context) => {
4101
4027
  const parsedOutput = {
@@ -4112,10 +4038,9 @@ const de_DescribeSnapshotCopyGrantsCommandError = async (output, context) => {
4112
4038
  throw await de_SnapshotCopyGrantNotFoundFaultRes(parsedOutput, context);
4113
4039
  default:
4114
4040
  const parsedBody = parsedOutput.body;
4115
- throwDefaultError({
4041
+ return throwDefaultError({
4116
4042
  output,
4117
4043
  parsedBody: parsedBody.Error,
4118
- exceptionCtor: __BaseException,
4119
4044
  errorCode,
4120
4045
  });
4121
4046
  }
@@ -4131,7 +4056,7 @@ export const de_DescribeSnapshotSchedulesCommand = async (output, context) => {
4131
4056
  $metadata: deserializeMetadata(output),
4132
4057
  ...contents,
4133
4058
  };
4134
- return Promise.resolve(response);
4059
+ return response;
4135
4060
  };
4136
4061
  const de_DescribeSnapshotSchedulesCommandError = async (output, context) => {
4137
4062
  const parsedOutput = {
@@ -4140,10 +4065,9 @@ const de_DescribeSnapshotSchedulesCommandError = async (output, context) => {
4140
4065
  };
4141
4066
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4142
4067
  const parsedBody = parsedOutput.body;
4143
- throwDefaultError({
4068
+ return throwDefaultError({
4144
4069
  output,
4145
4070
  parsedBody: parsedBody.Error,
4146
- exceptionCtor: __BaseException,
4147
4071
  errorCode,
4148
4072
  });
4149
4073
  };
@@ -4158,7 +4082,7 @@ export const de_DescribeStorageCommand = async (output, context) => {
4158
4082
  $metadata: deserializeMetadata(output),
4159
4083
  ...contents,
4160
4084
  };
4161
- return Promise.resolve(response);
4085
+ return response;
4162
4086
  };
4163
4087
  const de_DescribeStorageCommandError = async (output, context) => {
4164
4088
  const parsedOutput = {
@@ -4167,10 +4091,9 @@ const de_DescribeStorageCommandError = async (output, context) => {
4167
4091
  };
4168
4092
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
4169
4093
  const parsedBody = parsedOutput.body;
4170
- throwDefaultError({
4094
+ return throwDefaultError({
4171
4095
  output,
4172
4096
  parsedBody: parsedBody.Error,
4173
- exceptionCtor: __BaseException,
4174
4097
  errorCode,
4175
4098
  });
4176
4099
  };
@@ -4185,7 +4108,7 @@ export const de_DescribeTableRestoreStatusCommand = async (output, context) => {
4185
4108
  $metadata: deserializeMetadata(output),
4186
4109
  ...contents,
4187
4110
  };
4188
- return Promise.resolve(response);
4111
+ return response;
4189
4112
  };
4190
4113
  const de_DescribeTableRestoreStatusCommandError = async (output, context) => {
4191
4114
  const parsedOutput = {
@@ -4202,10 +4125,9 @@ const de_DescribeTableRestoreStatusCommandError = async (output, context) => {
4202
4125
  throw await de_TableRestoreNotFoundFaultRes(parsedOutput, context);
4203
4126
  default:
4204
4127
  const parsedBody = parsedOutput.body;
4205
- throwDefaultError({
4128
+ return throwDefaultError({
4206
4129
  output,
4207
4130
  parsedBody: parsedBody.Error,
4208
- exceptionCtor: __BaseException,
4209
4131
  errorCode,
4210
4132
  });
4211
4133
  }
@@ -4221,7 +4143,7 @@ export const de_DescribeTagsCommand = async (output, context) => {
4221
4143
  $metadata: deserializeMetadata(output),
4222
4144
  ...contents,
4223
4145
  };
4224
- return Promise.resolve(response);
4146
+ return response;
4225
4147
  };
4226
4148
  const de_DescribeTagsCommandError = async (output, context) => {
4227
4149
  const parsedOutput = {
@@ -4238,10 +4160,9 @@ const de_DescribeTagsCommandError = async (output, context) => {
4238
4160
  throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
4239
4161
  default:
4240
4162
  const parsedBody = parsedOutput.body;
4241
- throwDefaultError({
4163
+ return throwDefaultError({
4242
4164
  output,
4243
4165
  parsedBody: parsedBody.Error,
4244
- exceptionCtor: __BaseException,
4245
4166
  errorCode,
4246
4167
  });
4247
4168
  }
@@ -4257,7 +4178,7 @@ export const de_DescribeUsageLimitsCommand = async (output, context) => {
4257
4178
  $metadata: deserializeMetadata(output),
4258
4179
  ...contents,
4259
4180
  };
4260
- return Promise.resolve(response);
4181
+ return response;
4261
4182
  };
4262
4183
  const de_DescribeUsageLimitsCommandError = async (output, context) => {
4263
4184
  const parsedOutput = {
@@ -4274,10 +4195,9 @@ const de_DescribeUsageLimitsCommandError = async (output, context) => {
4274
4195
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4275
4196
  default:
4276
4197
  const parsedBody = parsedOutput.body;
4277
- throwDefaultError({
4198
+ return throwDefaultError({
4278
4199
  output,
4279
4200
  parsedBody: parsedBody.Error,
4280
- exceptionCtor: __BaseException,
4281
4201
  errorCode,
4282
4202
  });
4283
4203
  }
@@ -4293,7 +4213,7 @@ export const de_DisableLoggingCommand = async (output, context) => {
4293
4213
  $metadata: deserializeMetadata(output),
4294
4214
  ...contents,
4295
4215
  };
4296
- return Promise.resolve(response);
4216
+ return response;
4297
4217
  };
4298
4218
  const de_DisableLoggingCommandError = async (output, context) => {
4299
4219
  const parsedOutput = {
@@ -4310,10 +4230,9 @@ const de_DisableLoggingCommandError = async (output, context) => {
4310
4230
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
4311
4231
  default:
4312
4232
  const parsedBody = parsedOutput.body;
4313
- throwDefaultError({
4233
+ return throwDefaultError({
4314
4234
  output,
4315
4235
  parsedBody: parsedBody.Error,
4316
- exceptionCtor: __BaseException,
4317
4236
  errorCode,
4318
4237
  });
4319
4238
  }
@@ -4329,7 +4248,7 @@ export const de_DisableSnapshotCopyCommand = async (output, context) => {
4329
4248
  $metadata: deserializeMetadata(output),
4330
4249
  ...contents,
4331
4250
  };
4332
- return Promise.resolve(response);
4251
+ return response;
4333
4252
  };
4334
4253
  const de_DisableSnapshotCopyCommandError = async (output, context) => {
4335
4254
  const parsedOutput = {
@@ -4352,10 +4271,9 @@ const de_DisableSnapshotCopyCommandError = async (output, context) => {
4352
4271
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
4353
4272
  default:
4354
4273
  const parsedBody = parsedOutput.body;
4355
- throwDefaultError({
4274
+ return throwDefaultError({
4356
4275
  output,
4357
4276
  parsedBody: parsedBody.Error,
4358
- exceptionCtor: __BaseException,
4359
4277
  errorCode,
4360
4278
  });
4361
4279
  }
@@ -4371,7 +4289,7 @@ export const de_DisassociateDataShareConsumerCommand = async (output, context) =
4371
4289
  $metadata: deserializeMetadata(output),
4372
4290
  ...contents,
4373
4291
  };
4374
- return Promise.resolve(response);
4292
+ return response;
4375
4293
  };
4376
4294
  const de_DisassociateDataShareConsumerCommandError = async (output, context) => {
4377
4295
  const parsedOutput = {
@@ -4388,10 +4306,9 @@ const de_DisassociateDataShareConsumerCommandError = async (output, context) =>
4388
4306
  throw await de_InvalidNamespaceFaultRes(parsedOutput, context);
4389
4307
  default:
4390
4308
  const parsedBody = parsedOutput.body;
4391
- throwDefaultError({
4309
+ return throwDefaultError({
4392
4310
  output,
4393
4311
  parsedBody: parsedBody.Error,
4394
- exceptionCtor: __BaseException,
4395
4312
  errorCode,
4396
4313
  });
4397
4314
  }
@@ -4407,7 +4324,7 @@ export const de_EnableLoggingCommand = async (output, context) => {
4407
4324
  $metadata: deserializeMetadata(output),
4408
4325
  ...contents,
4409
4326
  };
4410
- return Promise.resolve(response);
4327
+ return response;
4411
4328
  };
4412
4329
  const de_EnableLoggingCommandError = async (output, context) => {
4413
4330
  const parsedOutput = {
@@ -4436,10 +4353,9 @@ const de_EnableLoggingCommandError = async (output, context) => {
4436
4353
  throw await de_InvalidS3KeyPrefixFaultRes(parsedOutput, context);
4437
4354
  default:
4438
4355
  const parsedBody = parsedOutput.body;
4439
- throwDefaultError({
4356
+ return throwDefaultError({
4440
4357
  output,
4441
4358
  parsedBody: parsedBody.Error,
4442
- exceptionCtor: __BaseException,
4443
4359
  errorCode,
4444
4360
  });
4445
4361
  }
@@ -4455,7 +4371,7 @@ export const de_EnableSnapshotCopyCommand = async (output, context) => {
4455
4371
  $metadata: deserializeMetadata(output),
4456
4372
  ...contents,
4457
4373
  };
4458
- return Promise.resolve(response);
4374
+ return response;
4459
4375
  };
4460
4376
  const de_EnableSnapshotCopyCommandError = async (output, context) => {
4461
4377
  const parsedOutput = {
@@ -4499,10 +4415,9 @@ const de_EnableSnapshotCopyCommandError = async (output, context) => {
4499
4415
  throw await de_UnknownSnapshotCopyRegionFaultRes(parsedOutput, context);
4500
4416
  default:
4501
4417
  const parsedBody = parsedOutput.body;
4502
- throwDefaultError({
4418
+ return throwDefaultError({
4503
4419
  output,
4504
4420
  parsedBody: parsedBody.Error,
4505
- exceptionCtor: __BaseException,
4506
4421
  errorCode,
4507
4422
  });
4508
4423
  }
@@ -4518,7 +4433,7 @@ export const de_GetClusterCredentialsCommand = async (output, context) => {
4518
4433
  $metadata: deserializeMetadata(output),
4519
4434
  ...contents,
4520
4435
  };
4521
- return Promise.resolve(response);
4436
+ return response;
4522
4437
  };
4523
4438
  const de_GetClusterCredentialsCommandError = async (output, context) => {
4524
4439
  const parsedOutput = {
@@ -4535,10 +4450,9 @@ const de_GetClusterCredentialsCommandError = async (output, context) => {
4535
4450
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4536
4451
  default:
4537
4452
  const parsedBody = parsedOutput.body;
4538
- throwDefaultError({
4453
+ return throwDefaultError({
4539
4454
  output,
4540
4455
  parsedBody: parsedBody.Error,
4541
- exceptionCtor: __BaseException,
4542
4456
  errorCode,
4543
4457
  });
4544
4458
  }
@@ -4554,7 +4468,7 @@ export const de_GetClusterCredentialsWithIAMCommand = async (output, context) =>
4554
4468
  $metadata: deserializeMetadata(output),
4555
4469
  ...contents,
4556
4470
  };
4557
- return Promise.resolve(response);
4471
+ return response;
4558
4472
  };
4559
4473
  const de_GetClusterCredentialsWithIAMCommandError = async (output, context) => {
4560
4474
  const parsedOutput = {
@@ -4571,10 +4485,9 @@ const de_GetClusterCredentialsWithIAMCommandError = async (output, context) => {
4571
4485
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4572
4486
  default:
4573
4487
  const parsedBody = parsedOutput.body;
4574
- throwDefaultError({
4488
+ return throwDefaultError({
4575
4489
  output,
4576
4490
  parsedBody: parsedBody.Error,
4577
- exceptionCtor: __BaseException,
4578
4491
  errorCode,
4579
4492
  });
4580
4493
  }
@@ -4590,7 +4503,7 @@ export const de_GetReservedNodeExchangeConfigurationOptionsCommand = async (outp
4590
4503
  $metadata: deserializeMetadata(output),
4591
4504
  ...contents,
4592
4505
  };
4593
- return Promise.resolve(response);
4506
+ return response;
4594
4507
  };
4595
4508
  const de_GetReservedNodeExchangeConfigurationOptionsCommandError = async (output, context) => {
4596
4509
  const parsedOutput = {
@@ -4625,10 +4538,9 @@ const de_GetReservedNodeExchangeConfigurationOptionsCommandError = async (output
4625
4538
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4626
4539
  default:
4627
4540
  const parsedBody = parsedOutput.body;
4628
- throwDefaultError({
4541
+ return throwDefaultError({
4629
4542
  output,
4630
4543
  parsedBody: parsedBody.Error,
4631
- exceptionCtor: __BaseException,
4632
4544
  errorCode,
4633
4545
  });
4634
4546
  }
@@ -4644,7 +4556,7 @@ export const de_GetReservedNodeExchangeOfferingsCommand = async (output, context
4644
4556
  $metadata: deserializeMetadata(output),
4645
4557
  ...contents,
4646
4558
  };
4647
- return Promise.resolve(response);
4559
+ return response;
4648
4560
  };
4649
4561
  const de_GetReservedNodeExchangeOfferingsCommandError = async (output, context) => {
4650
4562
  const parsedOutput = {
@@ -4673,10 +4585,9 @@ const de_GetReservedNodeExchangeOfferingsCommandError = async (output, context)
4673
4585
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4674
4586
  default:
4675
4587
  const parsedBody = parsedOutput.body;
4676
- throwDefaultError({
4588
+ return throwDefaultError({
4677
4589
  output,
4678
4590
  parsedBody: parsedBody.Error,
4679
- exceptionCtor: __BaseException,
4680
4591
  errorCode,
4681
4592
  });
4682
4593
  }
@@ -4692,7 +4603,7 @@ export const de_ModifyAquaConfigurationCommand = async (output, context) => {
4692
4603
  $metadata: deserializeMetadata(output),
4693
4604
  ...contents,
4694
4605
  };
4695
- return Promise.resolve(response);
4606
+ return response;
4696
4607
  };
4697
4608
  const de_ModifyAquaConfigurationCommandError = async (output, context) => {
4698
4609
  const parsedOutput = {
@@ -4712,10 +4623,9 @@ const de_ModifyAquaConfigurationCommandError = async (output, context) => {
4712
4623
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
4713
4624
  default:
4714
4625
  const parsedBody = parsedOutput.body;
4715
- throwDefaultError({
4626
+ return throwDefaultError({
4716
4627
  output,
4717
4628
  parsedBody: parsedBody.Error,
4718
- exceptionCtor: __BaseException,
4719
4629
  errorCode,
4720
4630
  });
4721
4631
  }
@@ -4731,7 +4641,7 @@ export const de_ModifyAuthenticationProfileCommand = async (output, context) =>
4731
4641
  $metadata: deserializeMetadata(output),
4732
4642
  ...contents,
4733
4643
  };
4734
- return Promise.resolve(response);
4644
+ return response;
4735
4645
  };
4736
4646
  const de_ModifyAuthenticationProfileCommandError = async (output, context) => {
4737
4647
  const parsedOutput = {
@@ -4751,10 +4661,9 @@ const de_ModifyAuthenticationProfileCommandError = async (output, context) => {
4751
4661
  throw await de_InvalidAuthenticationProfileRequestFaultRes(parsedOutput, context);
4752
4662
  default:
4753
4663
  const parsedBody = parsedOutput.body;
4754
- throwDefaultError({
4664
+ return throwDefaultError({
4755
4665
  output,
4756
4666
  parsedBody: parsedBody.Error,
4757
- exceptionCtor: __BaseException,
4758
4667
  errorCode,
4759
4668
  });
4760
4669
  }
@@ -4770,7 +4679,7 @@ export const de_ModifyClusterCommand = async (output, context) => {
4770
4679
  $metadata: deserializeMetadata(output),
4771
4680
  ...contents,
4772
4681
  };
4773
- return Promise.resolve(response);
4682
+ return response;
4774
4683
  };
4775
4684
  const de_ModifyClusterCommandError = async (output, context) => {
4776
4685
  const parsedOutput = {
@@ -4838,10 +4747,9 @@ const de_ModifyClusterCommandError = async (output, context) => {
4838
4747
  throw await de_UnsupportedOptionFaultRes(parsedOutput, context);
4839
4748
  default:
4840
4749
  const parsedBody = parsedOutput.body;
4841
- throwDefaultError({
4750
+ return throwDefaultError({
4842
4751
  output,
4843
4752
  parsedBody: parsedBody.Error,
4844
- exceptionCtor: __BaseException,
4845
4753
  errorCode,
4846
4754
  });
4847
4755
  }
@@ -4857,7 +4765,7 @@ export const de_ModifyClusterDbRevisionCommand = async (output, context) => {
4857
4765
  $metadata: deserializeMetadata(output),
4858
4766
  ...contents,
4859
4767
  };
4860
- return Promise.resolve(response);
4768
+ return response;
4861
4769
  };
4862
4770
  const de_ModifyClusterDbRevisionCommandError = async (output, context) => {
4863
4771
  const parsedOutput = {
@@ -4877,10 +4785,9 @@ const de_ModifyClusterDbRevisionCommandError = async (output, context) => {
4877
4785
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
4878
4786
  default:
4879
4787
  const parsedBody = parsedOutput.body;
4880
- throwDefaultError({
4788
+ return throwDefaultError({
4881
4789
  output,
4882
4790
  parsedBody: parsedBody.Error,
4883
- exceptionCtor: __BaseException,
4884
4791
  errorCode,
4885
4792
  });
4886
4793
  }
@@ -4896,7 +4803,7 @@ export const de_ModifyClusterIamRolesCommand = async (output, context) => {
4896
4803
  $metadata: deserializeMetadata(output),
4897
4804
  ...contents,
4898
4805
  };
4899
- return Promise.resolve(response);
4806
+ return response;
4900
4807
  };
4901
4808
  const de_ModifyClusterIamRolesCommandError = async (output, context) => {
4902
4809
  const parsedOutput = {
@@ -4913,10 +4820,9 @@ const de_ModifyClusterIamRolesCommandError = async (output, context) => {
4913
4820
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
4914
4821
  default:
4915
4822
  const parsedBody = parsedOutput.body;
4916
- throwDefaultError({
4823
+ return throwDefaultError({
4917
4824
  output,
4918
4825
  parsedBody: parsedBody.Error,
4919
- exceptionCtor: __BaseException,
4920
4826
  errorCode,
4921
4827
  });
4922
4828
  }
@@ -4932,7 +4838,7 @@ export const de_ModifyClusterMaintenanceCommand = async (output, context) => {
4932
4838
  $metadata: deserializeMetadata(output),
4933
4839
  ...contents,
4934
4840
  };
4935
- return Promise.resolve(response);
4841
+ return response;
4936
4842
  };
4937
4843
  const de_ModifyClusterMaintenanceCommandError = async (output, context) => {
4938
4844
  const parsedOutput = {
@@ -4949,10 +4855,9 @@ const de_ModifyClusterMaintenanceCommandError = async (output, context) => {
4949
4855
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
4950
4856
  default:
4951
4857
  const parsedBody = parsedOutput.body;
4952
- throwDefaultError({
4858
+ return throwDefaultError({
4953
4859
  output,
4954
4860
  parsedBody: parsedBody.Error,
4955
- exceptionCtor: __BaseException,
4956
4861
  errorCode,
4957
4862
  });
4958
4863
  }
@@ -4968,7 +4873,7 @@ export const de_ModifyClusterParameterGroupCommand = async (output, context) =>
4968
4873
  $metadata: deserializeMetadata(output),
4969
4874
  ...contents,
4970
4875
  };
4971
- return Promise.resolve(response);
4876
+ return response;
4972
4877
  };
4973
4878
  const de_ModifyClusterParameterGroupCommandError = async (output, context) => {
4974
4879
  const parsedOutput = {
@@ -4985,10 +4890,9 @@ const de_ModifyClusterParameterGroupCommandError = async (output, context) => {
4985
4890
  throw await de_InvalidClusterParameterGroupStateFaultRes(parsedOutput, context);
4986
4891
  default:
4987
4892
  const parsedBody = parsedOutput.body;
4988
- throwDefaultError({
4893
+ return throwDefaultError({
4989
4894
  output,
4990
4895
  parsedBody: parsedBody.Error,
4991
- exceptionCtor: __BaseException,
4992
4896
  errorCode,
4993
4897
  });
4994
4898
  }
@@ -5004,7 +4908,7 @@ export const de_ModifyClusterSnapshotCommand = async (output, context) => {
5004
4908
  $metadata: deserializeMetadata(output),
5005
4909
  ...contents,
5006
4910
  };
5007
- return Promise.resolve(response);
4911
+ return response;
5008
4912
  };
5009
4913
  const de_ModifyClusterSnapshotCommandError = async (output, context) => {
5010
4914
  const parsedOutput = {
@@ -5024,10 +4928,9 @@ const de_ModifyClusterSnapshotCommandError = async (output, context) => {
5024
4928
  throw await de_InvalidRetentionPeriodFaultRes(parsedOutput, context);
5025
4929
  default:
5026
4930
  const parsedBody = parsedOutput.body;
5027
- throwDefaultError({
4931
+ return throwDefaultError({
5028
4932
  output,
5029
4933
  parsedBody: parsedBody.Error,
5030
- exceptionCtor: __BaseException,
5031
4934
  errorCode,
5032
4935
  });
5033
4936
  }
@@ -5040,7 +4943,7 @@ export const de_ModifyClusterSnapshotScheduleCommand = async (output, context) =
5040
4943
  const response = {
5041
4944
  $metadata: deserializeMetadata(output),
5042
4945
  };
5043
- return Promise.resolve(response);
4946
+ return response;
5044
4947
  };
5045
4948
  const de_ModifyClusterSnapshotScheduleCommandError = async (output, context) => {
5046
4949
  const parsedOutput = {
@@ -5060,10 +4963,9 @@ const de_ModifyClusterSnapshotScheduleCommandError = async (output, context) =>
5060
4963
  throw await de_SnapshotScheduleNotFoundFaultRes(parsedOutput, context);
5061
4964
  default:
5062
4965
  const parsedBody = parsedOutput.body;
5063
- throwDefaultError({
4966
+ return throwDefaultError({
5064
4967
  output,
5065
4968
  parsedBody: parsedBody.Error,
5066
- exceptionCtor: __BaseException,
5067
4969
  errorCode,
5068
4970
  });
5069
4971
  }
@@ -5079,7 +4981,7 @@ export const de_ModifyClusterSubnetGroupCommand = async (output, context) => {
5079
4981
  $metadata: deserializeMetadata(output),
5080
4982
  ...contents,
5081
4983
  };
5082
- return Promise.resolve(response);
4984
+ return response;
5083
4985
  };
5084
4986
  const de_ModifyClusterSubnetGroupCommandError = async (output, context) => {
5085
4987
  const parsedOutput = {
@@ -5108,10 +5010,9 @@ const de_ModifyClusterSubnetGroupCommandError = async (output, context) => {
5108
5010
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
5109
5011
  default:
5110
5012
  const parsedBody = parsedOutput.body;
5111
- throwDefaultError({
5013
+ return throwDefaultError({
5112
5014
  output,
5113
5015
  parsedBody: parsedBody.Error,
5114
- exceptionCtor: __BaseException,
5115
5016
  errorCode,
5116
5017
  });
5117
5018
  }
@@ -5127,7 +5028,7 @@ export const de_ModifyEndpointAccessCommand = async (output, context) => {
5127
5028
  $metadata: deserializeMetadata(output),
5128
5029
  ...contents,
5129
5030
  };
5130
- return Promise.resolve(response);
5031
+ return response;
5131
5032
  };
5132
5033
  const de_ModifyEndpointAccessCommandError = async (output, context) => {
5133
5034
  const parsedOutput = {
@@ -5156,10 +5057,9 @@ const de_ModifyEndpointAccessCommandError = async (output, context) => {
5156
5057
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
5157
5058
  default:
5158
5059
  const parsedBody = parsedOutput.body;
5159
- throwDefaultError({
5060
+ return throwDefaultError({
5160
5061
  output,
5161
5062
  parsedBody: parsedBody.Error,
5162
- exceptionCtor: __BaseException,
5163
5063
  errorCode,
5164
5064
  });
5165
5065
  }
@@ -5175,7 +5075,7 @@ export const de_ModifyEventSubscriptionCommand = async (output, context) => {
5175
5075
  $metadata: deserializeMetadata(output),
5176
5076
  ...contents,
5177
5077
  };
5178
- return Promise.resolve(response);
5078
+ return response;
5179
5079
  };
5180
5080
  const de_ModifyEventSubscriptionCommandError = async (output, context) => {
5181
5081
  const parsedOutput = {
@@ -5213,10 +5113,9 @@ const de_ModifyEventSubscriptionCommandError = async (output, context) => {
5213
5113
  throw await de_SubscriptionSeverityNotFoundFaultRes(parsedOutput, context);
5214
5114
  default:
5215
5115
  const parsedBody = parsedOutput.body;
5216
- throwDefaultError({
5116
+ return throwDefaultError({
5217
5117
  output,
5218
5118
  parsedBody: parsedBody.Error,
5219
- exceptionCtor: __BaseException,
5220
5119
  errorCode,
5221
5120
  });
5222
5121
  }
@@ -5232,7 +5131,7 @@ export const de_ModifyScheduledActionCommand = async (output, context) => {
5232
5131
  $metadata: deserializeMetadata(output),
5233
5132
  ...contents,
5234
5133
  };
5235
- return Promise.resolve(response);
5134
+ return response;
5236
5135
  };
5237
5136
  const de_ModifyScheduledActionCommandError = async (output, context) => {
5238
5137
  const parsedOutput = {
@@ -5258,10 +5157,9 @@ const de_ModifyScheduledActionCommandError = async (output, context) => {
5258
5157
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
5259
5158
  default:
5260
5159
  const parsedBody = parsedOutput.body;
5261
- throwDefaultError({
5160
+ return throwDefaultError({
5262
5161
  output,
5263
5162
  parsedBody: parsedBody.Error,
5264
- exceptionCtor: __BaseException,
5265
5163
  errorCode,
5266
5164
  });
5267
5165
  }
@@ -5277,7 +5175,7 @@ export const de_ModifySnapshotCopyRetentionPeriodCommand = async (output, contex
5277
5175
  $metadata: deserializeMetadata(output),
5278
5176
  ...contents,
5279
5177
  };
5280
- return Promise.resolve(response);
5178
+ return response;
5281
5179
  };
5282
5180
  const de_ModifySnapshotCopyRetentionPeriodCommandError = async (output, context) => {
5283
5181
  const parsedOutput = {
@@ -5303,10 +5201,9 @@ const de_ModifySnapshotCopyRetentionPeriodCommandError = async (output, context)
5303
5201
  throw await de_UnauthorizedOperationRes(parsedOutput, context);
5304
5202
  default:
5305
5203
  const parsedBody = parsedOutput.body;
5306
- throwDefaultError({
5204
+ return throwDefaultError({
5307
5205
  output,
5308
5206
  parsedBody: parsedBody.Error,
5309
- exceptionCtor: __BaseException,
5310
5207
  errorCode,
5311
5208
  });
5312
5209
  }
@@ -5322,7 +5219,7 @@ export const de_ModifySnapshotScheduleCommand = async (output, context) => {
5322
5219
  $metadata: deserializeMetadata(output),
5323
5220
  ...contents,
5324
5221
  };
5325
- return Promise.resolve(response);
5222
+ return response;
5326
5223
  };
5327
5224
  const de_ModifySnapshotScheduleCommandError = async (output, context) => {
5328
5225
  const parsedOutput = {
@@ -5342,10 +5239,9 @@ const de_ModifySnapshotScheduleCommandError = async (output, context) => {
5342
5239
  throw await de_SnapshotScheduleUpdateInProgressFaultRes(parsedOutput, context);
5343
5240
  default:
5344
5241
  const parsedBody = parsedOutput.body;
5345
- throwDefaultError({
5242
+ return throwDefaultError({
5346
5243
  output,
5347
5244
  parsedBody: parsedBody.Error,
5348
- exceptionCtor: __BaseException,
5349
5245
  errorCode,
5350
5246
  });
5351
5247
  }
@@ -5361,7 +5257,7 @@ export const de_ModifyUsageLimitCommand = async (output, context) => {
5361
5257
  $metadata: deserializeMetadata(output),
5362
5258
  ...contents,
5363
5259
  };
5364
- return Promise.resolve(response);
5260
+ return response;
5365
5261
  };
5366
5262
  const de_ModifyUsageLimitCommandError = async (output, context) => {
5367
5263
  const parsedOutput = {
@@ -5381,10 +5277,9 @@ const de_ModifyUsageLimitCommandError = async (output, context) => {
5381
5277
  throw await de_UsageLimitNotFoundFaultRes(parsedOutput, context);
5382
5278
  default:
5383
5279
  const parsedBody = parsedOutput.body;
5384
- throwDefaultError({
5280
+ return throwDefaultError({
5385
5281
  output,
5386
5282
  parsedBody: parsedBody.Error,
5387
- exceptionCtor: __BaseException,
5388
5283
  errorCode,
5389
5284
  });
5390
5285
  }
@@ -5400,7 +5295,7 @@ export const de_PauseClusterCommand = async (output, context) => {
5400
5295
  $metadata: deserializeMetadata(output),
5401
5296
  ...contents,
5402
5297
  };
5403
- return Promise.resolve(response);
5298
+ return response;
5404
5299
  };
5405
5300
  const de_PauseClusterCommandError = async (output, context) => {
5406
5301
  const parsedOutput = {
@@ -5417,10 +5312,9 @@ const de_PauseClusterCommandError = async (output, context) => {
5417
5312
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
5418
5313
  default:
5419
5314
  const parsedBody = parsedOutput.body;
5420
- throwDefaultError({
5315
+ return throwDefaultError({
5421
5316
  output,
5422
5317
  parsedBody: parsedBody.Error,
5423
- exceptionCtor: __BaseException,
5424
5318
  errorCode,
5425
5319
  });
5426
5320
  }
@@ -5436,7 +5330,7 @@ export const de_PurchaseReservedNodeOfferingCommand = async (output, context) =>
5436
5330
  $metadata: deserializeMetadata(output),
5437
5331
  ...contents,
5438
5332
  };
5439
- return Promise.resolve(response);
5333
+ return response;
5440
5334
  };
5441
5335
  const de_PurchaseReservedNodeOfferingCommandError = async (output, context) => {
5442
5336
  const parsedOutput = {
@@ -5459,10 +5353,9 @@ const de_PurchaseReservedNodeOfferingCommandError = async (output, context) => {
5459
5353
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
5460
5354
  default:
5461
5355
  const parsedBody = parsedOutput.body;
5462
- throwDefaultError({
5356
+ return throwDefaultError({
5463
5357
  output,
5464
5358
  parsedBody: parsedBody.Error,
5465
- exceptionCtor: __BaseException,
5466
5359
  errorCode,
5467
5360
  });
5468
5361
  }
@@ -5478,7 +5371,7 @@ export const de_RebootClusterCommand = async (output, context) => {
5478
5371
  $metadata: deserializeMetadata(output),
5479
5372
  ...contents,
5480
5373
  };
5481
- return Promise.resolve(response);
5374
+ return response;
5482
5375
  };
5483
5376
  const de_RebootClusterCommandError = async (output, context) => {
5484
5377
  const parsedOutput = {
@@ -5495,10 +5388,9 @@ const de_RebootClusterCommandError = async (output, context) => {
5495
5388
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
5496
5389
  default:
5497
5390
  const parsedBody = parsedOutput.body;
5498
- throwDefaultError({
5391
+ return throwDefaultError({
5499
5392
  output,
5500
5393
  parsedBody: parsedBody.Error,
5501
- exceptionCtor: __BaseException,
5502
5394
  errorCode,
5503
5395
  });
5504
5396
  }
@@ -5514,7 +5406,7 @@ export const de_RejectDataShareCommand = async (output, context) => {
5514
5406
  $metadata: deserializeMetadata(output),
5515
5407
  ...contents,
5516
5408
  };
5517
- return Promise.resolve(response);
5409
+ return response;
5518
5410
  };
5519
5411
  const de_RejectDataShareCommandError = async (output, context) => {
5520
5412
  const parsedOutput = {
@@ -5528,10 +5420,9 @@ const de_RejectDataShareCommandError = async (output, context) => {
5528
5420
  throw await de_InvalidDataShareFaultRes(parsedOutput, context);
5529
5421
  default:
5530
5422
  const parsedBody = parsedOutput.body;
5531
- throwDefaultError({
5423
+ return throwDefaultError({
5532
5424
  output,
5533
5425
  parsedBody: parsedBody.Error,
5534
- exceptionCtor: __BaseException,
5535
5426
  errorCode,
5536
5427
  });
5537
5428
  }
@@ -5547,7 +5438,7 @@ export const de_ResetClusterParameterGroupCommand = async (output, context) => {
5547
5438
  $metadata: deserializeMetadata(output),
5548
5439
  ...contents,
5549
5440
  };
5550
- return Promise.resolve(response);
5441
+ return response;
5551
5442
  };
5552
5443
  const de_ResetClusterParameterGroupCommandError = async (output, context) => {
5553
5444
  const parsedOutput = {
@@ -5564,10 +5455,9 @@ const de_ResetClusterParameterGroupCommandError = async (output, context) => {
5564
5455
  throw await de_InvalidClusterParameterGroupStateFaultRes(parsedOutput, context);
5565
5456
  default:
5566
5457
  const parsedBody = parsedOutput.body;
5567
- throwDefaultError({
5458
+ return throwDefaultError({
5568
5459
  output,
5569
5460
  parsedBody: parsedBody.Error,
5570
- exceptionCtor: __BaseException,
5571
5461
  errorCode,
5572
5462
  });
5573
5463
  }
@@ -5583,7 +5473,7 @@ export const de_ResizeClusterCommand = async (output, context) => {
5583
5473
  $metadata: deserializeMetadata(output),
5584
5474
  ...contents,
5585
5475
  };
5586
- return Promise.resolve(response);
5476
+ return response;
5587
5477
  };
5588
5478
  const de_ResizeClusterCommandError = async (output, context) => {
5589
5479
  const parsedOutput = {
@@ -5639,10 +5529,9 @@ const de_ResizeClusterCommandError = async (output, context) => {
5639
5529
  throw await de_UnsupportedOptionFaultRes(parsedOutput, context);
5640
5530
  default:
5641
5531
  const parsedBody = parsedOutput.body;
5642
- throwDefaultError({
5532
+ return throwDefaultError({
5643
5533
  output,
5644
5534
  parsedBody: parsedBody.Error,
5645
- exceptionCtor: __BaseException,
5646
5535
  errorCode,
5647
5536
  });
5648
5537
  }
@@ -5658,7 +5547,7 @@ export const de_RestoreFromClusterSnapshotCommand = async (output, context) => {
5658
5547
  $metadata: deserializeMetadata(output),
5659
5548
  ...contents,
5660
5549
  };
5661
- return Promise.resolve(response);
5550
+ return response;
5662
5551
  };
5663
5552
  const de_RestoreFromClusterSnapshotCommandError = async (output, context) => {
5664
5553
  const parsedOutput = {
@@ -5765,10 +5654,9 @@ const de_RestoreFromClusterSnapshotCommandError = async (output, context) => {
5765
5654
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
5766
5655
  default:
5767
5656
  const parsedBody = parsedOutput.body;
5768
- throwDefaultError({
5657
+ return throwDefaultError({
5769
5658
  output,
5770
5659
  parsedBody: parsedBody.Error,
5771
- exceptionCtor: __BaseException,
5772
5660
  errorCode,
5773
5661
  });
5774
5662
  }
@@ -5784,7 +5672,7 @@ export const de_RestoreTableFromClusterSnapshotCommand = async (output, context)
5784
5672
  $metadata: deserializeMetadata(output),
5785
5673
  ...contents,
5786
5674
  };
5787
- return Promise.resolve(response);
5675
+ return response;
5788
5676
  };
5789
5677
  const de_RestoreTableFromClusterSnapshotCommandError = async (output, context) => {
5790
5678
  const parsedOutput = {
@@ -5816,10 +5704,9 @@ const de_RestoreTableFromClusterSnapshotCommandError = async (output, context) =
5816
5704
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
5817
5705
  default:
5818
5706
  const parsedBody = parsedOutput.body;
5819
- throwDefaultError({
5707
+ return throwDefaultError({
5820
5708
  output,
5821
5709
  parsedBody: parsedBody.Error,
5822
- exceptionCtor: __BaseException,
5823
5710
  errorCode,
5824
5711
  });
5825
5712
  }
@@ -5835,7 +5722,7 @@ export const de_ResumeClusterCommand = async (output, context) => {
5835
5722
  $metadata: deserializeMetadata(output),
5836
5723
  ...contents,
5837
5724
  };
5838
- return Promise.resolve(response);
5725
+ return response;
5839
5726
  };
5840
5727
  const de_ResumeClusterCommandError = async (output, context) => {
5841
5728
  const parsedOutput = {
@@ -5855,10 +5742,9 @@ const de_ResumeClusterCommandError = async (output, context) => {
5855
5742
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
5856
5743
  default:
5857
5744
  const parsedBody = parsedOutput.body;
5858
- throwDefaultError({
5745
+ return throwDefaultError({
5859
5746
  output,
5860
5747
  parsedBody: parsedBody.Error,
5861
- exceptionCtor: __BaseException,
5862
5748
  errorCode,
5863
5749
  });
5864
5750
  }
@@ -5874,7 +5760,7 @@ export const de_RevokeClusterSecurityGroupIngressCommand = async (output, contex
5874
5760
  $metadata: deserializeMetadata(output),
5875
5761
  ...contents,
5876
5762
  };
5877
- return Promise.resolve(response);
5763
+ return response;
5878
5764
  };
5879
5765
  const de_RevokeClusterSecurityGroupIngressCommandError = async (output, context) => {
5880
5766
  const parsedOutput = {
@@ -5894,10 +5780,9 @@ const de_RevokeClusterSecurityGroupIngressCommandError = async (output, context)
5894
5780
  throw await de_InvalidClusterSecurityGroupStateFaultRes(parsedOutput, context);
5895
5781
  default:
5896
5782
  const parsedBody = parsedOutput.body;
5897
- throwDefaultError({
5783
+ return throwDefaultError({
5898
5784
  output,
5899
5785
  parsedBody: parsedBody.Error,
5900
- exceptionCtor: __BaseException,
5901
5786
  errorCode,
5902
5787
  });
5903
5788
  }
@@ -5913,7 +5798,7 @@ export const de_RevokeEndpointAccessCommand = async (output, context) => {
5913
5798
  $metadata: deserializeMetadata(output),
5914
5799
  ...contents,
5915
5800
  };
5916
- return Promise.resolve(response);
5801
+ return response;
5917
5802
  };
5918
5803
  const de_RevokeEndpointAccessCommandError = async (output, context) => {
5919
5804
  const parsedOutput = {
@@ -5945,10 +5830,9 @@ const de_RevokeEndpointAccessCommandError = async (output, context) => {
5945
5830
  throw await de_InvalidEndpointStateFaultRes(parsedOutput, context);
5946
5831
  default:
5947
5832
  const parsedBody = parsedOutput.body;
5948
- throwDefaultError({
5833
+ return throwDefaultError({
5949
5834
  output,
5950
5835
  parsedBody: parsedBody.Error,
5951
- exceptionCtor: __BaseException,
5952
5836
  errorCode,
5953
5837
  });
5954
5838
  }
@@ -5964,7 +5848,7 @@ export const de_RevokeSnapshotAccessCommand = async (output, context) => {
5964
5848
  $metadata: deserializeMetadata(output),
5965
5849
  ...contents,
5966
5850
  };
5967
- return Promise.resolve(response);
5851
+ return response;
5968
5852
  };
5969
5853
  const de_RevokeSnapshotAccessCommandError = async (output, context) => {
5970
5854
  const parsedOutput = {
@@ -5987,10 +5871,9 @@ const de_RevokeSnapshotAccessCommandError = async (output, context) => {
5987
5871
  throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
5988
5872
  default:
5989
5873
  const parsedBody = parsedOutput.body;
5990
- throwDefaultError({
5874
+ return throwDefaultError({
5991
5875
  output,
5992
5876
  parsedBody: parsedBody.Error,
5993
- exceptionCtor: __BaseException,
5994
5877
  errorCode,
5995
5878
  });
5996
5879
  }
@@ -6006,7 +5889,7 @@ export const de_RotateEncryptionKeyCommand = async (output, context) => {
6006
5889
  $metadata: deserializeMetadata(output),
6007
5890
  ...contents,
6008
5891
  };
6009
- return Promise.resolve(response);
5892
+ return response;
6010
5893
  };
6011
5894
  const de_RotateEncryptionKeyCommandError = async (output, context) => {
6012
5895
  const parsedOutput = {
@@ -6026,10 +5909,9 @@ const de_RotateEncryptionKeyCommandError = async (output, context) => {
6026
5909
  throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
6027
5910
  default:
6028
5911
  const parsedBody = parsedOutput.body;
6029
- throwDefaultError({
5912
+ return throwDefaultError({
6030
5913
  output,
6031
5914
  parsedBody: parsedBody.Error,
6032
- exceptionCtor: __BaseException,
6033
5915
  errorCode,
6034
5916
  });
6035
5917
  }
@@ -6045,7 +5927,7 @@ export const de_UpdatePartnerStatusCommand = async (output, context) => {
6045
5927
  $metadata: deserializeMetadata(output),
6046
5928
  ...contents,
6047
5929
  };
6048
- return Promise.resolve(response);
5930
+ return response;
6049
5931
  };
6050
5932
  const de_UpdatePartnerStatusCommandError = async (output, context) => {
6051
5933
  const parsedOutput = {
@@ -6065,10 +5947,9 @@ const de_UpdatePartnerStatusCommandError = async (output, context) => {
6065
5947
  throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
6066
5948
  default:
6067
5949
  const parsedBody = parsedOutput.body;
6068
- throwDefaultError({
5950
+ return throwDefaultError({
6069
5951
  output,
6070
5952
  parsedBody: parsedBody.Error,
6071
- exceptionCtor: __BaseException,
6072
5953
  errorCode,
6073
5954
  });
6074
5955
  }
@@ -13995,6 +13876,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
13995
13876
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
13996
13877
  };
13997
13878
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
13879
+ const throwDefaultError = withBaseException(__BaseException);
13998
13880
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
13999
13881
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
14000
13882
  const contents = {