@aws-sdk/client-ses 3.112.0 → 3.121.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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_query.js +355 -285
- package/dist-es/protocols/Aws_query.js +355 -285
- package/package.json +7 -7
|
@@ -944,8 +944,7 @@ const deserializeAws_queryCloneReceiptRuleSetCommandError = async (output, conte
|
|
|
944
944
|
body: await parseBody(output.body, context),
|
|
945
945
|
};
|
|
946
946
|
let response;
|
|
947
|
-
|
|
948
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
947
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
949
948
|
switch (errorCode) {
|
|
950
949
|
case "AlreadyExistsException":
|
|
951
950
|
case "com.amazonaws.ses#AlreadyExistsException":
|
|
@@ -958,10 +957,12 @@ const deserializeAws_queryCloneReceiptRuleSetCommandError = async (output, conte
|
|
|
958
957
|
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
959
958
|
default:
|
|
960
959
|
const parsedBody = parsedOutput.body;
|
|
960
|
+
const $metadata = deserializeMetadata(output);
|
|
961
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
961
962
|
response = new SESServiceException_1.SESServiceException({
|
|
962
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
963
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
963
964
|
$fault: "client",
|
|
964
|
-
$metadata
|
|
965
|
+
$metadata,
|
|
965
966
|
});
|
|
966
967
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
967
968
|
}
|
|
@@ -986,8 +987,7 @@ const deserializeAws_queryCreateConfigurationSetCommandError = async (output, co
|
|
|
986
987
|
body: await parseBody(output.body, context),
|
|
987
988
|
};
|
|
988
989
|
let response;
|
|
989
|
-
|
|
990
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
990
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
991
991
|
switch (errorCode) {
|
|
992
992
|
case "ConfigurationSetAlreadyExistsException":
|
|
993
993
|
case "com.amazonaws.ses#ConfigurationSetAlreadyExistsException":
|
|
@@ -1000,10 +1000,12 @@ const deserializeAws_queryCreateConfigurationSetCommandError = async (output, co
|
|
|
1000
1000
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1001
1001
|
default:
|
|
1002
1002
|
const parsedBody = parsedOutput.body;
|
|
1003
|
+
const $metadata = deserializeMetadata(output);
|
|
1004
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1003
1005
|
response = new SESServiceException_1.SESServiceException({
|
|
1004
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1006
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1005
1007
|
$fault: "client",
|
|
1006
|
-
$metadata
|
|
1008
|
+
$metadata,
|
|
1007
1009
|
});
|
|
1008
1010
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1009
1011
|
}
|
|
@@ -1028,8 +1030,7 @@ const deserializeAws_queryCreateConfigurationSetEventDestinationCommandError = a
|
|
|
1028
1030
|
body: await parseBody(output.body, context),
|
|
1029
1031
|
};
|
|
1030
1032
|
let response;
|
|
1031
|
-
|
|
1032
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1033
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1033
1034
|
switch (errorCode) {
|
|
1034
1035
|
case "ConfigurationSetDoesNotExistException":
|
|
1035
1036
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
@@ -1051,10 +1052,12 @@ const deserializeAws_queryCreateConfigurationSetEventDestinationCommandError = a
|
|
|
1051
1052
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1052
1053
|
default:
|
|
1053
1054
|
const parsedBody = parsedOutput.body;
|
|
1055
|
+
const $metadata = deserializeMetadata(output);
|
|
1056
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1054
1057
|
response = new SESServiceException_1.SESServiceException({
|
|
1055
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1058
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1056
1059
|
$fault: "client",
|
|
1057
|
-
$metadata
|
|
1060
|
+
$metadata,
|
|
1058
1061
|
});
|
|
1059
1062
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1060
1063
|
}
|
|
@@ -1079,8 +1082,7 @@ const deserializeAws_queryCreateConfigurationSetTrackingOptionsCommandError = as
|
|
|
1079
1082
|
body: await parseBody(output.body, context),
|
|
1080
1083
|
};
|
|
1081
1084
|
let response;
|
|
1082
|
-
|
|
1083
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1085
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1084
1086
|
switch (errorCode) {
|
|
1085
1087
|
case "ConfigurationSetDoesNotExistException":
|
|
1086
1088
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
@@ -1093,10 +1095,12 @@ const deserializeAws_queryCreateConfigurationSetTrackingOptionsCommandError = as
|
|
|
1093
1095
|
throw await deserializeAws_queryTrackingOptionsAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1094
1096
|
default:
|
|
1095
1097
|
const parsedBody = parsedOutput.body;
|
|
1098
|
+
const $metadata = deserializeMetadata(output);
|
|
1099
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1096
1100
|
response = new SESServiceException_1.SESServiceException({
|
|
1097
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1101
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1098
1102
|
$fault: "client",
|
|
1099
|
-
$metadata
|
|
1103
|
+
$metadata,
|
|
1100
1104
|
});
|
|
1101
1105
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1102
1106
|
}
|
|
@@ -1118,8 +1122,7 @@ const deserializeAws_queryCreateCustomVerificationEmailTemplateCommandError = as
|
|
|
1118
1122
|
body: await parseBody(output.body, context),
|
|
1119
1123
|
};
|
|
1120
1124
|
let response;
|
|
1121
|
-
|
|
1122
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1125
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1123
1126
|
switch (errorCode) {
|
|
1124
1127
|
case "CustomVerificationEmailInvalidContentException":
|
|
1125
1128
|
case "com.amazonaws.ses#CustomVerificationEmailInvalidContentException":
|
|
@@ -1135,10 +1138,12 @@ const deserializeAws_queryCreateCustomVerificationEmailTemplateCommandError = as
|
|
|
1135
1138
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1136
1139
|
default:
|
|
1137
1140
|
const parsedBody = parsedOutput.body;
|
|
1141
|
+
const $metadata = deserializeMetadata(output);
|
|
1142
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1138
1143
|
response = new SESServiceException_1.SESServiceException({
|
|
1139
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1144
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1140
1145
|
$fault: "client",
|
|
1141
|
-
$metadata
|
|
1146
|
+
$metadata,
|
|
1142
1147
|
});
|
|
1143
1148
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1144
1149
|
}
|
|
@@ -1163,8 +1168,7 @@ const deserializeAws_queryCreateReceiptFilterCommandError = async (output, conte
|
|
|
1163
1168
|
body: await parseBody(output.body, context),
|
|
1164
1169
|
};
|
|
1165
1170
|
let response;
|
|
1166
|
-
|
|
1167
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1171
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1168
1172
|
switch (errorCode) {
|
|
1169
1173
|
case "AlreadyExistsException":
|
|
1170
1174
|
case "com.amazonaws.ses#AlreadyExistsException":
|
|
@@ -1174,10 +1178,12 @@ const deserializeAws_queryCreateReceiptFilterCommandError = async (output, conte
|
|
|
1174
1178
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1175
1179
|
default:
|
|
1176
1180
|
const parsedBody = parsedOutput.body;
|
|
1181
|
+
const $metadata = deserializeMetadata(output);
|
|
1182
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1177
1183
|
response = new SESServiceException_1.SESServiceException({
|
|
1178
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1184
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1179
1185
|
$fault: "client",
|
|
1180
|
-
$metadata
|
|
1186
|
+
$metadata,
|
|
1181
1187
|
});
|
|
1182
1188
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1183
1189
|
}
|
|
@@ -1202,8 +1208,7 @@ const deserializeAws_queryCreateReceiptRuleCommandError = async (output, context
|
|
|
1202
1208
|
body: await parseBody(output.body, context),
|
|
1203
1209
|
};
|
|
1204
1210
|
let response;
|
|
1205
|
-
|
|
1206
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1211
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1207
1212
|
switch (errorCode) {
|
|
1208
1213
|
case "AlreadyExistsException":
|
|
1209
1214
|
case "com.amazonaws.ses#AlreadyExistsException":
|
|
@@ -1228,10 +1233,12 @@ const deserializeAws_queryCreateReceiptRuleCommandError = async (output, context
|
|
|
1228
1233
|
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1229
1234
|
default:
|
|
1230
1235
|
const parsedBody = parsedOutput.body;
|
|
1236
|
+
const $metadata = deserializeMetadata(output);
|
|
1237
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1231
1238
|
response = new SESServiceException_1.SESServiceException({
|
|
1232
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1239
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1233
1240
|
$fault: "client",
|
|
1234
|
-
$metadata
|
|
1241
|
+
$metadata,
|
|
1235
1242
|
});
|
|
1236
1243
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1237
1244
|
}
|
|
@@ -1256,8 +1263,7 @@ const deserializeAws_queryCreateReceiptRuleSetCommandError = async (output, cont
|
|
|
1256
1263
|
body: await parseBody(output.body, context),
|
|
1257
1264
|
};
|
|
1258
1265
|
let response;
|
|
1259
|
-
|
|
1260
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1266
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1261
1267
|
switch (errorCode) {
|
|
1262
1268
|
case "AlreadyExistsException":
|
|
1263
1269
|
case "com.amazonaws.ses#AlreadyExistsException":
|
|
@@ -1267,10 +1273,12 @@ const deserializeAws_queryCreateReceiptRuleSetCommandError = async (output, cont
|
|
|
1267
1273
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1268
1274
|
default:
|
|
1269
1275
|
const parsedBody = parsedOutput.body;
|
|
1276
|
+
const $metadata = deserializeMetadata(output);
|
|
1277
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1270
1278
|
response = new SESServiceException_1.SESServiceException({
|
|
1271
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1279
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1272
1280
|
$fault: "client",
|
|
1273
|
-
$metadata
|
|
1281
|
+
$metadata,
|
|
1274
1282
|
});
|
|
1275
1283
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1276
1284
|
}
|
|
@@ -1295,8 +1303,7 @@ const deserializeAws_queryCreateTemplateCommandError = async (output, context) =
|
|
|
1295
1303
|
body: await parseBody(output.body, context),
|
|
1296
1304
|
};
|
|
1297
1305
|
let response;
|
|
1298
|
-
|
|
1299
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1306
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1300
1307
|
switch (errorCode) {
|
|
1301
1308
|
case "AlreadyExistsException":
|
|
1302
1309
|
case "com.amazonaws.ses#AlreadyExistsException":
|
|
@@ -1309,10 +1316,12 @@ const deserializeAws_queryCreateTemplateCommandError = async (output, context) =
|
|
|
1309
1316
|
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1310
1317
|
default:
|
|
1311
1318
|
const parsedBody = parsedOutput.body;
|
|
1319
|
+
const $metadata = deserializeMetadata(output);
|
|
1320
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1312
1321
|
response = new SESServiceException_1.SESServiceException({
|
|
1313
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1322
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1314
1323
|
$fault: "client",
|
|
1315
|
-
$metadata
|
|
1324
|
+
$metadata,
|
|
1316
1325
|
});
|
|
1317
1326
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1318
1327
|
}
|
|
@@ -1337,18 +1346,19 @@ const deserializeAws_queryDeleteConfigurationSetCommandError = async (output, co
|
|
|
1337
1346
|
body: await parseBody(output.body, context),
|
|
1338
1347
|
};
|
|
1339
1348
|
let response;
|
|
1340
|
-
|
|
1341
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1349
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1342
1350
|
switch (errorCode) {
|
|
1343
1351
|
case "ConfigurationSetDoesNotExistException":
|
|
1344
1352
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
1345
1353
|
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1346
1354
|
default:
|
|
1347
1355
|
const parsedBody = parsedOutput.body;
|
|
1356
|
+
const $metadata = deserializeMetadata(output);
|
|
1357
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1348
1358
|
response = new SESServiceException_1.SESServiceException({
|
|
1349
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1359
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1350
1360
|
$fault: "client",
|
|
1351
|
-
$metadata
|
|
1361
|
+
$metadata,
|
|
1352
1362
|
});
|
|
1353
1363
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1354
1364
|
}
|
|
@@ -1373,8 +1383,7 @@ const deserializeAws_queryDeleteConfigurationSetEventDestinationCommandError = a
|
|
|
1373
1383
|
body: await parseBody(output.body, context),
|
|
1374
1384
|
};
|
|
1375
1385
|
let response;
|
|
1376
|
-
|
|
1377
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1386
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1378
1387
|
switch (errorCode) {
|
|
1379
1388
|
case "ConfigurationSetDoesNotExistException":
|
|
1380
1389
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
@@ -1384,10 +1393,12 @@ const deserializeAws_queryDeleteConfigurationSetEventDestinationCommandError = a
|
|
|
1384
1393
|
throw await deserializeAws_queryEventDestinationDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1385
1394
|
default:
|
|
1386
1395
|
const parsedBody = parsedOutput.body;
|
|
1396
|
+
const $metadata = deserializeMetadata(output);
|
|
1397
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1387
1398
|
response = new SESServiceException_1.SESServiceException({
|
|
1388
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1399
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1389
1400
|
$fault: "client",
|
|
1390
|
-
$metadata
|
|
1401
|
+
$metadata,
|
|
1391
1402
|
});
|
|
1392
1403
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1393
1404
|
}
|
|
@@ -1412,8 +1423,7 @@ const deserializeAws_queryDeleteConfigurationSetTrackingOptionsCommandError = as
|
|
|
1412
1423
|
body: await parseBody(output.body, context),
|
|
1413
1424
|
};
|
|
1414
1425
|
let response;
|
|
1415
|
-
|
|
1416
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1426
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1417
1427
|
switch (errorCode) {
|
|
1418
1428
|
case "ConfigurationSetDoesNotExistException":
|
|
1419
1429
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
@@ -1423,10 +1433,12 @@ const deserializeAws_queryDeleteConfigurationSetTrackingOptionsCommandError = as
|
|
|
1423
1433
|
throw await deserializeAws_queryTrackingOptionsDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1424
1434
|
default:
|
|
1425
1435
|
const parsedBody = parsedOutput.body;
|
|
1436
|
+
const $metadata = deserializeMetadata(output);
|
|
1437
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1426
1438
|
response = new SESServiceException_1.SESServiceException({
|
|
1427
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1439
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1428
1440
|
$fault: "client",
|
|
1429
|
-
$metadata
|
|
1441
|
+
$metadata,
|
|
1430
1442
|
});
|
|
1431
1443
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1432
1444
|
}
|
|
@@ -1448,15 +1460,16 @@ const deserializeAws_queryDeleteCustomVerificationEmailTemplateCommandError = as
|
|
|
1448
1460
|
body: await parseBody(output.body, context),
|
|
1449
1461
|
};
|
|
1450
1462
|
let response;
|
|
1451
|
-
|
|
1452
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1463
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1453
1464
|
switch (errorCode) {
|
|
1454
1465
|
default:
|
|
1455
1466
|
const parsedBody = parsedOutput.body;
|
|
1467
|
+
const $metadata = deserializeMetadata(output);
|
|
1468
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1456
1469
|
response = new SESServiceException_1.SESServiceException({
|
|
1457
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1470
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1458
1471
|
$fault: "client",
|
|
1459
|
-
$metadata
|
|
1472
|
+
$metadata,
|
|
1460
1473
|
});
|
|
1461
1474
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1462
1475
|
}
|
|
@@ -1481,15 +1494,16 @@ const deserializeAws_queryDeleteIdentityCommandError = async (output, context) =
|
|
|
1481
1494
|
body: await parseBody(output.body, context),
|
|
1482
1495
|
};
|
|
1483
1496
|
let response;
|
|
1484
|
-
|
|
1485
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1497
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1486
1498
|
switch (errorCode) {
|
|
1487
1499
|
default:
|
|
1488
1500
|
const parsedBody = parsedOutput.body;
|
|
1501
|
+
const $metadata = deserializeMetadata(output);
|
|
1502
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1489
1503
|
response = new SESServiceException_1.SESServiceException({
|
|
1490
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1504
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1491
1505
|
$fault: "client",
|
|
1492
|
-
$metadata
|
|
1506
|
+
$metadata,
|
|
1493
1507
|
});
|
|
1494
1508
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1495
1509
|
}
|
|
@@ -1514,15 +1528,16 @@ const deserializeAws_queryDeleteIdentityPolicyCommandError = async (output, cont
|
|
|
1514
1528
|
body: await parseBody(output.body, context),
|
|
1515
1529
|
};
|
|
1516
1530
|
let response;
|
|
1517
|
-
|
|
1518
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1531
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1519
1532
|
switch (errorCode) {
|
|
1520
1533
|
default:
|
|
1521
1534
|
const parsedBody = parsedOutput.body;
|
|
1535
|
+
const $metadata = deserializeMetadata(output);
|
|
1536
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1522
1537
|
response = new SESServiceException_1.SESServiceException({
|
|
1523
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1538
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1524
1539
|
$fault: "client",
|
|
1525
|
-
$metadata
|
|
1540
|
+
$metadata,
|
|
1526
1541
|
});
|
|
1527
1542
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1528
1543
|
}
|
|
@@ -1547,15 +1562,16 @@ const deserializeAws_queryDeleteReceiptFilterCommandError = async (output, conte
|
|
|
1547
1562
|
body: await parseBody(output.body, context),
|
|
1548
1563
|
};
|
|
1549
1564
|
let response;
|
|
1550
|
-
|
|
1551
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1565
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1552
1566
|
switch (errorCode) {
|
|
1553
1567
|
default:
|
|
1554
1568
|
const parsedBody = parsedOutput.body;
|
|
1569
|
+
const $metadata = deserializeMetadata(output);
|
|
1570
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1555
1571
|
response = new SESServiceException_1.SESServiceException({
|
|
1556
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1572
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1557
1573
|
$fault: "client",
|
|
1558
|
-
$metadata
|
|
1574
|
+
$metadata,
|
|
1559
1575
|
});
|
|
1560
1576
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1561
1577
|
}
|
|
@@ -1580,18 +1596,19 @@ const deserializeAws_queryDeleteReceiptRuleCommandError = async (output, context
|
|
|
1580
1596
|
body: await parseBody(output.body, context),
|
|
1581
1597
|
};
|
|
1582
1598
|
let response;
|
|
1583
|
-
|
|
1584
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1599
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1585
1600
|
switch (errorCode) {
|
|
1586
1601
|
case "RuleSetDoesNotExistException":
|
|
1587
1602
|
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
1588
1603
|
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1589
1604
|
default:
|
|
1590
1605
|
const parsedBody = parsedOutput.body;
|
|
1606
|
+
const $metadata = deserializeMetadata(output);
|
|
1607
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1591
1608
|
response = new SESServiceException_1.SESServiceException({
|
|
1592
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1609
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1593
1610
|
$fault: "client",
|
|
1594
|
-
$metadata
|
|
1611
|
+
$metadata,
|
|
1595
1612
|
});
|
|
1596
1613
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1597
1614
|
}
|
|
@@ -1616,18 +1633,19 @@ const deserializeAws_queryDeleteReceiptRuleSetCommandError = async (output, cont
|
|
|
1616
1633
|
body: await parseBody(output.body, context),
|
|
1617
1634
|
};
|
|
1618
1635
|
let response;
|
|
1619
|
-
|
|
1620
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1636
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1621
1637
|
switch (errorCode) {
|
|
1622
1638
|
case "CannotDeleteException":
|
|
1623
1639
|
case "com.amazonaws.ses#CannotDeleteException":
|
|
1624
1640
|
throw await deserializeAws_queryCannotDeleteExceptionResponse(parsedOutput, context);
|
|
1625
1641
|
default:
|
|
1626
1642
|
const parsedBody = parsedOutput.body;
|
|
1643
|
+
const $metadata = deserializeMetadata(output);
|
|
1644
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1627
1645
|
response = new SESServiceException_1.SESServiceException({
|
|
1628
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1646
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1629
1647
|
$fault: "client",
|
|
1630
|
-
$metadata
|
|
1648
|
+
$metadata,
|
|
1631
1649
|
});
|
|
1632
1650
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1633
1651
|
}
|
|
@@ -1652,15 +1670,16 @@ const deserializeAws_queryDeleteTemplateCommandError = async (output, context) =
|
|
|
1652
1670
|
body: await parseBody(output.body, context),
|
|
1653
1671
|
};
|
|
1654
1672
|
let response;
|
|
1655
|
-
|
|
1656
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1673
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1657
1674
|
switch (errorCode) {
|
|
1658
1675
|
default:
|
|
1659
1676
|
const parsedBody = parsedOutput.body;
|
|
1677
|
+
const $metadata = deserializeMetadata(output);
|
|
1678
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1660
1679
|
response = new SESServiceException_1.SESServiceException({
|
|
1661
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1680
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1662
1681
|
$fault: "client",
|
|
1663
|
-
$metadata
|
|
1682
|
+
$metadata,
|
|
1664
1683
|
});
|
|
1665
1684
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1666
1685
|
}
|
|
@@ -1682,15 +1701,16 @@ const deserializeAws_queryDeleteVerifiedEmailAddressCommandError = async (output
|
|
|
1682
1701
|
body: await parseBody(output.body, context),
|
|
1683
1702
|
};
|
|
1684
1703
|
let response;
|
|
1685
|
-
|
|
1686
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1704
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1687
1705
|
switch (errorCode) {
|
|
1688
1706
|
default:
|
|
1689
1707
|
const parsedBody = parsedOutput.body;
|
|
1708
|
+
const $metadata = deserializeMetadata(output);
|
|
1709
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1690
1710
|
response = new SESServiceException_1.SESServiceException({
|
|
1691
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1711
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1692
1712
|
$fault: "client",
|
|
1693
|
-
$metadata
|
|
1713
|
+
$metadata,
|
|
1694
1714
|
});
|
|
1695
1715
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1696
1716
|
}
|
|
@@ -1715,15 +1735,16 @@ const deserializeAws_queryDescribeActiveReceiptRuleSetCommandError = async (outp
|
|
|
1715
1735
|
body: await parseBody(output.body, context),
|
|
1716
1736
|
};
|
|
1717
1737
|
let response;
|
|
1718
|
-
|
|
1719
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1738
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1720
1739
|
switch (errorCode) {
|
|
1721
1740
|
default:
|
|
1722
1741
|
const parsedBody = parsedOutput.body;
|
|
1742
|
+
const $metadata = deserializeMetadata(output);
|
|
1743
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1723
1744
|
response = new SESServiceException_1.SESServiceException({
|
|
1724
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1745
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1725
1746
|
$fault: "client",
|
|
1726
|
-
$metadata
|
|
1747
|
+
$metadata,
|
|
1727
1748
|
});
|
|
1728
1749
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1729
1750
|
}
|
|
@@ -1748,18 +1769,19 @@ const deserializeAws_queryDescribeConfigurationSetCommandError = async (output,
|
|
|
1748
1769
|
body: await parseBody(output.body, context),
|
|
1749
1770
|
};
|
|
1750
1771
|
let response;
|
|
1751
|
-
|
|
1752
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1772
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1753
1773
|
switch (errorCode) {
|
|
1754
1774
|
case "ConfigurationSetDoesNotExistException":
|
|
1755
1775
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
1756
1776
|
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1757
1777
|
default:
|
|
1758
1778
|
const parsedBody = parsedOutput.body;
|
|
1779
|
+
const $metadata = deserializeMetadata(output);
|
|
1780
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1759
1781
|
response = new SESServiceException_1.SESServiceException({
|
|
1760
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1782
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1761
1783
|
$fault: "client",
|
|
1762
|
-
$metadata
|
|
1784
|
+
$metadata,
|
|
1763
1785
|
});
|
|
1764
1786
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1765
1787
|
}
|
|
@@ -1784,8 +1806,7 @@ const deserializeAws_queryDescribeReceiptRuleCommandError = async (output, conte
|
|
|
1784
1806
|
body: await parseBody(output.body, context),
|
|
1785
1807
|
};
|
|
1786
1808
|
let response;
|
|
1787
|
-
|
|
1788
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1809
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1789
1810
|
switch (errorCode) {
|
|
1790
1811
|
case "RuleDoesNotExistException":
|
|
1791
1812
|
case "com.amazonaws.ses#RuleDoesNotExistException":
|
|
@@ -1795,10 +1816,12 @@ const deserializeAws_queryDescribeReceiptRuleCommandError = async (output, conte
|
|
|
1795
1816
|
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1796
1817
|
default:
|
|
1797
1818
|
const parsedBody = parsedOutput.body;
|
|
1819
|
+
const $metadata = deserializeMetadata(output);
|
|
1820
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1798
1821
|
response = new SESServiceException_1.SESServiceException({
|
|
1799
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1822
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1800
1823
|
$fault: "client",
|
|
1801
|
-
$metadata
|
|
1824
|
+
$metadata,
|
|
1802
1825
|
});
|
|
1803
1826
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1804
1827
|
}
|
|
@@ -1823,18 +1846,19 @@ const deserializeAws_queryDescribeReceiptRuleSetCommandError = async (output, co
|
|
|
1823
1846
|
body: await parseBody(output.body, context),
|
|
1824
1847
|
};
|
|
1825
1848
|
let response;
|
|
1826
|
-
|
|
1827
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1849
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1828
1850
|
switch (errorCode) {
|
|
1829
1851
|
case "RuleSetDoesNotExistException":
|
|
1830
1852
|
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
1831
1853
|
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1832
1854
|
default:
|
|
1833
1855
|
const parsedBody = parsedOutput.body;
|
|
1856
|
+
const $metadata = deserializeMetadata(output);
|
|
1857
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1834
1858
|
response = new SESServiceException_1.SESServiceException({
|
|
1835
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1859
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1836
1860
|
$fault: "client",
|
|
1837
|
-
$metadata
|
|
1861
|
+
$metadata,
|
|
1838
1862
|
});
|
|
1839
1863
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1840
1864
|
}
|
|
@@ -1859,15 +1883,16 @@ const deserializeAws_queryGetAccountSendingEnabledCommandError = async (output,
|
|
|
1859
1883
|
body: await parseBody(output.body, context),
|
|
1860
1884
|
};
|
|
1861
1885
|
let response;
|
|
1862
|
-
|
|
1863
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1886
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1864
1887
|
switch (errorCode) {
|
|
1865
1888
|
default:
|
|
1866
1889
|
const parsedBody = parsedOutput.body;
|
|
1890
|
+
const $metadata = deserializeMetadata(output);
|
|
1891
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1867
1892
|
response = new SESServiceException_1.SESServiceException({
|
|
1868
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1893
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1869
1894
|
$fault: "client",
|
|
1870
|
-
$metadata
|
|
1895
|
+
$metadata,
|
|
1871
1896
|
});
|
|
1872
1897
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1873
1898
|
}
|
|
@@ -1892,18 +1917,19 @@ const deserializeAws_queryGetCustomVerificationEmailTemplateCommandError = async
|
|
|
1892
1917
|
body: await parseBody(output.body, context),
|
|
1893
1918
|
};
|
|
1894
1919
|
let response;
|
|
1895
|
-
|
|
1896
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1920
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1897
1921
|
switch (errorCode) {
|
|
1898
1922
|
case "CustomVerificationEmailTemplateDoesNotExistException":
|
|
1899
1923
|
case "com.amazonaws.ses#CustomVerificationEmailTemplateDoesNotExistException":
|
|
1900
1924
|
throw await deserializeAws_queryCustomVerificationEmailTemplateDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1901
1925
|
default:
|
|
1902
1926
|
const parsedBody = parsedOutput.body;
|
|
1927
|
+
const $metadata = deserializeMetadata(output);
|
|
1928
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1903
1929
|
response = new SESServiceException_1.SESServiceException({
|
|
1904
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1930
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1905
1931
|
$fault: "client",
|
|
1906
|
-
$metadata
|
|
1932
|
+
$metadata,
|
|
1907
1933
|
});
|
|
1908
1934
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1909
1935
|
}
|
|
@@ -1928,15 +1954,16 @@ const deserializeAws_queryGetIdentityDkimAttributesCommandError = async (output,
|
|
|
1928
1954
|
body: await parseBody(output.body, context),
|
|
1929
1955
|
};
|
|
1930
1956
|
let response;
|
|
1931
|
-
|
|
1932
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1957
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1933
1958
|
switch (errorCode) {
|
|
1934
1959
|
default:
|
|
1935
1960
|
const parsedBody = parsedOutput.body;
|
|
1961
|
+
const $metadata = deserializeMetadata(output);
|
|
1962
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1936
1963
|
response = new SESServiceException_1.SESServiceException({
|
|
1937
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1964
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1938
1965
|
$fault: "client",
|
|
1939
|
-
$metadata
|
|
1966
|
+
$metadata,
|
|
1940
1967
|
});
|
|
1941
1968
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1942
1969
|
}
|
|
@@ -1961,15 +1988,16 @@ const deserializeAws_queryGetIdentityMailFromDomainAttributesCommandError = asyn
|
|
|
1961
1988
|
body: await parseBody(output.body, context),
|
|
1962
1989
|
};
|
|
1963
1990
|
let response;
|
|
1964
|
-
|
|
1965
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1991
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1966
1992
|
switch (errorCode) {
|
|
1967
1993
|
default:
|
|
1968
1994
|
const parsedBody = parsedOutput.body;
|
|
1995
|
+
const $metadata = deserializeMetadata(output);
|
|
1996
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1969
1997
|
response = new SESServiceException_1.SESServiceException({
|
|
1970
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1998
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
1971
1999
|
$fault: "client",
|
|
1972
|
-
$metadata
|
|
2000
|
+
$metadata,
|
|
1973
2001
|
});
|
|
1974
2002
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
1975
2003
|
}
|
|
@@ -1994,15 +2022,16 @@ const deserializeAws_queryGetIdentityNotificationAttributesCommandError = async
|
|
|
1994
2022
|
body: await parseBody(output.body, context),
|
|
1995
2023
|
};
|
|
1996
2024
|
let response;
|
|
1997
|
-
|
|
1998
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2025
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1999
2026
|
switch (errorCode) {
|
|
2000
2027
|
default:
|
|
2001
2028
|
const parsedBody = parsedOutput.body;
|
|
2029
|
+
const $metadata = deserializeMetadata(output);
|
|
2030
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2002
2031
|
response = new SESServiceException_1.SESServiceException({
|
|
2003
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2032
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2004
2033
|
$fault: "client",
|
|
2005
|
-
$metadata
|
|
2034
|
+
$metadata,
|
|
2006
2035
|
});
|
|
2007
2036
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2008
2037
|
}
|
|
@@ -2027,15 +2056,16 @@ const deserializeAws_queryGetIdentityPoliciesCommandError = async (output, conte
|
|
|
2027
2056
|
body: await parseBody(output.body, context),
|
|
2028
2057
|
};
|
|
2029
2058
|
let response;
|
|
2030
|
-
|
|
2031
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2059
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2032
2060
|
switch (errorCode) {
|
|
2033
2061
|
default:
|
|
2034
2062
|
const parsedBody = parsedOutput.body;
|
|
2063
|
+
const $metadata = deserializeMetadata(output);
|
|
2064
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2035
2065
|
response = new SESServiceException_1.SESServiceException({
|
|
2036
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2066
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2037
2067
|
$fault: "client",
|
|
2038
|
-
$metadata
|
|
2068
|
+
$metadata,
|
|
2039
2069
|
});
|
|
2040
2070
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2041
2071
|
}
|
|
@@ -2060,15 +2090,16 @@ const deserializeAws_queryGetIdentityVerificationAttributesCommandError = async
|
|
|
2060
2090
|
body: await parseBody(output.body, context),
|
|
2061
2091
|
};
|
|
2062
2092
|
let response;
|
|
2063
|
-
|
|
2064
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2093
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2065
2094
|
switch (errorCode) {
|
|
2066
2095
|
default:
|
|
2067
2096
|
const parsedBody = parsedOutput.body;
|
|
2097
|
+
const $metadata = deserializeMetadata(output);
|
|
2098
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2068
2099
|
response = new SESServiceException_1.SESServiceException({
|
|
2069
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2100
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2070
2101
|
$fault: "client",
|
|
2071
|
-
$metadata
|
|
2102
|
+
$metadata,
|
|
2072
2103
|
});
|
|
2073
2104
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2074
2105
|
}
|
|
@@ -2093,15 +2124,16 @@ const deserializeAws_queryGetSendQuotaCommandError = async (output, context) =>
|
|
|
2093
2124
|
body: await parseBody(output.body, context),
|
|
2094
2125
|
};
|
|
2095
2126
|
let response;
|
|
2096
|
-
|
|
2097
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2127
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2098
2128
|
switch (errorCode) {
|
|
2099
2129
|
default:
|
|
2100
2130
|
const parsedBody = parsedOutput.body;
|
|
2131
|
+
const $metadata = deserializeMetadata(output);
|
|
2132
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2101
2133
|
response = new SESServiceException_1.SESServiceException({
|
|
2102
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2134
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2103
2135
|
$fault: "client",
|
|
2104
|
-
$metadata
|
|
2136
|
+
$metadata,
|
|
2105
2137
|
});
|
|
2106
2138
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2107
2139
|
}
|
|
@@ -2126,15 +2158,16 @@ const deserializeAws_queryGetSendStatisticsCommandError = async (output, context
|
|
|
2126
2158
|
body: await parseBody(output.body, context),
|
|
2127
2159
|
};
|
|
2128
2160
|
let response;
|
|
2129
|
-
|
|
2130
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2161
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2131
2162
|
switch (errorCode) {
|
|
2132
2163
|
default:
|
|
2133
2164
|
const parsedBody = parsedOutput.body;
|
|
2165
|
+
const $metadata = deserializeMetadata(output);
|
|
2166
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2134
2167
|
response = new SESServiceException_1.SESServiceException({
|
|
2135
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2168
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2136
2169
|
$fault: "client",
|
|
2137
|
-
$metadata
|
|
2170
|
+
$metadata,
|
|
2138
2171
|
});
|
|
2139
2172
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2140
2173
|
}
|
|
@@ -2159,18 +2192,19 @@ const deserializeAws_queryGetTemplateCommandError = async (output, context) => {
|
|
|
2159
2192
|
body: await parseBody(output.body, context),
|
|
2160
2193
|
};
|
|
2161
2194
|
let response;
|
|
2162
|
-
|
|
2163
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2195
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2164
2196
|
switch (errorCode) {
|
|
2165
2197
|
case "TemplateDoesNotExistException":
|
|
2166
2198
|
case "com.amazonaws.ses#TemplateDoesNotExistException":
|
|
2167
2199
|
throw await deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context);
|
|
2168
2200
|
default:
|
|
2169
2201
|
const parsedBody = parsedOutput.body;
|
|
2202
|
+
const $metadata = deserializeMetadata(output);
|
|
2203
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2170
2204
|
response = new SESServiceException_1.SESServiceException({
|
|
2171
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2205
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2172
2206
|
$fault: "client",
|
|
2173
|
-
$metadata
|
|
2207
|
+
$metadata,
|
|
2174
2208
|
});
|
|
2175
2209
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2176
2210
|
}
|
|
@@ -2195,15 +2229,16 @@ const deserializeAws_queryListConfigurationSetsCommandError = async (output, con
|
|
|
2195
2229
|
body: await parseBody(output.body, context),
|
|
2196
2230
|
};
|
|
2197
2231
|
let response;
|
|
2198
|
-
|
|
2199
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2232
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2200
2233
|
switch (errorCode) {
|
|
2201
2234
|
default:
|
|
2202
2235
|
const parsedBody = parsedOutput.body;
|
|
2236
|
+
const $metadata = deserializeMetadata(output);
|
|
2237
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2203
2238
|
response = new SESServiceException_1.SESServiceException({
|
|
2204
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2239
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2205
2240
|
$fault: "client",
|
|
2206
|
-
$metadata
|
|
2241
|
+
$metadata,
|
|
2207
2242
|
});
|
|
2208
2243
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2209
2244
|
}
|
|
@@ -2228,15 +2263,16 @@ const deserializeAws_queryListCustomVerificationEmailTemplatesCommandError = asy
|
|
|
2228
2263
|
body: await parseBody(output.body, context),
|
|
2229
2264
|
};
|
|
2230
2265
|
let response;
|
|
2231
|
-
|
|
2232
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2266
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2233
2267
|
switch (errorCode) {
|
|
2234
2268
|
default:
|
|
2235
2269
|
const parsedBody = parsedOutput.body;
|
|
2270
|
+
const $metadata = deserializeMetadata(output);
|
|
2271
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2236
2272
|
response = new SESServiceException_1.SESServiceException({
|
|
2237
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2273
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2238
2274
|
$fault: "client",
|
|
2239
|
-
$metadata
|
|
2275
|
+
$metadata,
|
|
2240
2276
|
});
|
|
2241
2277
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2242
2278
|
}
|
|
@@ -2261,15 +2297,16 @@ const deserializeAws_queryListIdentitiesCommandError = async (output, context) =
|
|
|
2261
2297
|
body: await parseBody(output.body, context),
|
|
2262
2298
|
};
|
|
2263
2299
|
let response;
|
|
2264
|
-
|
|
2265
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2300
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2266
2301
|
switch (errorCode) {
|
|
2267
2302
|
default:
|
|
2268
2303
|
const parsedBody = parsedOutput.body;
|
|
2304
|
+
const $metadata = deserializeMetadata(output);
|
|
2305
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2269
2306
|
response = new SESServiceException_1.SESServiceException({
|
|
2270
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2307
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2271
2308
|
$fault: "client",
|
|
2272
|
-
$metadata
|
|
2309
|
+
$metadata,
|
|
2273
2310
|
});
|
|
2274
2311
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2275
2312
|
}
|
|
@@ -2294,15 +2331,16 @@ const deserializeAws_queryListIdentityPoliciesCommandError = async (output, cont
|
|
|
2294
2331
|
body: await parseBody(output.body, context),
|
|
2295
2332
|
};
|
|
2296
2333
|
let response;
|
|
2297
|
-
|
|
2298
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2334
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2299
2335
|
switch (errorCode) {
|
|
2300
2336
|
default:
|
|
2301
2337
|
const parsedBody = parsedOutput.body;
|
|
2338
|
+
const $metadata = deserializeMetadata(output);
|
|
2339
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2302
2340
|
response = new SESServiceException_1.SESServiceException({
|
|
2303
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2341
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2304
2342
|
$fault: "client",
|
|
2305
|
-
$metadata
|
|
2343
|
+
$metadata,
|
|
2306
2344
|
});
|
|
2307
2345
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2308
2346
|
}
|
|
@@ -2327,15 +2365,16 @@ const deserializeAws_queryListReceiptFiltersCommandError = async (output, contex
|
|
|
2327
2365
|
body: await parseBody(output.body, context),
|
|
2328
2366
|
};
|
|
2329
2367
|
let response;
|
|
2330
|
-
|
|
2331
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2368
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2332
2369
|
switch (errorCode) {
|
|
2333
2370
|
default:
|
|
2334
2371
|
const parsedBody = parsedOutput.body;
|
|
2372
|
+
const $metadata = deserializeMetadata(output);
|
|
2373
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2335
2374
|
response = new SESServiceException_1.SESServiceException({
|
|
2336
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2375
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2337
2376
|
$fault: "client",
|
|
2338
|
-
$metadata
|
|
2377
|
+
$metadata,
|
|
2339
2378
|
});
|
|
2340
2379
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2341
2380
|
}
|
|
@@ -2360,15 +2399,16 @@ const deserializeAws_queryListReceiptRuleSetsCommandError = async (output, conte
|
|
|
2360
2399
|
body: await parseBody(output.body, context),
|
|
2361
2400
|
};
|
|
2362
2401
|
let response;
|
|
2363
|
-
|
|
2364
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2402
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2365
2403
|
switch (errorCode) {
|
|
2366
2404
|
default:
|
|
2367
2405
|
const parsedBody = parsedOutput.body;
|
|
2406
|
+
const $metadata = deserializeMetadata(output);
|
|
2407
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2368
2408
|
response = new SESServiceException_1.SESServiceException({
|
|
2369
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2409
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2370
2410
|
$fault: "client",
|
|
2371
|
-
$metadata
|
|
2411
|
+
$metadata,
|
|
2372
2412
|
});
|
|
2373
2413
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2374
2414
|
}
|
|
@@ -2393,15 +2433,16 @@ const deserializeAws_queryListTemplatesCommandError = async (output, context) =>
|
|
|
2393
2433
|
body: await parseBody(output.body, context),
|
|
2394
2434
|
};
|
|
2395
2435
|
let response;
|
|
2396
|
-
|
|
2397
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2436
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2398
2437
|
switch (errorCode) {
|
|
2399
2438
|
default:
|
|
2400
2439
|
const parsedBody = parsedOutput.body;
|
|
2440
|
+
const $metadata = deserializeMetadata(output);
|
|
2441
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2401
2442
|
response = new SESServiceException_1.SESServiceException({
|
|
2402
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2443
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2403
2444
|
$fault: "client",
|
|
2404
|
-
$metadata
|
|
2445
|
+
$metadata,
|
|
2405
2446
|
});
|
|
2406
2447
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2407
2448
|
}
|
|
@@ -2426,15 +2467,16 @@ const deserializeAws_queryListVerifiedEmailAddressesCommandError = async (output
|
|
|
2426
2467
|
body: await parseBody(output.body, context),
|
|
2427
2468
|
};
|
|
2428
2469
|
let response;
|
|
2429
|
-
|
|
2430
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2470
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2431
2471
|
switch (errorCode) {
|
|
2432
2472
|
default:
|
|
2433
2473
|
const parsedBody = parsedOutput.body;
|
|
2474
|
+
const $metadata = deserializeMetadata(output);
|
|
2475
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2434
2476
|
response = new SESServiceException_1.SESServiceException({
|
|
2435
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2477
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2436
2478
|
$fault: "client",
|
|
2437
|
-
$metadata
|
|
2479
|
+
$metadata,
|
|
2438
2480
|
});
|
|
2439
2481
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2440
2482
|
}
|
|
@@ -2459,8 +2501,7 @@ const deserializeAws_queryPutConfigurationSetDeliveryOptionsCommandError = async
|
|
|
2459
2501
|
body: await parseBody(output.body, context),
|
|
2460
2502
|
};
|
|
2461
2503
|
let response;
|
|
2462
|
-
|
|
2463
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2504
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2464
2505
|
switch (errorCode) {
|
|
2465
2506
|
case "ConfigurationSetDoesNotExistException":
|
|
2466
2507
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
@@ -2470,10 +2511,12 @@ const deserializeAws_queryPutConfigurationSetDeliveryOptionsCommandError = async
|
|
|
2470
2511
|
throw await deserializeAws_queryInvalidDeliveryOptionsExceptionResponse(parsedOutput, context);
|
|
2471
2512
|
default:
|
|
2472
2513
|
const parsedBody = parsedOutput.body;
|
|
2514
|
+
const $metadata = deserializeMetadata(output);
|
|
2515
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2473
2516
|
response = new SESServiceException_1.SESServiceException({
|
|
2474
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2517
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2475
2518
|
$fault: "client",
|
|
2476
|
-
$metadata
|
|
2519
|
+
$metadata,
|
|
2477
2520
|
});
|
|
2478
2521
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2479
2522
|
}
|
|
@@ -2498,18 +2541,19 @@ const deserializeAws_queryPutIdentityPolicyCommandError = async (output, context
|
|
|
2498
2541
|
body: await parseBody(output.body, context),
|
|
2499
2542
|
};
|
|
2500
2543
|
let response;
|
|
2501
|
-
|
|
2502
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2544
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2503
2545
|
switch (errorCode) {
|
|
2504
2546
|
case "InvalidPolicyException":
|
|
2505
2547
|
case "com.amazonaws.ses#InvalidPolicyException":
|
|
2506
2548
|
throw await deserializeAws_queryInvalidPolicyExceptionResponse(parsedOutput, context);
|
|
2507
2549
|
default:
|
|
2508
2550
|
const parsedBody = parsedOutput.body;
|
|
2551
|
+
const $metadata = deserializeMetadata(output);
|
|
2552
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2509
2553
|
response = new SESServiceException_1.SESServiceException({
|
|
2510
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2554
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2511
2555
|
$fault: "client",
|
|
2512
|
-
$metadata
|
|
2556
|
+
$metadata,
|
|
2513
2557
|
});
|
|
2514
2558
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2515
2559
|
}
|
|
@@ -2534,8 +2578,7 @@ const deserializeAws_queryReorderReceiptRuleSetCommandError = async (output, con
|
|
|
2534
2578
|
body: await parseBody(output.body, context),
|
|
2535
2579
|
};
|
|
2536
2580
|
let response;
|
|
2537
|
-
|
|
2538
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2581
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2539
2582
|
switch (errorCode) {
|
|
2540
2583
|
case "RuleDoesNotExistException":
|
|
2541
2584
|
case "com.amazonaws.ses#RuleDoesNotExistException":
|
|
@@ -2545,10 +2588,12 @@ const deserializeAws_queryReorderReceiptRuleSetCommandError = async (output, con
|
|
|
2545
2588
|
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
2546
2589
|
default:
|
|
2547
2590
|
const parsedBody = parsedOutput.body;
|
|
2591
|
+
const $metadata = deserializeMetadata(output);
|
|
2592
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2548
2593
|
response = new SESServiceException_1.SESServiceException({
|
|
2549
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2594
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2550
2595
|
$fault: "client",
|
|
2551
|
-
$metadata
|
|
2596
|
+
$metadata,
|
|
2552
2597
|
});
|
|
2553
2598
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2554
2599
|
}
|
|
@@ -2573,18 +2618,19 @@ const deserializeAws_querySendBounceCommandError = async (output, context) => {
|
|
|
2573
2618
|
body: await parseBody(output.body, context),
|
|
2574
2619
|
};
|
|
2575
2620
|
let response;
|
|
2576
|
-
|
|
2577
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2621
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2578
2622
|
switch (errorCode) {
|
|
2579
2623
|
case "MessageRejected":
|
|
2580
2624
|
case "com.amazonaws.ses#MessageRejected":
|
|
2581
2625
|
throw await deserializeAws_queryMessageRejectedResponse(parsedOutput, context);
|
|
2582
2626
|
default:
|
|
2583
2627
|
const parsedBody = parsedOutput.body;
|
|
2628
|
+
const $metadata = deserializeMetadata(output);
|
|
2629
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2584
2630
|
response = new SESServiceException_1.SESServiceException({
|
|
2585
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2631
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2586
2632
|
$fault: "client",
|
|
2587
|
-
$metadata
|
|
2633
|
+
$metadata,
|
|
2588
2634
|
});
|
|
2589
2635
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2590
2636
|
}
|
|
@@ -2609,8 +2655,7 @@ const deserializeAws_querySendBulkTemplatedEmailCommandError = async (output, co
|
|
|
2609
2655
|
body: await parseBody(output.body, context),
|
|
2610
2656
|
};
|
|
2611
2657
|
let response;
|
|
2612
|
-
|
|
2613
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2658
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2614
2659
|
switch (errorCode) {
|
|
2615
2660
|
case "AccountSendingPausedException":
|
|
2616
2661
|
case "com.amazonaws.ses#AccountSendingPausedException":
|
|
@@ -2632,10 +2677,12 @@ const deserializeAws_querySendBulkTemplatedEmailCommandError = async (output, co
|
|
|
2632
2677
|
throw await deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context);
|
|
2633
2678
|
default:
|
|
2634
2679
|
const parsedBody = parsedOutput.body;
|
|
2680
|
+
const $metadata = deserializeMetadata(output);
|
|
2681
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2635
2682
|
response = new SESServiceException_1.SESServiceException({
|
|
2636
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2683
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2637
2684
|
$fault: "client",
|
|
2638
|
-
$metadata
|
|
2685
|
+
$metadata,
|
|
2639
2686
|
});
|
|
2640
2687
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2641
2688
|
}
|
|
@@ -2660,8 +2707,7 @@ const deserializeAws_querySendCustomVerificationEmailCommandError = async (outpu
|
|
|
2660
2707
|
body: await parseBody(output.body, context),
|
|
2661
2708
|
};
|
|
2662
2709
|
let response;
|
|
2663
|
-
|
|
2664
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2710
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2665
2711
|
switch (errorCode) {
|
|
2666
2712
|
case "ConfigurationSetDoesNotExistException":
|
|
2667
2713
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
@@ -2680,10 +2726,12 @@ const deserializeAws_querySendCustomVerificationEmailCommandError = async (outpu
|
|
|
2680
2726
|
throw await deserializeAws_queryProductionAccessNotGrantedExceptionResponse(parsedOutput, context);
|
|
2681
2727
|
default:
|
|
2682
2728
|
const parsedBody = parsedOutput.body;
|
|
2729
|
+
const $metadata = deserializeMetadata(output);
|
|
2730
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2683
2731
|
response = new SESServiceException_1.SESServiceException({
|
|
2684
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2732
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2685
2733
|
$fault: "client",
|
|
2686
|
-
$metadata
|
|
2734
|
+
$metadata,
|
|
2687
2735
|
});
|
|
2688
2736
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2689
2737
|
}
|
|
@@ -2708,8 +2756,7 @@ const deserializeAws_querySendEmailCommandError = async (output, context) => {
|
|
|
2708
2756
|
body: await parseBody(output.body, context),
|
|
2709
2757
|
};
|
|
2710
2758
|
let response;
|
|
2711
|
-
|
|
2712
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2759
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2713
2760
|
switch (errorCode) {
|
|
2714
2761
|
case "AccountSendingPausedException":
|
|
2715
2762
|
case "com.amazonaws.ses#AccountSendingPausedException":
|
|
@@ -2728,10 +2775,12 @@ const deserializeAws_querySendEmailCommandError = async (output, context) => {
|
|
|
2728
2775
|
throw await deserializeAws_queryMessageRejectedResponse(parsedOutput, context);
|
|
2729
2776
|
default:
|
|
2730
2777
|
const parsedBody = parsedOutput.body;
|
|
2778
|
+
const $metadata = deserializeMetadata(output);
|
|
2779
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2731
2780
|
response = new SESServiceException_1.SESServiceException({
|
|
2732
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2781
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2733
2782
|
$fault: "client",
|
|
2734
|
-
$metadata
|
|
2783
|
+
$metadata,
|
|
2735
2784
|
});
|
|
2736
2785
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2737
2786
|
}
|
|
@@ -2756,8 +2805,7 @@ const deserializeAws_querySendRawEmailCommandError = async (output, context) =>
|
|
|
2756
2805
|
body: await parseBody(output.body, context),
|
|
2757
2806
|
};
|
|
2758
2807
|
let response;
|
|
2759
|
-
|
|
2760
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2808
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2761
2809
|
switch (errorCode) {
|
|
2762
2810
|
case "AccountSendingPausedException":
|
|
2763
2811
|
case "com.amazonaws.ses#AccountSendingPausedException":
|
|
@@ -2776,10 +2824,12 @@ const deserializeAws_querySendRawEmailCommandError = async (output, context) =>
|
|
|
2776
2824
|
throw await deserializeAws_queryMessageRejectedResponse(parsedOutput, context);
|
|
2777
2825
|
default:
|
|
2778
2826
|
const parsedBody = parsedOutput.body;
|
|
2827
|
+
const $metadata = deserializeMetadata(output);
|
|
2828
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2779
2829
|
response = new SESServiceException_1.SESServiceException({
|
|
2780
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2830
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2781
2831
|
$fault: "client",
|
|
2782
|
-
$metadata
|
|
2832
|
+
$metadata,
|
|
2783
2833
|
});
|
|
2784
2834
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2785
2835
|
}
|
|
@@ -2804,8 +2854,7 @@ const deserializeAws_querySendTemplatedEmailCommandError = async (output, contex
|
|
|
2804
2854
|
body: await parseBody(output.body, context),
|
|
2805
2855
|
};
|
|
2806
2856
|
let response;
|
|
2807
|
-
|
|
2808
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2857
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2809
2858
|
switch (errorCode) {
|
|
2810
2859
|
case "AccountSendingPausedException":
|
|
2811
2860
|
case "com.amazonaws.ses#AccountSendingPausedException":
|
|
@@ -2827,10 +2876,12 @@ const deserializeAws_querySendTemplatedEmailCommandError = async (output, contex
|
|
|
2827
2876
|
throw await deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context);
|
|
2828
2877
|
default:
|
|
2829
2878
|
const parsedBody = parsedOutput.body;
|
|
2879
|
+
const $metadata = deserializeMetadata(output);
|
|
2880
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2830
2881
|
response = new SESServiceException_1.SESServiceException({
|
|
2831
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2882
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2832
2883
|
$fault: "client",
|
|
2833
|
-
$metadata
|
|
2884
|
+
$metadata,
|
|
2834
2885
|
});
|
|
2835
2886
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2836
2887
|
}
|
|
@@ -2855,18 +2906,19 @@ const deserializeAws_querySetActiveReceiptRuleSetCommandError = async (output, c
|
|
|
2855
2906
|
body: await parseBody(output.body, context),
|
|
2856
2907
|
};
|
|
2857
2908
|
let response;
|
|
2858
|
-
|
|
2859
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2909
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2860
2910
|
switch (errorCode) {
|
|
2861
2911
|
case "RuleSetDoesNotExistException":
|
|
2862
2912
|
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
2863
2913
|
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
2864
2914
|
default:
|
|
2865
2915
|
const parsedBody = parsedOutput.body;
|
|
2916
|
+
const $metadata = deserializeMetadata(output);
|
|
2917
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2866
2918
|
response = new SESServiceException_1.SESServiceException({
|
|
2867
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2919
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2868
2920
|
$fault: "client",
|
|
2869
|
-
$metadata
|
|
2921
|
+
$metadata,
|
|
2870
2922
|
});
|
|
2871
2923
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2872
2924
|
}
|
|
@@ -2891,15 +2943,16 @@ const deserializeAws_querySetIdentityDkimEnabledCommandError = async (output, co
|
|
|
2891
2943
|
body: await parseBody(output.body, context),
|
|
2892
2944
|
};
|
|
2893
2945
|
let response;
|
|
2894
|
-
|
|
2895
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2946
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2896
2947
|
switch (errorCode) {
|
|
2897
2948
|
default:
|
|
2898
2949
|
const parsedBody = parsedOutput.body;
|
|
2950
|
+
const $metadata = deserializeMetadata(output);
|
|
2951
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2899
2952
|
response = new SESServiceException_1.SESServiceException({
|
|
2900
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2953
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2901
2954
|
$fault: "client",
|
|
2902
|
-
$metadata
|
|
2955
|
+
$metadata,
|
|
2903
2956
|
});
|
|
2904
2957
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2905
2958
|
}
|
|
@@ -2924,15 +2977,16 @@ const deserializeAws_querySetIdentityFeedbackForwardingEnabledCommandError = asy
|
|
|
2924
2977
|
body: await parseBody(output.body, context),
|
|
2925
2978
|
};
|
|
2926
2979
|
let response;
|
|
2927
|
-
|
|
2928
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2980
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2929
2981
|
switch (errorCode) {
|
|
2930
2982
|
default:
|
|
2931
2983
|
const parsedBody = parsedOutput.body;
|
|
2984
|
+
const $metadata = deserializeMetadata(output);
|
|
2985
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2932
2986
|
response = new SESServiceException_1.SESServiceException({
|
|
2933
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2987
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2934
2988
|
$fault: "client",
|
|
2935
|
-
$metadata
|
|
2989
|
+
$metadata,
|
|
2936
2990
|
});
|
|
2937
2991
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2938
2992
|
}
|
|
@@ -2957,15 +3011,16 @@ const deserializeAws_querySetIdentityHeadersInNotificationsEnabledCommandError =
|
|
|
2957
3011
|
body: await parseBody(output.body, context),
|
|
2958
3012
|
};
|
|
2959
3013
|
let response;
|
|
2960
|
-
|
|
2961
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3014
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2962
3015
|
switch (errorCode) {
|
|
2963
3016
|
default:
|
|
2964
3017
|
const parsedBody = parsedOutput.body;
|
|
3018
|
+
const $metadata = deserializeMetadata(output);
|
|
3019
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2965
3020
|
response = new SESServiceException_1.SESServiceException({
|
|
2966
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3021
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
2967
3022
|
$fault: "client",
|
|
2968
|
-
$metadata
|
|
3023
|
+
$metadata,
|
|
2969
3024
|
});
|
|
2970
3025
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
2971
3026
|
}
|
|
@@ -2990,15 +3045,16 @@ const deserializeAws_querySetIdentityMailFromDomainCommandError = async (output,
|
|
|
2990
3045
|
body: await parseBody(output.body, context),
|
|
2991
3046
|
};
|
|
2992
3047
|
let response;
|
|
2993
|
-
|
|
2994
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3048
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2995
3049
|
switch (errorCode) {
|
|
2996
3050
|
default:
|
|
2997
3051
|
const parsedBody = parsedOutput.body;
|
|
3052
|
+
const $metadata = deserializeMetadata(output);
|
|
3053
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2998
3054
|
response = new SESServiceException_1.SESServiceException({
|
|
2999
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3055
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3000
3056
|
$fault: "client",
|
|
3001
|
-
$metadata
|
|
3057
|
+
$metadata,
|
|
3002
3058
|
});
|
|
3003
3059
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3004
3060
|
}
|
|
@@ -3023,15 +3079,16 @@ const deserializeAws_querySetIdentityNotificationTopicCommandError = async (outp
|
|
|
3023
3079
|
body: await parseBody(output.body, context),
|
|
3024
3080
|
};
|
|
3025
3081
|
let response;
|
|
3026
|
-
|
|
3027
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3082
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3028
3083
|
switch (errorCode) {
|
|
3029
3084
|
default:
|
|
3030
3085
|
const parsedBody = parsedOutput.body;
|
|
3086
|
+
const $metadata = deserializeMetadata(output);
|
|
3087
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3031
3088
|
response = new SESServiceException_1.SESServiceException({
|
|
3032
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3089
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3033
3090
|
$fault: "client",
|
|
3034
|
-
$metadata
|
|
3091
|
+
$metadata,
|
|
3035
3092
|
});
|
|
3036
3093
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3037
3094
|
}
|
|
@@ -3056,8 +3113,7 @@ const deserializeAws_querySetReceiptRulePositionCommandError = async (output, co
|
|
|
3056
3113
|
body: await parseBody(output.body, context),
|
|
3057
3114
|
};
|
|
3058
3115
|
let response;
|
|
3059
|
-
|
|
3060
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3116
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3061
3117
|
switch (errorCode) {
|
|
3062
3118
|
case "RuleDoesNotExistException":
|
|
3063
3119
|
case "com.amazonaws.ses#RuleDoesNotExistException":
|
|
@@ -3067,10 +3123,12 @@ const deserializeAws_querySetReceiptRulePositionCommandError = async (output, co
|
|
|
3067
3123
|
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3068
3124
|
default:
|
|
3069
3125
|
const parsedBody = parsedOutput.body;
|
|
3126
|
+
const $metadata = deserializeMetadata(output);
|
|
3127
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3070
3128
|
response = new SESServiceException_1.SESServiceException({
|
|
3071
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3129
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3072
3130
|
$fault: "client",
|
|
3073
|
-
$metadata
|
|
3131
|
+
$metadata,
|
|
3074
3132
|
});
|
|
3075
3133
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3076
3134
|
}
|
|
@@ -3095,8 +3153,7 @@ const deserializeAws_queryTestRenderTemplateCommandError = async (output, contex
|
|
|
3095
3153
|
body: await parseBody(output.body, context),
|
|
3096
3154
|
};
|
|
3097
3155
|
let response;
|
|
3098
|
-
|
|
3099
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3156
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3100
3157
|
switch (errorCode) {
|
|
3101
3158
|
case "InvalidRenderingParameterException":
|
|
3102
3159
|
case "com.amazonaws.ses#InvalidRenderingParameterException":
|
|
@@ -3109,10 +3166,12 @@ const deserializeAws_queryTestRenderTemplateCommandError = async (output, contex
|
|
|
3109
3166
|
throw await deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3110
3167
|
default:
|
|
3111
3168
|
const parsedBody = parsedOutput.body;
|
|
3169
|
+
const $metadata = deserializeMetadata(output);
|
|
3170
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3112
3171
|
response = new SESServiceException_1.SESServiceException({
|
|
3113
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3172
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3114
3173
|
$fault: "client",
|
|
3115
|
-
$metadata
|
|
3174
|
+
$metadata,
|
|
3116
3175
|
});
|
|
3117
3176
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3118
3177
|
}
|
|
@@ -3134,15 +3193,16 @@ const deserializeAws_queryUpdateAccountSendingEnabledCommandError = async (outpu
|
|
|
3134
3193
|
body: await parseBody(output.body, context),
|
|
3135
3194
|
};
|
|
3136
3195
|
let response;
|
|
3137
|
-
|
|
3138
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3196
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3139
3197
|
switch (errorCode) {
|
|
3140
3198
|
default:
|
|
3141
3199
|
const parsedBody = parsedOutput.body;
|
|
3200
|
+
const $metadata = deserializeMetadata(output);
|
|
3201
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3142
3202
|
response = new SESServiceException_1.SESServiceException({
|
|
3143
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3203
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3144
3204
|
$fault: "client",
|
|
3145
|
-
$metadata
|
|
3205
|
+
$metadata,
|
|
3146
3206
|
});
|
|
3147
3207
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3148
3208
|
}
|
|
@@ -3167,8 +3227,7 @@ const deserializeAws_queryUpdateConfigurationSetEventDestinationCommandError = a
|
|
|
3167
3227
|
body: await parseBody(output.body, context),
|
|
3168
3228
|
};
|
|
3169
3229
|
let response;
|
|
3170
|
-
|
|
3171
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3230
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3172
3231
|
switch (errorCode) {
|
|
3173
3232
|
case "ConfigurationSetDoesNotExistException":
|
|
3174
3233
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
@@ -3187,10 +3246,12 @@ const deserializeAws_queryUpdateConfigurationSetEventDestinationCommandError = a
|
|
|
3187
3246
|
throw await deserializeAws_queryInvalidSNSDestinationExceptionResponse(parsedOutput, context);
|
|
3188
3247
|
default:
|
|
3189
3248
|
const parsedBody = parsedOutput.body;
|
|
3249
|
+
const $metadata = deserializeMetadata(output);
|
|
3250
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3190
3251
|
response = new SESServiceException_1.SESServiceException({
|
|
3191
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3252
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3192
3253
|
$fault: "client",
|
|
3193
|
-
$metadata
|
|
3254
|
+
$metadata,
|
|
3194
3255
|
});
|
|
3195
3256
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3196
3257
|
}
|
|
@@ -3212,18 +3273,19 @@ const deserializeAws_queryUpdateConfigurationSetReputationMetricsEnabledCommandE
|
|
|
3212
3273
|
body: await parseBody(output.body, context),
|
|
3213
3274
|
};
|
|
3214
3275
|
let response;
|
|
3215
|
-
|
|
3216
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3276
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3217
3277
|
switch (errorCode) {
|
|
3218
3278
|
case "ConfigurationSetDoesNotExistException":
|
|
3219
3279
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
3220
3280
|
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3221
3281
|
default:
|
|
3222
3282
|
const parsedBody = parsedOutput.body;
|
|
3283
|
+
const $metadata = deserializeMetadata(output);
|
|
3284
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3223
3285
|
response = new SESServiceException_1.SESServiceException({
|
|
3224
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3286
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3225
3287
|
$fault: "client",
|
|
3226
|
-
$metadata
|
|
3288
|
+
$metadata,
|
|
3227
3289
|
});
|
|
3228
3290
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3229
3291
|
}
|
|
@@ -3245,18 +3307,19 @@ const deserializeAws_queryUpdateConfigurationSetSendingEnabledCommandError = asy
|
|
|
3245
3307
|
body: await parseBody(output.body, context),
|
|
3246
3308
|
};
|
|
3247
3309
|
let response;
|
|
3248
|
-
|
|
3249
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3310
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3250
3311
|
switch (errorCode) {
|
|
3251
3312
|
case "ConfigurationSetDoesNotExistException":
|
|
3252
3313
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
3253
3314
|
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3254
3315
|
default:
|
|
3255
3316
|
const parsedBody = parsedOutput.body;
|
|
3317
|
+
const $metadata = deserializeMetadata(output);
|
|
3318
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3256
3319
|
response = new SESServiceException_1.SESServiceException({
|
|
3257
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3320
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3258
3321
|
$fault: "client",
|
|
3259
|
-
$metadata
|
|
3322
|
+
$metadata,
|
|
3260
3323
|
});
|
|
3261
3324
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3262
3325
|
}
|
|
@@ -3281,8 +3344,7 @@ const deserializeAws_queryUpdateConfigurationSetTrackingOptionsCommandError = as
|
|
|
3281
3344
|
body: await parseBody(output.body, context),
|
|
3282
3345
|
};
|
|
3283
3346
|
let response;
|
|
3284
|
-
|
|
3285
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3347
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3286
3348
|
switch (errorCode) {
|
|
3287
3349
|
case "ConfigurationSetDoesNotExistException":
|
|
3288
3350
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
@@ -3295,10 +3357,12 @@ const deserializeAws_queryUpdateConfigurationSetTrackingOptionsCommandError = as
|
|
|
3295
3357
|
throw await deserializeAws_queryTrackingOptionsDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3296
3358
|
default:
|
|
3297
3359
|
const parsedBody = parsedOutput.body;
|
|
3360
|
+
const $metadata = deserializeMetadata(output);
|
|
3361
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3298
3362
|
response = new SESServiceException_1.SESServiceException({
|
|
3299
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3363
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3300
3364
|
$fault: "client",
|
|
3301
|
-
$metadata
|
|
3365
|
+
$metadata,
|
|
3302
3366
|
});
|
|
3303
3367
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3304
3368
|
}
|
|
@@ -3320,8 +3384,7 @@ const deserializeAws_queryUpdateCustomVerificationEmailTemplateCommandError = as
|
|
|
3320
3384
|
body: await parseBody(output.body, context),
|
|
3321
3385
|
};
|
|
3322
3386
|
let response;
|
|
3323
|
-
|
|
3324
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3387
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3325
3388
|
switch (errorCode) {
|
|
3326
3389
|
case "CustomVerificationEmailInvalidContentException":
|
|
3327
3390
|
case "com.amazonaws.ses#CustomVerificationEmailInvalidContentException":
|
|
@@ -3334,10 +3397,12 @@ const deserializeAws_queryUpdateCustomVerificationEmailTemplateCommandError = as
|
|
|
3334
3397
|
throw await deserializeAws_queryFromEmailAddressNotVerifiedExceptionResponse(parsedOutput, context);
|
|
3335
3398
|
default:
|
|
3336
3399
|
const parsedBody = parsedOutput.body;
|
|
3400
|
+
const $metadata = deserializeMetadata(output);
|
|
3401
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3337
3402
|
response = new SESServiceException_1.SESServiceException({
|
|
3338
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3403
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3339
3404
|
$fault: "client",
|
|
3340
|
-
$metadata
|
|
3405
|
+
$metadata,
|
|
3341
3406
|
});
|
|
3342
3407
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3343
3408
|
}
|
|
@@ -3362,8 +3427,7 @@ const deserializeAws_queryUpdateReceiptRuleCommandError = async (output, context
|
|
|
3362
3427
|
body: await parseBody(output.body, context),
|
|
3363
3428
|
};
|
|
3364
3429
|
let response;
|
|
3365
|
-
|
|
3366
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3430
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3367
3431
|
switch (errorCode) {
|
|
3368
3432
|
case "InvalidLambdaFunctionException":
|
|
3369
3433
|
case "com.amazonaws.ses#InvalidLambdaFunctionException":
|
|
@@ -3385,10 +3449,12 @@ const deserializeAws_queryUpdateReceiptRuleCommandError = async (output, context
|
|
|
3385
3449
|
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3386
3450
|
default:
|
|
3387
3451
|
const parsedBody = parsedOutput.body;
|
|
3452
|
+
const $metadata = deserializeMetadata(output);
|
|
3453
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3388
3454
|
response = new SESServiceException_1.SESServiceException({
|
|
3389
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3455
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3390
3456
|
$fault: "client",
|
|
3391
|
-
$metadata
|
|
3457
|
+
$metadata,
|
|
3392
3458
|
});
|
|
3393
3459
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3394
3460
|
}
|
|
@@ -3413,8 +3479,7 @@ const deserializeAws_queryUpdateTemplateCommandError = async (output, context) =
|
|
|
3413
3479
|
body: await parseBody(output.body, context),
|
|
3414
3480
|
};
|
|
3415
3481
|
let response;
|
|
3416
|
-
|
|
3417
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3482
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3418
3483
|
switch (errorCode) {
|
|
3419
3484
|
case "InvalidTemplateException":
|
|
3420
3485
|
case "com.amazonaws.ses#InvalidTemplateException":
|
|
@@ -3424,10 +3489,12 @@ const deserializeAws_queryUpdateTemplateCommandError = async (output, context) =
|
|
|
3424
3489
|
throw await deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3425
3490
|
default:
|
|
3426
3491
|
const parsedBody = parsedOutput.body;
|
|
3492
|
+
const $metadata = deserializeMetadata(output);
|
|
3493
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3427
3494
|
response = new SESServiceException_1.SESServiceException({
|
|
3428
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3495
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3429
3496
|
$fault: "client",
|
|
3430
|
-
$metadata
|
|
3497
|
+
$metadata,
|
|
3431
3498
|
});
|
|
3432
3499
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3433
3500
|
}
|
|
@@ -3452,15 +3519,16 @@ const deserializeAws_queryVerifyDomainDkimCommandError = async (output, context)
|
|
|
3452
3519
|
body: await parseBody(output.body, context),
|
|
3453
3520
|
};
|
|
3454
3521
|
let response;
|
|
3455
|
-
|
|
3456
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3522
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3457
3523
|
switch (errorCode) {
|
|
3458
3524
|
default:
|
|
3459
3525
|
const parsedBody = parsedOutput.body;
|
|
3526
|
+
const $metadata = deserializeMetadata(output);
|
|
3527
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3460
3528
|
response = new SESServiceException_1.SESServiceException({
|
|
3461
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3529
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3462
3530
|
$fault: "client",
|
|
3463
|
-
$metadata
|
|
3531
|
+
$metadata,
|
|
3464
3532
|
});
|
|
3465
3533
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3466
3534
|
}
|
|
@@ -3485,15 +3553,16 @@ const deserializeAws_queryVerifyDomainIdentityCommandError = async (output, cont
|
|
|
3485
3553
|
body: await parseBody(output.body, context),
|
|
3486
3554
|
};
|
|
3487
3555
|
let response;
|
|
3488
|
-
|
|
3489
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3556
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3490
3557
|
switch (errorCode) {
|
|
3491
3558
|
default:
|
|
3492
3559
|
const parsedBody = parsedOutput.body;
|
|
3560
|
+
const $metadata = deserializeMetadata(output);
|
|
3561
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3493
3562
|
response = new SESServiceException_1.SESServiceException({
|
|
3494
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3563
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3495
3564
|
$fault: "client",
|
|
3496
|
-
$metadata
|
|
3565
|
+
$metadata,
|
|
3497
3566
|
});
|
|
3498
3567
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3499
3568
|
}
|
|
@@ -3515,15 +3584,16 @@ const deserializeAws_queryVerifyEmailAddressCommandError = async (output, contex
|
|
|
3515
3584
|
body: await parseBody(output.body, context),
|
|
3516
3585
|
};
|
|
3517
3586
|
let response;
|
|
3518
|
-
|
|
3519
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3587
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3520
3588
|
switch (errorCode) {
|
|
3521
3589
|
default:
|
|
3522
3590
|
const parsedBody = parsedOutput.body;
|
|
3591
|
+
const $metadata = deserializeMetadata(output);
|
|
3592
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3523
3593
|
response = new SESServiceException_1.SESServiceException({
|
|
3524
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3594
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3525
3595
|
$fault: "client",
|
|
3526
|
-
$metadata
|
|
3596
|
+
$metadata,
|
|
3527
3597
|
});
|
|
3528
3598
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3529
3599
|
}
|
|
@@ -3548,15 +3618,16 @@ const deserializeAws_queryVerifyEmailIdentityCommandError = async (output, conte
|
|
|
3548
3618
|
body: await parseBody(output.body, context),
|
|
3549
3619
|
};
|
|
3550
3620
|
let response;
|
|
3551
|
-
|
|
3552
|
-
errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3621
|
+
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3553
3622
|
switch (errorCode) {
|
|
3554
3623
|
default:
|
|
3555
3624
|
const parsedBody = parsedOutput.body;
|
|
3625
|
+
const $metadata = deserializeMetadata(output);
|
|
3626
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3556
3627
|
response = new SESServiceException_1.SESServiceException({
|
|
3557
|
-
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3628
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
|
|
3558
3629
|
$fault: "client",
|
|
3559
|
-
$metadata
|
|
3630
|
+
$metadata,
|
|
3560
3631
|
});
|
|
3561
3632
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
|
|
3562
3633
|
}
|
|
@@ -7182,5 +7253,4 @@ const loadQueryErrorCode = (output, data) => {
|
|
|
7182
7253
|
if (output.statusCode == 404) {
|
|
7183
7254
|
return "NotFound";
|
|
7184
7255
|
}
|
|
7185
|
-
return "";
|
|
7186
7256
|
};
|