@aws-sdk/client-ses 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.
@@ -792,7 +792,7 @@ const de_CloneReceiptRuleSetCommand = async (output, context) => {
792
792
  $metadata: deserializeMetadata(output),
793
793
  ...contents,
794
794
  };
795
- return Promise.resolve(response);
795
+ return response;
796
796
  };
797
797
  exports.de_CloneReceiptRuleSetCommand = de_CloneReceiptRuleSetCommand;
798
798
  const de_CloneReceiptRuleSetCommandError = async (output, context) => {
@@ -813,10 +813,9 @@ const de_CloneReceiptRuleSetCommandError = async (output, context) => {
813
813
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
814
814
  default:
815
815
  const parsedBody = parsedOutput.body;
816
- (0, smithy_client_1.throwDefaultError)({
816
+ return throwDefaultError({
817
817
  output,
818
818
  parsedBody: parsedBody.Error,
819
- exceptionCtor: SESServiceException_1.SESServiceException,
820
819
  errorCode,
821
820
  });
822
821
  }
@@ -832,7 +831,7 @@ const de_CreateConfigurationSetCommand = async (output, context) => {
832
831
  $metadata: deserializeMetadata(output),
833
832
  ...contents,
834
833
  };
835
- return Promise.resolve(response);
834
+ return response;
836
835
  };
837
836
  exports.de_CreateConfigurationSetCommand = de_CreateConfigurationSetCommand;
838
837
  const de_CreateConfigurationSetCommandError = async (output, context) => {
@@ -853,10 +852,9 @@ const de_CreateConfigurationSetCommandError = async (output, context) => {
853
852
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
854
853
  default:
855
854
  const parsedBody = parsedOutput.body;
856
- (0, smithy_client_1.throwDefaultError)({
855
+ return throwDefaultError({
857
856
  output,
858
857
  parsedBody: parsedBody.Error,
859
- exceptionCtor: SESServiceException_1.SESServiceException,
860
858
  errorCode,
861
859
  });
862
860
  }
@@ -872,7 +870,7 @@ const de_CreateConfigurationSetEventDestinationCommand = async (output, context)
872
870
  $metadata: deserializeMetadata(output),
873
871
  ...contents,
874
872
  };
875
- return Promise.resolve(response);
873
+ return response;
876
874
  };
877
875
  exports.de_CreateConfigurationSetEventDestinationCommand = de_CreateConfigurationSetEventDestinationCommand;
878
876
  const de_CreateConfigurationSetEventDestinationCommandError = async (output, context) => {
@@ -902,10 +900,9 @@ const de_CreateConfigurationSetEventDestinationCommandError = async (output, con
902
900
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
903
901
  default:
904
902
  const parsedBody = parsedOutput.body;
905
- (0, smithy_client_1.throwDefaultError)({
903
+ return throwDefaultError({
906
904
  output,
907
905
  parsedBody: parsedBody.Error,
908
- exceptionCtor: SESServiceException_1.SESServiceException,
909
906
  errorCode,
910
907
  });
911
908
  }
@@ -921,7 +918,7 @@ const de_CreateConfigurationSetTrackingOptionsCommand = async (output, context)
921
918
  $metadata: deserializeMetadata(output),
922
919
  ...contents,
923
920
  };
924
- return Promise.resolve(response);
921
+ return response;
925
922
  };
926
923
  exports.de_CreateConfigurationSetTrackingOptionsCommand = de_CreateConfigurationSetTrackingOptionsCommand;
927
924
  const de_CreateConfigurationSetTrackingOptionsCommandError = async (output, context) => {
@@ -942,10 +939,9 @@ const de_CreateConfigurationSetTrackingOptionsCommandError = async (output, cont
942
939
  throw await de_TrackingOptionsAlreadyExistsExceptionRes(parsedOutput, context);
943
940
  default:
944
941
  const parsedBody = parsedOutput.body;
945
- (0, smithy_client_1.throwDefaultError)({
942
+ return throwDefaultError({
946
943
  output,
947
944
  parsedBody: parsedBody.Error,
948
- exceptionCtor: SESServiceException_1.SESServiceException,
949
945
  errorCode,
950
946
  });
951
947
  }
@@ -958,7 +954,7 @@ const de_CreateCustomVerificationEmailTemplateCommand = async (output, context)
958
954
  const response = {
959
955
  $metadata: deserializeMetadata(output),
960
956
  };
961
- return Promise.resolve(response);
957
+ return response;
962
958
  };
963
959
  exports.de_CreateCustomVerificationEmailTemplateCommand = de_CreateCustomVerificationEmailTemplateCommand;
964
960
  const de_CreateCustomVerificationEmailTemplateCommandError = async (output, context) => {
@@ -982,10 +978,9 @@ const de_CreateCustomVerificationEmailTemplateCommandError = async (output, cont
982
978
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
983
979
  default:
984
980
  const parsedBody = parsedOutput.body;
985
- (0, smithy_client_1.throwDefaultError)({
981
+ return throwDefaultError({
986
982
  output,
987
983
  parsedBody: parsedBody.Error,
988
- exceptionCtor: SESServiceException_1.SESServiceException,
989
984
  errorCode,
990
985
  });
991
986
  }
@@ -1001,7 +996,7 @@ const de_CreateReceiptFilterCommand = async (output, context) => {
1001
996
  $metadata: deserializeMetadata(output),
1002
997
  ...contents,
1003
998
  };
1004
- return Promise.resolve(response);
999
+ return response;
1005
1000
  };
1006
1001
  exports.de_CreateReceiptFilterCommand = de_CreateReceiptFilterCommand;
1007
1002
  const de_CreateReceiptFilterCommandError = async (output, context) => {
@@ -1019,10 +1014,9 @@ const de_CreateReceiptFilterCommandError = async (output, context) => {
1019
1014
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1020
1015
  default:
1021
1016
  const parsedBody = parsedOutput.body;
1022
- (0, smithy_client_1.throwDefaultError)({
1017
+ return throwDefaultError({
1023
1018
  output,
1024
1019
  parsedBody: parsedBody.Error,
1025
- exceptionCtor: SESServiceException_1.SESServiceException,
1026
1020
  errorCode,
1027
1021
  });
1028
1022
  }
@@ -1038,7 +1032,7 @@ const de_CreateReceiptRuleCommand = async (output, context) => {
1038
1032
  $metadata: deserializeMetadata(output),
1039
1033
  ...contents,
1040
1034
  };
1041
- return Promise.resolve(response);
1035
+ return response;
1042
1036
  };
1043
1037
  exports.de_CreateReceiptRuleCommand = de_CreateReceiptRuleCommand;
1044
1038
  const de_CreateReceiptRuleCommandError = async (output, context) => {
@@ -1071,10 +1065,9 @@ const de_CreateReceiptRuleCommandError = async (output, context) => {
1071
1065
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
1072
1066
  default:
1073
1067
  const parsedBody = parsedOutput.body;
1074
- (0, smithy_client_1.throwDefaultError)({
1068
+ return throwDefaultError({
1075
1069
  output,
1076
1070
  parsedBody: parsedBody.Error,
1077
- exceptionCtor: SESServiceException_1.SESServiceException,
1078
1071
  errorCode,
1079
1072
  });
1080
1073
  }
@@ -1090,7 +1083,7 @@ const de_CreateReceiptRuleSetCommand = async (output, context) => {
1090
1083
  $metadata: deserializeMetadata(output),
1091
1084
  ...contents,
1092
1085
  };
1093
- return Promise.resolve(response);
1086
+ return response;
1094
1087
  };
1095
1088
  exports.de_CreateReceiptRuleSetCommand = de_CreateReceiptRuleSetCommand;
1096
1089
  const de_CreateReceiptRuleSetCommandError = async (output, context) => {
@@ -1108,10 +1101,9 @@ const de_CreateReceiptRuleSetCommandError = async (output, context) => {
1108
1101
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1109
1102
  default:
1110
1103
  const parsedBody = parsedOutput.body;
1111
- (0, smithy_client_1.throwDefaultError)({
1104
+ return throwDefaultError({
1112
1105
  output,
1113
1106
  parsedBody: parsedBody.Error,
1114
- exceptionCtor: SESServiceException_1.SESServiceException,
1115
1107
  errorCode,
1116
1108
  });
1117
1109
  }
@@ -1127,7 +1119,7 @@ const de_CreateTemplateCommand = async (output, context) => {
1127
1119
  $metadata: deserializeMetadata(output),
1128
1120
  ...contents,
1129
1121
  };
1130
- return Promise.resolve(response);
1122
+ return response;
1131
1123
  };
1132
1124
  exports.de_CreateTemplateCommand = de_CreateTemplateCommand;
1133
1125
  const de_CreateTemplateCommandError = async (output, context) => {
@@ -1148,10 +1140,9 @@ const de_CreateTemplateCommandError = async (output, context) => {
1148
1140
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1149
1141
  default:
1150
1142
  const parsedBody = parsedOutput.body;
1151
- (0, smithy_client_1.throwDefaultError)({
1143
+ return throwDefaultError({
1152
1144
  output,
1153
1145
  parsedBody: parsedBody.Error,
1154
- exceptionCtor: SESServiceException_1.SESServiceException,
1155
1146
  errorCode,
1156
1147
  });
1157
1148
  }
@@ -1167,7 +1158,7 @@ const de_DeleteConfigurationSetCommand = async (output, context) => {
1167
1158
  $metadata: deserializeMetadata(output),
1168
1159
  ...contents,
1169
1160
  };
1170
- return Promise.resolve(response);
1161
+ return response;
1171
1162
  };
1172
1163
  exports.de_DeleteConfigurationSetCommand = de_DeleteConfigurationSetCommand;
1173
1164
  const de_DeleteConfigurationSetCommandError = async (output, context) => {
@@ -1182,10 +1173,9 @@ const de_DeleteConfigurationSetCommandError = async (output, context) => {
1182
1173
  throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
1183
1174
  default:
1184
1175
  const parsedBody = parsedOutput.body;
1185
- (0, smithy_client_1.throwDefaultError)({
1176
+ return throwDefaultError({
1186
1177
  output,
1187
1178
  parsedBody: parsedBody.Error,
1188
- exceptionCtor: SESServiceException_1.SESServiceException,
1189
1179
  errorCode,
1190
1180
  });
1191
1181
  }
@@ -1201,7 +1191,7 @@ const de_DeleteConfigurationSetEventDestinationCommand = async (output, context)
1201
1191
  $metadata: deserializeMetadata(output),
1202
1192
  ...contents,
1203
1193
  };
1204
- return Promise.resolve(response);
1194
+ return response;
1205
1195
  };
1206
1196
  exports.de_DeleteConfigurationSetEventDestinationCommand = de_DeleteConfigurationSetEventDestinationCommand;
1207
1197
  const de_DeleteConfigurationSetEventDestinationCommandError = async (output, context) => {
@@ -1219,10 +1209,9 @@ const de_DeleteConfigurationSetEventDestinationCommandError = async (output, con
1219
1209
  throw await de_EventDestinationDoesNotExistExceptionRes(parsedOutput, context);
1220
1210
  default:
1221
1211
  const parsedBody = parsedOutput.body;
1222
- (0, smithy_client_1.throwDefaultError)({
1212
+ return throwDefaultError({
1223
1213
  output,
1224
1214
  parsedBody: parsedBody.Error,
1225
- exceptionCtor: SESServiceException_1.SESServiceException,
1226
1215
  errorCode,
1227
1216
  });
1228
1217
  }
@@ -1238,7 +1227,7 @@ const de_DeleteConfigurationSetTrackingOptionsCommand = async (output, context)
1238
1227
  $metadata: deserializeMetadata(output),
1239
1228
  ...contents,
1240
1229
  };
1241
- return Promise.resolve(response);
1230
+ return response;
1242
1231
  };
1243
1232
  exports.de_DeleteConfigurationSetTrackingOptionsCommand = de_DeleteConfigurationSetTrackingOptionsCommand;
1244
1233
  const de_DeleteConfigurationSetTrackingOptionsCommandError = async (output, context) => {
@@ -1256,10 +1245,9 @@ const de_DeleteConfigurationSetTrackingOptionsCommandError = async (output, cont
1256
1245
  throw await de_TrackingOptionsDoesNotExistExceptionRes(parsedOutput, context);
1257
1246
  default:
1258
1247
  const parsedBody = parsedOutput.body;
1259
- (0, smithy_client_1.throwDefaultError)({
1248
+ return throwDefaultError({
1260
1249
  output,
1261
1250
  parsedBody: parsedBody.Error,
1262
- exceptionCtor: SESServiceException_1.SESServiceException,
1263
1251
  errorCode,
1264
1252
  });
1265
1253
  }
@@ -1272,7 +1260,7 @@ const de_DeleteCustomVerificationEmailTemplateCommand = async (output, context)
1272
1260
  const response = {
1273
1261
  $metadata: deserializeMetadata(output),
1274
1262
  };
1275
- return Promise.resolve(response);
1263
+ return response;
1276
1264
  };
1277
1265
  exports.de_DeleteCustomVerificationEmailTemplateCommand = de_DeleteCustomVerificationEmailTemplateCommand;
1278
1266
  const de_DeleteCustomVerificationEmailTemplateCommandError = async (output, context) => {
@@ -1282,10 +1270,9 @@ const de_DeleteCustomVerificationEmailTemplateCommandError = async (output, cont
1282
1270
  };
1283
1271
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1284
1272
  const parsedBody = parsedOutput.body;
1285
- (0, smithy_client_1.throwDefaultError)({
1273
+ return throwDefaultError({
1286
1274
  output,
1287
1275
  parsedBody: parsedBody.Error,
1288
- exceptionCtor: SESServiceException_1.SESServiceException,
1289
1276
  errorCode,
1290
1277
  });
1291
1278
  };
@@ -1300,7 +1287,7 @@ const de_DeleteIdentityCommand = async (output, context) => {
1300
1287
  $metadata: deserializeMetadata(output),
1301
1288
  ...contents,
1302
1289
  };
1303
- return Promise.resolve(response);
1290
+ return response;
1304
1291
  };
1305
1292
  exports.de_DeleteIdentityCommand = de_DeleteIdentityCommand;
1306
1293
  const de_DeleteIdentityCommandError = async (output, context) => {
@@ -1310,10 +1297,9 @@ const de_DeleteIdentityCommandError = async (output, context) => {
1310
1297
  };
1311
1298
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1312
1299
  const parsedBody = parsedOutput.body;
1313
- (0, smithy_client_1.throwDefaultError)({
1300
+ return throwDefaultError({
1314
1301
  output,
1315
1302
  parsedBody: parsedBody.Error,
1316
- exceptionCtor: SESServiceException_1.SESServiceException,
1317
1303
  errorCode,
1318
1304
  });
1319
1305
  };
@@ -1328,7 +1314,7 @@ const de_DeleteIdentityPolicyCommand = async (output, context) => {
1328
1314
  $metadata: deserializeMetadata(output),
1329
1315
  ...contents,
1330
1316
  };
1331
- return Promise.resolve(response);
1317
+ return response;
1332
1318
  };
1333
1319
  exports.de_DeleteIdentityPolicyCommand = de_DeleteIdentityPolicyCommand;
1334
1320
  const de_DeleteIdentityPolicyCommandError = async (output, context) => {
@@ -1338,10 +1324,9 @@ const de_DeleteIdentityPolicyCommandError = async (output, context) => {
1338
1324
  };
1339
1325
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1340
1326
  const parsedBody = parsedOutput.body;
1341
- (0, smithy_client_1.throwDefaultError)({
1327
+ return throwDefaultError({
1342
1328
  output,
1343
1329
  parsedBody: parsedBody.Error,
1344
- exceptionCtor: SESServiceException_1.SESServiceException,
1345
1330
  errorCode,
1346
1331
  });
1347
1332
  };
@@ -1356,7 +1341,7 @@ const de_DeleteReceiptFilterCommand = async (output, context) => {
1356
1341
  $metadata: deserializeMetadata(output),
1357
1342
  ...contents,
1358
1343
  };
1359
- return Promise.resolve(response);
1344
+ return response;
1360
1345
  };
1361
1346
  exports.de_DeleteReceiptFilterCommand = de_DeleteReceiptFilterCommand;
1362
1347
  const de_DeleteReceiptFilterCommandError = async (output, context) => {
@@ -1366,10 +1351,9 @@ const de_DeleteReceiptFilterCommandError = async (output, context) => {
1366
1351
  };
1367
1352
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1368
1353
  const parsedBody = parsedOutput.body;
1369
- (0, smithy_client_1.throwDefaultError)({
1354
+ return throwDefaultError({
1370
1355
  output,
1371
1356
  parsedBody: parsedBody.Error,
1372
- exceptionCtor: SESServiceException_1.SESServiceException,
1373
1357
  errorCode,
1374
1358
  });
1375
1359
  };
@@ -1384,7 +1368,7 @@ const de_DeleteReceiptRuleCommand = async (output, context) => {
1384
1368
  $metadata: deserializeMetadata(output),
1385
1369
  ...contents,
1386
1370
  };
1387
- return Promise.resolve(response);
1371
+ return response;
1388
1372
  };
1389
1373
  exports.de_DeleteReceiptRuleCommand = de_DeleteReceiptRuleCommand;
1390
1374
  const de_DeleteReceiptRuleCommandError = async (output, context) => {
@@ -1399,10 +1383,9 @@ const de_DeleteReceiptRuleCommandError = async (output, context) => {
1399
1383
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
1400
1384
  default:
1401
1385
  const parsedBody = parsedOutput.body;
1402
- (0, smithy_client_1.throwDefaultError)({
1386
+ return throwDefaultError({
1403
1387
  output,
1404
1388
  parsedBody: parsedBody.Error,
1405
- exceptionCtor: SESServiceException_1.SESServiceException,
1406
1389
  errorCode,
1407
1390
  });
1408
1391
  }
@@ -1418,7 +1401,7 @@ const de_DeleteReceiptRuleSetCommand = async (output, context) => {
1418
1401
  $metadata: deserializeMetadata(output),
1419
1402
  ...contents,
1420
1403
  };
1421
- return Promise.resolve(response);
1404
+ return response;
1422
1405
  };
1423
1406
  exports.de_DeleteReceiptRuleSetCommand = de_DeleteReceiptRuleSetCommand;
1424
1407
  const de_DeleteReceiptRuleSetCommandError = async (output, context) => {
@@ -1433,10 +1416,9 @@ const de_DeleteReceiptRuleSetCommandError = async (output, context) => {
1433
1416
  throw await de_CannotDeleteExceptionRes(parsedOutput, context);
1434
1417
  default:
1435
1418
  const parsedBody = parsedOutput.body;
1436
- (0, smithy_client_1.throwDefaultError)({
1419
+ return throwDefaultError({
1437
1420
  output,
1438
1421
  parsedBody: parsedBody.Error,
1439
- exceptionCtor: SESServiceException_1.SESServiceException,
1440
1422
  errorCode,
1441
1423
  });
1442
1424
  }
@@ -1452,7 +1434,7 @@ const de_DeleteTemplateCommand = async (output, context) => {
1452
1434
  $metadata: deserializeMetadata(output),
1453
1435
  ...contents,
1454
1436
  };
1455
- return Promise.resolve(response);
1437
+ return response;
1456
1438
  };
1457
1439
  exports.de_DeleteTemplateCommand = de_DeleteTemplateCommand;
1458
1440
  const de_DeleteTemplateCommandError = async (output, context) => {
@@ -1462,10 +1444,9 @@ const de_DeleteTemplateCommandError = async (output, context) => {
1462
1444
  };
1463
1445
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1464
1446
  const parsedBody = parsedOutput.body;
1465
- (0, smithy_client_1.throwDefaultError)({
1447
+ return throwDefaultError({
1466
1448
  output,
1467
1449
  parsedBody: parsedBody.Error,
1468
- exceptionCtor: SESServiceException_1.SESServiceException,
1469
1450
  errorCode,
1470
1451
  });
1471
1452
  };
@@ -1477,7 +1458,7 @@ const de_DeleteVerifiedEmailAddressCommand = async (output, context) => {
1477
1458
  const response = {
1478
1459
  $metadata: deserializeMetadata(output),
1479
1460
  };
1480
- return Promise.resolve(response);
1461
+ return response;
1481
1462
  };
1482
1463
  exports.de_DeleteVerifiedEmailAddressCommand = de_DeleteVerifiedEmailAddressCommand;
1483
1464
  const de_DeleteVerifiedEmailAddressCommandError = async (output, context) => {
@@ -1487,10 +1468,9 @@ const de_DeleteVerifiedEmailAddressCommandError = async (output, context) => {
1487
1468
  };
1488
1469
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1489
1470
  const parsedBody = parsedOutput.body;
1490
- (0, smithy_client_1.throwDefaultError)({
1471
+ return throwDefaultError({
1491
1472
  output,
1492
1473
  parsedBody: parsedBody.Error,
1493
- exceptionCtor: SESServiceException_1.SESServiceException,
1494
1474
  errorCode,
1495
1475
  });
1496
1476
  };
@@ -1505,7 +1485,7 @@ const de_DescribeActiveReceiptRuleSetCommand = async (output, context) => {
1505
1485
  $metadata: deserializeMetadata(output),
1506
1486
  ...contents,
1507
1487
  };
1508
- return Promise.resolve(response);
1488
+ return response;
1509
1489
  };
1510
1490
  exports.de_DescribeActiveReceiptRuleSetCommand = de_DescribeActiveReceiptRuleSetCommand;
1511
1491
  const de_DescribeActiveReceiptRuleSetCommandError = async (output, context) => {
@@ -1515,10 +1495,9 @@ const de_DescribeActiveReceiptRuleSetCommandError = async (output, context) => {
1515
1495
  };
1516
1496
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1517
1497
  const parsedBody = parsedOutput.body;
1518
- (0, smithy_client_1.throwDefaultError)({
1498
+ return throwDefaultError({
1519
1499
  output,
1520
1500
  parsedBody: parsedBody.Error,
1521
- exceptionCtor: SESServiceException_1.SESServiceException,
1522
1501
  errorCode,
1523
1502
  });
1524
1503
  };
@@ -1533,7 +1512,7 @@ const de_DescribeConfigurationSetCommand = async (output, context) => {
1533
1512
  $metadata: deserializeMetadata(output),
1534
1513
  ...contents,
1535
1514
  };
1536
- return Promise.resolve(response);
1515
+ return response;
1537
1516
  };
1538
1517
  exports.de_DescribeConfigurationSetCommand = de_DescribeConfigurationSetCommand;
1539
1518
  const de_DescribeConfigurationSetCommandError = async (output, context) => {
@@ -1548,10 +1527,9 @@ const de_DescribeConfigurationSetCommandError = async (output, context) => {
1548
1527
  throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
1549
1528
  default:
1550
1529
  const parsedBody = parsedOutput.body;
1551
- (0, smithy_client_1.throwDefaultError)({
1530
+ return throwDefaultError({
1552
1531
  output,
1553
1532
  parsedBody: parsedBody.Error,
1554
- exceptionCtor: SESServiceException_1.SESServiceException,
1555
1533
  errorCode,
1556
1534
  });
1557
1535
  }
@@ -1567,7 +1545,7 @@ const de_DescribeReceiptRuleCommand = async (output, context) => {
1567
1545
  $metadata: deserializeMetadata(output),
1568
1546
  ...contents,
1569
1547
  };
1570
- return Promise.resolve(response);
1548
+ return response;
1571
1549
  };
1572
1550
  exports.de_DescribeReceiptRuleCommand = de_DescribeReceiptRuleCommand;
1573
1551
  const de_DescribeReceiptRuleCommandError = async (output, context) => {
@@ -1585,10 +1563,9 @@ const de_DescribeReceiptRuleCommandError = async (output, context) => {
1585
1563
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
1586
1564
  default:
1587
1565
  const parsedBody = parsedOutput.body;
1588
- (0, smithy_client_1.throwDefaultError)({
1566
+ return throwDefaultError({
1589
1567
  output,
1590
1568
  parsedBody: parsedBody.Error,
1591
- exceptionCtor: SESServiceException_1.SESServiceException,
1592
1569
  errorCode,
1593
1570
  });
1594
1571
  }
@@ -1604,7 +1581,7 @@ const de_DescribeReceiptRuleSetCommand = async (output, context) => {
1604
1581
  $metadata: deserializeMetadata(output),
1605
1582
  ...contents,
1606
1583
  };
1607
- return Promise.resolve(response);
1584
+ return response;
1608
1585
  };
1609
1586
  exports.de_DescribeReceiptRuleSetCommand = de_DescribeReceiptRuleSetCommand;
1610
1587
  const de_DescribeReceiptRuleSetCommandError = async (output, context) => {
@@ -1619,10 +1596,9 @@ const de_DescribeReceiptRuleSetCommandError = async (output, context) => {
1619
1596
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
1620
1597
  default:
1621
1598
  const parsedBody = parsedOutput.body;
1622
- (0, smithy_client_1.throwDefaultError)({
1599
+ return throwDefaultError({
1623
1600
  output,
1624
1601
  parsedBody: parsedBody.Error,
1625
- exceptionCtor: SESServiceException_1.SESServiceException,
1626
1602
  errorCode,
1627
1603
  });
1628
1604
  }
@@ -1638,7 +1614,7 @@ const de_GetAccountSendingEnabledCommand = async (output, context) => {
1638
1614
  $metadata: deserializeMetadata(output),
1639
1615
  ...contents,
1640
1616
  };
1641
- return Promise.resolve(response);
1617
+ return response;
1642
1618
  };
1643
1619
  exports.de_GetAccountSendingEnabledCommand = de_GetAccountSendingEnabledCommand;
1644
1620
  const de_GetAccountSendingEnabledCommandError = async (output, context) => {
@@ -1648,10 +1624,9 @@ const de_GetAccountSendingEnabledCommandError = async (output, context) => {
1648
1624
  };
1649
1625
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1650
1626
  const parsedBody = parsedOutput.body;
1651
- (0, smithy_client_1.throwDefaultError)({
1627
+ return throwDefaultError({
1652
1628
  output,
1653
1629
  parsedBody: parsedBody.Error,
1654
- exceptionCtor: SESServiceException_1.SESServiceException,
1655
1630
  errorCode,
1656
1631
  });
1657
1632
  };
@@ -1666,7 +1641,7 @@ const de_GetCustomVerificationEmailTemplateCommand = async (output, context) =>
1666
1641
  $metadata: deserializeMetadata(output),
1667
1642
  ...contents,
1668
1643
  };
1669
- return Promise.resolve(response);
1644
+ return response;
1670
1645
  };
1671
1646
  exports.de_GetCustomVerificationEmailTemplateCommand = de_GetCustomVerificationEmailTemplateCommand;
1672
1647
  const de_GetCustomVerificationEmailTemplateCommandError = async (output, context) => {
@@ -1681,10 +1656,9 @@ const de_GetCustomVerificationEmailTemplateCommandError = async (output, context
1681
1656
  throw await de_CustomVerificationEmailTemplateDoesNotExistExceptionRes(parsedOutput, context);
1682
1657
  default:
1683
1658
  const parsedBody = parsedOutput.body;
1684
- (0, smithy_client_1.throwDefaultError)({
1659
+ return throwDefaultError({
1685
1660
  output,
1686
1661
  parsedBody: parsedBody.Error,
1687
- exceptionCtor: SESServiceException_1.SESServiceException,
1688
1662
  errorCode,
1689
1663
  });
1690
1664
  }
@@ -1700,7 +1674,7 @@ const de_GetIdentityDkimAttributesCommand = async (output, context) => {
1700
1674
  $metadata: deserializeMetadata(output),
1701
1675
  ...contents,
1702
1676
  };
1703
- return Promise.resolve(response);
1677
+ return response;
1704
1678
  };
1705
1679
  exports.de_GetIdentityDkimAttributesCommand = de_GetIdentityDkimAttributesCommand;
1706
1680
  const de_GetIdentityDkimAttributesCommandError = async (output, context) => {
@@ -1710,10 +1684,9 @@ const de_GetIdentityDkimAttributesCommandError = async (output, context) => {
1710
1684
  };
1711
1685
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1712
1686
  const parsedBody = parsedOutput.body;
1713
- (0, smithy_client_1.throwDefaultError)({
1687
+ return throwDefaultError({
1714
1688
  output,
1715
1689
  parsedBody: parsedBody.Error,
1716
- exceptionCtor: SESServiceException_1.SESServiceException,
1717
1690
  errorCode,
1718
1691
  });
1719
1692
  };
@@ -1728,7 +1701,7 @@ const de_GetIdentityMailFromDomainAttributesCommand = async (output, context) =>
1728
1701
  $metadata: deserializeMetadata(output),
1729
1702
  ...contents,
1730
1703
  };
1731
- return Promise.resolve(response);
1704
+ return response;
1732
1705
  };
1733
1706
  exports.de_GetIdentityMailFromDomainAttributesCommand = de_GetIdentityMailFromDomainAttributesCommand;
1734
1707
  const de_GetIdentityMailFromDomainAttributesCommandError = async (output, context) => {
@@ -1738,10 +1711,9 @@ const de_GetIdentityMailFromDomainAttributesCommandError = async (output, contex
1738
1711
  };
1739
1712
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1740
1713
  const parsedBody = parsedOutput.body;
1741
- (0, smithy_client_1.throwDefaultError)({
1714
+ return throwDefaultError({
1742
1715
  output,
1743
1716
  parsedBody: parsedBody.Error,
1744
- exceptionCtor: SESServiceException_1.SESServiceException,
1745
1717
  errorCode,
1746
1718
  });
1747
1719
  };
@@ -1756,7 +1728,7 @@ const de_GetIdentityNotificationAttributesCommand = async (output, context) => {
1756
1728
  $metadata: deserializeMetadata(output),
1757
1729
  ...contents,
1758
1730
  };
1759
- return Promise.resolve(response);
1731
+ return response;
1760
1732
  };
1761
1733
  exports.de_GetIdentityNotificationAttributesCommand = de_GetIdentityNotificationAttributesCommand;
1762
1734
  const de_GetIdentityNotificationAttributesCommandError = async (output, context) => {
@@ -1766,10 +1738,9 @@ const de_GetIdentityNotificationAttributesCommandError = async (output, context)
1766
1738
  };
1767
1739
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1768
1740
  const parsedBody = parsedOutput.body;
1769
- (0, smithy_client_1.throwDefaultError)({
1741
+ return throwDefaultError({
1770
1742
  output,
1771
1743
  parsedBody: parsedBody.Error,
1772
- exceptionCtor: SESServiceException_1.SESServiceException,
1773
1744
  errorCode,
1774
1745
  });
1775
1746
  };
@@ -1784,7 +1755,7 @@ const de_GetIdentityPoliciesCommand = async (output, context) => {
1784
1755
  $metadata: deserializeMetadata(output),
1785
1756
  ...contents,
1786
1757
  };
1787
- return Promise.resolve(response);
1758
+ return response;
1788
1759
  };
1789
1760
  exports.de_GetIdentityPoliciesCommand = de_GetIdentityPoliciesCommand;
1790
1761
  const de_GetIdentityPoliciesCommandError = async (output, context) => {
@@ -1794,10 +1765,9 @@ const de_GetIdentityPoliciesCommandError = async (output, context) => {
1794
1765
  };
1795
1766
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1796
1767
  const parsedBody = parsedOutput.body;
1797
- (0, smithy_client_1.throwDefaultError)({
1768
+ return throwDefaultError({
1798
1769
  output,
1799
1770
  parsedBody: parsedBody.Error,
1800
- exceptionCtor: SESServiceException_1.SESServiceException,
1801
1771
  errorCode,
1802
1772
  });
1803
1773
  };
@@ -1812,7 +1782,7 @@ const de_GetIdentityVerificationAttributesCommand = async (output, context) => {
1812
1782
  $metadata: deserializeMetadata(output),
1813
1783
  ...contents,
1814
1784
  };
1815
- return Promise.resolve(response);
1785
+ return response;
1816
1786
  };
1817
1787
  exports.de_GetIdentityVerificationAttributesCommand = de_GetIdentityVerificationAttributesCommand;
1818
1788
  const de_GetIdentityVerificationAttributesCommandError = async (output, context) => {
@@ -1822,10 +1792,9 @@ const de_GetIdentityVerificationAttributesCommandError = async (output, context)
1822
1792
  };
1823
1793
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1824
1794
  const parsedBody = parsedOutput.body;
1825
- (0, smithy_client_1.throwDefaultError)({
1795
+ return throwDefaultError({
1826
1796
  output,
1827
1797
  parsedBody: parsedBody.Error,
1828
- exceptionCtor: SESServiceException_1.SESServiceException,
1829
1798
  errorCode,
1830
1799
  });
1831
1800
  };
@@ -1840,7 +1809,7 @@ const de_GetSendQuotaCommand = async (output, context) => {
1840
1809
  $metadata: deserializeMetadata(output),
1841
1810
  ...contents,
1842
1811
  };
1843
- return Promise.resolve(response);
1812
+ return response;
1844
1813
  };
1845
1814
  exports.de_GetSendQuotaCommand = de_GetSendQuotaCommand;
1846
1815
  const de_GetSendQuotaCommandError = async (output, context) => {
@@ -1850,10 +1819,9 @@ const de_GetSendQuotaCommandError = async (output, context) => {
1850
1819
  };
1851
1820
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1852
1821
  const parsedBody = parsedOutput.body;
1853
- (0, smithy_client_1.throwDefaultError)({
1822
+ return throwDefaultError({
1854
1823
  output,
1855
1824
  parsedBody: parsedBody.Error,
1856
- exceptionCtor: SESServiceException_1.SESServiceException,
1857
1825
  errorCode,
1858
1826
  });
1859
1827
  };
@@ -1868,7 +1836,7 @@ const de_GetSendStatisticsCommand = async (output, context) => {
1868
1836
  $metadata: deserializeMetadata(output),
1869
1837
  ...contents,
1870
1838
  };
1871
- return Promise.resolve(response);
1839
+ return response;
1872
1840
  };
1873
1841
  exports.de_GetSendStatisticsCommand = de_GetSendStatisticsCommand;
1874
1842
  const de_GetSendStatisticsCommandError = async (output, context) => {
@@ -1878,10 +1846,9 @@ const de_GetSendStatisticsCommandError = async (output, context) => {
1878
1846
  };
1879
1847
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1880
1848
  const parsedBody = parsedOutput.body;
1881
- (0, smithy_client_1.throwDefaultError)({
1849
+ return throwDefaultError({
1882
1850
  output,
1883
1851
  parsedBody: parsedBody.Error,
1884
- exceptionCtor: SESServiceException_1.SESServiceException,
1885
1852
  errorCode,
1886
1853
  });
1887
1854
  };
@@ -1896,7 +1863,7 @@ const de_GetTemplateCommand = async (output, context) => {
1896
1863
  $metadata: deserializeMetadata(output),
1897
1864
  ...contents,
1898
1865
  };
1899
- return Promise.resolve(response);
1866
+ return response;
1900
1867
  };
1901
1868
  exports.de_GetTemplateCommand = de_GetTemplateCommand;
1902
1869
  const de_GetTemplateCommandError = async (output, context) => {
@@ -1911,10 +1878,9 @@ const de_GetTemplateCommandError = async (output, context) => {
1911
1878
  throw await de_TemplateDoesNotExistExceptionRes(parsedOutput, context);
1912
1879
  default:
1913
1880
  const parsedBody = parsedOutput.body;
1914
- (0, smithy_client_1.throwDefaultError)({
1881
+ return throwDefaultError({
1915
1882
  output,
1916
1883
  parsedBody: parsedBody.Error,
1917
- exceptionCtor: SESServiceException_1.SESServiceException,
1918
1884
  errorCode,
1919
1885
  });
1920
1886
  }
@@ -1930,7 +1896,7 @@ const de_ListConfigurationSetsCommand = async (output, context) => {
1930
1896
  $metadata: deserializeMetadata(output),
1931
1897
  ...contents,
1932
1898
  };
1933
- return Promise.resolve(response);
1899
+ return response;
1934
1900
  };
1935
1901
  exports.de_ListConfigurationSetsCommand = de_ListConfigurationSetsCommand;
1936
1902
  const de_ListConfigurationSetsCommandError = async (output, context) => {
@@ -1940,10 +1906,9 @@ const de_ListConfigurationSetsCommandError = async (output, context) => {
1940
1906
  };
1941
1907
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1942
1908
  const parsedBody = parsedOutput.body;
1943
- (0, smithy_client_1.throwDefaultError)({
1909
+ return throwDefaultError({
1944
1910
  output,
1945
1911
  parsedBody: parsedBody.Error,
1946
- exceptionCtor: SESServiceException_1.SESServiceException,
1947
1912
  errorCode,
1948
1913
  });
1949
1914
  };
@@ -1958,7 +1923,7 @@ const de_ListCustomVerificationEmailTemplatesCommand = async (output, context) =
1958
1923
  $metadata: deserializeMetadata(output),
1959
1924
  ...contents,
1960
1925
  };
1961
- return Promise.resolve(response);
1926
+ return response;
1962
1927
  };
1963
1928
  exports.de_ListCustomVerificationEmailTemplatesCommand = de_ListCustomVerificationEmailTemplatesCommand;
1964
1929
  const de_ListCustomVerificationEmailTemplatesCommandError = async (output, context) => {
@@ -1968,10 +1933,9 @@ const de_ListCustomVerificationEmailTemplatesCommandError = async (output, conte
1968
1933
  };
1969
1934
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1970
1935
  const parsedBody = parsedOutput.body;
1971
- (0, smithy_client_1.throwDefaultError)({
1936
+ return throwDefaultError({
1972
1937
  output,
1973
1938
  parsedBody: parsedBody.Error,
1974
- exceptionCtor: SESServiceException_1.SESServiceException,
1975
1939
  errorCode,
1976
1940
  });
1977
1941
  };
@@ -1986,7 +1950,7 @@ const de_ListIdentitiesCommand = async (output, context) => {
1986
1950
  $metadata: deserializeMetadata(output),
1987
1951
  ...contents,
1988
1952
  };
1989
- return Promise.resolve(response);
1953
+ return response;
1990
1954
  };
1991
1955
  exports.de_ListIdentitiesCommand = de_ListIdentitiesCommand;
1992
1956
  const de_ListIdentitiesCommandError = async (output, context) => {
@@ -1996,10 +1960,9 @@ const de_ListIdentitiesCommandError = async (output, context) => {
1996
1960
  };
1997
1961
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1998
1962
  const parsedBody = parsedOutput.body;
1999
- (0, smithy_client_1.throwDefaultError)({
1963
+ return throwDefaultError({
2000
1964
  output,
2001
1965
  parsedBody: parsedBody.Error,
2002
- exceptionCtor: SESServiceException_1.SESServiceException,
2003
1966
  errorCode,
2004
1967
  });
2005
1968
  };
@@ -2014,7 +1977,7 @@ const de_ListIdentityPoliciesCommand = async (output, context) => {
2014
1977
  $metadata: deserializeMetadata(output),
2015
1978
  ...contents,
2016
1979
  };
2017
- return Promise.resolve(response);
1980
+ return response;
2018
1981
  };
2019
1982
  exports.de_ListIdentityPoliciesCommand = de_ListIdentityPoliciesCommand;
2020
1983
  const de_ListIdentityPoliciesCommandError = async (output, context) => {
@@ -2024,10 +1987,9 @@ const de_ListIdentityPoliciesCommandError = async (output, context) => {
2024
1987
  };
2025
1988
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2026
1989
  const parsedBody = parsedOutput.body;
2027
- (0, smithy_client_1.throwDefaultError)({
1990
+ return throwDefaultError({
2028
1991
  output,
2029
1992
  parsedBody: parsedBody.Error,
2030
- exceptionCtor: SESServiceException_1.SESServiceException,
2031
1993
  errorCode,
2032
1994
  });
2033
1995
  };
@@ -2042,7 +2004,7 @@ const de_ListReceiptFiltersCommand = async (output, context) => {
2042
2004
  $metadata: deserializeMetadata(output),
2043
2005
  ...contents,
2044
2006
  };
2045
- return Promise.resolve(response);
2007
+ return response;
2046
2008
  };
2047
2009
  exports.de_ListReceiptFiltersCommand = de_ListReceiptFiltersCommand;
2048
2010
  const de_ListReceiptFiltersCommandError = async (output, context) => {
@@ -2052,10 +2014,9 @@ const de_ListReceiptFiltersCommandError = async (output, context) => {
2052
2014
  };
2053
2015
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2054
2016
  const parsedBody = parsedOutput.body;
2055
- (0, smithy_client_1.throwDefaultError)({
2017
+ return throwDefaultError({
2056
2018
  output,
2057
2019
  parsedBody: parsedBody.Error,
2058
- exceptionCtor: SESServiceException_1.SESServiceException,
2059
2020
  errorCode,
2060
2021
  });
2061
2022
  };
@@ -2070,7 +2031,7 @@ const de_ListReceiptRuleSetsCommand = async (output, context) => {
2070
2031
  $metadata: deserializeMetadata(output),
2071
2032
  ...contents,
2072
2033
  };
2073
- return Promise.resolve(response);
2034
+ return response;
2074
2035
  };
2075
2036
  exports.de_ListReceiptRuleSetsCommand = de_ListReceiptRuleSetsCommand;
2076
2037
  const de_ListReceiptRuleSetsCommandError = async (output, context) => {
@@ -2080,10 +2041,9 @@ const de_ListReceiptRuleSetsCommandError = async (output, context) => {
2080
2041
  };
2081
2042
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2082
2043
  const parsedBody = parsedOutput.body;
2083
- (0, smithy_client_1.throwDefaultError)({
2044
+ return throwDefaultError({
2084
2045
  output,
2085
2046
  parsedBody: parsedBody.Error,
2086
- exceptionCtor: SESServiceException_1.SESServiceException,
2087
2047
  errorCode,
2088
2048
  });
2089
2049
  };
@@ -2098,7 +2058,7 @@ const de_ListTemplatesCommand = 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
  exports.de_ListTemplatesCommand = de_ListTemplatesCommand;
2104
2064
  const de_ListTemplatesCommandError = async (output, context) => {
@@ -2108,10 +2068,9 @@ const de_ListTemplatesCommandError = async (output, context) => {
2108
2068
  };
2109
2069
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2110
2070
  const parsedBody = parsedOutput.body;
2111
- (0, smithy_client_1.throwDefaultError)({
2071
+ return throwDefaultError({
2112
2072
  output,
2113
2073
  parsedBody: parsedBody.Error,
2114
- exceptionCtor: SESServiceException_1.SESServiceException,
2115
2074
  errorCode,
2116
2075
  });
2117
2076
  };
@@ -2126,7 +2085,7 @@ const de_ListVerifiedEmailAddressesCommand = async (output, context) => {
2126
2085
  $metadata: deserializeMetadata(output),
2127
2086
  ...contents,
2128
2087
  };
2129
- return Promise.resolve(response);
2088
+ return response;
2130
2089
  };
2131
2090
  exports.de_ListVerifiedEmailAddressesCommand = de_ListVerifiedEmailAddressesCommand;
2132
2091
  const de_ListVerifiedEmailAddressesCommandError = async (output, context) => {
@@ -2136,10 +2095,9 @@ const de_ListVerifiedEmailAddressesCommandError = async (output, context) => {
2136
2095
  };
2137
2096
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2138
2097
  const parsedBody = parsedOutput.body;
2139
- (0, smithy_client_1.throwDefaultError)({
2098
+ return throwDefaultError({
2140
2099
  output,
2141
2100
  parsedBody: parsedBody.Error,
2142
- exceptionCtor: SESServiceException_1.SESServiceException,
2143
2101
  errorCode,
2144
2102
  });
2145
2103
  };
@@ -2154,7 +2112,7 @@ const de_PutConfigurationSetDeliveryOptionsCommand = async (output, context) =>
2154
2112
  $metadata: deserializeMetadata(output),
2155
2113
  ...contents,
2156
2114
  };
2157
- return Promise.resolve(response);
2115
+ return response;
2158
2116
  };
2159
2117
  exports.de_PutConfigurationSetDeliveryOptionsCommand = de_PutConfigurationSetDeliveryOptionsCommand;
2160
2118
  const de_PutConfigurationSetDeliveryOptionsCommandError = async (output, context) => {
@@ -2172,10 +2130,9 @@ const de_PutConfigurationSetDeliveryOptionsCommandError = async (output, context
2172
2130
  throw await de_InvalidDeliveryOptionsExceptionRes(parsedOutput, context);
2173
2131
  default:
2174
2132
  const parsedBody = parsedOutput.body;
2175
- (0, smithy_client_1.throwDefaultError)({
2133
+ return throwDefaultError({
2176
2134
  output,
2177
2135
  parsedBody: parsedBody.Error,
2178
- exceptionCtor: SESServiceException_1.SESServiceException,
2179
2136
  errorCode,
2180
2137
  });
2181
2138
  }
@@ -2191,7 +2148,7 @@ const de_PutIdentityPolicyCommand = async (output, context) => {
2191
2148
  $metadata: deserializeMetadata(output),
2192
2149
  ...contents,
2193
2150
  };
2194
- return Promise.resolve(response);
2151
+ return response;
2195
2152
  };
2196
2153
  exports.de_PutIdentityPolicyCommand = de_PutIdentityPolicyCommand;
2197
2154
  const de_PutIdentityPolicyCommandError = async (output, context) => {
@@ -2206,10 +2163,9 @@ const de_PutIdentityPolicyCommandError = async (output, context) => {
2206
2163
  throw await de_InvalidPolicyExceptionRes(parsedOutput, context);
2207
2164
  default:
2208
2165
  const parsedBody = parsedOutput.body;
2209
- (0, smithy_client_1.throwDefaultError)({
2166
+ return throwDefaultError({
2210
2167
  output,
2211
2168
  parsedBody: parsedBody.Error,
2212
- exceptionCtor: SESServiceException_1.SESServiceException,
2213
2169
  errorCode,
2214
2170
  });
2215
2171
  }
@@ -2225,7 +2181,7 @@ const de_ReorderReceiptRuleSetCommand = async (output, context) => {
2225
2181
  $metadata: deserializeMetadata(output),
2226
2182
  ...contents,
2227
2183
  };
2228
- return Promise.resolve(response);
2184
+ return response;
2229
2185
  };
2230
2186
  exports.de_ReorderReceiptRuleSetCommand = de_ReorderReceiptRuleSetCommand;
2231
2187
  const de_ReorderReceiptRuleSetCommandError = async (output, context) => {
@@ -2243,10 +2199,9 @@ const de_ReorderReceiptRuleSetCommandError = async (output, context) => {
2243
2199
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
2244
2200
  default:
2245
2201
  const parsedBody = parsedOutput.body;
2246
- (0, smithy_client_1.throwDefaultError)({
2202
+ return throwDefaultError({
2247
2203
  output,
2248
2204
  parsedBody: parsedBody.Error,
2249
- exceptionCtor: SESServiceException_1.SESServiceException,
2250
2205
  errorCode,
2251
2206
  });
2252
2207
  }
@@ -2262,7 +2217,7 @@ const de_SendBounceCommand = async (output, context) => {
2262
2217
  $metadata: deserializeMetadata(output),
2263
2218
  ...contents,
2264
2219
  };
2265
- return Promise.resolve(response);
2220
+ return response;
2266
2221
  };
2267
2222
  exports.de_SendBounceCommand = de_SendBounceCommand;
2268
2223
  const de_SendBounceCommandError = async (output, context) => {
@@ -2277,10 +2232,9 @@ const de_SendBounceCommandError = async (output, context) => {
2277
2232
  throw await de_MessageRejectedRes(parsedOutput, context);
2278
2233
  default:
2279
2234
  const parsedBody = parsedOutput.body;
2280
- (0, smithy_client_1.throwDefaultError)({
2235
+ return throwDefaultError({
2281
2236
  output,
2282
2237
  parsedBody: parsedBody.Error,
2283
- exceptionCtor: SESServiceException_1.SESServiceException,
2284
2238
  errorCode,
2285
2239
  });
2286
2240
  }
@@ -2296,7 +2250,7 @@ const de_SendBulkTemplatedEmailCommand = async (output, context) => {
2296
2250
  $metadata: deserializeMetadata(output),
2297
2251
  ...contents,
2298
2252
  };
2299
- return Promise.resolve(response);
2253
+ return response;
2300
2254
  };
2301
2255
  exports.de_SendBulkTemplatedEmailCommand = de_SendBulkTemplatedEmailCommand;
2302
2256
  const de_SendBulkTemplatedEmailCommandError = async (output, context) => {
@@ -2326,10 +2280,9 @@ const de_SendBulkTemplatedEmailCommandError = async (output, context) => {
2326
2280
  throw await de_TemplateDoesNotExistExceptionRes(parsedOutput, context);
2327
2281
  default:
2328
2282
  const parsedBody = parsedOutput.body;
2329
- (0, smithy_client_1.throwDefaultError)({
2283
+ return throwDefaultError({
2330
2284
  output,
2331
2285
  parsedBody: parsedBody.Error,
2332
- exceptionCtor: SESServiceException_1.SESServiceException,
2333
2286
  errorCode,
2334
2287
  });
2335
2288
  }
@@ -2345,7 +2298,7 @@ const de_SendCustomVerificationEmailCommand = async (output, context) => {
2345
2298
  $metadata: deserializeMetadata(output),
2346
2299
  ...contents,
2347
2300
  };
2348
- return Promise.resolve(response);
2301
+ return response;
2349
2302
  };
2350
2303
  exports.de_SendCustomVerificationEmailCommand = de_SendCustomVerificationEmailCommand;
2351
2304
  const de_SendCustomVerificationEmailCommandError = async (output, context) => {
@@ -2372,10 +2325,9 @@ const de_SendCustomVerificationEmailCommandError = async (output, context) => {
2372
2325
  throw await de_ProductionAccessNotGrantedExceptionRes(parsedOutput, context);
2373
2326
  default:
2374
2327
  const parsedBody = parsedOutput.body;
2375
- (0, smithy_client_1.throwDefaultError)({
2328
+ return throwDefaultError({
2376
2329
  output,
2377
2330
  parsedBody: parsedBody.Error,
2378
- exceptionCtor: SESServiceException_1.SESServiceException,
2379
2331
  errorCode,
2380
2332
  });
2381
2333
  }
@@ -2391,7 +2343,7 @@ const de_SendEmailCommand = async (output, context) => {
2391
2343
  $metadata: deserializeMetadata(output),
2392
2344
  ...contents,
2393
2345
  };
2394
- return Promise.resolve(response);
2346
+ return response;
2395
2347
  };
2396
2348
  exports.de_SendEmailCommand = de_SendEmailCommand;
2397
2349
  const de_SendEmailCommandError = async (output, context) => {
@@ -2418,10 +2370,9 @@ const de_SendEmailCommandError = async (output, context) => {
2418
2370
  throw await de_MessageRejectedRes(parsedOutput, context);
2419
2371
  default:
2420
2372
  const parsedBody = parsedOutput.body;
2421
- (0, smithy_client_1.throwDefaultError)({
2373
+ return throwDefaultError({
2422
2374
  output,
2423
2375
  parsedBody: parsedBody.Error,
2424
- exceptionCtor: SESServiceException_1.SESServiceException,
2425
2376
  errorCode,
2426
2377
  });
2427
2378
  }
@@ -2437,7 +2388,7 @@ const de_SendRawEmailCommand = async (output, context) => {
2437
2388
  $metadata: deserializeMetadata(output),
2438
2389
  ...contents,
2439
2390
  };
2440
- return Promise.resolve(response);
2391
+ return response;
2441
2392
  };
2442
2393
  exports.de_SendRawEmailCommand = de_SendRawEmailCommand;
2443
2394
  const de_SendRawEmailCommandError = async (output, context) => {
@@ -2464,10 +2415,9 @@ const de_SendRawEmailCommandError = async (output, context) => {
2464
2415
  throw await de_MessageRejectedRes(parsedOutput, context);
2465
2416
  default:
2466
2417
  const parsedBody = parsedOutput.body;
2467
- (0, smithy_client_1.throwDefaultError)({
2418
+ return throwDefaultError({
2468
2419
  output,
2469
2420
  parsedBody: parsedBody.Error,
2470
- exceptionCtor: SESServiceException_1.SESServiceException,
2471
2421
  errorCode,
2472
2422
  });
2473
2423
  }
@@ -2483,7 +2433,7 @@ const de_SendTemplatedEmailCommand = async (output, context) => {
2483
2433
  $metadata: deserializeMetadata(output),
2484
2434
  ...contents,
2485
2435
  };
2486
- return Promise.resolve(response);
2436
+ return response;
2487
2437
  };
2488
2438
  exports.de_SendTemplatedEmailCommand = de_SendTemplatedEmailCommand;
2489
2439
  const de_SendTemplatedEmailCommandError = async (output, context) => {
@@ -2513,10 +2463,9 @@ const de_SendTemplatedEmailCommandError = async (output, context) => {
2513
2463
  throw await de_TemplateDoesNotExistExceptionRes(parsedOutput, context);
2514
2464
  default:
2515
2465
  const parsedBody = parsedOutput.body;
2516
- (0, smithy_client_1.throwDefaultError)({
2466
+ return throwDefaultError({
2517
2467
  output,
2518
2468
  parsedBody: parsedBody.Error,
2519
- exceptionCtor: SESServiceException_1.SESServiceException,
2520
2469
  errorCode,
2521
2470
  });
2522
2471
  }
@@ -2532,7 +2481,7 @@ const de_SetActiveReceiptRuleSetCommand = async (output, context) => {
2532
2481
  $metadata: deserializeMetadata(output),
2533
2482
  ...contents,
2534
2483
  };
2535
- return Promise.resolve(response);
2484
+ return response;
2536
2485
  };
2537
2486
  exports.de_SetActiveReceiptRuleSetCommand = de_SetActiveReceiptRuleSetCommand;
2538
2487
  const de_SetActiveReceiptRuleSetCommandError = async (output, context) => {
@@ -2547,10 +2496,9 @@ const de_SetActiveReceiptRuleSetCommandError = async (output, context) => {
2547
2496
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
2548
2497
  default:
2549
2498
  const parsedBody = parsedOutput.body;
2550
- (0, smithy_client_1.throwDefaultError)({
2499
+ return throwDefaultError({
2551
2500
  output,
2552
2501
  parsedBody: parsedBody.Error,
2553
- exceptionCtor: SESServiceException_1.SESServiceException,
2554
2502
  errorCode,
2555
2503
  });
2556
2504
  }
@@ -2566,7 +2514,7 @@ const de_SetIdentityDkimEnabledCommand = async (output, context) => {
2566
2514
  $metadata: deserializeMetadata(output),
2567
2515
  ...contents,
2568
2516
  };
2569
- return Promise.resolve(response);
2517
+ return response;
2570
2518
  };
2571
2519
  exports.de_SetIdentityDkimEnabledCommand = de_SetIdentityDkimEnabledCommand;
2572
2520
  const de_SetIdentityDkimEnabledCommandError = async (output, context) => {
@@ -2576,10 +2524,9 @@ const de_SetIdentityDkimEnabledCommandError = async (output, context) => {
2576
2524
  };
2577
2525
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2578
2526
  const parsedBody = parsedOutput.body;
2579
- (0, smithy_client_1.throwDefaultError)({
2527
+ return throwDefaultError({
2580
2528
  output,
2581
2529
  parsedBody: parsedBody.Error,
2582
- exceptionCtor: SESServiceException_1.SESServiceException,
2583
2530
  errorCode,
2584
2531
  });
2585
2532
  };
@@ -2594,7 +2541,7 @@ const de_SetIdentityFeedbackForwardingEnabledCommand = async (output, context) =
2594
2541
  $metadata: deserializeMetadata(output),
2595
2542
  ...contents,
2596
2543
  };
2597
- return Promise.resolve(response);
2544
+ return response;
2598
2545
  };
2599
2546
  exports.de_SetIdentityFeedbackForwardingEnabledCommand = de_SetIdentityFeedbackForwardingEnabledCommand;
2600
2547
  const de_SetIdentityFeedbackForwardingEnabledCommandError = async (output, context) => {
@@ -2604,10 +2551,9 @@ const de_SetIdentityFeedbackForwardingEnabledCommandError = async (output, conte
2604
2551
  };
2605
2552
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2606
2553
  const parsedBody = parsedOutput.body;
2607
- (0, smithy_client_1.throwDefaultError)({
2554
+ return throwDefaultError({
2608
2555
  output,
2609
2556
  parsedBody: parsedBody.Error,
2610
- exceptionCtor: SESServiceException_1.SESServiceException,
2611
2557
  errorCode,
2612
2558
  });
2613
2559
  };
@@ -2622,7 +2568,7 @@ const de_SetIdentityHeadersInNotificationsEnabledCommand = async (output, contex
2622
2568
  $metadata: deserializeMetadata(output),
2623
2569
  ...contents,
2624
2570
  };
2625
- return Promise.resolve(response);
2571
+ return response;
2626
2572
  };
2627
2573
  exports.de_SetIdentityHeadersInNotificationsEnabledCommand = de_SetIdentityHeadersInNotificationsEnabledCommand;
2628
2574
  const de_SetIdentityHeadersInNotificationsEnabledCommandError = async (output, context) => {
@@ -2632,10 +2578,9 @@ const de_SetIdentityHeadersInNotificationsEnabledCommandError = async (output, c
2632
2578
  };
2633
2579
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2634
2580
  const parsedBody = parsedOutput.body;
2635
- (0, smithy_client_1.throwDefaultError)({
2581
+ return throwDefaultError({
2636
2582
  output,
2637
2583
  parsedBody: parsedBody.Error,
2638
- exceptionCtor: SESServiceException_1.SESServiceException,
2639
2584
  errorCode,
2640
2585
  });
2641
2586
  };
@@ -2650,7 +2595,7 @@ const de_SetIdentityMailFromDomainCommand = async (output, context) => {
2650
2595
  $metadata: deserializeMetadata(output),
2651
2596
  ...contents,
2652
2597
  };
2653
- return Promise.resolve(response);
2598
+ return response;
2654
2599
  };
2655
2600
  exports.de_SetIdentityMailFromDomainCommand = de_SetIdentityMailFromDomainCommand;
2656
2601
  const de_SetIdentityMailFromDomainCommandError = async (output, context) => {
@@ -2660,10 +2605,9 @@ const de_SetIdentityMailFromDomainCommandError = async (output, context) => {
2660
2605
  };
2661
2606
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2662
2607
  const parsedBody = parsedOutput.body;
2663
- (0, smithy_client_1.throwDefaultError)({
2608
+ return throwDefaultError({
2664
2609
  output,
2665
2610
  parsedBody: parsedBody.Error,
2666
- exceptionCtor: SESServiceException_1.SESServiceException,
2667
2611
  errorCode,
2668
2612
  });
2669
2613
  };
@@ -2678,7 +2622,7 @@ const de_SetIdentityNotificationTopicCommand = async (output, context) => {
2678
2622
  $metadata: deserializeMetadata(output),
2679
2623
  ...contents,
2680
2624
  };
2681
- return Promise.resolve(response);
2625
+ return response;
2682
2626
  };
2683
2627
  exports.de_SetIdentityNotificationTopicCommand = de_SetIdentityNotificationTopicCommand;
2684
2628
  const de_SetIdentityNotificationTopicCommandError = async (output, context) => {
@@ -2688,10 +2632,9 @@ const de_SetIdentityNotificationTopicCommandError = async (output, context) => {
2688
2632
  };
2689
2633
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2690
2634
  const parsedBody = parsedOutput.body;
2691
- (0, smithy_client_1.throwDefaultError)({
2635
+ return throwDefaultError({
2692
2636
  output,
2693
2637
  parsedBody: parsedBody.Error,
2694
- exceptionCtor: SESServiceException_1.SESServiceException,
2695
2638
  errorCode,
2696
2639
  });
2697
2640
  };
@@ -2706,7 +2649,7 @@ const de_SetReceiptRulePositionCommand = async (output, context) => {
2706
2649
  $metadata: deserializeMetadata(output),
2707
2650
  ...contents,
2708
2651
  };
2709
- return Promise.resolve(response);
2652
+ return response;
2710
2653
  };
2711
2654
  exports.de_SetReceiptRulePositionCommand = de_SetReceiptRulePositionCommand;
2712
2655
  const de_SetReceiptRulePositionCommandError = async (output, context) => {
@@ -2724,10 +2667,9 @@ const de_SetReceiptRulePositionCommandError = async (output, context) => {
2724
2667
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
2725
2668
  default:
2726
2669
  const parsedBody = parsedOutput.body;
2727
- (0, smithy_client_1.throwDefaultError)({
2670
+ return throwDefaultError({
2728
2671
  output,
2729
2672
  parsedBody: parsedBody.Error,
2730
- exceptionCtor: SESServiceException_1.SESServiceException,
2731
2673
  errorCode,
2732
2674
  });
2733
2675
  }
@@ -2743,7 +2685,7 @@ const de_TestRenderTemplateCommand = async (output, context) => {
2743
2685
  $metadata: deserializeMetadata(output),
2744
2686
  ...contents,
2745
2687
  };
2746
- return Promise.resolve(response);
2688
+ return response;
2747
2689
  };
2748
2690
  exports.de_TestRenderTemplateCommand = de_TestRenderTemplateCommand;
2749
2691
  const de_TestRenderTemplateCommandError = async (output, context) => {
@@ -2764,10 +2706,9 @@ const de_TestRenderTemplateCommandError = async (output, context) => {
2764
2706
  throw await de_TemplateDoesNotExistExceptionRes(parsedOutput, context);
2765
2707
  default:
2766
2708
  const parsedBody = parsedOutput.body;
2767
- (0, smithy_client_1.throwDefaultError)({
2709
+ return throwDefaultError({
2768
2710
  output,
2769
2711
  parsedBody: parsedBody.Error,
2770
- exceptionCtor: SESServiceException_1.SESServiceException,
2771
2712
  errorCode,
2772
2713
  });
2773
2714
  }
@@ -2780,7 +2721,7 @@ const de_UpdateAccountSendingEnabledCommand = async (output, context) => {
2780
2721
  const response = {
2781
2722
  $metadata: deserializeMetadata(output),
2782
2723
  };
2783
- return Promise.resolve(response);
2724
+ return response;
2784
2725
  };
2785
2726
  exports.de_UpdateAccountSendingEnabledCommand = de_UpdateAccountSendingEnabledCommand;
2786
2727
  const de_UpdateAccountSendingEnabledCommandError = async (output, context) => {
@@ -2790,10 +2731,9 @@ const de_UpdateAccountSendingEnabledCommandError = async (output, context) => {
2790
2731
  };
2791
2732
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2792
2733
  const parsedBody = parsedOutput.body;
2793
- (0, smithy_client_1.throwDefaultError)({
2734
+ return throwDefaultError({
2794
2735
  output,
2795
2736
  parsedBody: parsedBody.Error,
2796
- exceptionCtor: SESServiceException_1.SESServiceException,
2797
2737
  errorCode,
2798
2738
  });
2799
2739
  };
@@ -2808,7 +2748,7 @@ const de_UpdateConfigurationSetEventDestinationCommand = async (output, context)
2808
2748
  $metadata: deserializeMetadata(output),
2809
2749
  ...contents,
2810
2750
  };
2811
- return Promise.resolve(response);
2751
+ return response;
2812
2752
  };
2813
2753
  exports.de_UpdateConfigurationSetEventDestinationCommand = de_UpdateConfigurationSetEventDestinationCommand;
2814
2754
  const de_UpdateConfigurationSetEventDestinationCommandError = async (output, context) => {
@@ -2835,10 +2775,9 @@ const de_UpdateConfigurationSetEventDestinationCommandError = async (output, con
2835
2775
  throw await de_InvalidSNSDestinationExceptionRes(parsedOutput, context);
2836
2776
  default:
2837
2777
  const parsedBody = parsedOutput.body;
2838
- (0, smithy_client_1.throwDefaultError)({
2778
+ return throwDefaultError({
2839
2779
  output,
2840
2780
  parsedBody: parsedBody.Error,
2841
- exceptionCtor: SESServiceException_1.SESServiceException,
2842
2781
  errorCode,
2843
2782
  });
2844
2783
  }
@@ -2851,7 +2790,7 @@ const de_UpdateConfigurationSetReputationMetricsEnabledCommand = async (output,
2851
2790
  const response = {
2852
2791
  $metadata: deserializeMetadata(output),
2853
2792
  };
2854
- return Promise.resolve(response);
2793
+ return response;
2855
2794
  };
2856
2795
  exports.de_UpdateConfigurationSetReputationMetricsEnabledCommand = de_UpdateConfigurationSetReputationMetricsEnabledCommand;
2857
2796
  const de_UpdateConfigurationSetReputationMetricsEnabledCommandError = async (output, context) => {
@@ -2866,10 +2805,9 @@ const de_UpdateConfigurationSetReputationMetricsEnabledCommandError = async (out
2866
2805
  throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
2867
2806
  default:
2868
2807
  const parsedBody = parsedOutput.body;
2869
- (0, smithy_client_1.throwDefaultError)({
2808
+ return throwDefaultError({
2870
2809
  output,
2871
2810
  parsedBody: parsedBody.Error,
2872
- exceptionCtor: SESServiceException_1.SESServiceException,
2873
2811
  errorCode,
2874
2812
  });
2875
2813
  }
@@ -2882,7 +2820,7 @@ const de_UpdateConfigurationSetSendingEnabledCommand = async (output, context) =
2882
2820
  const response = {
2883
2821
  $metadata: deserializeMetadata(output),
2884
2822
  };
2885
- return Promise.resolve(response);
2823
+ return response;
2886
2824
  };
2887
2825
  exports.de_UpdateConfigurationSetSendingEnabledCommand = de_UpdateConfigurationSetSendingEnabledCommand;
2888
2826
  const de_UpdateConfigurationSetSendingEnabledCommandError = async (output, context) => {
@@ -2897,10 +2835,9 @@ const de_UpdateConfigurationSetSendingEnabledCommandError = async (output, conte
2897
2835
  throw await de_ConfigurationSetDoesNotExistExceptionRes(parsedOutput, context);
2898
2836
  default:
2899
2837
  const parsedBody = parsedOutput.body;
2900
- (0, smithy_client_1.throwDefaultError)({
2838
+ return throwDefaultError({
2901
2839
  output,
2902
2840
  parsedBody: parsedBody.Error,
2903
- exceptionCtor: SESServiceException_1.SESServiceException,
2904
2841
  errorCode,
2905
2842
  });
2906
2843
  }
@@ -2916,7 +2853,7 @@ const de_UpdateConfigurationSetTrackingOptionsCommand = async (output, context)
2916
2853
  $metadata: deserializeMetadata(output),
2917
2854
  ...contents,
2918
2855
  };
2919
- return Promise.resolve(response);
2856
+ return response;
2920
2857
  };
2921
2858
  exports.de_UpdateConfigurationSetTrackingOptionsCommand = de_UpdateConfigurationSetTrackingOptionsCommand;
2922
2859
  const de_UpdateConfigurationSetTrackingOptionsCommandError = async (output, context) => {
@@ -2937,10 +2874,9 @@ const de_UpdateConfigurationSetTrackingOptionsCommandError = async (output, cont
2937
2874
  throw await de_TrackingOptionsDoesNotExistExceptionRes(parsedOutput, context);
2938
2875
  default:
2939
2876
  const parsedBody = parsedOutput.body;
2940
- (0, smithy_client_1.throwDefaultError)({
2877
+ return throwDefaultError({
2941
2878
  output,
2942
2879
  parsedBody: parsedBody.Error,
2943
- exceptionCtor: SESServiceException_1.SESServiceException,
2944
2880
  errorCode,
2945
2881
  });
2946
2882
  }
@@ -2953,7 +2889,7 @@ const de_UpdateCustomVerificationEmailTemplateCommand = async (output, context)
2953
2889
  const response = {
2954
2890
  $metadata: deserializeMetadata(output),
2955
2891
  };
2956
- return Promise.resolve(response);
2892
+ return response;
2957
2893
  };
2958
2894
  exports.de_UpdateCustomVerificationEmailTemplateCommand = de_UpdateCustomVerificationEmailTemplateCommand;
2959
2895
  const de_UpdateCustomVerificationEmailTemplateCommandError = async (output, context) => {
@@ -2974,10 +2910,9 @@ const de_UpdateCustomVerificationEmailTemplateCommandError = async (output, cont
2974
2910
  throw await de_FromEmailAddressNotVerifiedExceptionRes(parsedOutput, context);
2975
2911
  default:
2976
2912
  const parsedBody = parsedOutput.body;
2977
- (0, smithy_client_1.throwDefaultError)({
2913
+ return throwDefaultError({
2978
2914
  output,
2979
2915
  parsedBody: parsedBody.Error,
2980
- exceptionCtor: SESServiceException_1.SESServiceException,
2981
2916
  errorCode,
2982
2917
  });
2983
2918
  }
@@ -2993,7 +2928,7 @@ const de_UpdateReceiptRuleCommand = async (output, context) => {
2993
2928
  $metadata: deserializeMetadata(output),
2994
2929
  ...contents,
2995
2930
  };
2996
- return Promise.resolve(response);
2931
+ return response;
2997
2932
  };
2998
2933
  exports.de_UpdateReceiptRuleCommand = de_UpdateReceiptRuleCommand;
2999
2934
  const de_UpdateReceiptRuleCommandError = async (output, context) => {
@@ -3023,10 +2958,9 @@ const de_UpdateReceiptRuleCommandError = async (output, context) => {
3023
2958
  throw await de_RuleSetDoesNotExistExceptionRes(parsedOutput, context);
3024
2959
  default:
3025
2960
  const parsedBody = parsedOutput.body;
3026
- (0, smithy_client_1.throwDefaultError)({
2961
+ return throwDefaultError({
3027
2962
  output,
3028
2963
  parsedBody: parsedBody.Error,
3029
- exceptionCtor: SESServiceException_1.SESServiceException,
3030
2964
  errorCode,
3031
2965
  });
3032
2966
  }
@@ -3042,7 +2976,7 @@ const de_UpdateTemplateCommand = async (output, context) => {
3042
2976
  $metadata: deserializeMetadata(output),
3043
2977
  ...contents,
3044
2978
  };
3045
- return Promise.resolve(response);
2979
+ return response;
3046
2980
  };
3047
2981
  exports.de_UpdateTemplateCommand = de_UpdateTemplateCommand;
3048
2982
  const de_UpdateTemplateCommandError = async (output, context) => {
@@ -3060,10 +2994,9 @@ const de_UpdateTemplateCommandError = async (output, context) => {
3060
2994
  throw await de_TemplateDoesNotExistExceptionRes(parsedOutput, context);
3061
2995
  default:
3062
2996
  const parsedBody = parsedOutput.body;
3063
- (0, smithy_client_1.throwDefaultError)({
2997
+ return throwDefaultError({
3064
2998
  output,
3065
2999
  parsedBody: parsedBody.Error,
3066
- exceptionCtor: SESServiceException_1.SESServiceException,
3067
3000
  errorCode,
3068
3001
  });
3069
3002
  }
@@ -3079,7 +3012,7 @@ const de_VerifyDomainDkimCommand = async (output, context) => {
3079
3012
  $metadata: deserializeMetadata(output),
3080
3013
  ...contents,
3081
3014
  };
3082
- return Promise.resolve(response);
3015
+ return response;
3083
3016
  };
3084
3017
  exports.de_VerifyDomainDkimCommand = de_VerifyDomainDkimCommand;
3085
3018
  const de_VerifyDomainDkimCommandError = async (output, context) => {
@@ -3089,10 +3022,9 @@ const de_VerifyDomainDkimCommandError = async (output, context) => {
3089
3022
  };
3090
3023
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3091
3024
  const parsedBody = parsedOutput.body;
3092
- (0, smithy_client_1.throwDefaultError)({
3025
+ return throwDefaultError({
3093
3026
  output,
3094
3027
  parsedBody: parsedBody.Error,
3095
- exceptionCtor: SESServiceException_1.SESServiceException,
3096
3028
  errorCode,
3097
3029
  });
3098
3030
  };
@@ -3107,7 +3039,7 @@ const de_VerifyDomainIdentityCommand = async (output, context) => {
3107
3039
  $metadata: deserializeMetadata(output),
3108
3040
  ...contents,
3109
3041
  };
3110
- return Promise.resolve(response);
3042
+ return response;
3111
3043
  };
3112
3044
  exports.de_VerifyDomainIdentityCommand = de_VerifyDomainIdentityCommand;
3113
3045
  const de_VerifyDomainIdentityCommandError = async (output, context) => {
@@ -3117,10 +3049,9 @@ const de_VerifyDomainIdentityCommandError = async (output, context) => {
3117
3049
  };
3118
3050
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3119
3051
  const parsedBody = parsedOutput.body;
3120
- (0, smithy_client_1.throwDefaultError)({
3052
+ return throwDefaultError({
3121
3053
  output,
3122
3054
  parsedBody: parsedBody.Error,
3123
- exceptionCtor: SESServiceException_1.SESServiceException,
3124
3055
  errorCode,
3125
3056
  });
3126
3057
  };
@@ -3132,7 +3063,7 @@ const de_VerifyEmailAddressCommand = async (output, context) => {
3132
3063
  const response = {
3133
3064
  $metadata: deserializeMetadata(output),
3134
3065
  };
3135
- return Promise.resolve(response);
3066
+ return response;
3136
3067
  };
3137
3068
  exports.de_VerifyEmailAddressCommand = de_VerifyEmailAddressCommand;
3138
3069
  const de_VerifyEmailAddressCommandError = async (output, context) => {
@@ -3142,10 +3073,9 @@ const de_VerifyEmailAddressCommandError = async (output, context) => {
3142
3073
  };
3143
3074
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3144
3075
  const parsedBody = parsedOutput.body;
3145
- (0, smithy_client_1.throwDefaultError)({
3076
+ return throwDefaultError({
3146
3077
  output,
3147
3078
  parsedBody: parsedBody.Error,
3148
- exceptionCtor: SESServiceException_1.SESServiceException,
3149
3079
  errorCode,
3150
3080
  });
3151
3081
  };
@@ -3160,7 +3090,7 @@ const de_VerifyEmailIdentityCommand = async (output, context) => {
3160
3090
  $metadata: deserializeMetadata(output),
3161
3091
  ...contents,
3162
3092
  };
3163
- return Promise.resolve(response);
3093
+ return response;
3164
3094
  };
3165
3095
  exports.de_VerifyEmailIdentityCommand = de_VerifyEmailIdentityCommand;
3166
3096
  const de_VerifyEmailIdentityCommandError = async (output, context) => {
@@ -3170,10 +3100,9 @@ const de_VerifyEmailIdentityCommandError = async (output, context) => {
3170
3100
  };
3171
3101
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
3172
3102
  const parsedBody = parsedOutput.body;
3173
- (0, smithy_client_1.throwDefaultError)({
3103
+ return throwDefaultError({
3174
3104
  output,
3175
3105
  parsedBody: parsedBody.Error,
3176
- exceptionCtor: SESServiceException_1.SESServiceException,
3177
3106
  errorCode,
3178
3107
  });
3179
3108
  };
@@ -6468,6 +6397,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
6468
6397
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
6469
6398
  };
6470
6399
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
6400
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(SESServiceException_1.SESServiceException);
6471
6401
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
6472
6402
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6473
6403
  const contents = {