@aws-sdk/client-elasticache 3.312.0 → 3.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -734,7 +734,7 @@ const de_AddTagsToResourceCommand = async (output, context) => {
734
734
  $metadata: deserializeMetadata(output),
735
735
  ...contents,
736
736
  };
737
- return Promise.resolve(response);
737
+ return response;
738
738
  };
739
739
  exports.de_AddTagsToResourceCommand = de_AddTagsToResourceCommand;
740
740
  const de_AddTagsToResourceCommandError = async (output, context) => {
@@ -782,10 +782,9 @@ const de_AddTagsToResourceCommandError = async (output, context) => {
782
782
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
783
783
  default:
784
784
  const parsedBody = parsedOutput.body;
785
- (0, smithy_client_1.throwDefaultError)({
785
+ return throwDefaultError({
786
786
  output,
787
787
  parsedBody: parsedBody.Error,
788
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
789
788
  errorCode,
790
789
  });
791
790
  }
@@ -801,7 +800,7 @@ const de_AuthorizeCacheSecurityGroupIngressCommand = async (output, context) =>
801
800
  $metadata: deserializeMetadata(output),
802
801
  ...contents,
803
802
  };
804
- return Promise.resolve(response);
803
+ return response;
805
804
  };
806
805
  exports.de_AuthorizeCacheSecurityGroupIngressCommand = de_AuthorizeCacheSecurityGroupIngressCommand;
807
806
  const de_AuthorizeCacheSecurityGroupIngressCommandError = async (output, context) => {
@@ -828,10 +827,9 @@ const de_AuthorizeCacheSecurityGroupIngressCommandError = async (output, context
828
827
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
829
828
  default:
830
829
  const parsedBody = parsedOutput.body;
831
- (0, smithy_client_1.throwDefaultError)({
830
+ return throwDefaultError({
832
831
  output,
833
832
  parsedBody: parsedBody.Error,
834
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
835
833
  errorCode,
836
834
  });
837
835
  }
@@ -847,7 +845,7 @@ const de_BatchApplyUpdateActionCommand = async (output, context) => {
847
845
  $metadata: deserializeMetadata(output),
848
846
  ...contents,
849
847
  };
850
- return Promise.resolve(response);
848
+ return response;
851
849
  };
852
850
  exports.de_BatchApplyUpdateActionCommand = de_BatchApplyUpdateActionCommand;
853
851
  const de_BatchApplyUpdateActionCommandError = async (output, context) => {
@@ -865,10 +863,9 @@ const de_BatchApplyUpdateActionCommandError = async (output, context) => {
865
863
  throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
866
864
  default:
867
865
  const parsedBody = parsedOutput.body;
868
- (0, smithy_client_1.throwDefaultError)({
866
+ return throwDefaultError({
869
867
  output,
870
868
  parsedBody: parsedBody.Error,
871
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
872
869
  errorCode,
873
870
  });
874
871
  }
@@ -884,7 +881,7 @@ const de_BatchStopUpdateActionCommand = async (output, context) => {
884
881
  $metadata: deserializeMetadata(output),
885
882
  ...contents,
886
883
  };
887
- return Promise.resolve(response);
884
+ return response;
888
885
  };
889
886
  exports.de_BatchStopUpdateActionCommand = de_BatchStopUpdateActionCommand;
890
887
  const de_BatchStopUpdateActionCommandError = async (output, context) => {
@@ -902,10 +899,9 @@ const de_BatchStopUpdateActionCommandError = async (output, context) => {
902
899
  throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
903
900
  default:
904
901
  const parsedBody = parsedOutput.body;
905
- (0, smithy_client_1.throwDefaultError)({
902
+ return throwDefaultError({
906
903
  output,
907
904
  parsedBody: parsedBody.Error,
908
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
909
905
  errorCode,
910
906
  });
911
907
  }
@@ -921,7 +917,7 @@ const de_CompleteMigrationCommand = async (output, context) => {
921
917
  $metadata: deserializeMetadata(output),
922
918
  ...contents,
923
919
  };
924
- return Promise.resolve(response);
920
+ return response;
925
921
  };
926
922
  exports.de_CompleteMigrationCommand = de_CompleteMigrationCommand;
927
923
  const de_CompleteMigrationCommandError = async (output, context) => {
@@ -942,10 +938,9 @@ const de_CompleteMigrationCommandError = async (output, context) => {
942
938
  throw await de_ReplicationGroupNotUnderMigrationFaultRes(parsedOutput, context);
943
939
  default:
944
940
  const parsedBody = parsedOutput.body;
945
- (0, smithy_client_1.throwDefaultError)({
941
+ return throwDefaultError({
946
942
  output,
947
943
  parsedBody: parsedBody.Error,
948
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
949
944
  errorCode,
950
945
  });
951
946
  }
@@ -961,7 +956,7 @@ const de_CopySnapshotCommand = async (output, context) => {
961
956
  $metadata: deserializeMetadata(output),
962
957
  ...contents,
963
958
  };
964
- return Promise.resolve(response);
959
+ return response;
965
960
  };
966
961
  exports.de_CopySnapshotCommand = de_CopySnapshotCommand;
967
962
  const de_CopySnapshotCommandError = async (output, context) => {
@@ -994,10 +989,9 @@ const de_CopySnapshotCommandError = async (output, context) => {
994
989
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
995
990
  default:
996
991
  const parsedBody = parsedOutput.body;
997
- (0, smithy_client_1.throwDefaultError)({
992
+ return throwDefaultError({
998
993
  output,
999
994
  parsedBody: parsedBody.Error,
1000
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1001
995
  errorCode,
1002
996
  });
1003
997
  }
@@ -1013,7 +1007,7 @@ const de_CreateCacheClusterCommand = async (output, context) => {
1013
1007
  $metadata: deserializeMetadata(output),
1014
1008
  ...contents,
1015
1009
  };
1016
- return Promise.resolve(response);
1010
+ return response;
1017
1011
  };
1018
1012
  exports.de_CreateCacheClusterCommand = de_CreateCacheClusterCommand;
1019
1013
  const de_CreateCacheClusterCommandError = async (output, context) => {
@@ -1067,10 +1061,9 @@ const de_CreateCacheClusterCommandError = async (output, context) => {
1067
1061
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1068
1062
  default:
1069
1063
  const parsedBody = parsedOutput.body;
1070
- (0, smithy_client_1.throwDefaultError)({
1064
+ return throwDefaultError({
1071
1065
  output,
1072
1066
  parsedBody: parsedBody.Error,
1073
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1074
1067
  errorCode,
1075
1068
  });
1076
1069
  }
@@ -1086,7 +1079,7 @@ const de_CreateCacheParameterGroupCommand = async (output, context) => {
1086
1079
  $metadata: deserializeMetadata(output),
1087
1080
  ...contents,
1088
1081
  };
1089
- return Promise.resolve(response);
1082
+ return response;
1090
1083
  };
1091
1084
  exports.de_CreateCacheParameterGroupCommand = de_CreateCacheParameterGroupCommand;
1092
1085
  const de_CreateCacheParameterGroupCommandError = async (output, context) => {
@@ -1116,10 +1109,9 @@ const de_CreateCacheParameterGroupCommandError = async (output, context) => {
1116
1109
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1117
1110
  default:
1118
1111
  const parsedBody = parsedOutput.body;
1119
- (0, smithy_client_1.throwDefaultError)({
1112
+ return throwDefaultError({
1120
1113
  output,
1121
1114
  parsedBody: parsedBody.Error,
1122
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1123
1115
  errorCode,
1124
1116
  });
1125
1117
  }
@@ -1135,7 +1127,7 @@ const de_CreateCacheSecurityGroupCommand = async (output, context) => {
1135
1127
  $metadata: deserializeMetadata(output),
1136
1128
  ...contents,
1137
1129
  };
1138
- return Promise.resolve(response);
1130
+ return response;
1139
1131
  };
1140
1132
  exports.de_CreateCacheSecurityGroupCommand = de_CreateCacheSecurityGroupCommand;
1141
1133
  const de_CreateCacheSecurityGroupCommandError = async (output, context) => {
@@ -1162,10 +1154,9 @@ const de_CreateCacheSecurityGroupCommandError = async (output, context) => {
1162
1154
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1163
1155
  default:
1164
1156
  const parsedBody = parsedOutput.body;
1165
- (0, smithy_client_1.throwDefaultError)({
1157
+ return throwDefaultError({
1166
1158
  output,
1167
1159
  parsedBody: parsedBody.Error,
1168
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1169
1160
  errorCode,
1170
1161
  });
1171
1162
  }
@@ -1181,7 +1172,7 @@ const de_CreateCacheSubnetGroupCommand = async (output, context) => {
1181
1172
  $metadata: deserializeMetadata(output),
1182
1173
  ...contents,
1183
1174
  };
1184
- return Promise.resolve(response);
1175
+ return response;
1185
1176
  };
1186
1177
  exports.de_CreateCacheSubnetGroupCommand = de_CreateCacheSubnetGroupCommand;
1187
1178
  const de_CreateCacheSubnetGroupCommandError = async (output, context) => {
@@ -1211,10 +1202,9 @@ const de_CreateCacheSubnetGroupCommandError = async (output, context) => {
1211
1202
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1212
1203
  default:
1213
1204
  const parsedBody = parsedOutput.body;
1214
- (0, smithy_client_1.throwDefaultError)({
1205
+ return throwDefaultError({
1215
1206
  output,
1216
1207
  parsedBody: parsedBody.Error,
1217
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1218
1208
  errorCode,
1219
1209
  });
1220
1210
  }
@@ -1230,7 +1220,7 @@ const de_CreateGlobalReplicationGroupCommand = async (output, context) => {
1230
1220
  $metadata: deserializeMetadata(output),
1231
1221
  ...contents,
1232
1222
  };
1233
- return Promise.resolve(response);
1223
+ return response;
1234
1224
  };
1235
1225
  exports.de_CreateGlobalReplicationGroupCommand = de_CreateGlobalReplicationGroupCommand;
1236
1226
  const de_CreateGlobalReplicationGroupCommandError = async (output, context) => {
@@ -1257,10 +1247,9 @@ const de_CreateGlobalReplicationGroupCommandError = async (output, context) => {
1257
1247
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1258
1248
  default:
1259
1249
  const parsedBody = parsedOutput.body;
1260
- (0, smithy_client_1.throwDefaultError)({
1250
+ return throwDefaultError({
1261
1251
  output,
1262
1252
  parsedBody: parsedBody.Error,
1263
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1264
1253
  errorCode,
1265
1254
  });
1266
1255
  }
@@ -1276,7 +1265,7 @@ const de_CreateReplicationGroupCommand = async (output, context) => {
1276
1265
  $metadata: deserializeMetadata(output),
1277
1266
  ...contents,
1278
1267
  };
1279
- return Promise.resolve(response);
1268
+ return response;
1280
1269
  };
1281
1270
  exports.de_CreateReplicationGroupCommand = de_CreateReplicationGroupCommand;
1282
1271
  const de_CreateReplicationGroupCommandError = async (output, context) => {
@@ -1345,10 +1334,9 @@ const de_CreateReplicationGroupCommandError = async (output, context) => {
1345
1334
  throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
1346
1335
  default:
1347
1336
  const parsedBody = parsedOutput.body;
1348
- (0, smithy_client_1.throwDefaultError)({
1337
+ return throwDefaultError({
1349
1338
  output,
1350
1339
  parsedBody: parsedBody.Error,
1351
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1352
1340
  errorCode,
1353
1341
  });
1354
1342
  }
@@ -1364,7 +1352,7 @@ const de_CreateSnapshotCommand = async (output, context) => {
1364
1352
  $metadata: deserializeMetadata(output),
1365
1353
  ...contents,
1366
1354
  };
1367
- return Promise.resolve(response);
1355
+ return response;
1368
1356
  };
1369
1357
  exports.de_CreateSnapshotCommand = de_CreateSnapshotCommand;
1370
1358
  const de_CreateSnapshotCommandError = async (output, context) => {
@@ -1406,10 +1394,9 @@ const de_CreateSnapshotCommandError = async (output, context) => {
1406
1394
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1407
1395
  default:
1408
1396
  const parsedBody = parsedOutput.body;
1409
- (0, smithy_client_1.throwDefaultError)({
1397
+ return throwDefaultError({
1410
1398
  output,
1411
1399
  parsedBody: parsedBody.Error,
1412
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1413
1400
  errorCode,
1414
1401
  });
1415
1402
  }
@@ -1425,7 +1412,7 @@ const de_CreateUserCommand = async (output, context) => {
1425
1412
  $metadata: deserializeMetadata(output),
1426
1413
  ...contents,
1427
1414
  };
1428
- return Promise.resolve(response);
1415
+ return response;
1429
1416
  };
1430
1417
  exports.de_CreateUserCommand = de_CreateUserCommand;
1431
1418
  const de_CreateUserCommandError = async (output, context) => {
@@ -1458,10 +1445,9 @@ const de_CreateUserCommandError = async (output, context) => {
1458
1445
  throw await de_UserQuotaExceededFaultRes(parsedOutput, context);
1459
1446
  default:
1460
1447
  const parsedBody = parsedOutput.body;
1461
- (0, smithy_client_1.throwDefaultError)({
1448
+ return throwDefaultError({
1462
1449
  output,
1463
1450
  parsedBody: parsedBody.Error,
1464
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1465
1451
  errorCode,
1466
1452
  });
1467
1453
  }
@@ -1477,7 +1463,7 @@ const de_CreateUserGroupCommand = async (output, context) => {
1477
1463
  $metadata: deserializeMetadata(output),
1478
1464
  ...contents,
1479
1465
  };
1480
- return Promise.resolve(response);
1466
+ return response;
1481
1467
  };
1482
1468
  exports.de_CreateUserGroupCommand = de_CreateUserGroupCommand;
1483
1469
  const de_CreateUserGroupCommandError = async (output, context) => {
@@ -1513,10 +1499,9 @@ const de_CreateUserGroupCommandError = async (output, context) => {
1513
1499
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
1514
1500
  default:
1515
1501
  const parsedBody = parsedOutput.body;
1516
- (0, smithy_client_1.throwDefaultError)({
1502
+ return throwDefaultError({
1517
1503
  output,
1518
1504
  parsedBody: parsedBody.Error,
1519
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1520
1505
  errorCode,
1521
1506
  });
1522
1507
  }
@@ -1532,7 +1517,7 @@ const de_DecreaseNodeGroupsInGlobalReplicationGroupCommand = async (output, cont
1532
1517
  $metadata: deserializeMetadata(output),
1533
1518
  ...contents,
1534
1519
  };
1535
- return Promise.resolve(response);
1520
+ return response;
1536
1521
  };
1537
1522
  exports.de_DecreaseNodeGroupsInGlobalReplicationGroupCommand = de_DecreaseNodeGroupsInGlobalReplicationGroupCommand;
1538
1523
  const de_DecreaseNodeGroupsInGlobalReplicationGroupCommandError = async (output, context) => {
@@ -1556,10 +1541,9 @@ const de_DecreaseNodeGroupsInGlobalReplicationGroupCommandError = async (output,
1556
1541
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1557
1542
  default:
1558
1543
  const parsedBody = parsedOutput.body;
1559
- (0, smithy_client_1.throwDefaultError)({
1544
+ return throwDefaultError({
1560
1545
  output,
1561
1546
  parsedBody: parsedBody.Error,
1562
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1563
1547
  errorCode,
1564
1548
  });
1565
1549
  }
@@ -1575,7 +1559,7 @@ const de_DecreaseReplicaCountCommand = async (output, context) => {
1575
1559
  $metadata: deserializeMetadata(output),
1576
1560
  ...contents,
1577
1561
  };
1578
- return Promise.resolve(response);
1562
+ return response;
1579
1563
  };
1580
1564
  exports.de_DecreaseReplicaCountCommand = de_DecreaseReplicaCountCommand;
1581
1565
  const de_DecreaseReplicaCountCommandError = async (output, context) => {
@@ -1623,10 +1607,9 @@ const de_DecreaseReplicaCountCommandError = async (output, context) => {
1623
1607
  throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1624
1608
  default:
1625
1609
  const parsedBody = parsedOutput.body;
1626
- (0, smithy_client_1.throwDefaultError)({
1610
+ return throwDefaultError({
1627
1611
  output,
1628
1612
  parsedBody: parsedBody.Error,
1629
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1630
1613
  errorCode,
1631
1614
  });
1632
1615
  }
@@ -1642,7 +1625,7 @@ const de_DeleteCacheClusterCommand = async (output, context) => {
1642
1625
  $metadata: deserializeMetadata(output),
1643
1626
  ...contents,
1644
1627
  };
1645
- return Promise.resolve(response);
1628
+ return response;
1646
1629
  };
1647
1630
  exports.de_DeleteCacheClusterCommand = de_DeleteCacheClusterCommand;
1648
1631
  const de_DeleteCacheClusterCommandError = async (output, context) => {
@@ -1675,10 +1658,9 @@ const de_DeleteCacheClusterCommandError = async (output, context) => {
1675
1658
  throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
1676
1659
  default:
1677
1660
  const parsedBody = parsedOutput.body;
1678
- (0, smithy_client_1.throwDefaultError)({
1661
+ return throwDefaultError({
1679
1662
  output,
1680
1663
  parsedBody: parsedBody.Error,
1681
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1682
1664
  errorCode,
1683
1665
  });
1684
1666
  }
@@ -1691,7 +1673,7 @@ const de_DeleteCacheParameterGroupCommand = async (output, context) => {
1691
1673
  const response = {
1692
1674
  $metadata: deserializeMetadata(output),
1693
1675
  };
1694
- return Promise.resolve(response);
1676
+ return response;
1695
1677
  };
1696
1678
  exports.de_DeleteCacheParameterGroupCommand = de_DeleteCacheParameterGroupCommand;
1697
1679
  const de_DeleteCacheParameterGroupCommandError = async (output, context) => {
@@ -1715,10 +1697,9 @@ const de_DeleteCacheParameterGroupCommandError = async (output, context) => {
1715
1697
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1716
1698
  default:
1717
1699
  const parsedBody = parsedOutput.body;
1718
- (0, smithy_client_1.throwDefaultError)({
1700
+ return throwDefaultError({
1719
1701
  output,
1720
1702
  parsedBody: parsedBody.Error,
1721
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1722
1703
  errorCode,
1723
1704
  });
1724
1705
  }
@@ -1731,7 +1712,7 @@ const de_DeleteCacheSecurityGroupCommand = async (output, context) => {
1731
1712
  const response = {
1732
1713
  $metadata: deserializeMetadata(output),
1733
1714
  };
1734
- return Promise.resolve(response);
1715
+ return response;
1735
1716
  };
1736
1717
  exports.de_DeleteCacheSecurityGroupCommand = de_DeleteCacheSecurityGroupCommand;
1737
1718
  const de_DeleteCacheSecurityGroupCommandError = async (output, context) => {
@@ -1755,10 +1736,9 @@ const de_DeleteCacheSecurityGroupCommandError = async (output, context) => {
1755
1736
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1756
1737
  default:
1757
1738
  const parsedBody = parsedOutput.body;
1758
- (0, smithy_client_1.throwDefaultError)({
1739
+ return throwDefaultError({
1759
1740
  output,
1760
1741
  parsedBody: parsedBody.Error,
1761
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1762
1742
  errorCode,
1763
1743
  });
1764
1744
  }
@@ -1771,7 +1751,7 @@ const de_DeleteCacheSubnetGroupCommand = async (output, context) => {
1771
1751
  const response = {
1772
1752
  $metadata: deserializeMetadata(output),
1773
1753
  };
1774
- return Promise.resolve(response);
1754
+ return response;
1775
1755
  };
1776
1756
  exports.de_DeleteCacheSubnetGroupCommand = de_DeleteCacheSubnetGroupCommand;
1777
1757
  const de_DeleteCacheSubnetGroupCommandError = async (output, context) => {
@@ -1789,10 +1769,9 @@ const de_DeleteCacheSubnetGroupCommandError = async (output, context) => {
1789
1769
  throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
1790
1770
  default:
1791
1771
  const parsedBody = parsedOutput.body;
1792
- (0, smithy_client_1.throwDefaultError)({
1772
+ return throwDefaultError({
1793
1773
  output,
1794
1774
  parsedBody: parsedBody.Error,
1795
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1796
1775
  errorCode,
1797
1776
  });
1798
1777
  }
@@ -1808,7 +1787,7 @@ const de_DeleteGlobalReplicationGroupCommand = async (output, context) => {
1808
1787
  $metadata: deserializeMetadata(output),
1809
1788
  ...contents,
1810
1789
  };
1811
- return Promise.resolve(response);
1790
+ return response;
1812
1791
  };
1813
1792
  exports.de_DeleteGlobalReplicationGroupCommand = de_DeleteGlobalReplicationGroupCommand;
1814
1793
  const de_DeleteGlobalReplicationGroupCommandError = async (output, context) => {
@@ -1829,10 +1808,9 @@ const de_DeleteGlobalReplicationGroupCommandError = async (output, context) => {
1829
1808
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1830
1809
  default:
1831
1810
  const parsedBody = parsedOutput.body;
1832
- (0, smithy_client_1.throwDefaultError)({
1811
+ return throwDefaultError({
1833
1812
  output,
1834
1813
  parsedBody: parsedBody.Error,
1835
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1836
1814
  errorCode,
1837
1815
  });
1838
1816
  }
@@ -1848,7 +1826,7 @@ const de_DeleteReplicationGroupCommand = async (output, context) => {
1848
1826
  $metadata: deserializeMetadata(output),
1849
1827
  ...contents,
1850
1828
  };
1851
- return Promise.resolve(response);
1829
+ return response;
1852
1830
  };
1853
1831
  exports.de_DeleteReplicationGroupCommand = de_DeleteReplicationGroupCommand;
1854
1832
  const de_DeleteReplicationGroupCommandError = async (output, context) => {
@@ -1881,10 +1859,9 @@ const de_DeleteReplicationGroupCommandError = async (output, context) => {
1881
1859
  throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
1882
1860
  default:
1883
1861
  const parsedBody = parsedOutput.body;
1884
- (0, smithy_client_1.throwDefaultError)({
1862
+ return throwDefaultError({
1885
1863
  output,
1886
1864
  parsedBody: parsedBody.Error,
1887
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1888
1865
  errorCode,
1889
1866
  });
1890
1867
  }
@@ -1900,7 +1877,7 @@ const de_DeleteSnapshotCommand = async (output, context) => {
1900
1877
  $metadata: deserializeMetadata(output),
1901
1878
  ...contents,
1902
1879
  };
1903
- return Promise.resolve(response);
1880
+ return response;
1904
1881
  };
1905
1882
  exports.de_DeleteSnapshotCommand = de_DeleteSnapshotCommand;
1906
1883
  const de_DeleteSnapshotCommandError = async (output, context) => {
@@ -1924,10 +1901,9 @@ const de_DeleteSnapshotCommandError = async (output, context) => {
1924
1901
  throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
1925
1902
  default:
1926
1903
  const parsedBody = parsedOutput.body;
1927
- (0, smithy_client_1.throwDefaultError)({
1904
+ return throwDefaultError({
1928
1905
  output,
1929
1906
  parsedBody: parsedBody.Error,
1930
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1931
1907
  errorCode,
1932
1908
  });
1933
1909
  }
@@ -1943,7 +1919,7 @@ const de_DeleteUserCommand = async (output, context) => {
1943
1919
  $metadata: deserializeMetadata(output),
1944
1920
  ...contents,
1945
1921
  };
1946
- return Promise.resolve(response);
1922
+ return response;
1947
1923
  };
1948
1924
  exports.de_DeleteUserCommand = de_DeleteUserCommand;
1949
1925
  const de_DeleteUserCommandError = async (output, context) => {
@@ -1970,10 +1946,9 @@ const de_DeleteUserCommandError = async (output, context) => {
1970
1946
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
1971
1947
  default:
1972
1948
  const parsedBody = parsedOutput.body;
1973
- (0, smithy_client_1.throwDefaultError)({
1949
+ return throwDefaultError({
1974
1950
  output,
1975
1951
  parsedBody: parsedBody.Error,
1976
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
1977
1952
  errorCode,
1978
1953
  });
1979
1954
  }
@@ -1989,7 +1964,7 @@ const de_DeleteUserGroupCommand = async (output, context) => {
1989
1964
  $metadata: deserializeMetadata(output),
1990
1965
  ...contents,
1991
1966
  };
1992
- return Promise.resolve(response);
1967
+ return response;
1993
1968
  };
1994
1969
  exports.de_DeleteUserGroupCommand = de_DeleteUserGroupCommand;
1995
1970
  const de_DeleteUserGroupCommandError = async (output, context) => {
@@ -2013,10 +1988,9 @@ const de_DeleteUserGroupCommandError = async (output, context) => {
2013
1988
  throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
2014
1989
  default:
2015
1990
  const parsedBody = parsedOutput.body;
2016
- (0, smithy_client_1.throwDefaultError)({
1991
+ return throwDefaultError({
2017
1992
  output,
2018
1993
  parsedBody: parsedBody.Error,
2019
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2020
1994
  errorCode,
2021
1995
  });
2022
1996
  }
@@ -2032,7 +2006,7 @@ const de_DescribeCacheClustersCommand = async (output, context) => {
2032
2006
  $metadata: deserializeMetadata(output),
2033
2007
  ...contents,
2034
2008
  };
2035
- return Promise.resolve(response);
2009
+ return response;
2036
2010
  };
2037
2011
  exports.de_DescribeCacheClustersCommand = de_DescribeCacheClustersCommand;
2038
2012
  const de_DescribeCacheClustersCommandError = async (output, context) => {
@@ -2053,10 +2027,9 @@ const de_DescribeCacheClustersCommandError = async (output, context) => {
2053
2027
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2054
2028
  default:
2055
2029
  const parsedBody = parsedOutput.body;
2056
- (0, smithy_client_1.throwDefaultError)({
2030
+ return throwDefaultError({
2057
2031
  output,
2058
2032
  parsedBody: parsedBody.Error,
2059
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2060
2033
  errorCode,
2061
2034
  });
2062
2035
  }
@@ -2072,7 +2045,7 @@ const de_DescribeCacheEngineVersionsCommand = async (output, context) => {
2072
2045
  $metadata: deserializeMetadata(output),
2073
2046
  ...contents,
2074
2047
  };
2075
- return Promise.resolve(response);
2048
+ return response;
2076
2049
  };
2077
2050
  exports.de_DescribeCacheEngineVersionsCommand = de_DescribeCacheEngineVersionsCommand;
2078
2051
  const de_DescribeCacheEngineVersionsCommandError = async (output, context) => {
@@ -2082,10 +2055,9 @@ const de_DescribeCacheEngineVersionsCommandError = async (output, context) => {
2082
2055
  };
2083
2056
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2084
2057
  const parsedBody = parsedOutput.body;
2085
- (0, smithy_client_1.throwDefaultError)({
2058
+ return throwDefaultError({
2086
2059
  output,
2087
2060
  parsedBody: parsedBody.Error,
2088
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2089
2061
  errorCode,
2090
2062
  });
2091
2063
  };
@@ -2100,7 +2072,7 @@ const de_DescribeCacheParameterGroupsCommand = async (output, context) => {
2100
2072
  $metadata: deserializeMetadata(output),
2101
2073
  ...contents,
2102
2074
  };
2103
- return Promise.resolve(response);
2075
+ return response;
2104
2076
  };
2105
2077
  exports.de_DescribeCacheParameterGroupsCommand = de_DescribeCacheParameterGroupsCommand;
2106
2078
  const de_DescribeCacheParameterGroupsCommandError = async (output, context) => {
@@ -2121,10 +2093,9 @@ const de_DescribeCacheParameterGroupsCommandError = async (output, context) => {
2121
2093
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2122
2094
  default:
2123
2095
  const parsedBody = parsedOutput.body;
2124
- (0, smithy_client_1.throwDefaultError)({
2096
+ return throwDefaultError({
2125
2097
  output,
2126
2098
  parsedBody: parsedBody.Error,
2127
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2128
2099
  errorCode,
2129
2100
  });
2130
2101
  }
@@ -2140,7 +2111,7 @@ const de_DescribeCacheParametersCommand = async (output, context) => {
2140
2111
  $metadata: deserializeMetadata(output),
2141
2112
  ...contents,
2142
2113
  };
2143
- return Promise.resolve(response);
2114
+ return response;
2144
2115
  };
2145
2116
  exports.de_DescribeCacheParametersCommand = de_DescribeCacheParametersCommand;
2146
2117
  const de_DescribeCacheParametersCommandError = async (output, context) => {
@@ -2161,10 +2132,9 @@ const de_DescribeCacheParametersCommandError = async (output, context) => {
2161
2132
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2162
2133
  default:
2163
2134
  const parsedBody = parsedOutput.body;
2164
- (0, smithy_client_1.throwDefaultError)({
2135
+ return throwDefaultError({
2165
2136
  output,
2166
2137
  parsedBody: parsedBody.Error,
2167
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2168
2138
  errorCode,
2169
2139
  });
2170
2140
  }
@@ -2180,7 +2150,7 @@ const de_DescribeCacheSecurityGroupsCommand = async (output, context) => {
2180
2150
  $metadata: deserializeMetadata(output),
2181
2151
  ...contents,
2182
2152
  };
2183
- return Promise.resolve(response);
2153
+ return response;
2184
2154
  };
2185
2155
  exports.de_DescribeCacheSecurityGroupsCommand = de_DescribeCacheSecurityGroupsCommand;
2186
2156
  const de_DescribeCacheSecurityGroupsCommandError = async (output, context) => {
@@ -2201,10 +2171,9 @@ const de_DescribeCacheSecurityGroupsCommandError = async (output, context) => {
2201
2171
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2202
2172
  default:
2203
2173
  const parsedBody = parsedOutput.body;
2204
- (0, smithy_client_1.throwDefaultError)({
2174
+ return throwDefaultError({
2205
2175
  output,
2206
2176
  parsedBody: parsedBody.Error,
2207
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2208
2177
  errorCode,
2209
2178
  });
2210
2179
  }
@@ -2220,7 +2189,7 @@ const de_DescribeCacheSubnetGroupsCommand = async (output, context) => {
2220
2189
  $metadata: deserializeMetadata(output),
2221
2190
  ...contents,
2222
2191
  };
2223
- return Promise.resolve(response);
2192
+ return response;
2224
2193
  };
2225
2194
  exports.de_DescribeCacheSubnetGroupsCommand = de_DescribeCacheSubnetGroupsCommand;
2226
2195
  const de_DescribeCacheSubnetGroupsCommandError = async (output, context) => {
@@ -2235,10 +2204,9 @@ const de_DescribeCacheSubnetGroupsCommandError = async (output, context) => {
2235
2204
  throw await de_CacheSubnetGroupNotFoundFaultRes(parsedOutput, context);
2236
2205
  default:
2237
2206
  const parsedBody = parsedOutput.body;
2238
- (0, smithy_client_1.throwDefaultError)({
2207
+ return throwDefaultError({
2239
2208
  output,
2240
2209
  parsedBody: parsedBody.Error,
2241
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2242
2210
  errorCode,
2243
2211
  });
2244
2212
  }
@@ -2254,7 +2222,7 @@ const de_DescribeEngineDefaultParametersCommand = async (output, context) => {
2254
2222
  $metadata: deserializeMetadata(output),
2255
2223
  ...contents,
2256
2224
  };
2257
- return Promise.resolve(response);
2225
+ return response;
2258
2226
  };
2259
2227
  exports.de_DescribeEngineDefaultParametersCommand = de_DescribeEngineDefaultParametersCommand;
2260
2228
  const de_DescribeEngineDefaultParametersCommandError = async (output, context) => {
@@ -2272,10 +2240,9 @@ const de_DescribeEngineDefaultParametersCommandError = async (output, context) =
2272
2240
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2273
2241
  default:
2274
2242
  const parsedBody = parsedOutput.body;
2275
- (0, smithy_client_1.throwDefaultError)({
2243
+ return throwDefaultError({
2276
2244
  output,
2277
2245
  parsedBody: parsedBody.Error,
2278
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2279
2246
  errorCode,
2280
2247
  });
2281
2248
  }
@@ -2291,7 +2258,7 @@ const de_DescribeEventsCommand = async (output, context) => {
2291
2258
  $metadata: deserializeMetadata(output),
2292
2259
  ...contents,
2293
2260
  };
2294
- return Promise.resolve(response);
2261
+ return response;
2295
2262
  };
2296
2263
  exports.de_DescribeEventsCommand = de_DescribeEventsCommand;
2297
2264
  const de_DescribeEventsCommandError = async (output, context) => {
@@ -2309,10 +2276,9 @@ const de_DescribeEventsCommandError = async (output, context) => {
2309
2276
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2310
2277
  default:
2311
2278
  const parsedBody = parsedOutput.body;
2312
- (0, smithy_client_1.throwDefaultError)({
2279
+ return throwDefaultError({
2313
2280
  output,
2314
2281
  parsedBody: parsedBody.Error,
2315
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2316
2282
  errorCode,
2317
2283
  });
2318
2284
  }
@@ -2328,7 +2294,7 @@ const de_DescribeGlobalReplicationGroupsCommand = async (output, context) => {
2328
2294
  $metadata: deserializeMetadata(output),
2329
2295
  ...contents,
2330
2296
  };
2331
- return Promise.resolve(response);
2297
+ return response;
2332
2298
  };
2333
2299
  exports.de_DescribeGlobalReplicationGroupsCommand = de_DescribeGlobalReplicationGroupsCommand;
2334
2300
  const de_DescribeGlobalReplicationGroupsCommandError = async (output, context) => {
@@ -2349,10 +2315,9 @@ const de_DescribeGlobalReplicationGroupsCommandError = async (output, context) =
2349
2315
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2350
2316
  default:
2351
2317
  const parsedBody = parsedOutput.body;
2352
- (0, smithy_client_1.throwDefaultError)({
2318
+ return throwDefaultError({
2353
2319
  output,
2354
2320
  parsedBody: parsedBody.Error,
2355
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2356
2321
  errorCode,
2357
2322
  });
2358
2323
  }
@@ -2368,7 +2333,7 @@ const de_DescribeReplicationGroupsCommand = async (output, context) => {
2368
2333
  $metadata: deserializeMetadata(output),
2369
2334
  ...contents,
2370
2335
  };
2371
- return Promise.resolve(response);
2336
+ return response;
2372
2337
  };
2373
2338
  exports.de_DescribeReplicationGroupsCommand = de_DescribeReplicationGroupsCommand;
2374
2339
  const de_DescribeReplicationGroupsCommandError = async (output, context) => {
@@ -2389,10 +2354,9 @@ const de_DescribeReplicationGroupsCommandError = async (output, context) => {
2389
2354
  throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
2390
2355
  default:
2391
2356
  const parsedBody = parsedOutput.body;
2392
- (0, smithy_client_1.throwDefaultError)({
2357
+ return throwDefaultError({
2393
2358
  output,
2394
2359
  parsedBody: parsedBody.Error,
2395
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2396
2360
  errorCode,
2397
2361
  });
2398
2362
  }
@@ -2408,7 +2372,7 @@ const de_DescribeReservedCacheNodesCommand = async (output, context) => {
2408
2372
  $metadata: deserializeMetadata(output),
2409
2373
  ...contents,
2410
2374
  };
2411
- return Promise.resolve(response);
2375
+ return response;
2412
2376
  };
2413
2377
  exports.de_DescribeReservedCacheNodesCommand = de_DescribeReservedCacheNodesCommand;
2414
2378
  const de_DescribeReservedCacheNodesCommandError = async (output, context) => {
@@ -2429,10 +2393,9 @@ const de_DescribeReservedCacheNodesCommandError = async (output, context) => {
2429
2393
  throw await de_ReservedCacheNodeNotFoundFaultRes(parsedOutput, context);
2430
2394
  default:
2431
2395
  const parsedBody = parsedOutput.body;
2432
- (0, smithy_client_1.throwDefaultError)({
2396
+ return throwDefaultError({
2433
2397
  output,
2434
2398
  parsedBody: parsedBody.Error,
2435
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2436
2399
  errorCode,
2437
2400
  });
2438
2401
  }
@@ -2448,7 +2411,7 @@ const de_DescribeReservedCacheNodesOfferingsCommand = async (output, context) =>
2448
2411
  $metadata: deserializeMetadata(output),
2449
2412
  ...contents,
2450
2413
  };
2451
- return Promise.resolve(response);
2414
+ return response;
2452
2415
  };
2453
2416
  exports.de_DescribeReservedCacheNodesOfferingsCommand = de_DescribeReservedCacheNodesOfferingsCommand;
2454
2417
  const de_DescribeReservedCacheNodesOfferingsCommandError = async (output, context) => {
@@ -2469,10 +2432,9 @@ const de_DescribeReservedCacheNodesOfferingsCommandError = async (output, contex
2469
2432
  throw await de_ReservedCacheNodesOfferingNotFoundFaultRes(parsedOutput, context);
2470
2433
  default:
2471
2434
  const parsedBody = parsedOutput.body;
2472
- (0, smithy_client_1.throwDefaultError)({
2435
+ return throwDefaultError({
2473
2436
  output,
2474
2437
  parsedBody: parsedBody.Error,
2475
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2476
2438
  errorCode,
2477
2439
  });
2478
2440
  }
@@ -2488,7 +2450,7 @@ const de_DescribeServiceUpdatesCommand = async (output, context) => {
2488
2450
  $metadata: deserializeMetadata(output),
2489
2451
  ...contents,
2490
2452
  };
2491
- return Promise.resolve(response);
2453
+ return response;
2492
2454
  };
2493
2455
  exports.de_DescribeServiceUpdatesCommand = de_DescribeServiceUpdatesCommand;
2494
2456
  const de_DescribeServiceUpdatesCommandError = async (output, context) => {
@@ -2509,10 +2471,9 @@ const de_DescribeServiceUpdatesCommandError = async (output, context) => {
2509
2471
  throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
2510
2472
  default:
2511
2473
  const parsedBody = parsedOutput.body;
2512
- (0, smithy_client_1.throwDefaultError)({
2474
+ return throwDefaultError({
2513
2475
  output,
2514
2476
  parsedBody: parsedBody.Error,
2515
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2516
2477
  errorCode,
2517
2478
  });
2518
2479
  }
@@ -2528,7 +2489,7 @@ const de_DescribeSnapshotsCommand = async (output, context) => {
2528
2489
  $metadata: deserializeMetadata(output),
2529
2490
  ...contents,
2530
2491
  };
2531
- return Promise.resolve(response);
2492
+ return response;
2532
2493
  };
2533
2494
  exports.de_DescribeSnapshotsCommand = de_DescribeSnapshotsCommand;
2534
2495
  const de_DescribeSnapshotsCommandError = async (output, context) => {
@@ -2552,10 +2513,9 @@ const de_DescribeSnapshotsCommandError = async (output, context) => {
2552
2513
  throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
2553
2514
  default:
2554
2515
  const parsedBody = parsedOutput.body;
2555
- (0, smithy_client_1.throwDefaultError)({
2516
+ return throwDefaultError({
2556
2517
  output,
2557
2518
  parsedBody: parsedBody.Error,
2558
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2559
2519
  errorCode,
2560
2520
  });
2561
2521
  }
@@ -2571,7 +2531,7 @@ const de_DescribeUpdateActionsCommand = async (output, context) => {
2571
2531
  $metadata: deserializeMetadata(output),
2572
2532
  ...contents,
2573
2533
  };
2574
- return Promise.resolve(response);
2534
+ return response;
2575
2535
  };
2576
2536
  exports.de_DescribeUpdateActionsCommand = de_DescribeUpdateActionsCommand;
2577
2537
  const de_DescribeUpdateActionsCommandError = async (output, context) => {
@@ -2589,10 +2549,9 @@ const de_DescribeUpdateActionsCommandError = async (output, context) => {
2589
2549
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2590
2550
  default:
2591
2551
  const parsedBody = parsedOutput.body;
2592
- (0, smithy_client_1.throwDefaultError)({
2552
+ return throwDefaultError({
2593
2553
  output,
2594
2554
  parsedBody: parsedBody.Error,
2595
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2596
2555
  errorCode,
2597
2556
  });
2598
2557
  }
@@ -2608,7 +2567,7 @@ const de_DescribeUserGroupsCommand = async (output, context) => {
2608
2567
  $metadata: deserializeMetadata(output),
2609
2568
  ...contents,
2610
2569
  };
2611
- return Promise.resolve(response);
2570
+ return response;
2612
2571
  };
2613
2572
  exports.de_DescribeUserGroupsCommand = de_DescribeUserGroupsCommand;
2614
2573
  const de_DescribeUserGroupsCommandError = async (output, context) => {
@@ -2629,10 +2588,9 @@ const de_DescribeUserGroupsCommandError = async (output, context) => {
2629
2588
  throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
2630
2589
  default:
2631
2590
  const parsedBody = parsedOutput.body;
2632
- (0, smithy_client_1.throwDefaultError)({
2591
+ return throwDefaultError({
2633
2592
  output,
2634
2593
  parsedBody: parsedBody.Error,
2635
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2636
2594
  errorCode,
2637
2595
  });
2638
2596
  }
@@ -2648,7 +2606,7 @@ const de_DescribeUsersCommand = async (output, context) => {
2648
2606
  $metadata: deserializeMetadata(output),
2649
2607
  ...contents,
2650
2608
  };
2651
- return Promise.resolve(response);
2609
+ return response;
2652
2610
  };
2653
2611
  exports.de_DescribeUsersCommand = de_DescribeUsersCommand;
2654
2612
  const de_DescribeUsersCommandError = async (output, context) => {
@@ -2669,10 +2627,9 @@ const de_DescribeUsersCommandError = async (output, context) => {
2669
2627
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
2670
2628
  default:
2671
2629
  const parsedBody = parsedOutput.body;
2672
- (0, smithy_client_1.throwDefaultError)({
2630
+ return throwDefaultError({
2673
2631
  output,
2674
2632
  parsedBody: parsedBody.Error,
2675
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2676
2633
  errorCode,
2677
2634
  });
2678
2635
  }
@@ -2688,7 +2645,7 @@ const de_DisassociateGlobalReplicationGroupCommand = async (output, context) =>
2688
2645
  $metadata: deserializeMetadata(output),
2689
2646
  ...contents,
2690
2647
  };
2691
- return Promise.resolve(response);
2648
+ return response;
2692
2649
  };
2693
2650
  exports.de_DisassociateGlobalReplicationGroupCommand = de_DisassociateGlobalReplicationGroupCommand;
2694
2651
  const de_DisassociateGlobalReplicationGroupCommandError = async (output, context) => {
@@ -2712,10 +2669,9 @@ const de_DisassociateGlobalReplicationGroupCommandError = async (output, context
2712
2669
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2713
2670
  default:
2714
2671
  const parsedBody = parsedOutput.body;
2715
- (0, smithy_client_1.throwDefaultError)({
2672
+ return throwDefaultError({
2716
2673
  output,
2717
2674
  parsedBody: parsedBody.Error,
2718
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2719
2675
  errorCode,
2720
2676
  });
2721
2677
  }
@@ -2731,7 +2687,7 @@ const de_FailoverGlobalReplicationGroupCommand = async (output, context) => {
2731
2687
  $metadata: deserializeMetadata(output),
2732
2688
  ...contents,
2733
2689
  };
2734
- return Promise.resolve(response);
2690
+ return response;
2735
2691
  };
2736
2692
  exports.de_FailoverGlobalReplicationGroupCommand = de_FailoverGlobalReplicationGroupCommand;
2737
2693
  const de_FailoverGlobalReplicationGroupCommandError = async (output, context) => {
@@ -2755,10 +2711,9 @@ const de_FailoverGlobalReplicationGroupCommandError = async (output, context) =>
2755
2711
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2756
2712
  default:
2757
2713
  const parsedBody = parsedOutput.body;
2758
- (0, smithy_client_1.throwDefaultError)({
2714
+ return throwDefaultError({
2759
2715
  output,
2760
2716
  parsedBody: parsedBody.Error,
2761
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2762
2717
  errorCode,
2763
2718
  });
2764
2719
  }
@@ -2774,7 +2729,7 @@ const de_IncreaseNodeGroupsInGlobalReplicationGroupCommand = async (output, cont
2774
2729
  $metadata: deserializeMetadata(output),
2775
2730
  ...contents,
2776
2731
  };
2777
- return Promise.resolve(response);
2732
+ return response;
2778
2733
  };
2779
2734
  exports.de_IncreaseNodeGroupsInGlobalReplicationGroupCommand = de_IncreaseNodeGroupsInGlobalReplicationGroupCommand;
2780
2735
  const de_IncreaseNodeGroupsInGlobalReplicationGroupCommandError = async (output, context) => {
@@ -2795,10 +2750,9 @@ const de_IncreaseNodeGroupsInGlobalReplicationGroupCommandError = async (output,
2795
2750
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2796
2751
  default:
2797
2752
  const parsedBody = parsedOutput.body;
2798
- (0, smithy_client_1.throwDefaultError)({
2753
+ return throwDefaultError({
2799
2754
  output,
2800
2755
  parsedBody: parsedBody.Error,
2801
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2802
2756
  errorCode,
2803
2757
  });
2804
2758
  }
@@ -2814,7 +2768,7 @@ const de_IncreaseReplicaCountCommand = async (output, context) => {
2814
2768
  $metadata: deserializeMetadata(output),
2815
2769
  ...contents,
2816
2770
  };
2817
- return Promise.resolve(response);
2771
+ return response;
2818
2772
  };
2819
2773
  exports.de_IncreaseReplicaCountCommand = de_IncreaseReplicaCountCommand;
2820
2774
  const de_IncreaseReplicaCountCommandError = async (output, context) => {
@@ -2862,10 +2816,9 @@ const de_IncreaseReplicaCountCommandError = async (output, context) => {
2862
2816
  throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
2863
2817
  default:
2864
2818
  const parsedBody = parsedOutput.body;
2865
- (0, smithy_client_1.throwDefaultError)({
2819
+ return throwDefaultError({
2866
2820
  output,
2867
2821
  parsedBody: parsedBody.Error,
2868
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2869
2822
  errorCode,
2870
2823
  });
2871
2824
  }
@@ -2881,7 +2834,7 @@ const de_ListAllowedNodeTypeModificationsCommand = async (output, context) => {
2881
2834
  $metadata: deserializeMetadata(output),
2882
2835
  ...contents,
2883
2836
  };
2884
- return Promise.resolve(response);
2837
+ return response;
2885
2838
  };
2886
2839
  exports.de_ListAllowedNodeTypeModificationsCommand = de_ListAllowedNodeTypeModificationsCommand;
2887
2840
  const de_ListAllowedNodeTypeModificationsCommandError = async (output, context) => {
@@ -2905,10 +2858,9 @@ const de_ListAllowedNodeTypeModificationsCommandError = async (output, context)
2905
2858
  throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
2906
2859
  default:
2907
2860
  const parsedBody = parsedOutput.body;
2908
- (0, smithy_client_1.throwDefaultError)({
2861
+ return throwDefaultError({
2909
2862
  output,
2910
2863
  parsedBody: parsedBody.Error,
2911
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2912
2864
  errorCode,
2913
2865
  });
2914
2866
  }
@@ -2924,7 +2876,7 @@ const de_ListTagsForResourceCommand = async (output, context) => {
2924
2876
  $metadata: deserializeMetadata(output),
2925
2877
  ...contents,
2926
2878
  };
2927
- return Promise.resolve(response);
2879
+ return response;
2928
2880
  };
2929
2881
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
2930
2882
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -2969,10 +2921,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
2969
2921
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
2970
2922
  default:
2971
2923
  const parsedBody = parsedOutput.body;
2972
- (0, smithy_client_1.throwDefaultError)({
2924
+ return throwDefaultError({
2973
2925
  output,
2974
2926
  parsedBody: parsedBody.Error,
2975
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
2976
2927
  errorCode,
2977
2928
  });
2978
2929
  }
@@ -2988,7 +2939,7 @@ const de_ModifyCacheClusterCommand = async (output, context) => {
2988
2939
  $metadata: deserializeMetadata(output),
2989
2940
  ...contents,
2990
2941
  };
2991
- return Promise.resolve(response);
2942
+ return response;
2992
2943
  };
2993
2944
  exports.de_ModifyCacheClusterCommand = de_ModifyCacheClusterCommand;
2994
2945
  const de_ModifyCacheClusterCommandError = async (output, context) => {
@@ -3033,10 +2984,9 @@ const de_ModifyCacheClusterCommandError = async (output, context) => {
3033
2984
  throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
3034
2985
  default:
3035
2986
  const parsedBody = parsedOutput.body;
3036
- (0, smithy_client_1.throwDefaultError)({
2987
+ return throwDefaultError({
3037
2988
  output,
3038
2989
  parsedBody: parsedBody.Error,
3039
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3040
2990
  errorCode,
3041
2991
  });
3042
2992
  }
@@ -3052,7 +3002,7 @@ const de_ModifyCacheParameterGroupCommand = async (output, context) => {
3052
3002
  $metadata: deserializeMetadata(output),
3053
3003
  ...contents,
3054
3004
  };
3055
- return Promise.resolve(response);
3005
+ return response;
3056
3006
  };
3057
3007
  exports.de_ModifyCacheParameterGroupCommand = de_ModifyCacheParameterGroupCommand;
3058
3008
  const de_ModifyCacheParameterGroupCommandError = async (output, context) => {
@@ -3079,10 +3029,9 @@ const de_ModifyCacheParameterGroupCommandError = async (output, context) => {
3079
3029
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
3080
3030
  default:
3081
3031
  const parsedBody = parsedOutput.body;
3082
- (0, smithy_client_1.throwDefaultError)({
3032
+ return throwDefaultError({
3083
3033
  output,
3084
3034
  parsedBody: parsedBody.Error,
3085
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3086
3035
  errorCode,
3087
3036
  });
3088
3037
  }
@@ -3098,7 +3047,7 @@ const de_ModifyCacheSubnetGroupCommand = async (output, context) => {
3098
3047
  $metadata: deserializeMetadata(output),
3099
3048
  ...contents,
3100
3049
  };
3101
- return Promise.resolve(response);
3050
+ return response;
3102
3051
  };
3103
3052
  exports.de_ModifyCacheSubnetGroupCommand = de_ModifyCacheSubnetGroupCommand;
3104
3053
  const de_ModifyCacheSubnetGroupCommandError = async (output, context) => {
@@ -3125,10 +3074,9 @@ const de_ModifyCacheSubnetGroupCommandError = async (output, context) => {
3125
3074
  throw await de_SubnetNotAllowedFaultRes(parsedOutput, context);
3126
3075
  default:
3127
3076
  const parsedBody = parsedOutput.body;
3128
- (0, smithy_client_1.throwDefaultError)({
3077
+ return throwDefaultError({
3129
3078
  output,
3130
3079
  parsedBody: parsedBody.Error,
3131
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3132
3080
  errorCode,
3133
3081
  });
3134
3082
  }
@@ -3144,7 +3092,7 @@ const de_ModifyGlobalReplicationGroupCommand = async (output, context) => {
3144
3092
  $metadata: deserializeMetadata(output),
3145
3093
  ...contents,
3146
3094
  };
3147
- return Promise.resolve(response);
3095
+ return response;
3148
3096
  };
3149
3097
  exports.de_ModifyGlobalReplicationGroupCommand = de_ModifyGlobalReplicationGroupCommand;
3150
3098
  const de_ModifyGlobalReplicationGroupCommandError = async (output, context) => {
@@ -3165,10 +3113,9 @@ const de_ModifyGlobalReplicationGroupCommandError = async (output, context) => {
3165
3113
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
3166
3114
  default:
3167
3115
  const parsedBody = parsedOutput.body;
3168
- (0, smithy_client_1.throwDefaultError)({
3116
+ return throwDefaultError({
3169
3117
  output,
3170
3118
  parsedBody: parsedBody.Error,
3171
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3172
3119
  errorCode,
3173
3120
  });
3174
3121
  }
@@ -3184,7 +3131,7 @@ const de_ModifyReplicationGroupCommand = async (output, context) => {
3184
3131
  $metadata: deserializeMetadata(output),
3185
3132
  ...contents,
3186
3133
  };
3187
- return Promise.resolve(response);
3134
+ return response;
3188
3135
  };
3189
3136
  exports.de_ModifyReplicationGroupCommand = de_ModifyReplicationGroupCommand;
3190
3137
  const de_ModifyReplicationGroupCommandError = async (output, context) => {
@@ -3244,10 +3191,9 @@ const de_ModifyReplicationGroupCommandError = async (output, context) => {
3244
3191
  throw await de_UserGroupNotFoundFaultRes(parsedOutput, context);
3245
3192
  default:
3246
3193
  const parsedBody = parsedOutput.body;
3247
- (0, smithy_client_1.throwDefaultError)({
3194
+ return throwDefaultError({
3248
3195
  output,
3249
3196
  parsedBody: parsedBody.Error,
3250
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3251
3197
  errorCode,
3252
3198
  });
3253
3199
  }
@@ -3263,7 +3209,7 @@ const de_ModifyReplicationGroupShardConfigurationCommand = async (output, contex
3263
3209
  $metadata: deserializeMetadata(output),
3264
3210
  ...contents,
3265
3211
  };
3266
- return Promise.resolve(response);
3212
+ return response;
3267
3213
  };
3268
3214
  exports.de_ModifyReplicationGroupShardConfigurationCommand = de_ModifyReplicationGroupShardConfigurationCommand;
3269
3215
  const de_ModifyReplicationGroupShardConfigurationCommandError = async (output, context) => {
@@ -3305,10 +3251,9 @@ const de_ModifyReplicationGroupShardConfigurationCommandError = async (output, c
3305
3251
  throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
3306
3252
  default:
3307
3253
  const parsedBody = parsedOutput.body;
3308
- (0, smithy_client_1.throwDefaultError)({
3254
+ return throwDefaultError({
3309
3255
  output,
3310
3256
  parsedBody: parsedBody.Error,
3311
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3312
3257
  errorCode,
3313
3258
  });
3314
3259
  }
@@ -3324,7 +3269,7 @@ const de_ModifyUserCommand = async (output, context) => {
3324
3269
  $metadata: deserializeMetadata(output),
3325
3270
  ...contents,
3326
3271
  };
3327
- return Promise.resolve(response);
3272
+ return response;
3328
3273
  };
3329
3274
  exports.de_ModifyUserCommand = de_ModifyUserCommand;
3330
3275
  const de_ModifyUserCommandError = async (output, context) => {
@@ -3351,10 +3296,9 @@ const de_ModifyUserCommandError = async (output, context) => {
3351
3296
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
3352
3297
  default:
3353
3298
  const parsedBody = parsedOutput.body;
3354
- (0, smithy_client_1.throwDefaultError)({
3299
+ return throwDefaultError({
3355
3300
  output,
3356
3301
  parsedBody: parsedBody.Error,
3357
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3358
3302
  errorCode,
3359
3303
  });
3360
3304
  }
@@ -3370,7 +3314,7 @@ const de_ModifyUserGroupCommand = async (output, context) => {
3370
3314
  $metadata: deserializeMetadata(output),
3371
3315
  ...contents,
3372
3316
  };
3373
- return Promise.resolve(response);
3317
+ return response;
3374
3318
  };
3375
3319
  exports.de_ModifyUserGroupCommand = de_ModifyUserGroupCommand;
3376
3320
  const de_ModifyUserGroupCommandError = async (output, context) => {
@@ -3406,10 +3350,9 @@ const de_ModifyUserGroupCommandError = async (output, context) => {
3406
3350
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
3407
3351
  default:
3408
3352
  const parsedBody = parsedOutput.body;
3409
- (0, smithy_client_1.throwDefaultError)({
3353
+ return throwDefaultError({
3410
3354
  output,
3411
3355
  parsedBody: parsedBody.Error,
3412
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3413
3356
  errorCode,
3414
3357
  });
3415
3358
  }
@@ -3425,7 +3368,7 @@ const de_PurchaseReservedCacheNodesOfferingCommand = async (output, context) =>
3425
3368
  $metadata: deserializeMetadata(output),
3426
3369
  ...contents,
3427
3370
  };
3428
- return Promise.resolve(response);
3371
+ return response;
3429
3372
  };
3430
3373
  exports.de_PurchaseReservedCacheNodesOfferingCommand = de_PurchaseReservedCacheNodesOfferingCommand;
3431
3374
  const de_PurchaseReservedCacheNodesOfferingCommandError = async (output, context) => {
@@ -3455,10 +3398,9 @@ const de_PurchaseReservedCacheNodesOfferingCommandError = async (output, context
3455
3398
  throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
3456
3399
  default:
3457
3400
  const parsedBody = parsedOutput.body;
3458
- (0, smithy_client_1.throwDefaultError)({
3401
+ return throwDefaultError({
3459
3402
  output,
3460
3403
  parsedBody: parsedBody.Error,
3461
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3462
3404
  errorCode,
3463
3405
  });
3464
3406
  }
@@ -3474,7 +3416,7 @@ const de_RebalanceSlotsInGlobalReplicationGroupCommand = async (output, context)
3474
3416
  $metadata: deserializeMetadata(output),
3475
3417
  ...contents,
3476
3418
  };
3477
- return Promise.resolve(response);
3419
+ return response;
3478
3420
  };
3479
3421
  exports.de_RebalanceSlotsInGlobalReplicationGroupCommand = de_RebalanceSlotsInGlobalReplicationGroupCommand;
3480
3422
  const de_RebalanceSlotsInGlobalReplicationGroupCommandError = async (output, context) => {
@@ -3495,10 +3437,9 @@ const de_RebalanceSlotsInGlobalReplicationGroupCommandError = async (output, con
3495
3437
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
3496
3438
  default:
3497
3439
  const parsedBody = parsedOutput.body;
3498
- (0, smithy_client_1.throwDefaultError)({
3440
+ return throwDefaultError({
3499
3441
  output,
3500
3442
  parsedBody: parsedBody.Error,
3501
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3502
3443
  errorCode,
3503
3444
  });
3504
3445
  }
@@ -3514,7 +3455,7 @@ const de_RebootCacheClusterCommand = async (output, context) => {
3514
3455
  $metadata: deserializeMetadata(output),
3515
3456
  ...contents,
3516
3457
  };
3517
- return Promise.resolve(response);
3458
+ return response;
3518
3459
  };
3519
3460
  exports.de_RebootCacheClusterCommand = de_RebootCacheClusterCommand;
3520
3461
  const de_RebootCacheClusterCommandError = async (output, context) => {
@@ -3532,10 +3473,9 @@ const de_RebootCacheClusterCommandError = async (output, context) => {
3532
3473
  throw await de_InvalidCacheClusterStateFaultRes(parsedOutput, context);
3533
3474
  default:
3534
3475
  const parsedBody = parsedOutput.body;
3535
- (0, smithy_client_1.throwDefaultError)({
3476
+ return throwDefaultError({
3536
3477
  output,
3537
3478
  parsedBody: parsedBody.Error,
3538
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3539
3479
  errorCode,
3540
3480
  });
3541
3481
  }
@@ -3551,7 +3491,7 @@ const de_RemoveTagsFromResourceCommand = async (output, context) => {
3551
3491
  $metadata: deserializeMetadata(output),
3552
3492
  ...contents,
3553
3493
  };
3554
- return Promise.resolve(response);
3494
+ return response;
3555
3495
  };
3556
3496
  exports.de_RemoveTagsFromResourceCommand = de_RemoveTagsFromResourceCommand;
3557
3497
  const de_RemoveTagsFromResourceCommandError = async (output, context) => {
@@ -3599,10 +3539,9 @@ const de_RemoveTagsFromResourceCommandError = async (output, context) => {
3599
3539
  throw await de_UserNotFoundFaultRes(parsedOutput, context);
3600
3540
  default:
3601
3541
  const parsedBody = parsedOutput.body;
3602
- (0, smithy_client_1.throwDefaultError)({
3542
+ return throwDefaultError({
3603
3543
  output,
3604
3544
  parsedBody: parsedBody.Error,
3605
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3606
3545
  errorCode,
3607
3546
  });
3608
3547
  }
@@ -3618,7 +3557,7 @@ const de_ResetCacheParameterGroupCommand = async (output, context) => {
3618
3557
  $metadata: deserializeMetadata(output),
3619
3558
  ...contents,
3620
3559
  };
3621
- return Promise.resolve(response);
3560
+ return response;
3622
3561
  };
3623
3562
  exports.de_ResetCacheParameterGroupCommand = de_ResetCacheParameterGroupCommand;
3624
3563
  const de_ResetCacheParameterGroupCommandError = async (output, context) => {
@@ -3645,10 +3584,9 @@ const de_ResetCacheParameterGroupCommandError = async (output, context) => {
3645
3584
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
3646
3585
  default:
3647
3586
  const parsedBody = parsedOutput.body;
3648
- (0, smithy_client_1.throwDefaultError)({
3587
+ return throwDefaultError({
3649
3588
  output,
3650
3589
  parsedBody: parsedBody.Error,
3651
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3652
3590
  errorCode,
3653
3591
  });
3654
3592
  }
@@ -3664,7 +3602,7 @@ const de_RevokeCacheSecurityGroupIngressCommand = async (output, context) => {
3664
3602
  $metadata: deserializeMetadata(output),
3665
3603
  ...contents,
3666
3604
  };
3667
- return Promise.resolve(response);
3605
+ return response;
3668
3606
  };
3669
3607
  exports.de_RevokeCacheSecurityGroupIngressCommand = de_RevokeCacheSecurityGroupIngressCommand;
3670
3608
  const de_RevokeCacheSecurityGroupIngressCommandError = async (output, context) => {
@@ -3691,10 +3629,9 @@ const de_RevokeCacheSecurityGroupIngressCommandError = async (output, context) =
3691
3629
  throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
3692
3630
  default:
3693
3631
  const parsedBody = parsedOutput.body;
3694
- (0, smithy_client_1.throwDefaultError)({
3632
+ return throwDefaultError({
3695
3633
  output,
3696
3634
  parsedBody: parsedBody.Error,
3697
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3698
3635
  errorCode,
3699
3636
  });
3700
3637
  }
@@ -3710,7 +3647,7 @@ const de_StartMigrationCommand = async (output, context) => {
3710
3647
  $metadata: deserializeMetadata(output),
3711
3648
  ...contents,
3712
3649
  };
3713
- return Promise.resolve(response);
3650
+ return response;
3714
3651
  };
3715
3652
  exports.de_StartMigrationCommand = de_StartMigrationCommand;
3716
3653
  const de_StartMigrationCommandError = async (output, context) => {
@@ -3734,10 +3671,9 @@ const de_StartMigrationCommandError = async (output, context) => {
3734
3671
  throw await de_ReplicationGroupNotFoundFaultRes(parsedOutput, context);
3735
3672
  default:
3736
3673
  const parsedBody = parsedOutput.body;
3737
- (0, smithy_client_1.throwDefaultError)({
3674
+ return throwDefaultError({
3738
3675
  output,
3739
3676
  parsedBody: parsedBody.Error,
3740
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3741
3677
  errorCode,
3742
3678
  });
3743
3679
  }
@@ -3753,7 +3689,7 @@ const de_TestFailoverCommand = async (output, context) => {
3753
3689
  $metadata: deserializeMetadata(output),
3754
3690
  ...contents,
3755
3691
  };
3756
- return Promise.resolve(response);
3692
+ return response;
3757
3693
  };
3758
3694
  exports.de_TestFailoverCommand = de_TestFailoverCommand;
3759
3695
  const de_TestFailoverCommandError = async (output, context) => {
@@ -3792,10 +3728,9 @@ const de_TestFailoverCommandError = async (output, context) => {
3792
3728
  throw await de_TestFailoverNotAvailableFaultRes(parsedOutput, context);
3793
3729
  default:
3794
3730
  const parsedBody = parsedOutput.body;
3795
- (0, smithy_client_1.throwDefaultError)({
3731
+ return throwDefaultError({
3796
3732
  output,
3797
3733
  parsedBody: parsedBody.Error,
3798
- exceptionCtor: ElastiCacheServiceException_1.ElastiCacheServiceException,
3799
3734
  errorCode,
3800
3735
  });
3801
3736
  }
@@ -9505,6 +9440,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
9505
9440
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
9506
9441
  };
9507
9442
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
9443
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(ElastiCacheServiceException_1.ElastiCacheServiceException);
9508
9444
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
9509
9445
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
9510
9446
  const contents = {