@aws-sdk/client-docdb 3.312.0 → 3.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  import { DocDBServiceException as __BaseException } from "../models/DocDBServiceException";
5
5
  import { AuthorizationNotFoundFault, CertificateNotFoundFault, DBClusterAlreadyExistsFault, DBClusterNotFoundFault, DBClusterParameterGroupNotFoundFault, DBClusterQuotaExceededFault, DBClusterSnapshotAlreadyExistsFault, DBClusterSnapshotNotFoundFault, DBInstanceAlreadyExistsFault, DBInstanceNotFoundFault, DBParameterGroupAlreadyExistsFault, DBParameterGroupNotFoundFault, DBParameterGroupQuotaExceededFault, DBSecurityGroupNotFoundFault, DBSnapshotAlreadyExistsFault, DBSnapshotNotFoundFault, DBSubnetGroupAlreadyExistsFault, DBSubnetGroupDoesNotCoverEnoughAZs, DBSubnetGroupNotFoundFault, DBSubnetGroupQuotaExceededFault, DBSubnetQuotaExceededFault, DBUpgradeDependencyFailureFault, EventSubscriptionQuotaExceededFault, GlobalClusterAlreadyExistsFault, GlobalClusterNotFoundFault, GlobalClusterQuotaExceededFault, InstanceQuotaExceededFault, InsufficientDBClusterCapacityFault, InsufficientDBInstanceCapacityFault, InsufficientStorageClusterCapacityFault, InvalidDBClusterSnapshotStateFault, InvalidDBClusterStateFault, InvalidDBInstanceStateFault, InvalidDBParameterGroupStateFault, InvalidDBSecurityGroupStateFault, InvalidDBSnapshotStateFault, InvalidDBSubnetGroupStateFault, InvalidDBSubnetStateFault, InvalidEventSubscriptionStateFault, InvalidGlobalClusterStateFault, InvalidRestoreFault, InvalidSubnet, InvalidVPCNetworkStateFault, KMSKeyNotAccessibleFault, ResourceNotFoundFault, SharedSnapshotQuotaExceededFault, SnapshotQuotaExceededFault, SNSInvalidTopicFault, SNSNoAuthorizationFault, SNSTopicArnNotFoundFault, SourceNotFoundFault, StorageQuotaExceededFault, StorageTypeNotSupportedFault, SubnetAlreadyInUse, SubscriptionAlreadyExistFault, SubscriptionCategoryNotFoundFault, SubscriptionNotFoundFault, } from "../models/models_0";
@@ -544,7 +544,7 @@ export const de_AddSourceIdentifierToSubscriptionCommand = async (output, contex
544
544
  $metadata: deserializeMetadata(output),
545
545
  ...contents,
546
546
  };
547
- return Promise.resolve(response);
547
+ return response;
548
548
  };
549
549
  const de_AddSourceIdentifierToSubscriptionCommandError = async (output, context) => {
550
550
  const parsedOutput = {
@@ -561,10 +561,9 @@ const de_AddSourceIdentifierToSubscriptionCommandError = async (output, context)
561
561
  throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
562
562
  default:
563
563
  const parsedBody = parsedOutput.body;
564
- throwDefaultError({
564
+ return throwDefaultError({
565
565
  output,
566
566
  parsedBody: parsedBody.Error,
567
- exceptionCtor: __BaseException,
568
567
  errorCode,
569
568
  });
570
569
  }
@@ -577,7 +576,7 @@ export const de_AddTagsToResourceCommand = async (output, context) => {
577
576
  const response = {
578
577
  $metadata: deserializeMetadata(output),
579
578
  };
580
- return Promise.resolve(response);
579
+ return response;
581
580
  };
582
581
  const de_AddTagsToResourceCommandError = async (output, context) => {
583
582
  const parsedOutput = {
@@ -597,10 +596,9 @@ const de_AddTagsToResourceCommandError = async (output, context) => {
597
596
  throw await de_DBSnapshotNotFoundFaultRes(parsedOutput, context);
598
597
  default:
599
598
  const parsedBody = parsedOutput.body;
600
- throwDefaultError({
599
+ return throwDefaultError({
601
600
  output,
602
601
  parsedBody: parsedBody.Error,
603
- exceptionCtor: __BaseException,
604
602
  errorCode,
605
603
  });
606
604
  }
@@ -616,7 +614,7 @@ export const de_ApplyPendingMaintenanceActionCommand = async (output, context) =
616
614
  $metadata: deserializeMetadata(output),
617
615
  ...contents,
618
616
  };
619
- return Promise.resolve(response);
617
+ return response;
620
618
  };
621
619
  const de_ApplyPendingMaintenanceActionCommandError = async (output, context) => {
622
620
  const parsedOutput = {
@@ -636,10 +634,9 @@ const de_ApplyPendingMaintenanceActionCommandError = async (output, context) =>
636
634
  throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
637
635
  default:
638
636
  const parsedBody = parsedOutput.body;
639
- throwDefaultError({
637
+ return throwDefaultError({
640
638
  output,
641
639
  parsedBody: parsedBody.Error,
642
- exceptionCtor: __BaseException,
643
640
  errorCode,
644
641
  });
645
642
  }
@@ -655,7 +652,7 @@ export const de_CopyDBClusterParameterGroupCommand = async (output, context) =>
655
652
  $metadata: deserializeMetadata(output),
656
653
  ...contents,
657
654
  };
658
- return Promise.resolve(response);
655
+ return response;
659
656
  };
660
657
  const de_CopyDBClusterParameterGroupCommandError = async (output, context) => {
661
658
  const parsedOutput = {
@@ -675,10 +672,9 @@ const de_CopyDBClusterParameterGroupCommandError = async (output, context) => {
675
672
  throw await de_DBParameterGroupQuotaExceededFaultRes(parsedOutput, context);
676
673
  default:
677
674
  const parsedBody = parsedOutput.body;
678
- throwDefaultError({
675
+ return throwDefaultError({
679
676
  output,
680
677
  parsedBody: parsedBody.Error,
681
- exceptionCtor: __BaseException,
682
678
  errorCode,
683
679
  });
684
680
  }
@@ -694,7 +690,7 @@ export const de_CopyDBClusterSnapshotCommand = async (output, context) => {
694
690
  $metadata: deserializeMetadata(output),
695
691
  ...contents,
696
692
  };
697
- return Promise.resolve(response);
693
+ return response;
698
694
  };
699
695
  const de_CopyDBClusterSnapshotCommandError = async (output, context) => {
700
696
  const parsedOutput = {
@@ -723,10 +719,9 @@ const de_CopyDBClusterSnapshotCommandError = async (output, context) => {
723
719
  throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
724
720
  default:
725
721
  const parsedBody = parsedOutput.body;
726
- throwDefaultError({
722
+ return throwDefaultError({
727
723
  output,
728
724
  parsedBody: parsedBody.Error,
729
- exceptionCtor: __BaseException,
730
725
  errorCode,
731
726
  });
732
727
  }
@@ -742,7 +737,7 @@ export const de_CreateDBClusterCommand = async (output, context) => {
742
737
  $metadata: deserializeMetadata(output),
743
738
  ...contents,
744
739
  };
745
- return Promise.resolve(response);
740
+ return response;
746
741
  };
747
742
  const de_CreateDBClusterCommandError = async (output, context) => {
748
743
  const parsedOutput = {
@@ -804,10 +799,9 @@ const de_CreateDBClusterCommandError = async (output, context) => {
804
799
  throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
805
800
  default:
806
801
  const parsedBody = parsedOutput.body;
807
- throwDefaultError({
802
+ return throwDefaultError({
808
803
  output,
809
804
  parsedBody: parsedBody.Error,
810
- exceptionCtor: __BaseException,
811
805
  errorCode,
812
806
  });
813
807
  }
@@ -823,7 +817,7 @@ export const de_CreateDBClusterParameterGroupCommand = async (output, context) =
823
817
  $metadata: deserializeMetadata(output),
824
818
  ...contents,
825
819
  };
826
- return Promise.resolve(response);
820
+ return response;
827
821
  };
828
822
  const de_CreateDBClusterParameterGroupCommandError = async (output, context) => {
829
823
  const parsedOutput = {
@@ -840,10 +834,9 @@ const de_CreateDBClusterParameterGroupCommandError = async (output, context) =>
840
834
  throw await de_DBParameterGroupQuotaExceededFaultRes(parsedOutput, context);
841
835
  default:
842
836
  const parsedBody = parsedOutput.body;
843
- throwDefaultError({
837
+ return throwDefaultError({
844
838
  output,
845
839
  parsedBody: parsedBody.Error,
846
- exceptionCtor: __BaseException,
847
840
  errorCode,
848
841
  });
849
842
  }
@@ -859,7 +852,7 @@ export const de_CreateDBClusterSnapshotCommand = async (output, context) => {
859
852
  $metadata: deserializeMetadata(output),
860
853
  ...contents,
861
854
  };
862
- return Promise.resolve(response);
855
+ return response;
863
856
  };
864
857
  const de_CreateDBClusterSnapshotCommandError = async (output, context) => {
865
858
  const parsedOutput = {
@@ -885,10 +878,9 @@ const de_CreateDBClusterSnapshotCommandError = async (output, context) => {
885
878
  throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
886
879
  default:
887
880
  const parsedBody = parsedOutput.body;
888
- throwDefaultError({
881
+ return throwDefaultError({
889
882
  output,
890
883
  parsedBody: parsedBody.Error,
891
- exceptionCtor: __BaseException,
892
884
  errorCode,
893
885
  });
894
886
  }
@@ -904,7 +896,7 @@ export const de_CreateDBInstanceCommand = async (output, context) => {
904
896
  $metadata: deserializeMetadata(output),
905
897
  ...contents,
906
898
  };
907
- return Promise.resolve(response);
899
+ return response;
908
900
  };
909
901
  const de_CreateDBInstanceCommandError = async (output, context) => {
910
902
  const parsedOutput = {
@@ -960,10 +952,9 @@ const de_CreateDBInstanceCommandError = async (output, context) => {
960
952
  throw await de_StorageTypeNotSupportedFaultRes(parsedOutput, context);
961
953
  default:
962
954
  const parsedBody = parsedOutput.body;
963
- throwDefaultError({
955
+ return throwDefaultError({
964
956
  output,
965
957
  parsedBody: parsedBody.Error,
966
- exceptionCtor: __BaseException,
967
958
  errorCode,
968
959
  });
969
960
  }
@@ -979,7 +970,7 @@ export const de_CreateDBSubnetGroupCommand = async (output, context) => {
979
970
  $metadata: deserializeMetadata(output),
980
971
  ...contents,
981
972
  };
982
- return Promise.resolve(response);
973
+ return response;
983
974
  };
984
975
  const de_CreateDBSubnetGroupCommandError = async (output, context) => {
985
976
  const parsedOutput = {
@@ -1005,10 +996,9 @@ const de_CreateDBSubnetGroupCommandError = async (output, context) => {
1005
996
  throw await de_InvalidSubnetRes(parsedOutput, context);
1006
997
  default:
1007
998
  const parsedBody = parsedOutput.body;
1008
- throwDefaultError({
999
+ return throwDefaultError({
1009
1000
  output,
1010
1001
  parsedBody: parsedBody.Error,
1011
- exceptionCtor: __BaseException,
1012
1002
  errorCode,
1013
1003
  });
1014
1004
  }
@@ -1024,7 +1014,7 @@ export const de_CreateEventSubscriptionCommand = async (output, context) => {
1024
1014
  $metadata: deserializeMetadata(output),
1025
1015
  ...contents,
1026
1016
  };
1027
- return Promise.resolve(response);
1017
+ return response;
1028
1018
  };
1029
1019
  const de_CreateEventSubscriptionCommandError = async (output, context) => {
1030
1020
  const parsedOutput = {
@@ -1056,10 +1046,9 @@ const de_CreateEventSubscriptionCommandError = async (output, context) => {
1056
1046
  throw await de_SubscriptionCategoryNotFoundFaultRes(parsedOutput, context);
1057
1047
  default:
1058
1048
  const parsedBody = parsedOutput.body;
1059
- throwDefaultError({
1049
+ return throwDefaultError({
1060
1050
  output,
1061
1051
  parsedBody: parsedBody.Error,
1062
- exceptionCtor: __BaseException,
1063
1052
  errorCode,
1064
1053
  });
1065
1054
  }
@@ -1075,7 +1064,7 @@ export const de_CreateGlobalClusterCommand = async (output, context) => {
1075
1064
  $metadata: deserializeMetadata(output),
1076
1065
  ...contents,
1077
1066
  };
1078
- return Promise.resolve(response);
1067
+ return response;
1079
1068
  };
1080
1069
  const de_CreateGlobalClusterCommandError = async (output, context) => {
1081
1070
  const parsedOutput = {
@@ -1098,10 +1087,9 @@ const de_CreateGlobalClusterCommandError = async (output, context) => {
1098
1087
  throw await de_InvalidDBClusterStateFaultRes(parsedOutput, context);
1099
1088
  default:
1100
1089
  const parsedBody = parsedOutput.body;
1101
- throwDefaultError({
1090
+ return throwDefaultError({
1102
1091
  output,
1103
1092
  parsedBody: parsedBody.Error,
1104
- exceptionCtor: __BaseException,
1105
1093
  errorCode,
1106
1094
  });
1107
1095
  }
@@ -1117,7 +1105,7 @@ export const de_DeleteDBClusterCommand = async (output, context) => {
1117
1105
  $metadata: deserializeMetadata(output),
1118
1106
  ...contents,
1119
1107
  };
1120
- return Promise.resolve(response);
1108
+ return response;
1121
1109
  };
1122
1110
  const de_DeleteDBClusterCommandError = async (output, context) => {
1123
1111
  const parsedOutput = {
@@ -1143,10 +1131,9 @@ const de_DeleteDBClusterCommandError = async (output, context) => {
1143
1131
  throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
1144
1132
  default:
1145
1133
  const parsedBody = parsedOutput.body;
1146
- throwDefaultError({
1134
+ return throwDefaultError({
1147
1135
  output,
1148
1136
  parsedBody: parsedBody.Error,
1149
- exceptionCtor: __BaseException,
1150
1137
  errorCode,
1151
1138
  });
1152
1139
  }
@@ -1159,7 +1146,7 @@ export const de_DeleteDBClusterParameterGroupCommand = async (output, context) =
1159
1146
  const response = {
1160
1147
  $metadata: deserializeMetadata(output),
1161
1148
  };
1162
- return Promise.resolve(response);
1149
+ return response;
1163
1150
  };
1164
1151
  const de_DeleteDBClusterParameterGroupCommandError = async (output, context) => {
1165
1152
  const parsedOutput = {
@@ -1176,10 +1163,9 @@ const de_DeleteDBClusterParameterGroupCommandError = async (output, context) =>
1176
1163
  throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
1177
1164
  default:
1178
1165
  const parsedBody = parsedOutput.body;
1179
- throwDefaultError({
1166
+ return throwDefaultError({
1180
1167
  output,
1181
1168
  parsedBody: parsedBody.Error,
1182
- exceptionCtor: __BaseException,
1183
1169
  errorCode,
1184
1170
  });
1185
1171
  }
@@ -1195,7 +1181,7 @@ export const de_DeleteDBClusterSnapshotCommand = async (output, context) => {
1195
1181
  $metadata: deserializeMetadata(output),
1196
1182
  ...contents,
1197
1183
  };
1198
- return Promise.resolve(response);
1184
+ return response;
1199
1185
  };
1200
1186
  const de_DeleteDBClusterSnapshotCommandError = async (output, context) => {
1201
1187
  const parsedOutput = {
@@ -1212,10 +1198,9 @@ const de_DeleteDBClusterSnapshotCommandError = async (output, context) => {
1212
1198
  throw await de_InvalidDBClusterSnapshotStateFaultRes(parsedOutput, context);
1213
1199
  default:
1214
1200
  const parsedBody = parsedOutput.body;
1215
- throwDefaultError({
1201
+ return throwDefaultError({
1216
1202
  output,
1217
1203
  parsedBody: parsedBody.Error,
1218
- exceptionCtor: __BaseException,
1219
1204
  errorCode,
1220
1205
  });
1221
1206
  }
@@ -1231,7 +1216,7 @@ export const de_DeleteDBInstanceCommand = async (output, context) => {
1231
1216
  $metadata: deserializeMetadata(output),
1232
1217
  ...contents,
1233
1218
  };
1234
- return Promise.resolve(response);
1219
+ return response;
1235
1220
  };
1236
1221
  const de_DeleteDBInstanceCommandError = async (output, context) => {
1237
1222
  const parsedOutput = {
@@ -1257,10 +1242,9 @@ const de_DeleteDBInstanceCommandError = async (output, context) => {
1257
1242
  throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
1258
1243
  default:
1259
1244
  const parsedBody = parsedOutput.body;
1260
- throwDefaultError({
1245
+ return throwDefaultError({
1261
1246
  output,
1262
1247
  parsedBody: parsedBody.Error,
1263
- exceptionCtor: __BaseException,
1264
1248
  errorCode,
1265
1249
  });
1266
1250
  }
@@ -1273,7 +1257,7 @@ export const de_DeleteDBSubnetGroupCommand = async (output, context) => {
1273
1257
  const response = {
1274
1258
  $metadata: deserializeMetadata(output),
1275
1259
  };
1276
- return Promise.resolve(response);
1260
+ return response;
1277
1261
  };
1278
1262
  const de_DeleteDBSubnetGroupCommandError = async (output, context) => {
1279
1263
  const parsedOutput = {
@@ -1293,10 +1277,9 @@ const de_DeleteDBSubnetGroupCommandError = async (output, context) => {
1293
1277
  throw await de_InvalidDBSubnetStateFaultRes(parsedOutput, context);
1294
1278
  default:
1295
1279
  const parsedBody = parsedOutput.body;
1296
- throwDefaultError({
1280
+ return throwDefaultError({
1297
1281
  output,
1298
1282
  parsedBody: parsedBody.Error,
1299
- exceptionCtor: __BaseException,
1300
1283
  errorCode,
1301
1284
  });
1302
1285
  }
@@ -1312,7 +1295,7 @@ export const de_DeleteEventSubscriptionCommand = async (output, context) => {
1312
1295
  $metadata: deserializeMetadata(output),
1313
1296
  ...contents,
1314
1297
  };
1315
- return Promise.resolve(response);
1298
+ return response;
1316
1299
  };
1317
1300
  const de_DeleteEventSubscriptionCommandError = async (output, context) => {
1318
1301
  const parsedOutput = {
@@ -1329,10 +1312,9 @@ const de_DeleteEventSubscriptionCommandError = async (output, context) => {
1329
1312
  throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
1330
1313
  default:
1331
1314
  const parsedBody = parsedOutput.body;
1332
- throwDefaultError({
1315
+ return throwDefaultError({
1333
1316
  output,
1334
1317
  parsedBody: parsedBody.Error,
1335
- exceptionCtor: __BaseException,
1336
1318
  errorCode,
1337
1319
  });
1338
1320
  }
@@ -1348,7 +1330,7 @@ export const de_DeleteGlobalClusterCommand = async (output, context) => {
1348
1330
  $metadata: deserializeMetadata(output),
1349
1331
  ...contents,
1350
1332
  };
1351
- return Promise.resolve(response);
1333
+ return response;
1352
1334
  };
1353
1335
  const de_DeleteGlobalClusterCommandError = async (output, context) => {
1354
1336
  const parsedOutput = {
@@ -1365,10 +1347,9 @@ const de_DeleteGlobalClusterCommandError = async (output, context) => {
1365
1347
  throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
1366
1348
  default:
1367
1349
  const parsedBody = parsedOutput.body;
1368
- throwDefaultError({
1350
+ return throwDefaultError({
1369
1351
  output,
1370
1352
  parsedBody: parsedBody.Error,
1371
- exceptionCtor: __BaseException,
1372
1353
  errorCode,
1373
1354
  });
1374
1355
  }
@@ -1384,7 +1365,7 @@ export const de_DescribeCertificatesCommand = async (output, context) => {
1384
1365
  $metadata: deserializeMetadata(output),
1385
1366
  ...contents,
1386
1367
  };
1387
- return Promise.resolve(response);
1368
+ return response;
1388
1369
  };
1389
1370
  const de_DescribeCertificatesCommandError = async (output, context) => {
1390
1371
  const parsedOutput = {
@@ -1398,10 +1379,9 @@ const de_DescribeCertificatesCommandError = async (output, context) => {
1398
1379
  throw await de_CertificateNotFoundFaultRes(parsedOutput, context);
1399
1380
  default:
1400
1381
  const parsedBody = parsedOutput.body;
1401
- throwDefaultError({
1382
+ return throwDefaultError({
1402
1383
  output,
1403
1384
  parsedBody: parsedBody.Error,
1404
- exceptionCtor: __BaseException,
1405
1385
  errorCode,
1406
1386
  });
1407
1387
  }
@@ -1417,7 +1397,7 @@ export const de_DescribeDBClusterParameterGroupsCommand = async (output, context
1417
1397
  $metadata: deserializeMetadata(output),
1418
1398
  ...contents,
1419
1399
  };
1420
- return Promise.resolve(response);
1400
+ return response;
1421
1401
  };
1422
1402
  const de_DescribeDBClusterParameterGroupsCommandError = async (output, context) => {
1423
1403
  const parsedOutput = {
@@ -1431,10 +1411,9 @@ const de_DescribeDBClusterParameterGroupsCommandError = async (output, context)
1431
1411
  throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
1432
1412
  default:
1433
1413
  const parsedBody = parsedOutput.body;
1434
- throwDefaultError({
1414
+ return throwDefaultError({
1435
1415
  output,
1436
1416
  parsedBody: parsedBody.Error,
1437
- exceptionCtor: __BaseException,
1438
1417
  errorCode,
1439
1418
  });
1440
1419
  }
@@ -1450,7 +1429,7 @@ export const de_DescribeDBClusterParametersCommand = async (output, context) =>
1450
1429
  $metadata: deserializeMetadata(output),
1451
1430
  ...contents,
1452
1431
  };
1453
- return Promise.resolve(response);
1432
+ return response;
1454
1433
  };
1455
1434
  const de_DescribeDBClusterParametersCommandError = async (output, context) => {
1456
1435
  const parsedOutput = {
@@ -1464,10 +1443,9 @@ const de_DescribeDBClusterParametersCommandError = async (output, context) => {
1464
1443
  throw await de_DBParameterGroupNotFoundFaultRes(parsedOutput, context);
1465
1444
  default:
1466
1445
  const parsedBody = parsedOutput.body;
1467
- throwDefaultError({
1446
+ return throwDefaultError({
1468
1447
  output,
1469
1448
  parsedBody: parsedBody.Error,
1470
- exceptionCtor: __BaseException,
1471
1449
  errorCode,
1472
1450
  });
1473
1451
  }
@@ -1483,7 +1461,7 @@ export const de_DescribeDBClustersCommand = async (output, context) => {
1483
1461
  $metadata: deserializeMetadata(output),
1484
1462
  ...contents,
1485
1463
  };
1486
- return Promise.resolve(response);
1464
+ return response;
1487
1465
  };
1488
1466
  const de_DescribeDBClustersCommandError = async (output, context) => {
1489
1467
  const parsedOutput = {
@@ -1497,10 +1475,9 @@ const de_DescribeDBClustersCommandError = async (output, context) => {
1497
1475
  throw await de_DBClusterNotFoundFaultRes(parsedOutput, context);
1498
1476
  default:
1499
1477
  const parsedBody = parsedOutput.body;
1500
- throwDefaultError({
1478
+ return throwDefaultError({
1501
1479
  output,
1502
1480
  parsedBody: parsedBody.Error,
1503
- exceptionCtor: __BaseException,
1504
1481
  errorCode,
1505
1482
  });
1506
1483
  }
@@ -1516,7 +1493,7 @@ export const de_DescribeDBClusterSnapshotAttributesCommand = async (output, cont
1516
1493
  $metadata: deserializeMetadata(output),
1517
1494
  ...contents,
1518
1495
  };
1519
- return Promise.resolve(response);
1496
+ return response;
1520
1497
  };
1521
1498
  const de_DescribeDBClusterSnapshotAttributesCommandError = async (output, context) => {
1522
1499
  const parsedOutput = {
@@ -1530,10 +1507,9 @@ const de_DescribeDBClusterSnapshotAttributesCommandError = async (output, contex
1530
1507
  throw await de_DBClusterSnapshotNotFoundFaultRes(parsedOutput, context);
1531
1508
  default:
1532
1509
  const parsedBody = parsedOutput.body;
1533
- throwDefaultError({
1510
+ return throwDefaultError({
1534
1511
  output,
1535
1512
  parsedBody: parsedBody.Error,
1536
- exceptionCtor: __BaseException,
1537
1513
  errorCode,
1538
1514
  });
1539
1515
  }
@@ -1549,7 +1525,7 @@ export const de_DescribeDBClusterSnapshotsCommand = async (output, context) => {
1549
1525
  $metadata: deserializeMetadata(output),
1550
1526
  ...contents,
1551
1527
  };
1552
- return Promise.resolve(response);
1528
+ return response;
1553
1529
  };
1554
1530
  const de_DescribeDBClusterSnapshotsCommandError = async (output, context) => {
1555
1531
  const parsedOutput = {
@@ -1563,10 +1539,9 @@ const de_DescribeDBClusterSnapshotsCommandError = async (output, context) => {
1563
1539
  throw await de_DBClusterSnapshotNotFoundFaultRes(parsedOutput, context);
1564
1540
  default:
1565
1541
  const parsedBody = parsedOutput.body;
1566
- throwDefaultError({
1542
+ return throwDefaultError({
1567
1543
  output,
1568
1544
  parsedBody: parsedBody.Error,
1569
- exceptionCtor: __BaseException,
1570
1545
  errorCode,
1571
1546
  });
1572
1547
  }
@@ -1582,7 +1557,7 @@ export const de_DescribeDBEngineVersionsCommand = async (output, context) => {
1582
1557
  $metadata: deserializeMetadata(output),
1583
1558
  ...contents,
1584
1559
  };
1585
- return Promise.resolve(response);
1560
+ return response;
1586
1561
  };
1587
1562
  const de_DescribeDBEngineVersionsCommandError = async (output, context) => {
1588
1563
  const parsedOutput = {
@@ -1591,10 +1566,9 @@ const de_DescribeDBEngineVersionsCommandError = async (output, context) => {
1591
1566
  };
1592
1567
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1593
1568
  const parsedBody = parsedOutput.body;
1594
- throwDefaultError({
1569
+ return throwDefaultError({
1595
1570
  output,
1596
1571
  parsedBody: parsedBody.Error,
1597
- exceptionCtor: __BaseException,
1598
1572
  errorCode,
1599
1573
  });
1600
1574
  };
@@ -1609,7 +1583,7 @@ export const de_DescribeDBInstancesCommand = async (output, context) => {
1609
1583
  $metadata: deserializeMetadata(output),
1610
1584
  ...contents,
1611
1585
  };
1612
- return Promise.resolve(response);
1586
+ return response;
1613
1587
  };
1614
1588
  const de_DescribeDBInstancesCommandError = async (output, context) => {
1615
1589
  const parsedOutput = {
@@ -1623,10 +1597,9 @@ const de_DescribeDBInstancesCommandError = async (output, context) => {
1623
1597
  throw await de_DBInstanceNotFoundFaultRes(parsedOutput, context);
1624
1598
  default:
1625
1599
  const parsedBody = parsedOutput.body;
1626
- throwDefaultError({
1600
+ return throwDefaultError({
1627
1601
  output,
1628
1602
  parsedBody: parsedBody.Error,
1629
- exceptionCtor: __BaseException,
1630
1603
  errorCode,
1631
1604
  });
1632
1605
  }
@@ -1642,7 +1615,7 @@ export const de_DescribeDBSubnetGroupsCommand = async (output, context) => {
1642
1615
  $metadata: deserializeMetadata(output),
1643
1616
  ...contents,
1644
1617
  };
1645
- return Promise.resolve(response);
1618
+ return response;
1646
1619
  };
1647
1620
  const de_DescribeDBSubnetGroupsCommandError = async (output, context) => {
1648
1621
  const parsedOutput = {
@@ -1656,10 +1629,9 @@ const de_DescribeDBSubnetGroupsCommandError = async (output, context) => {
1656
1629
  throw await de_DBSubnetGroupNotFoundFaultRes(parsedOutput, context);
1657
1630
  default:
1658
1631
  const parsedBody = parsedOutput.body;
1659
- throwDefaultError({
1632
+ return throwDefaultError({
1660
1633
  output,
1661
1634
  parsedBody: parsedBody.Error,
1662
- exceptionCtor: __BaseException,
1663
1635
  errorCode,
1664
1636
  });
1665
1637
  }
@@ -1675,7 +1647,7 @@ export const de_DescribeEngineDefaultClusterParametersCommand = async (output, c
1675
1647
  $metadata: deserializeMetadata(output),
1676
1648
  ...contents,
1677
1649
  };
1678
- return Promise.resolve(response);
1650
+ return response;
1679
1651
  };
1680
1652
  const de_DescribeEngineDefaultClusterParametersCommandError = async (output, context) => {
1681
1653
  const parsedOutput = {
@@ -1684,10 +1656,9 @@ const de_DescribeEngineDefaultClusterParametersCommandError = async (output, con
1684
1656
  };
1685
1657
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1686
1658
  const parsedBody = parsedOutput.body;
1687
- throwDefaultError({
1659
+ return throwDefaultError({
1688
1660
  output,
1689
1661
  parsedBody: parsedBody.Error,
1690
- exceptionCtor: __BaseException,
1691
1662
  errorCode,
1692
1663
  });
1693
1664
  };
@@ -1702,7 +1673,7 @@ export const de_DescribeEventCategoriesCommand = async (output, context) => {
1702
1673
  $metadata: deserializeMetadata(output),
1703
1674
  ...contents,
1704
1675
  };
1705
- return Promise.resolve(response);
1676
+ return response;
1706
1677
  };
1707
1678
  const de_DescribeEventCategoriesCommandError = async (output, context) => {
1708
1679
  const parsedOutput = {
@@ -1711,10 +1682,9 @@ const de_DescribeEventCategoriesCommandError = async (output, context) => {
1711
1682
  };
1712
1683
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1713
1684
  const parsedBody = parsedOutput.body;
1714
- throwDefaultError({
1685
+ return throwDefaultError({
1715
1686
  output,
1716
1687
  parsedBody: parsedBody.Error,
1717
- exceptionCtor: __BaseException,
1718
1688
  errorCode,
1719
1689
  });
1720
1690
  };
@@ -1729,7 +1699,7 @@ export const de_DescribeEventsCommand = async (output, context) => {
1729
1699
  $metadata: deserializeMetadata(output),
1730
1700
  ...contents,
1731
1701
  };
1732
- return Promise.resolve(response);
1702
+ return response;
1733
1703
  };
1734
1704
  const de_DescribeEventsCommandError = async (output, context) => {
1735
1705
  const parsedOutput = {
@@ -1738,10 +1708,9 @@ const de_DescribeEventsCommandError = async (output, context) => {
1738
1708
  };
1739
1709
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1740
1710
  const parsedBody = parsedOutput.body;
1741
- throwDefaultError({
1711
+ return throwDefaultError({
1742
1712
  output,
1743
1713
  parsedBody: parsedBody.Error,
1744
- exceptionCtor: __BaseException,
1745
1714
  errorCode,
1746
1715
  });
1747
1716
  };
@@ -1756,7 +1725,7 @@ export const de_DescribeEventSubscriptionsCommand = async (output, context) => {
1756
1725
  $metadata: deserializeMetadata(output),
1757
1726
  ...contents,
1758
1727
  };
1759
- return Promise.resolve(response);
1728
+ return response;
1760
1729
  };
1761
1730
  const de_DescribeEventSubscriptionsCommandError = async (output, context) => {
1762
1731
  const parsedOutput = {
@@ -1770,10 +1739,9 @@ const de_DescribeEventSubscriptionsCommandError = async (output, context) => {
1770
1739
  throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
1771
1740
  default:
1772
1741
  const parsedBody = parsedOutput.body;
1773
- throwDefaultError({
1742
+ return throwDefaultError({
1774
1743
  output,
1775
1744
  parsedBody: parsedBody.Error,
1776
- exceptionCtor: __BaseException,
1777
1745
  errorCode,
1778
1746
  });
1779
1747
  }
@@ -1789,7 +1757,7 @@ export const de_DescribeGlobalClustersCommand = async (output, context) => {
1789
1757
  $metadata: deserializeMetadata(output),
1790
1758
  ...contents,
1791
1759
  };
1792
- return Promise.resolve(response);
1760
+ return response;
1793
1761
  };
1794
1762
  const de_DescribeGlobalClustersCommandError = async (output, context) => {
1795
1763
  const parsedOutput = {
@@ -1803,10 +1771,9 @@ const de_DescribeGlobalClustersCommandError = async (output, context) => {
1803
1771
  throw await de_GlobalClusterNotFoundFaultRes(parsedOutput, context);
1804
1772
  default:
1805
1773
  const parsedBody = parsedOutput.body;
1806
- throwDefaultError({
1774
+ return throwDefaultError({
1807
1775
  output,
1808
1776
  parsedBody: parsedBody.Error,
1809
- exceptionCtor: __BaseException,
1810
1777
  errorCode,
1811
1778
  });
1812
1779
  }
@@ -1822,7 +1789,7 @@ export const de_DescribeOrderableDBInstanceOptionsCommand = async (output, conte
1822
1789
  $metadata: deserializeMetadata(output),
1823
1790
  ...contents,
1824
1791
  };
1825
- return Promise.resolve(response);
1792
+ return response;
1826
1793
  };
1827
1794
  const de_DescribeOrderableDBInstanceOptionsCommandError = async (output, context) => {
1828
1795
  const parsedOutput = {
@@ -1831,10 +1798,9 @@ const de_DescribeOrderableDBInstanceOptionsCommandError = async (output, context
1831
1798
  };
1832
1799
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1833
1800
  const parsedBody = parsedOutput.body;
1834
- throwDefaultError({
1801
+ return throwDefaultError({
1835
1802
  output,
1836
1803
  parsedBody: parsedBody.Error,
1837
- exceptionCtor: __BaseException,
1838
1804
  errorCode,
1839
1805
  });
1840
1806
  };
@@ -1849,7 +1815,7 @@ export const de_DescribePendingMaintenanceActionsCommand = async (output, contex
1849
1815
  $metadata: deserializeMetadata(output),
1850
1816
  ...contents,
1851
1817
  };
1852
- return Promise.resolve(response);
1818
+ return response;
1853
1819
  };
1854
1820
  const de_DescribePendingMaintenanceActionsCommandError = async (output, context) => {
1855
1821
  const parsedOutput = {
@@ -1863,10 +1829,9 @@ const de_DescribePendingMaintenanceActionsCommandError = async (output, context)
1863
1829
  throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
1864
1830
  default:
1865
1831
  const parsedBody = parsedOutput.body;
1866
- throwDefaultError({
1832
+ return throwDefaultError({
1867
1833
  output,
1868
1834
  parsedBody: parsedBody.Error,
1869
- exceptionCtor: __BaseException,
1870
1835
  errorCode,
1871
1836
  });
1872
1837
  }
@@ -1882,7 +1847,7 @@ export const de_FailoverDBClusterCommand = async (output, context) => {
1882
1847
  $metadata: deserializeMetadata(output),
1883
1848
  ...contents,
1884
1849
  };
1885
- return Promise.resolve(response);
1850
+ return response;
1886
1851
  };
1887
1852
  const de_FailoverDBClusterCommandError = async (output, context) => {
1888
1853
  const parsedOutput = {
@@ -1902,10 +1867,9 @@ const de_FailoverDBClusterCommandError = async (output, context) => {
1902
1867
  throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
1903
1868
  default:
1904
1869
  const parsedBody = parsedOutput.body;
1905
- throwDefaultError({
1870
+ return throwDefaultError({
1906
1871
  output,
1907
1872
  parsedBody: parsedBody.Error,
1908
- exceptionCtor: __BaseException,
1909
1873
  errorCode,
1910
1874
  });
1911
1875
  }
@@ -1921,7 +1885,7 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
1921
1885
  $metadata: deserializeMetadata(output),
1922
1886
  ...contents,
1923
1887
  };
1924
- return Promise.resolve(response);
1888
+ return response;
1925
1889
  };
1926
1890
  const de_ListTagsForResourceCommandError = async (output, context) => {
1927
1891
  const parsedOutput = {
@@ -1941,10 +1905,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1941
1905
  throw await de_DBSnapshotNotFoundFaultRes(parsedOutput, context);
1942
1906
  default:
1943
1907
  const parsedBody = parsedOutput.body;
1944
- throwDefaultError({
1908
+ return throwDefaultError({
1945
1909
  output,
1946
1910
  parsedBody: parsedBody.Error,
1947
- exceptionCtor: __BaseException,
1948
1911
  errorCode,
1949
1912
  });
1950
1913
  }
@@ -1960,7 +1923,7 @@ export const de_ModifyDBClusterCommand = async (output, context) => {
1960
1923
  $metadata: deserializeMetadata(output),
1961
1924
  ...contents,
1962
1925
  };
1963
- return Promise.resolve(response);
1926
+ return response;
1964
1927
  };
1965
1928
  const de_ModifyDBClusterCommandError = async (output, context) => {
1966
1929
  const parsedOutput = {
@@ -2004,10 +1967,9 @@ const de_ModifyDBClusterCommandError = async (output, context) => {
2004
1967
  throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
2005
1968
  default:
2006
1969
  const parsedBody = parsedOutput.body;
2007
- throwDefaultError({
1970
+ return throwDefaultError({
2008
1971
  output,
2009
1972
  parsedBody: parsedBody.Error,
2010
- exceptionCtor: __BaseException,
2011
1973
  errorCode,
2012
1974
  });
2013
1975
  }
@@ -2023,7 +1985,7 @@ export const de_ModifyDBClusterParameterGroupCommand = async (output, context) =
2023
1985
  $metadata: deserializeMetadata(output),
2024
1986
  ...contents,
2025
1987
  };
2026
- return Promise.resolve(response);
1988
+ return response;
2027
1989
  };
2028
1990
  const de_ModifyDBClusterParameterGroupCommandError = async (output, context) => {
2029
1991
  const parsedOutput = {
@@ -2040,10 +2002,9 @@ const de_ModifyDBClusterParameterGroupCommandError = async (output, context) =>
2040
2002
  throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
2041
2003
  default:
2042
2004
  const parsedBody = parsedOutput.body;
2043
- throwDefaultError({
2005
+ return throwDefaultError({
2044
2006
  output,
2045
2007
  parsedBody: parsedBody.Error,
2046
- exceptionCtor: __BaseException,
2047
2008
  errorCode,
2048
2009
  });
2049
2010
  }
@@ -2059,7 +2020,7 @@ export const de_ModifyDBClusterSnapshotAttributeCommand = async (output, context
2059
2020
  $metadata: deserializeMetadata(output),
2060
2021
  ...contents,
2061
2022
  };
2062
- return Promise.resolve(response);
2023
+ return response;
2063
2024
  };
2064
2025
  const de_ModifyDBClusterSnapshotAttributeCommandError = async (output, context) => {
2065
2026
  const parsedOutput = {
@@ -2079,10 +2040,9 @@ const de_ModifyDBClusterSnapshotAttributeCommandError = async (output, context)
2079
2040
  throw await de_SharedSnapshotQuotaExceededFaultRes(parsedOutput, context);
2080
2041
  default:
2081
2042
  const parsedBody = parsedOutput.body;
2082
- throwDefaultError({
2043
+ return throwDefaultError({
2083
2044
  output,
2084
2045
  parsedBody: parsedBody.Error,
2085
- exceptionCtor: __BaseException,
2086
2046
  errorCode,
2087
2047
  });
2088
2048
  }
@@ -2098,7 +2058,7 @@ export const de_ModifyDBInstanceCommand = async (output, context) => {
2098
2058
  $metadata: deserializeMetadata(output),
2099
2059
  ...contents,
2100
2060
  };
2101
- return Promise.resolve(response);
2061
+ return response;
2102
2062
  };
2103
2063
  const de_ModifyDBInstanceCommandError = async (output, context) => {
2104
2064
  const parsedOutput = {
@@ -2148,10 +2108,9 @@ const de_ModifyDBInstanceCommandError = async (output, context) => {
2148
2108
  throw await de_StorageTypeNotSupportedFaultRes(parsedOutput, context);
2149
2109
  default:
2150
2110
  const parsedBody = parsedOutput.body;
2151
- throwDefaultError({
2111
+ return throwDefaultError({
2152
2112
  output,
2153
2113
  parsedBody: parsedBody.Error,
2154
- exceptionCtor: __BaseException,
2155
2114
  errorCode,
2156
2115
  });
2157
2116
  }
@@ -2167,7 +2126,7 @@ export const de_ModifyDBSubnetGroupCommand = async (output, context) => {
2167
2126
  $metadata: deserializeMetadata(output),
2168
2127
  ...contents,
2169
2128
  };
2170
- return Promise.resolve(response);
2129
+ return response;
2171
2130
  };
2172
2131
  const de_ModifyDBSubnetGroupCommandError = async (output, context) => {
2173
2132
  const parsedOutput = {
@@ -2193,10 +2152,9 @@ const de_ModifyDBSubnetGroupCommandError = async (output, context) => {
2193
2152
  throw await de_SubnetAlreadyInUseRes(parsedOutput, context);
2194
2153
  default:
2195
2154
  const parsedBody = parsedOutput.body;
2196
- throwDefaultError({
2155
+ return throwDefaultError({
2197
2156
  output,
2198
2157
  parsedBody: parsedBody.Error,
2199
- exceptionCtor: __BaseException,
2200
2158
  errorCode,
2201
2159
  });
2202
2160
  }
@@ -2212,7 +2170,7 @@ export const de_ModifyEventSubscriptionCommand = async (output, context) => {
2212
2170
  $metadata: deserializeMetadata(output),
2213
2171
  ...contents,
2214
2172
  };
2215
- return Promise.resolve(response);
2173
+ return response;
2216
2174
  };
2217
2175
  const de_ModifyEventSubscriptionCommandError = async (output, context) => {
2218
2176
  const parsedOutput = {
@@ -2241,10 +2199,9 @@ const de_ModifyEventSubscriptionCommandError = async (output, context) => {
2241
2199
  throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
2242
2200
  default:
2243
2201
  const parsedBody = parsedOutput.body;
2244
- throwDefaultError({
2202
+ return throwDefaultError({
2245
2203
  output,
2246
2204
  parsedBody: parsedBody.Error,
2247
- exceptionCtor: __BaseException,
2248
2205
  errorCode,
2249
2206
  });
2250
2207
  }
@@ -2260,7 +2217,7 @@ export const de_ModifyGlobalClusterCommand = async (output, context) => {
2260
2217
  $metadata: deserializeMetadata(output),
2261
2218
  ...contents,
2262
2219
  };
2263
- return Promise.resolve(response);
2220
+ return response;
2264
2221
  };
2265
2222
  const de_ModifyGlobalClusterCommandError = async (output, context) => {
2266
2223
  const parsedOutput = {
@@ -2277,10 +2234,9 @@ const de_ModifyGlobalClusterCommandError = async (output, context) => {
2277
2234
  throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
2278
2235
  default:
2279
2236
  const parsedBody = parsedOutput.body;
2280
- throwDefaultError({
2237
+ return throwDefaultError({
2281
2238
  output,
2282
2239
  parsedBody: parsedBody.Error,
2283
- exceptionCtor: __BaseException,
2284
2240
  errorCode,
2285
2241
  });
2286
2242
  }
@@ -2296,7 +2252,7 @@ export const de_RebootDBInstanceCommand = async (output, context) => {
2296
2252
  $metadata: deserializeMetadata(output),
2297
2253
  ...contents,
2298
2254
  };
2299
- return Promise.resolve(response);
2255
+ return response;
2300
2256
  };
2301
2257
  const de_RebootDBInstanceCommandError = async (output, context) => {
2302
2258
  const parsedOutput = {
@@ -2313,10 +2269,9 @@ const de_RebootDBInstanceCommandError = async (output, context) => {
2313
2269
  throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
2314
2270
  default:
2315
2271
  const parsedBody = parsedOutput.body;
2316
- throwDefaultError({
2272
+ return throwDefaultError({
2317
2273
  output,
2318
2274
  parsedBody: parsedBody.Error,
2319
- exceptionCtor: __BaseException,
2320
2275
  errorCode,
2321
2276
  });
2322
2277
  }
@@ -2332,7 +2287,7 @@ export const de_RemoveFromGlobalClusterCommand = async (output, context) => {
2332
2287
  $metadata: deserializeMetadata(output),
2333
2288
  ...contents,
2334
2289
  };
2335
- return Promise.resolve(response);
2290
+ return response;
2336
2291
  };
2337
2292
  const de_RemoveFromGlobalClusterCommandError = async (output, context) => {
2338
2293
  const parsedOutput = {
@@ -2352,10 +2307,9 @@ const de_RemoveFromGlobalClusterCommandError = async (output, context) => {
2352
2307
  throw await de_InvalidGlobalClusterStateFaultRes(parsedOutput, context);
2353
2308
  default:
2354
2309
  const parsedBody = parsedOutput.body;
2355
- throwDefaultError({
2310
+ return throwDefaultError({
2356
2311
  output,
2357
2312
  parsedBody: parsedBody.Error,
2358
- exceptionCtor: __BaseException,
2359
2313
  errorCode,
2360
2314
  });
2361
2315
  }
@@ -2371,7 +2325,7 @@ export const de_RemoveSourceIdentifierFromSubscriptionCommand = async (output, c
2371
2325
  $metadata: deserializeMetadata(output),
2372
2326
  ...contents,
2373
2327
  };
2374
- return Promise.resolve(response);
2328
+ return response;
2375
2329
  };
2376
2330
  const de_RemoveSourceIdentifierFromSubscriptionCommandError = async (output, context) => {
2377
2331
  const parsedOutput = {
@@ -2388,10 +2342,9 @@ const de_RemoveSourceIdentifierFromSubscriptionCommandError = async (output, con
2388
2342
  throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
2389
2343
  default:
2390
2344
  const parsedBody = parsedOutput.body;
2391
- throwDefaultError({
2345
+ return throwDefaultError({
2392
2346
  output,
2393
2347
  parsedBody: parsedBody.Error,
2394
- exceptionCtor: __BaseException,
2395
2348
  errorCode,
2396
2349
  });
2397
2350
  }
@@ -2404,7 +2357,7 @@ export const de_RemoveTagsFromResourceCommand = async (output, context) => {
2404
2357
  const response = {
2405
2358
  $metadata: deserializeMetadata(output),
2406
2359
  };
2407
- return Promise.resolve(response);
2360
+ return response;
2408
2361
  };
2409
2362
  const de_RemoveTagsFromResourceCommandError = async (output, context) => {
2410
2363
  const parsedOutput = {
@@ -2424,10 +2377,9 @@ const de_RemoveTagsFromResourceCommandError = async (output, context) => {
2424
2377
  throw await de_DBSnapshotNotFoundFaultRes(parsedOutput, context);
2425
2378
  default:
2426
2379
  const parsedBody = parsedOutput.body;
2427
- throwDefaultError({
2380
+ return throwDefaultError({
2428
2381
  output,
2429
2382
  parsedBody: parsedBody.Error,
2430
- exceptionCtor: __BaseException,
2431
2383
  errorCode,
2432
2384
  });
2433
2385
  }
@@ -2443,7 +2395,7 @@ export const de_ResetDBClusterParameterGroupCommand = async (output, context) =>
2443
2395
  $metadata: deserializeMetadata(output),
2444
2396
  ...contents,
2445
2397
  };
2446
- return Promise.resolve(response);
2398
+ return response;
2447
2399
  };
2448
2400
  const de_ResetDBClusterParameterGroupCommandError = async (output, context) => {
2449
2401
  const parsedOutput = {
@@ -2460,10 +2412,9 @@ const de_ResetDBClusterParameterGroupCommandError = async (output, context) => {
2460
2412
  throw await de_InvalidDBParameterGroupStateFaultRes(parsedOutput, context);
2461
2413
  default:
2462
2414
  const parsedBody = parsedOutput.body;
2463
- throwDefaultError({
2415
+ return throwDefaultError({
2464
2416
  output,
2465
2417
  parsedBody: parsedBody.Error,
2466
- exceptionCtor: __BaseException,
2467
2418
  errorCode,
2468
2419
  });
2469
2420
  }
@@ -2479,7 +2430,7 @@ export const de_RestoreDBClusterFromSnapshotCommand = async (output, context) =>
2479
2430
  $metadata: deserializeMetadata(output),
2480
2431
  ...contents,
2481
2432
  };
2482
- return Promise.resolve(response);
2433
+ return response;
2483
2434
  };
2484
2435
  const de_RestoreDBClusterFromSnapshotCommandError = async (output, context) => {
2485
2436
  const parsedOutput = {
@@ -2532,10 +2483,9 @@ const de_RestoreDBClusterFromSnapshotCommandError = async (output, context) => {
2532
2483
  throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
2533
2484
  default:
2534
2485
  const parsedBody = parsedOutput.body;
2535
- throwDefaultError({
2486
+ return throwDefaultError({
2536
2487
  output,
2537
2488
  parsedBody: parsedBody.Error,
2538
- exceptionCtor: __BaseException,
2539
2489
  errorCode,
2540
2490
  });
2541
2491
  }
@@ -2551,7 +2501,7 @@ export const de_RestoreDBClusterToPointInTimeCommand = async (output, context) =
2551
2501
  $metadata: deserializeMetadata(output),
2552
2502
  ...contents,
2553
2503
  };
2554
- return Promise.resolve(response);
2504
+ return response;
2555
2505
  };
2556
2506
  const de_RestoreDBClusterToPointInTimeCommandError = async (output, context) => {
2557
2507
  const parsedOutput = {
@@ -2607,10 +2557,9 @@ const de_RestoreDBClusterToPointInTimeCommandError = async (output, context) =>
2607
2557
  throw await de_StorageQuotaExceededFaultRes(parsedOutput, context);
2608
2558
  default:
2609
2559
  const parsedBody = parsedOutput.body;
2610
- throwDefaultError({
2560
+ return throwDefaultError({
2611
2561
  output,
2612
2562
  parsedBody: parsedBody.Error,
2613
- exceptionCtor: __BaseException,
2614
2563
  errorCode,
2615
2564
  });
2616
2565
  }
@@ -2626,7 +2575,7 @@ export const de_StartDBClusterCommand = async (output, context) => {
2626
2575
  $metadata: deserializeMetadata(output),
2627
2576
  ...contents,
2628
2577
  };
2629
- return Promise.resolve(response);
2578
+ return response;
2630
2579
  };
2631
2580
  const de_StartDBClusterCommandError = async (output, context) => {
2632
2581
  const parsedOutput = {
@@ -2646,10 +2595,9 @@ const de_StartDBClusterCommandError = async (output, context) => {
2646
2595
  throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
2647
2596
  default:
2648
2597
  const parsedBody = parsedOutput.body;
2649
- throwDefaultError({
2598
+ return throwDefaultError({
2650
2599
  output,
2651
2600
  parsedBody: parsedBody.Error,
2652
- exceptionCtor: __BaseException,
2653
2601
  errorCode,
2654
2602
  });
2655
2603
  }
@@ -2665,7 +2613,7 @@ export const de_StopDBClusterCommand = async (output, context) => {
2665
2613
  $metadata: deserializeMetadata(output),
2666
2614
  ...contents,
2667
2615
  };
2668
- return Promise.resolve(response);
2616
+ return response;
2669
2617
  };
2670
2618
  const de_StopDBClusterCommandError = async (output, context) => {
2671
2619
  const parsedOutput = {
@@ -2685,10 +2633,9 @@ const de_StopDBClusterCommandError = async (output, context) => {
2685
2633
  throw await de_InvalidDBInstanceStateFaultRes(parsedOutput, context);
2686
2634
  default:
2687
2635
  const parsedBody = parsedOutput.body;
2688
- throwDefaultError({
2636
+ return throwDefaultError({
2689
2637
  output,
2690
2638
  parsedBody: parsedBody.Error,
2691
- exceptionCtor: __BaseException,
2692
2639
  errorCode,
2693
2640
  });
2694
2641
  }
@@ -6606,6 +6553,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
6606
6553
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
6607
6554
  };
6608
6555
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
6556
+ const throwDefaultError = withBaseException(__BaseException);
6609
6557
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
6610
6558
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6611
6559
  const contents = {