@aws-sdk/client-ses 3.51.0 → 3.54.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/index.js +3 -0
- package/dist-cjs/models/SESServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +477 -4
- package/dist-cjs/protocols/Aws_query.js +494 -1516
- package/dist-es/index.js +1 -0
- package/dist-es/models/SESServiceException.js +12 -0
- package/dist-es/models/models_0.js +439 -1
- package/dist-es/protocols/Aws_query.js +1037 -1502
- package/dist-types/SESClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/SESServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +240 -137
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/SESClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/SESServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +172 -137
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +34 -34
|
@@ -7,6 +7,8 @@ const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const entities_1 = require("entities");
|
|
9
9
|
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
10
|
+
const models_0_1 = require("../models/models_0");
|
|
11
|
+
const SESServiceException_1 = require("../models/SESServiceException");
|
|
10
12
|
const serializeAws_queryCloneReceiptRuleSetCommand = async (input, context) => {
|
|
11
13
|
const headers = {
|
|
12
14
|
"content-type": "application/x-www-form-urlencoded",
|
|
@@ -947,43 +949,22 @@ const deserializeAws_queryCloneReceiptRuleSetCommandError = async (output, conte
|
|
|
947
949
|
switch (errorCode) {
|
|
948
950
|
case "AlreadyExistsException":
|
|
949
951
|
case "com.amazonaws.ses#AlreadyExistsException":
|
|
950
|
-
|
|
951
|
-
...(await deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
952
|
-
name: errorCode,
|
|
953
|
-
$metadata: deserializeMetadata(output),
|
|
954
|
-
};
|
|
955
|
-
break;
|
|
952
|
+
throw await deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
956
953
|
case "LimitExceededException":
|
|
957
954
|
case "com.amazonaws.ses#LimitExceededException":
|
|
958
|
-
|
|
959
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
960
|
-
name: errorCode,
|
|
961
|
-
$metadata: deserializeMetadata(output),
|
|
962
|
-
};
|
|
963
|
-
break;
|
|
955
|
+
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
964
956
|
case "RuleSetDoesNotExistException":
|
|
965
957
|
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
966
|
-
|
|
967
|
-
...(await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
968
|
-
name: errorCode,
|
|
969
|
-
$metadata: deserializeMetadata(output),
|
|
970
|
-
};
|
|
971
|
-
break;
|
|
958
|
+
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
972
959
|
default:
|
|
973
960
|
const parsedBody = parsedOutput.body;
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
...parsedBody.Error,
|
|
977
|
-
name: `${errorCode}`,
|
|
978
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
961
|
+
response = new SESServiceException_1.SESServiceException({
|
|
962
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
979
963
|
$fault: "client",
|
|
980
964
|
$metadata: deserializeMetadata(output),
|
|
981
|
-
};
|
|
965
|
+
});
|
|
966
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
982
967
|
}
|
|
983
|
-
const message = response.message || response.Message || errorCode;
|
|
984
|
-
response.message = message;
|
|
985
|
-
delete response.Message;
|
|
986
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
987
968
|
};
|
|
988
969
|
const deserializeAws_queryCreateConfigurationSetCommand = async (output, context) => {
|
|
989
970
|
if (output.statusCode >= 300) {
|
|
@@ -1010,43 +991,22 @@ const deserializeAws_queryCreateConfigurationSetCommandError = async (output, co
|
|
|
1010
991
|
switch (errorCode) {
|
|
1011
992
|
case "ConfigurationSetAlreadyExistsException":
|
|
1012
993
|
case "com.amazonaws.ses#ConfigurationSetAlreadyExistsException":
|
|
1013
|
-
|
|
1014
|
-
...(await deserializeAws_queryConfigurationSetAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1015
|
-
name: errorCode,
|
|
1016
|
-
$metadata: deserializeMetadata(output),
|
|
1017
|
-
};
|
|
1018
|
-
break;
|
|
994
|
+
throw await deserializeAws_queryConfigurationSetAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1019
995
|
case "InvalidConfigurationSetException":
|
|
1020
996
|
case "com.amazonaws.ses#InvalidConfigurationSetException":
|
|
1021
|
-
|
|
1022
|
-
...(await deserializeAws_queryInvalidConfigurationSetExceptionResponse(parsedOutput, context)),
|
|
1023
|
-
name: errorCode,
|
|
1024
|
-
$metadata: deserializeMetadata(output),
|
|
1025
|
-
};
|
|
1026
|
-
break;
|
|
997
|
+
throw await deserializeAws_queryInvalidConfigurationSetExceptionResponse(parsedOutput, context);
|
|
1027
998
|
case "LimitExceededException":
|
|
1028
999
|
case "com.amazonaws.ses#LimitExceededException":
|
|
1029
|
-
|
|
1030
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1031
|
-
name: errorCode,
|
|
1032
|
-
$metadata: deserializeMetadata(output),
|
|
1033
|
-
};
|
|
1034
|
-
break;
|
|
1000
|
+
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1035
1001
|
default:
|
|
1036
1002
|
const parsedBody = parsedOutput.body;
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
...parsedBody.Error,
|
|
1040
|
-
name: `${errorCode}`,
|
|
1041
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1003
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1004
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1042
1005
|
$fault: "client",
|
|
1043
1006
|
$metadata: deserializeMetadata(output),
|
|
1044
|
-
};
|
|
1007
|
+
});
|
|
1008
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1045
1009
|
}
|
|
1046
|
-
const message = response.message || response.Message || errorCode;
|
|
1047
|
-
response.message = message;
|
|
1048
|
-
delete response.Message;
|
|
1049
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1050
1010
|
};
|
|
1051
1011
|
const deserializeAws_queryCreateConfigurationSetEventDestinationCommand = async (output, context) => {
|
|
1052
1012
|
if (output.statusCode >= 300) {
|
|
@@ -1073,67 +1033,31 @@ const deserializeAws_queryCreateConfigurationSetEventDestinationCommandError = a
|
|
|
1073
1033
|
switch (errorCode) {
|
|
1074
1034
|
case "ConfigurationSetDoesNotExistException":
|
|
1075
1035
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
1076
|
-
|
|
1077
|
-
...(await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
1078
|
-
name: errorCode,
|
|
1079
|
-
$metadata: deserializeMetadata(output),
|
|
1080
|
-
};
|
|
1081
|
-
break;
|
|
1036
|
+
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1082
1037
|
case "EventDestinationAlreadyExistsException":
|
|
1083
1038
|
case "com.amazonaws.ses#EventDestinationAlreadyExistsException":
|
|
1084
|
-
|
|
1085
|
-
...(await deserializeAws_queryEventDestinationAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1086
|
-
name: errorCode,
|
|
1087
|
-
$metadata: deserializeMetadata(output),
|
|
1088
|
-
};
|
|
1089
|
-
break;
|
|
1039
|
+
throw await deserializeAws_queryEventDestinationAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1090
1040
|
case "InvalidCloudWatchDestinationException":
|
|
1091
1041
|
case "com.amazonaws.ses#InvalidCloudWatchDestinationException":
|
|
1092
|
-
|
|
1093
|
-
...(await deserializeAws_queryInvalidCloudWatchDestinationExceptionResponse(parsedOutput, context)),
|
|
1094
|
-
name: errorCode,
|
|
1095
|
-
$metadata: deserializeMetadata(output),
|
|
1096
|
-
};
|
|
1097
|
-
break;
|
|
1042
|
+
throw await deserializeAws_queryInvalidCloudWatchDestinationExceptionResponse(parsedOutput, context);
|
|
1098
1043
|
case "InvalidFirehoseDestinationException":
|
|
1099
1044
|
case "com.amazonaws.ses#InvalidFirehoseDestinationException":
|
|
1100
|
-
|
|
1101
|
-
...(await deserializeAws_queryInvalidFirehoseDestinationExceptionResponse(parsedOutput, context)),
|
|
1102
|
-
name: errorCode,
|
|
1103
|
-
$metadata: deserializeMetadata(output),
|
|
1104
|
-
};
|
|
1105
|
-
break;
|
|
1045
|
+
throw await deserializeAws_queryInvalidFirehoseDestinationExceptionResponse(parsedOutput, context);
|
|
1106
1046
|
case "InvalidSNSDestinationException":
|
|
1107
1047
|
case "com.amazonaws.ses#InvalidSNSDestinationException":
|
|
1108
|
-
|
|
1109
|
-
...(await deserializeAws_queryInvalidSNSDestinationExceptionResponse(parsedOutput, context)),
|
|
1110
|
-
name: errorCode,
|
|
1111
|
-
$metadata: deserializeMetadata(output),
|
|
1112
|
-
};
|
|
1113
|
-
break;
|
|
1048
|
+
throw await deserializeAws_queryInvalidSNSDestinationExceptionResponse(parsedOutput, context);
|
|
1114
1049
|
case "LimitExceededException":
|
|
1115
1050
|
case "com.amazonaws.ses#LimitExceededException":
|
|
1116
|
-
|
|
1117
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1118
|
-
name: errorCode,
|
|
1119
|
-
$metadata: deserializeMetadata(output),
|
|
1120
|
-
};
|
|
1121
|
-
break;
|
|
1051
|
+
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1122
1052
|
default:
|
|
1123
1053
|
const parsedBody = parsedOutput.body;
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
...parsedBody.Error,
|
|
1127
|
-
name: `${errorCode}`,
|
|
1128
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1054
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1055
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1129
1056
|
$fault: "client",
|
|
1130
1057
|
$metadata: deserializeMetadata(output),
|
|
1131
|
-
};
|
|
1058
|
+
});
|
|
1059
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1132
1060
|
}
|
|
1133
|
-
const message = response.message || response.Message || errorCode;
|
|
1134
|
-
response.message = message;
|
|
1135
|
-
delete response.Message;
|
|
1136
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1137
1061
|
};
|
|
1138
1062
|
const deserializeAws_queryCreateConfigurationSetTrackingOptionsCommand = async (output, context) => {
|
|
1139
1063
|
if (output.statusCode >= 300) {
|
|
@@ -1160,43 +1084,22 @@ const deserializeAws_queryCreateConfigurationSetTrackingOptionsCommandError = as
|
|
|
1160
1084
|
switch (errorCode) {
|
|
1161
1085
|
case "ConfigurationSetDoesNotExistException":
|
|
1162
1086
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
1163
|
-
|
|
1164
|
-
...(await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
1165
|
-
name: errorCode,
|
|
1166
|
-
$metadata: deserializeMetadata(output),
|
|
1167
|
-
};
|
|
1168
|
-
break;
|
|
1087
|
+
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1169
1088
|
case "InvalidTrackingOptionsException":
|
|
1170
1089
|
case "com.amazonaws.ses#InvalidTrackingOptionsException":
|
|
1171
|
-
|
|
1172
|
-
...(await deserializeAws_queryInvalidTrackingOptionsExceptionResponse(parsedOutput, context)),
|
|
1173
|
-
name: errorCode,
|
|
1174
|
-
$metadata: deserializeMetadata(output),
|
|
1175
|
-
};
|
|
1176
|
-
break;
|
|
1090
|
+
throw await deserializeAws_queryInvalidTrackingOptionsExceptionResponse(parsedOutput, context);
|
|
1177
1091
|
case "TrackingOptionsAlreadyExistsException":
|
|
1178
1092
|
case "com.amazonaws.ses#TrackingOptionsAlreadyExistsException":
|
|
1179
|
-
|
|
1180
|
-
...(await deserializeAws_queryTrackingOptionsAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1181
|
-
name: errorCode,
|
|
1182
|
-
$metadata: deserializeMetadata(output),
|
|
1183
|
-
};
|
|
1184
|
-
break;
|
|
1093
|
+
throw await deserializeAws_queryTrackingOptionsAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1185
1094
|
default:
|
|
1186
1095
|
const parsedBody = parsedOutput.body;
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
...parsedBody.Error,
|
|
1190
|
-
name: `${errorCode}`,
|
|
1191
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1096
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1097
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1192
1098
|
$fault: "client",
|
|
1193
1099
|
$metadata: deserializeMetadata(output),
|
|
1194
|
-
};
|
|
1100
|
+
});
|
|
1101
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1195
1102
|
}
|
|
1196
|
-
const message = response.message || response.Message || errorCode;
|
|
1197
|
-
response.message = message;
|
|
1198
|
-
delete response.Message;
|
|
1199
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1200
1103
|
};
|
|
1201
1104
|
const deserializeAws_queryCreateCustomVerificationEmailTemplateCommand = async (output, context) => {
|
|
1202
1105
|
if (output.statusCode >= 300) {
|
|
@@ -1220,51 +1123,25 @@ const deserializeAws_queryCreateCustomVerificationEmailTemplateCommandError = as
|
|
|
1220
1123
|
switch (errorCode) {
|
|
1221
1124
|
case "CustomVerificationEmailInvalidContentException":
|
|
1222
1125
|
case "com.amazonaws.ses#CustomVerificationEmailInvalidContentException":
|
|
1223
|
-
|
|
1224
|
-
...(await deserializeAws_queryCustomVerificationEmailInvalidContentExceptionResponse(parsedOutput, context)),
|
|
1225
|
-
name: errorCode,
|
|
1226
|
-
$metadata: deserializeMetadata(output),
|
|
1227
|
-
};
|
|
1228
|
-
break;
|
|
1126
|
+
throw await deserializeAws_queryCustomVerificationEmailInvalidContentExceptionResponse(parsedOutput, context);
|
|
1229
1127
|
case "CustomVerificationEmailTemplateAlreadyExistsException":
|
|
1230
1128
|
case "com.amazonaws.ses#CustomVerificationEmailTemplateAlreadyExistsException":
|
|
1231
|
-
|
|
1232
|
-
...(await deserializeAws_queryCustomVerificationEmailTemplateAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1233
|
-
name: errorCode,
|
|
1234
|
-
$metadata: deserializeMetadata(output),
|
|
1235
|
-
};
|
|
1236
|
-
break;
|
|
1129
|
+
throw await deserializeAws_queryCustomVerificationEmailTemplateAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1237
1130
|
case "FromEmailAddressNotVerifiedException":
|
|
1238
1131
|
case "com.amazonaws.ses#FromEmailAddressNotVerifiedException":
|
|
1239
|
-
|
|
1240
|
-
...(await deserializeAws_queryFromEmailAddressNotVerifiedExceptionResponse(parsedOutput, context)),
|
|
1241
|
-
name: errorCode,
|
|
1242
|
-
$metadata: deserializeMetadata(output),
|
|
1243
|
-
};
|
|
1244
|
-
break;
|
|
1132
|
+
throw await deserializeAws_queryFromEmailAddressNotVerifiedExceptionResponse(parsedOutput, context);
|
|
1245
1133
|
case "LimitExceededException":
|
|
1246
1134
|
case "com.amazonaws.ses#LimitExceededException":
|
|
1247
|
-
|
|
1248
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1249
|
-
name: errorCode,
|
|
1250
|
-
$metadata: deserializeMetadata(output),
|
|
1251
|
-
};
|
|
1252
|
-
break;
|
|
1135
|
+
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1253
1136
|
default:
|
|
1254
1137
|
const parsedBody = parsedOutput.body;
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
...parsedBody.Error,
|
|
1258
|
-
name: `${errorCode}`,
|
|
1259
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1138
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1139
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1260
1140
|
$fault: "client",
|
|
1261
1141
|
$metadata: deserializeMetadata(output),
|
|
1262
|
-
};
|
|
1142
|
+
});
|
|
1143
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1263
1144
|
}
|
|
1264
|
-
const message = response.message || response.Message || errorCode;
|
|
1265
|
-
response.message = message;
|
|
1266
|
-
delete response.Message;
|
|
1267
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1268
1145
|
};
|
|
1269
1146
|
const deserializeAws_queryCreateReceiptFilterCommand = async (output, context) => {
|
|
1270
1147
|
if (output.statusCode >= 300) {
|
|
@@ -1291,35 +1168,19 @@ const deserializeAws_queryCreateReceiptFilterCommandError = async (output, conte
|
|
|
1291
1168
|
switch (errorCode) {
|
|
1292
1169
|
case "AlreadyExistsException":
|
|
1293
1170
|
case "com.amazonaws.ses#AlreadyExistsException":
|
|
1294
|
-
|
|
1295
|
-
...(await deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1296
|
-
name: errorCode,
|
|
1297
|
-
$metadata: deserializeMetadata(output),
|
|
1298
|
-
};
|
|
1299
|
-
break;
|
|
1171
|
+
throw await deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1300
1172
|
case "LimitExceededException":
|
|
1301
1173
|
case "com.amazonaws.ses#LimitExceededException":
|
|
1302
|
-
|
|
1303
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1304
|
-
name: errorCode,
|
|
1305
|
-
$metadata: deserializeMetadata(output),
|
|
1306
|
-
};
|
|
1307
|
-
break;
|
|
1174
|
+
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1308
1175
|
default:
|
|
1309
1176
|
const parsedBody = parsedOutput.body;
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
...parsedBody.Error,
|
|
1313
|
-
name: `${errorCode}`,
|
|
1314
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1177
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1178
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1315
1179
|
$fault: "client",
|
|
1316
1180
|
$metadata: deserializeMetadata(output),
|
|
1317
|
-
};
|
|
1181
|
+
});
|
|
1182
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1318
1183
|
}
|
|
1319
|
-
const message = response.message || response.Message || errorCode;
|
|
1320
|
-
response.message = message;
|
|
1321
|
-
delete response.Message;
|
|
1322
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1323
1184
|
};
|
|
1324
1185
|
const deserializeAws_queryCreateReceiptRuleCommand = async (output, context) => {
|
|
1325
1186
|
if (output.statusCode >= 300) {
|
|
@@ -1346,75 +1207,34 @@ const deserializeAws_queryCreateReceiptRuleCommandError = async (output, context
|
|
|
1346
1207
|
switch (errorCode) {
|
|
1347
1208
|
case "AlreadyExistsException":
|
|
1348
1209
|
case "com.amazonaws.ses#AlreadyExistsException":
|
|
1349
|
-
|
|
1350
|
-
...(await deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1351
|
-
name: errorCode,
|
|
1352
|
-
$metadata: deserializeMetadata(output),
|
|
1353
|
-
};
|
|
1354
|
-
break;
|
|
1210
|
+
throw await deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1355
1211
|
case "InvalidLambdaFunctionException":
|
|
1356
1212
|
case "com.amazonaws.ses#InvalidLambdaFunctionException":
|
|
1357
|
-
|
|
1358
|
-
...(await deserializeAws_queryInvalidLambdaFunctionExceptionResponse(parsedOutput, context)),
|
|
1359
|
-
name: errorCode,
|
|
1360
|
-
$metadata: deserializeMetadata(output),
|
|
1361
|
-
};
|
|
1362
|
-
break;
|
|
1213
|
+
throw await deserializeAws_queryInvalidLambdaFunctionExceptionResponse(parsedOutput, context);
|
|
1363
1214
|
case "InvalidS3ConfigurationException":
|
|
1364
1215
|
case "com.amazonaws.ses#InvalidS3ConfigurationException":
|
|
1365
|
-
|
|
1366
|
-
...(await deserializeAws_queryInvalidS3ConfigurationExceptionResponse(parsedOutput, context)),
|
|
1367
|
-
name: errorCode,
|
|
1368
|
-
$metadata: deserializeMetadata(output),
|
|
1369
|
-
};
|
|
1370
|
-
break;
|
|
1216
|
+
throw await deserializeAws_queryInvalidS3ConfigurationExceptionResponse(parsedOutput, context);
|
|
1371
1217
|
case "InvalidSnsTopicException":
|
|
1372
1218
|
case "com.amazonaws.ses#InvalidSnsTopicException":
|
|
1373
|
-
|
|
1374
|
-
...(await deserializeAws_queryInvalidSnsTopicExceptionResponse(parsedOutput, context)),
|
|
1375
|
-
name: errorCode,
|
|
1376
|
-
$metadata: deserializeMetadata(output),
|
|
1377
|
-
};
|
|
1378
|
-
break;
|
|
1219
|
+
throw await deserializeAws_queryInvalidSnsTopicExceptionResponse(parsedOutput, context);
|
|
1379
1220
|
case "LimitExceededException":
|
|
1380
1221
|
case "com.amazonaws.ses#LimitExceededException":
|
|
1381
|
-
|
|
1382
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1383
|
-
name: errorCode,
|
|
1384
|
-
$metadata: deserializeMetadata(output),
|
|
1385
|
-
};
|
|
1386
|
-
break;
|
|
1222
|
+
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1387
1223
|
case "RuleDoesNotExistException":
|
|
1388
1224
|
case "com.amazonaws.ses#RuleDoesNotExistException":
|
|
1389
|
-
|
|
1390
|
-
...(await deserializeAws_queryRuleDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
1391
|
-
name: errorCode,
|
|
1392
|
-
$metadata: deserializeMetadata(output),
|
|
1393
|
-
};
|
|
1394
|
-
break;
|
|
1225
|
+
throw await deserializeAws_queryRuleDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1395
1226
|
case "RuleSetDoesNotExistException":
|
|
1396
1227
|
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
1397
|
-
|
|
1398
|
-
...(await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
1399
|
-
name: errorCode,
|
|
1400
|
-
$metadata: deserializeMetadata(output),
|
|
1401
|
-
};
|
|
1402
|
-
break;
|
|
1228
|
+
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1403
1229
|
default:
|
|
1404
1230
|
const parsedBody = parsedOutput.body;
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
...parsedBody.Error,
|
|
1408
|
-
name: `${errorCode}`,
|
|
1409
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1231
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1232
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1410
1233
|
$fault: "client",
|
|
1411
1234
|
$metadata: deserializeMetadata(output),
|
|
1412
|
-
};
|
|
1235
|
+
});
|
|
1236
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1413
1237
|
}
|
|
1414
|
-
const message = response.message || response.Message || errorCode;
|
|
1415
|
-
response.message = message;
|
|
1416
|
-
delete response.Message;
|
|
1417
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1418
1238
|
};
|
|
1419
1239
|
const deserializeAws_queryCreateReceiptRuleSetCommand = async (output, context) => {
|
|
1420
1240
|
if (output.statusCode >= 300) {
|
|
@@ -1441,35 +1261,19 @@ const deserializeAws_queryCreateReceiptRuleSetCommandError = async (output, cont
|
|
|
1441
1261
|
switch (errorCode) {
|
|
1442
1262
|
case "AlreadyExistsException":
|
|
1443
1263
|
case "com.amazonaws.ses#AlreadyExistsException":
|
|
1444
|
-
|
|
1445
|
-
...(await deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1446
|
-
name: errorCode,
|
|
1447
|
-
$metadata: deserializeMetadata(output),
|
|
1448
|
-
};
|
|
1449
|
-
break;
|
|
1264
|
+
throw await deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1450
1265
|
case "LimitExceededException":
|
|
1451
1266
|
case "com.amazonaws.ses#LimitExceededException":
|
|
1452
|
-
|
|
1453
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1454
|
-
name: errorCode,
|
|
1455
|
-
$metadata: deserializeMetadata(output),
|
|
1456
|
-
};
|
|
1457
|
-
break;
|
|
1267
|
+
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1458
1268
|
default:
|
|
1459
1269
|
const parsedBody = parsedOutput.body;
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
...parsedBody.Error,
|
|
1463
|
-
name: `${errorCode}`,
|
|
1464
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1270
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1271
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1465
1272
|
$fault: "client",
|
|
1466
1273
|
$metadata: deserializeMetadata(output),
|
|
1467
|
-
};
|
|
1274
|
+
});
|
|
1275
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1468
1276
|
}
|
|
1469
|
-
const message = response.message || response.Message || errorCode;
|
|
1470
|
-
response.message = message;
|
|
1471
|
-
delete response.Message;
|
|
1472
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1473
1277
|
};
|
|
1474
1278
|
const deserializeAws_queryCreateTemplateCommand = async (output, context) => {
|
|
1475
1279
|
if (output.statusCode >= 300) {
|
|
@@ -1496,43 +1300,22 @@ const deserializeAws_queryCreateTemplateCommandError = async (output, context) =
|
|
|
1496
1300
|
switch (errorCode) {
|
|
1497
1301
|
case "AlreadyExistsException":
|
|
1498
1302
|
case "com.amazonaws.ses#AlreadyExistsException":
|
|
1499
|
-
|
|
1500
|
-
...(await deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1501
|
-
name: errorCode,
|
|
1502
|
-
$metadata: deserializeMetadata(output),
|
|
1503
|
-
};
|
|
1504
|
-
break;
|
|
1303
|
+
throw await deserializeAws_queryAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1505
1304
|
case "InvalidTemplateException":
|
|
1506
1305
|
case "com.amazonaws.ses#InvalidTemplateException":
|
|
1507
|
-
|
|
1508
|
-
...(await deserializeAws_queryInvalidTemplateExceptionResponse(parsedOutput, context)),
|
|
1509
|
-
name: errorCode,
|
|
1510
|
-
$metadata: deserializeMetadata(output),
|
|
1511
|
-
};
|
|
1512
|
-
break;
|
|
1306
|
+
throw await deserializeAws_queryInvalidTemplateExceptionResponse(parsedOutput, context);
|
|
1513
1307
|
case "LimitExceededException":
|
|
1514
1308
|
case "com.amazonaws.ses#LimitExceededException":
|
|
1515
|
-
|
|
1516
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1517
|
-
name: errorCode,
|
|
1518
|
-
$metadata: deserializeMetadata(output),
|
|
1519
|
-
};
|
|
1520
|
-
break;
|
|
1309
|
+
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
1521
1310
|
default:
|
|
1522
1311
|
const parsedBody = parsedOutput.body;
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
...parsedBody.Error,
|
|
1526
|
-
name: `${errorCode}`,
|
|
1527
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1312
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1313
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1528
1314
|
$fault: "client",
|
|
1529
1315
|
$metadata: deserializeMetadata(output),
|
|
1530
|
-
};
|
|
1316
|
+
});
|
|
1317
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1531
1318
|
}
|
|
1532
|
-
const message = response.message || response.Message || errorCode;
|
|
1533
|
-
response.message = message;
|
|
1534
|
-
delete response.Message;
|
|
1535
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1536
1319
|
};
|
|
1537
1320
|
const deserializeAws_queryDeleteConfigurationSetCommand = async (output, context) => {
|
|
1538
1321
|
if (output.statusCode >= 300) {
|
|
@@ -1559,27 +1342,16 @@ const deserializeAws_queryDeleteConfigurationSetCommandError = async (output, co
|
|
|
1559
1342
|
switch (errorCode) {
|
|
1560
1343
|
case "ConfigurationSetDoesNotExistException":
|
|
1561
1344
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
1562
|
-
|
|
1563
|
-
...(await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
1564
|
-
name: errorCode,
|
|
1565
|
-
$metadata: deserializeMetadata(output),
|
|
1566
|
-
};
|
|
1567
|
-
break;
|
|
1345
|
+
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1568
1346
|
default:
|
|
1569
1347
|
const parsedBody = parsedOutput.body;
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
...parsedBody.Error,
|
|
1573
|
-
name: `${errorCode}`,
|
|
1574
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1348
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1349
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1575
1350
|
$fault: "client",
|
|
1576
1351
|
$metadata: deserializeMetadata(output),
|
|
1577
|
-
};
|
|
1352
|
+
});
|
|
1353
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1578
1354
|
}
|
|
1579
|
-
const message = response.message || response.Message || errorCode;
|
|
1580
|
-
response.message = message;
|
|
1581
|
-
delete response.Message;
|
|
1582
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1583
1355
|
};
|
|
1584
1356
|
const deserializeAws_queryDeleteConfigurationSetEventDestinationCommand = async (output, context) => {
|
|
1585
1357
|
if (output.statusCode >= 300) {
|
|
@@ -1606,35 +1378,19 @@ const deserializeAws_queryDeleteConfigurationSetEventDestinationCommandError = a
|
|
|
1606
1378
|
switch (errorCode) {
|
|
1607
1379
|
case "ConfigurationSetDoesNotExistException":
|
|
1608
1380
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
1609
|
-
|
|
1610
|
-
...(await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
1611
|
-
name: errorCode,
|
|
1612
|
-
$metadata: deserializeMetadata(output),
|
|
1613
|
-
};
|
|
1614
|
-
break;
|
|
1381
|
+
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1615
1382
|
case "EventDestinationDoesNotExistException":
|
|
1616
1383
|
case "com.amazonaws.ses#EventDestinationDoesNotExistException":
|
|
1617
|
-
|
|
1618
|
-
...(await deserializeAws_queryEventDestinationDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
1619
|
-
name: errorCode,
|
|
1620
|
-
$metadata: deserializeMetadata(output),
|
|
1621
|
-
};
|
|
1622
|
-
break;
|
|
1384
|
+
throw await deserializeAws_queryEventDestinationDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1623
1385
|
default:
|
|
1624
1386
|
const parsedBody = parsedOutput.body;
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
...parsedBody.Error,
|
|
1628
|
-
name: `${errorCode}`,
|
|
1629
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1387
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1388
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1630
1389
|
$fault: "client",
|
|
1631
1390
|
$metadata: deserializeMetadata(output),
|
|
1632
|
-
};
|
|
1391
|
+
});
|
|
1392
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1633
1393
|
}
|
|
1634
|
-
const message = response.message || response.Message || errorCode;
|
|
1635
|
-
response.message = message;
|
|
1636
|
-
delete response.Message;
|
|
1637
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1638
1394
|
};
|
|
1639
1395
|
const deserializeAws_queryDeleteConfigurationSetTrackingOptionsCommand = async (output, context) => {
|
|
1640
1396
|
if (output.statusCode >= 300) {
|
|
@@ -1661,35 +1417,19 @@ const deserializeAws_queryDeleteConfigurationSetTrackingOptionsCommandError = as
|
|
|
1661
1417
|
switch (errorCode) {
|
|
1662
1418
|
case "ConfigurationSetDoesNotExistException":
|
|
1663
1419
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
1664
|
-
|
|
1665
|
-
...(await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
1666
|
-
name: errorCode,
|
|
1667
|
-
$metadata: deserializeMetadata(output),
|
|
1668
|
-
};
|
|
1669
|
-
break;
|
|
1420
|
+
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1670
1421
|
case "TrackingOptionsDoesNotExistException":
|
|
1671
1422
|
case "com.amazonaws.ses#TrackingOptionsDoesNotExistException":
|
|
1672
|
-
|
|
1673
|
-
...(await deserializeAws_queryTrackingOptionsDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
1674
|
-
name: errorCode,
|
|
1675
|
-
$metadata: deserializeMetadata(output),
|
|
1676
|
-
};
|
|
1677
|
-
break;
|
|
1423
|
+
throw await deserializeAws_queryTrackingOptionsDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1678
1424
|
default:
|
|
1679
1425
|
const parsedBody = parsedOutput.body;
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
...parsedBody.Error,
|
|
1683
|
-
name: `${errorCode}`,
|
|
1684
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1426
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1427
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1685
1428
|
$fault: "client",
|
|
1686
1429
|
$metadata: deserializeMetadata(output),
|
|
1687
|
-
};
|
|
1430
|
+
});
|
|
1431
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1688
1432
|
}
|
|
1689
|
-
const message = response.message || response.Message || errorCode;
|
|
1690
|
-
response.message = message;
|
|
1691
|
-
delete response.Message;
|
|
1692
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1693
1433
|
};
|
|
1694
1434
|
const deserializeAws_queryDeleteCustomVerificationEmailTemplateCommand = async (output, context) => {
|
|
1695
1435
|
if (output.statusCode >= 300) {
|
|
@@ -1713,19 +1453,13 @@ const deserializeAws_queryDeleteCustomVerificationEmailTemplateCommandError = as
|
|
|
1713
1453
|
switch (errorCode) {
|
|
1714
1454
|
default:
|
|
1715
1455
|
const parsedBody = parsedOutput.body;
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
...parsedBody.Error,
|
|
1719
|
-
name: `${errorCode}`,
|
|
1720
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1456
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1457
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1721
1458
|
$fault: "client",
|
|
1722
1459
|
$metadata: deserializeMetadata(output),
|
|
1723
|
-
};
|
|
1460
|
+
});
|
|
1461
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1724
1462
|
}
|
|
1725
|
-
const message = response.message || response.Message || errorCode;
|
|
1726
|
-
response.message = message;
|
|
1727
|
-
delete response.Message;
|
|
1728
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1729
1463
|
};
|
|
1730
1464
|
const deserializeAws_queryDeleteIdentityCommand = async (output, context) => {
|
|
1731
1465
|
if (output.statusCode >= 300) {
|
|
@@ -1752,19 +1486,13 @@ const deserializeAws_queryDeleteIdentityCommandError = async (output, context) =
|
|
|
1752
1486
|
switch (errorCode) {
|
|
1753
1487
|
default:
|
|
1754
1488
|
const parsedBody = parsedOutput.body;
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
...parsedBody.Error,
|
|
1758
|
-
name: `${errorCode}`,
|
|
1759
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1489
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1490
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1760
1491
|
$fault: "client",
|
|
1761
1492
|
$metadata: deserializeMetadata(output),
|
|
1762
|
-
};
|
|
1493
|
+
});
|
|
1494
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1763
1495
|
}
|
|
1764
|
-
const message = response.message || response.Message || errorCode;
|
|
1765
|
-
response.message = message;
|
|
1766
|
-
delete response.Message;
|
|
1767
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1768
1496
|
};
|
|
1769
1497
|
const deserializeAws_queryDeleteIdentityPolicyCommand = async (output, context) => {
|
|
1770
1498
|
if (output.statusCode >= 300) {
|
|
@@ -1791,19 +1519,13 @@ const deserializeAws_queryDeleteIdentityPolicyCommandError = async (output, cont
|
|
|
1791
1519
|
switch (errorCode) {
|
|
1792
1520
|
default:
|
|
1793
1521
|
const parsedBody = parsedOutput.body;
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
...parsedBody.Error,
|
|
1797
|
-
name: `${errorCode}`,
|
|
1798
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1522
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1523
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1799
1524
|
$fault: "client",
|
|
1800
1525
|
$metadata: deserializeMetadata(output),
|
|
1801
|
-
};
|
|
1526
|
+
});
|
|
1527
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1802
1528
|
}
|
|
1803
|
-
const message = response.message || response.Message || errorCode;
|
|
1804
|
-
response.message = message;
|
|
1805
|
-
delete response.Message;
|
|
1806
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1807
1529
|
};
|
|
1808
1530
|
const deserializeAws_queryDeleteReceiptFilterCommand = async (output, context) => {
|
|
1809
1531
|
if (output.statusCode >= 300) {
|
|
@@ -1830,19 +1552,13 @@ const deserializeAws_queryDeleteReceiptFilterCommandError = async (output, conte
|
|
|
1830
1552
|
switch (errorCode) {
|
|
1831
1553
|
default:
|
|
1832
1554
|
const parsedBody = parsedOutput.body;
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
...parsedBody.Error,
|
|
1836
|
-
name: `${errorCode}`,
|
|
1837
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1555
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1556
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1838
1557
|
$fault: "client",
|
|
1839
1558
|
$metadata: deserializeMetadata(output),
|
|
1840
|
-
};
|
|
1559
|
+
});
|
|
1560
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1841
1561
|
}
|
|
1842
|
-
const message = response.message || response.Message || errorCode;
|
|
1843
|
-
response.message = message;
|
|
1844
|
-
delete response.Message;
|
|
1845
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1846
1562
|
};
|
|
1847
1563
|
const deserializeAws_queryDeleteReceiptRuleCommand = async (output, context) => {
|
|
1848
1564
|
if (output.statusCode >= 300) {
|
|
@@ -1869,27 +1585,16 @@ const deserializeAws_queryDeleteReceiptRuleCommandError = async (output, context
|
|
|
1869
1585
|
switch (errorCode) {
|
|
1870
1586
|
case "RuleSetDoesNotExistException":
|
|
1871
1587
|
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
1872
|
-
|
|
1873
|
-
...(await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
1874
|
-
name: errorCode,
|
|
1875
|
-
$metadata: deserializeMetadata(output),
|
|
1876
|
-
};
|
|
1877
|
-
break;
|
|
1588
|
+
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
1878
1589
|
default:
|
|
1879
1590
|
const parsedBody = parsedOutput.body;
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
...parsedBody.Error,
|
|
1883
|
-
name: `${errorCode}`,
|
|
1884
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1591
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1592
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1885
1593
|
$fault: "client",
|
|
1886
1594
|
$metadata: deserializeMetadata(output),
|
|
1887
|
-
};
|
|
1595
|
+
});
|
|
1596
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1888
1597
|
}
|
|
1889
|
-
const message = response.message || response.Message || errorCode;
|
|
1890
|
-
response.message = message;
|
|
1891
|
-
delete response.Message;
|
|
1892
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1893
1598
|
};
|
|
1894
1599
|
const deserializeAws_queryDeleteReceiptRuleSetCommand = async (output, context) => {
|
|
1895
1600
|
if (output.statusCode >= 300) {
|
|
@@ -1916,27 +1621,16 @@ const deserializeAws_queryDeleteReceiptRuleSetCommandError = async (output, cont
|
|
|
1916
1621
|
switch (errorCode) {
|
|
1917
1622
|
case "CannotDeleteException":
|
|
1918
1623
|
case "com.amazonaws.ses#CannotDeleteException":
|
|
1919
|
-
|
|
1920
|
-
...(await deserializeAws_queryCannotDeleteExceptionResponse(parsedOutput, context)),
|
|
1921
|
-
name: errorCode,
|
|
1922
|
-
$metadata: deserializeMetadata(output),
|
|
1923
|
-
};
|
|
1924
|
-
break;
|
|
1624
|
+
throw await deserializeAws_queryCannotDeleteExceptionResponse(parsedOutput, context);
|
|
1925
1625
|
default:
|
|
1926
1626
|
const parsedBody = parsedOutput.body;
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
...parsedBody.Error,
|
|
1930
|
-
name: `${errorCode}`,
|
|
1931
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1627
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1628
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1932
1629
|
$fault: "client",
|
|
1933
1630
|
$metadata: deserializeMetadata(output),
|
|
1934
|
-
};
|
|
1631
|
+
});
|
|
1632
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1935
1633
|
}
|
|
1936
|
-
const message = response.message || response.Message || errorCode;
|
|
1937
|
-
response.message = message;
|
|
1938
|
-
delete response.Message;
|
|
1939
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1940
1634
|
};
|
|
1941
1635
|
const deserializeAws_queryDeleteTemplateCommand = async (output, context) => {
|
|
1942
1636
|
if (output.statusCode >= 300) {
|
|
@@ -1963,19 +1657,13 @@ const deserializeAws_queryDeleteTemplateCommandError = async (output, context) =
|
|
|
1963
1657
|
switch (errorCode) {
|
|
1964
1658
|
default:
|
|
1965
1659
|
const parsedBody = parsedOutput.body;
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
...parsedBody.Error,
|
|
1969
|
-
name: `${errorCode}`,
|
|
1970
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1660
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1661
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
1971
1662
|
$fault: "client",
|
|
1972
1663
|
$metadata: deserializeMetadata(output),
|
|
1973
|
-
};
|
|
1664
|
+
});
|
|
1665
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
1974
1666
|
}
|
|
1975
|
-
const message = response.message || response.Message || errorCode;
|
|
1976
|
-
response.message = message;
|
|
1977
|
-
delete response.Message;
|
|
1978
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1979
1667
|
};
|
|
1980
1668
|
const deserializeAws_queryDeleteVerifiedEmailAddressCommand = async (output, context) => {
|
|
1981
1669
|
if (output.statusCode >= 300) {
|
|
@@ -1999,19 +1687,13 @@ const deserializeAws_queryDeleteVerifiedEmailAddressCommandError = async (output
|
|
|
1999
1687
|
switch (errorCode) {
|
|
2000
1688
|
default:
|
|
2001
1689
|
const parsedBody = parsedOutput.body;
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
...parsedBody.Error,
|
|
2005
|
-
name: `${errorCode}`,
|
|
2006
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1690
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1691
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2007
1692
|
$fault: "client",
|
|
2008
1693
|
$metadata: deserializeMetadata(output),
|
|
2009
|
-
};
|
|
1694
|
+
});
|
|
1695
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2010
1696
|
}
|
|
2011
|
-
const message = response.message || response.Message || errorCode;
|
|
2012
|
-
response.message = message;
|
|
2013
|
-
delete response.Message;
|
|
2014
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2015
1697
|
};
|
|
2016
1698
|
const deserializeAws_queryDescribeActiveReceiptRuleSetCommand = async (output, context) => {
|
|
2017
1699
|
if (output.statusCode >= 300) {
|
|
@@ -2038,19 +1720,13 @@ const deserializeAws_queryDescribeActiveReceiptRuleSetCommandError = async (outp
|
|
|
2038
1720
|
switch (errorCode) {
|
|
2039
1721
|
default:
|
|
2040
1722
|
const parsedBody = parsedOutput.body;
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
...parsedBody.Error,
|
|
2044
|
-
name: `${errorCode}`,
|
|
2045
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1723
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1724
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2046
1725
|
$fault: "client",
|
|
2047
1726
|
$metadata: deserializeMetadata(output),
|
|
2048
|
-
};
|
|
1727
|
+
});
|
|
1728
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2049
1729
|
}
|
|
2050
|
-
const message = response.message || response.Message || errorCode;
|
|
2051
|
-
response.message = message;
|
|
2052
|
-
delete response.Message;
|
|
2053
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2054
1730
|
};
|
|
2055
1731
|
const deserializeAws_queryDescribeConfigurationSetCommand = async (output, context) => {
|
|
2056
1732
|
if (output.statusCode >= 300) {
|
|
@@ -2077,27 +1753,16 @@ const deserializeAws_queryDescribeConfigurationSetCommandError = async (output,
|
|
|
2077
1753
|
switch (errorCode) {
|
|
2078
1754
|
case "ConfigurationSetDoesNotExistException":
|
|
2079
1755
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
2080
|
-
|
|
2081
|
-
...(await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
2082
|
-
name: errorCode,
|
|
2083
|
-
$metadata: deserializeMetadata(output),
|
|
2084
|
-
};
|
|
2085
|
-
break;
|
|
1756
|
+
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
2086
1757
|
default:
|
|
2087
1758
|
const parsedBody = parsedOutput.body;
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
...parsedBody.Error,
|
|
2091
|
-
name: `${errorCode}`,
|
|
2092
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1759
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1760
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2093
1761
|
$fault: "client",
|
|
2094
1762
|
$metadata: deserializeMetadata(output),
|
|
2095
|
-
};
|
|
1763
|
+
});
|
|
1764
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2096
1765
|
}
|
|
2097
|
-
const message = response.message || response.Message || errorCode;
|
|
2098
|
-
response.message = message;
|
|
2099
|
-
delete response.Message;
|
|
2100
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2101
1766
|
};
|
|
2102
1767
|
const deserializeAws_queryDescribeReceiptRuleCommand = async (output, context) => {
|
|
2103
1768
|
if (output.statusCode >= 300) {
|
|
@@ -2124,35 +1789,19 @@ const deserializeAws_queryDescribeReceiptRuleCommandError = async (output, conte
|
|
|
2124
1789
|
switch (errorCode) {
|
|
2125
1790
|
case "RuleDoesNotExistException":
|
|
2126
1791
|
case "com.amazonaws.ses#RuleDoesNotExistException":
|
|
2127
|
-
|
|
2128
|
-
...(await deserializeAws_queryRuleDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
2129
|
-
name: errorCode,
|
|
2130
|
-
$metadata: deserializeMetadata(output),
|
|
2131
|
-
};
|
|
2132
|
-
break;
|
|
1792
|
+
throw await deserializeAws_queryRuleDoesNotExistExceptionResponse(parsedOutput, context);
|
|
2133
1793
|
case "RuleSetDoesNotExistException":
|
|
2134
1794
|
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
2135
|
-
|
|
2136
|
-
...(await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
2137
|
-
name: errorCode,
|
|
2138
|
-
$metadata: deserializeMetadata(output),
|
|
2139
|
-
};
|
|
2140
|
-
break;
|
|
1795
|
+
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
2141
1796
|
default:
|
|
2142
1797
|
const parsedBody = parsedOutput.body;
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
...parsedBody.Error,
|
|
2146
|
-
name: `${errorCode}`,
|
|
2147
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1798
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1799
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2148
1800
|
$fault: "client",
|
|
2149
1801
|
$metadata: deserializeMetadata(output),
|
|
2150
|
-
};
|
|
1802
|
+
});
|
|
1803
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2151
1804
|
}
|
|
2152
|
-
const message = response.message || response.Message || errorCode;
|
|
2153
|
-
response.message = message;
|
|
2154
|
-
delete response.Message;
|
|
2155
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2156
1805
|
};
|
|
2157
1806
|
const deserializeAws_queryDescribeReceiptRuleSetCommand = async (output, context) => {
|
|
2158
1807
|
if (output.statusCode >= 300) {
|
|
@@ -2179,27 +1828,16 @@ const deserializeAws_queryDescribeReceiptRuleSetCommandError = async (output, co
|
|
|
2179
1828
|
switch (errorCode) {
|
|
2180
1829
|
case "RuleSetDoesNotExistException":
|
|
2181
1830
|
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
2182
|
-
|
|
2183
|
-
...(await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
2184
|
-
name: errorCode,
|
|
2185
|
-
$metadata: deserializeMetadata(output),
|
|
2186
|
-
};
|
|
2187
|
-
break;
|
|
1831
|
+
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
2188
1832
|
default:
|
|
2189
1833
|
const parsedBody = parsedOutput.body;
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
...parsedBody.Error,
|
|
2193
|
-
name: `${errorCode}`,
|
|
2194
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1834
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1835
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2195
1836
|
$fault: "client",
|
|
2196
1837
|
$metadata: deserializeMetadata(output),
|
|
2197
|
-
};
|
|
1838
|
+
});
|
|
1839
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2198
1840
|
}
|
|
2199
|
-
const message = response.message || response.Message || errorCode;
|
|
2200
|
-
response.message = message;
|
|
2201
|
-
delete response.Message;
|
|
2202
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2203
1841
|
};
|
|
2204
1842
|
const deserializeAws_queryGetAccountSendingEnabledCommand = async (output, context) => {
|
|
2205
1843
|
if (output.statusCode >= 300) {
|
|
@@ -2226,19 +1864,13 @@ const deserializeAws_queryGetAccountSendingEnabledCommandError = async (output,
|
|
|
2226
1864
|
switch (errorCode) {
|
|
2227
1865
|
default:
|
|
2228
1866
|
const parsedBody = parsedOutput.body;
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
...parsedBody.Error,
|
|
2232
|
-
name: `${errorCode}`,
|
|
2233
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1867
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1868
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2234
1869
|
$fault: "client",
|
|
2235
1870
|
$metadata: deserializeMetadata(output),
|
|
2236
|
-
};
|
|
1871
|
+
});
|
|
1872
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2237
1873
|
}
|
|
2238
|
-
const message = response.message || response.Message || errorCode;
|
|
2239
|
-
response.message = message;
|
|
2240
|
-
delete response.Message;
|
|
2241
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2242
1874
|
};
|
|
2243
1875
|
const deserializeAws_queryGetCustomVerificationEmailTemplateCommand = async (output, context) => {
|
|
2244
1876
|
if (output.statusCode >= 300) {
|
|
@@ -2265,27 +1897,16 @@ const deserializeAws_queryGetCustomVerificationEmailTemplateCommandError = async
|
|
|
2265
1897
|
switch (errorCode) {
|
|
2266
1898
|
case "CustomVerificationEmailTemplateDoesNotExistException":
|
|
2267
1899
|
case "com.amazonaws.ses#CustomVerificationEmailTemplateDoesNotExistException":
|
|
2268
|
-
|
|
2269
|
-
...(await deserializeAws_queryCustomVerificationEmailTemplateDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
2270
|
-
name: errorCode,
|
|
2271
|
-
$metadata: deserializeMetadata(output),
|
|
2272
|
-
};
|
|
2273
|
-
break;
|
|
1900
|
+
throw await deserializeAws_queryCustomVerificationEmailTemplateDoesNotExistExceptionResponse(parsedOutput, context);
|
|
2274
1901
|
default:
|
|
2275
1902
|
const parsedBody = parsedOutput.body;
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
...parsedBody.Error,
|
|
2279
|
-
name: `${errorCode}`,
|
|
2280
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1903
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1904
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2281
1905
|
$fault: "client",
|
|
2282
1906
|
$metadata: deserializeMetadata(output),
|
|
2283
|
-
};
|
|
1907
|
+
});
|
|
1908
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2284
1909
|
}
|
|
2285
|
-
const message = response.message || response.Message || errorCode;
|
|
2286
|
-
response.message = message;
|
|
2287
|
-
delete response.Message;
|
|
2288
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2289
1910
|
};
|
|
2290
1911
|
const deserializeAws_queryGetIdentityDkimAttributesCommand = async (output, context) => {
|
|
2291
1912
|
if (output.statusCode >= 300) {
|
|
@@ -2312,19 +1933,13 @@ const deserializeAws_queryGetIdentityDkimAttributesCommandError = async (output,
|
|
|
2312
1933
|
switch (errorCode) {
|
|
2313
1934
|
default:
|
|
2314
1935
|
const parsedBody = parsedOutput.body;
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
...parsedBody.Error,
|
|
2318
|
-
name: `${errorCode}`,
|
|
2319
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1936
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1937
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2320
1938
|
$fault: "client",
|
|
2321
1939
|
$metadata: deserializeMetadata(output),
|
|
2322
|
-
};
|
|
1940
|
+
});
|
|
1941
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2323
1942
|
}
|
|
2324
|
-
const message = response.message || response.Message || errorCode;
|
|
2325
|
-
response.message = message;
|
|
2326
|
-
delete response.Message;
|
|
2327
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2328
1943
|
};
|
|
2329
1944
|
const deserializeAws_queryGetIdentityMailFromDomainAttributesCommand = async (output, context) => {
|
|
2330
1945
|
if (output.statusCode >= 300) {
|
|
@@ -2351,19 +1966,13 @@ const deserializeAws_queryGetIdentityMailFromDomainAttributesCommandError = asyn
|
|
|
2351
1966
|
switch (errorCode) {
|
|
2352
1967
|
default:
|
|
2353
1968
|
const parsedBody = parsedOutput.body;
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
...parsedBody.Error,
|
|
2357
|
-
name: `${errorCode}`,
|
|
2358
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
1969
|
+
response = new SESServiceException_1.SESServiceException({
|
|
1970
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2359
1971
|
$fault: "client",
|
|
2360
1972
|
$metadata: deserializeMetadata(output),
|
|
2361
|
-
};
|
|
1973
|
+
});
|
|
1974
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2362
1975
|
}
|
|
2363
|
-
const message = response.message || response.Message || errorCode;
|
|
2364
|
-
response.message = message;
|
|
2365
|
-
delete response.Message;
|
|
2366
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2367
1976
|
};
|
|
2368
1977
|
const deserializeAws_queryGetIdentityNotificationAttributesCommand = async (output, context) => {
|
|
2369
1978
|
if (output.statusCode >= 300) {
|
|
@@ -2390,19 +1999,13 @@ const deserializeAws_queryGetIdentityNotificationAttributesCommandError = async
|
|
|
2390
1999
|
switch (errorCode) {
|
|
2391
2000
|
default:
|
|
2392
2001
|
const parsedBody = parsedOutput.body;
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
...parsedBody.Error,
|
|
2396
|
-
name: `${errorCode}`,
|
|
2397
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2002
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2003
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2398
2004
|
$fault: "client",
|
|
2399
2005
|
$metadata: deserializeMetadata(output),
|
|
2400
|
-
};
|
|
2006
|
+
});
|
|
2007
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2401
2008
|
}
|
|
2402
|
-
const message = response.message || response.Message || errorCode;
|
|
2403
|
-
response.message = message;
|
|
2404
|
-
delete response.Message;
|
|
2405
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2406
2009
|
};
|
|
2407
2010
|
const deserializeAws_queryGetIdentityPoliciesCommand = async (output, context) => {
|
|
2408
2011
|
if (output.statusCode >= 300) {
|
|
@@ -2429,19 +2032,13 @@ const deserializeAws_queryGetIdentityPoliciesCommandError = async (output, conte
|
|
|
2429
2032
|
switch (errorCode) {
|
|
2430
2033
|
default:
|
|
2431
2034
|
const parsedBody = parsedOutput.body;
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
...parsedBody.Error,
|
|
2435
|
-
name: `${errorCode}`,
|
|
2436
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2035
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2036
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2437
2037
|
$fault: "client",
|
|
2438
2038
|
$metadata: deserializeMetadata(output),
|
|
2439
|
-
};
|
|
2039
|
+
});
|
|
2040
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2440
2041
|
}
|
|
2441
|
-
const message = response.message || response.Message || errorCode;
|
|
2442
|
-
response.message = message;
|
|
2443
|
-
delete response.Message;
|
|
2444
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2445
2042
|
};
|
|
2446
2043
|
const deserializeAws_queryGetIdentityVerificationAttributesCommand = async (output, context) => {
|
|
2447
2044
|
if (output.statusCode >= 300) {
|
|
@@ -2468,19 +2065,13 @@ const deserializeAws_queryGetIdentityVerificationAttributesCommandError = async
|
|
|
2468
2065
|
switch (errorCode) {
|
|
2469
2066
|
default:
|
|
2470
2067
|
const parsedBody = parsedOutput.body;
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
...parsedBody.Error,
|
|
2474
|
-
name: `${errorCode}`,
|
|
2475
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2068
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2069
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2476
2070
|
$fault: "client",
|
|
2477
2071
|
$metadata: deserializeMetadata(output),
|
|
2478
|
-
};
|
|
2072
|
+
});
|
|
2073
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2479
2074
|
}
|
|
2480
|
-
const message = response.message || response.Message || errorCode;
|
|
2481
|
-
response.message = message;
|
|
2482
|
-
delete response.Message;
|
|
2483
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2484
2075
|
};
|
|
2485
2076
|
const deserializeAws_queryGetSendQuotaCommand = async (output, context) => {
|
|
2486
2077
|
if (output.statusCode >= 300) {
|
|
@@ -2507,19 +2098,13 @@ const deserializeAws_queryGetSendQuotaCommandError = async (output, context) =>
|
|
|
2507
2098
|
switch (errorCode) {
|
|
2508
2099
|
default:
|
|
2509
2100
|
const parsedBody = parsedOutput.body;
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
...parsedBody.Error,
|
|
2513
|
-
name: `${errorCode}`,
|
|
2514
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2101
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2102
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2515
2103
|
$fault: "client",
|
|
2516
2104
|
$metadata: deserializeMetadata(output),
|
|
2517
|
-
};
|
|
2105
|
+
});
|
|
2106
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2518
2107
|
}
|
|
2519
|
-
const message = response.message || response.Message || errorCode;
|
|
2520
|
-
response.message = message;
|
|
2521
|
-
delete response.Message;
|
|
2522
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2523
2108
|
};
|
|
2524
2109
|
const deserializeAws_queryGetSendStatisticsCommand = async (output, context) => {
|
|
2525
2110
|
if (output.statusCode >= 300) {
|
|
@@ -2546,19 +2131,13 @@ const deserializeAws_queryGetSendStatisticsCommandError = async (output, context
|
|
|
2546
2131
|
switch (errorCode) {
|
|
2547
2132
|
default:
|
|
2548
2133
|
const parsedBody = parsedOutput.body;
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
...parsedBody.Error,
|
|
2552
|
-
name: `${errorCode}`,
|
|
2553
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2134
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2135
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2554
2136
|
$fault: "client",
|
|
2555
2137
|
$metadata: deserializeMetadata(output),
|
|
2556
|
-
};
|
|
2138
|
+
});
|
|
2139
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2557
2140
|
}
|
|
2558
|
-
const message = response.message || response.Message || errorCode;
|
|
2559
|
-
response.message = message;
|
|
2560
|
-
delete response.Message;
|
|
2561
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2562
2141
|
};
|
|
2563
2142
|
const deserializeAws_queryGetTemplateCommand = async (output, context) => {
|
|
2564
2143
|
if (output.statusCode >= 300) {
|
|
@@ -2585,27 +2164,16 @@ const deserializeAws_queryGetTemplateCommandError = async (output, context) => {
|
|
|
2585
2164
|
switch (errorCode) {
|
|
2586
2165
|
case "TemplateDoesNotExistException":
|
|
2587
2166
|
case "com.amazonaws.ses#TemplateDoesNotExistException":
|
|
2588
|
-
|
|
2589
|
-
...(await deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
2590
|
-
name: errorCode,
|
|
2591
|
-
$metadata: deserializeMetadata(output),
|
|
2592
|
-
};
|
|
2593
|
-
break;
|
|
2167
|
+
throw await deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context);
|
|
2594
2168
|
default:
|
|
2595
2169
|
const parsedBody = parsedOutput.body;
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
...parsedBody.Error,
|
|
2599
|
-
name: `${errorCode}`,
|
|
2600
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2170
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2171
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2601
2172
|
$fault: "client",
|
|
2602
2173
|
$metadata: deserializeMetadata(output),
|
|
2603
|
-
};
|
|
2174
|
+
});
|
|
2175
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2604
2176
|
}
|
|
2605
|
-
const message = response.message || response.Message || errorCode;
|
|
2606
|
-
response.message = message;
|
|
2607
|
-
delete response.Message;
|
|
2608
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2609
2177
|
};
|
|
2610
2178
|
const deserializeAws_queryListConfigurationSetsCommand = async (output, context) => {
|
|
2611
2179
|
if (output.statusCode >= 300) {
|
|
@@ -2632,19 +2200,13 @@ const deserializeAws_queryListConfigurationSetsCommandError = async (output, con
|
|
|
2632
2200
|
switch (errorCode) {
|
|
2633
2201
|
default:
|
|
2634
2202
|
const parsedBody = parsedOutput.body;
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
...parsedBody.Error,
|
|
2638
|
-
name: `${errorCode}`,
|
|
2639
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2203
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2204
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2640
2205
|
$fault: "client",
|
|
2641
2206
|
$metadata: deserializeMetadata(output),
|
|
2642
|
-
};
|
|
2207
|
+
});
|
|
2208
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2643
2209
|
}
|
|
2644
|
-
const message = response.message || response.Message || errorCode;
|
|
2645
|
-
response.message = message;
|
|
2646
|
-
delete response.Message;
|
|
2647
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2648
2210
|
};
|
|
2649
2211
|
const deserializeAws_queryListCustomVerificationEmailTemplatesCommand = async (output, context) => {
|
|
2650
2212
|
if (output.statusCode >= 300) {
|
|
@@ -2671,19 +2233,13 @@ const deserializeAws_queryListCustomVerificationEmailTemplatesCommandError = asy
|
|
|
2671
2233
|
switch (errorCode) {
|
|
2672
2234
|
default:
|
|
2673
2235
|
const parsedBody = parsedOutput.body;
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
...parsedBody.Error,
|
|
2677
|
-
name: `${errorCode}`,
|
|
2678
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2236
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2237
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2679
2238
|
$fault: "client",
|
|
2680
2239
|
$metadata: deserializeMetadata(output),
|
|
2681
|
-
};
|
|
2240
|
+
});
|
|
2241
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2682
2242
|
}
|
|
2683
|
-
const message = response.message || response.Message || errorCode;
|
|
2684
|
-
response.message = message;
|
|
2685
|
-
delete response.Message;
|
|
2686
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2687
2243
|
};
|
|
2688
2244
|
const deserializeAws_queryListIdentitiesCommand = async (output, context) => {
|
|
2689
2245
|
if (output.statusCode >= 300) {
|
|
@@ -2710,19 +2266,13 @@ const deserializeAws_queryListIdentitiesCommandError = async (output, context) =
|
|
|
2710
2266
|
switch (errorCode) {
|
|
2711
2267
|
default:
|
|
2712
2268
|
const parsedBody = parsedOutput.body;
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
...parsedBody.Error,
|
|
2716
|
-
name: `${errorCode}`,
|
|
2717
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2269
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2270
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2718
2271
|
$fault: "client",
|
|
2719
2272
|
$metadata: deserializeMetadata(output),
|
|
2720
|
-
};
|
|
2273
|
+
});
|
|
2274
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2721
2275
|
}
|
|
2722
|
-
const message = response.message || response.Message || errorCode;
|
|
2723
|
-
response.message = message;
|
|
2724
|
-
delete response.Message;
|
|
2725
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2726
2276
|
};
|
|
2727
2277
|
const deserializeAws_queryListIdentityPoliciesCommand = async (output, context) => {
|
|
2728
2278
|
if (output.statusCode >= 300) {
|
|
@@ -2749,19 +2299,13 @@ const deserializeAws_queryListIdentityPoliciesCommandError = async (output, cont
|
|
|
2749
2299
|
switch (errorCode) {
|
|
2750
2300
|
default:
|
|
2751
2301
|
const parsedBody = parsedOutput.body;
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
...parsedBody.Error,
|
|
2755
|
-
name: `${errorCode}`,
|
|
2756
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2302
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2303
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2757
2304
|
$fault: "client",
|
|
2758
2305
|
$metadata: deserializeMetadata(output),
|
|
2759
|
-
};
|
|
2306
|
+
});
|
|
2307
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2760
2308
|
}
|
|
2761
|
-
const message = response.message || response.Message || errorCode;
|
|
2762
|
-
response.message = message;
|
|
2763
|
-
delete response.Message;
|
|
2764
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2765
2309
|
};
|
|
2766
2310
|
const deserializeAws_queryListReceiptFiltersCommand = async (output, context) => {
|
|
2767
2311
|
if (output.statusCode >= 300) {
|
|
@@ -2788,19 +2332,13 @@ const deserializeAws_queryListReceiptFiltersCommandError = async (output, contex
|
|
|
2788
2332
|
switch (errorCode) {
|
|
2789
2333
|
default:
|
|
2790
2334
|
const parsedBody = parsedOutput.body;
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
...parsedBody.Error,
|
|
2794
|
-
name: `${errorCode}`,
|
|
2795
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2335
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2336
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2796
2337
|
$fault: "client",
|
|
2797
2338
|
$metadata: deserializeMetadata(output),
|
|
2798
|
-
};
|
|
2339
|
+
});
|
|
2340
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2799
2341
|
}
|
|
2800
|
-
const message = response.message || response.Message || errorCode;
|
|
2801
|
-
response.message = message;
|
|
2802
|
-
delete response.Message;
|
|
2803
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2804
2342
|
};
|
|
2805
2343
|
const deserializeAws_queryListReceiptRuleSetsCommand = async (output, context) => {
|
|
2806
2344
|
if (output.statusCode >= 300) {
|
|
@@ -2827,19 +2365,13 @@ const deserializeAws_queryListReceiptRuleSetsCommandError = async (output, conte
|
|
|
2827
2365
|
switch (errorCode) {
|
|
2828
2366
|
default:
|
|
2829
2367
|
const parsedBody = parsedOutput.body;
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
...parsedBody.Error,
|
|
2833
|
-
name: `${errorCode}`,
|
|
2834
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2368
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2369
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2835
2370
|
$fault: "client",
|
|
2836
2371
|
$metadata: deserializeMetadata(output),
|
|
2837
|
-
};
|
|
2372
|
+
});
|
|
2373
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2838
2374
|
}
|
|
2839
|
-
const message = response.message || response.Message || errorCode;
|
|
2840
|
-
response.message = message;
|
|
2841
|
-
delete response.Message;
|
|
2842
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2843
2375
|
};
|
|
2844
2376
|
const deserializeAws_queryListTemplatesCommand = async (output, context) => {
|
|
2845
2377
|
if (output.statusCode >= 300) {
|
|
@@ -2866,19 +2398,13 @@ const deserializeAws_queryListTemplatesCommandError = async (output, context) =>
|
|
|
2866
2398
|
switch (errorCode) {
|
|
2867
2399
|
default:
|
|
2868
2400
|
const parsedBody = parsedOutput.body;
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
...parsedBody.Error,
|
|
2872
|
-
name: `${errorCode}`,
|
|
2873
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2401
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2402
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2874
2403
|
$fault: "client",
|
|
2875
2404
|
$metadata: deserializeMetadata(output),
|
|
2876
|
-
};
|
|
2405
|
+
});
|
|
2406
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2877
2407
|
}
|
|
2878
|
-
const message = response.message || response.Message || errorCode;
|
|
2879
|
-
response.message = message;
|
|
2880
|
-
delete response.Message;
|
|
2881
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2882
2408
|
};
|
|
2883
2409
|
const deserializeAws_queryListVerifiedEmailAddressesCommand = async (output, context) => {
|
|
2884
2410
|
if (output.statusCode >= 300) {
|
|
@@ -2905,19 +2431,13 @@ const deserializeAws_queryListVerifiedEmailAddressesCommandError = async (output
|
|
|
2905
2431
|
switch (errorCode) {
|
|
2906
2432
|
default:
|
|
2907
2433
|
const parsedBody = parsedOutput.body;
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
...parsedBody.Error,
|
|
2911
|
-
name: `${errorCode}`,
|
|
2912
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2434
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2435
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2913
2436
|
$fault: "client",
|
|
2914
2437
|
$metadata: deserializeMetadata(output),
|
|
2915
|
-
};
|
|
2438
|
+
});
|
|
2439
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2916
2440
|
}
|
|
2917
|
-
const message = response.message || response.Message || errorCode;
|
|
2918
|
-
response.message = message;
|
|
2919
|
-
delete response.Message;
|
|
2920
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2921
2441
|
};
|
|
2922
2442
|
const deserializeAws_queryPutConfigurationSetDeliveryOptionsCommand = async (output, context) => {
|
|
2923
2443
|
if (output.statusCode >= 300) {
|
|
@@ -2944,35 +2464,19 @@ const deserializeAws_queryPutConfigurationSetDeliveryOptionsCommandError = async
|
|
|
2944
2464
|
switch (errorCode) {
|
|
2945
2465
|
case "ConfigurationSetDoesNotExistException":
|
|
2946
2466
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
2947
|
-
|
|
2948
|
-
...(await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
2949
|
-
name: errorCode,
|
|
2950
|
-
$metadata: deserializeMetadata(output),
|
|
2951
|
-
};
|
|
2952
|
-
break;
|
|
2467
|
+
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
2953
2468
|
case "InvalidDeliveryOptionsException":
|
|
2954
2469
|
case "com.amazonaws.ses#InvalidDeliveryOptionsException":
|
|
2955
|
-
|
|
2956
|
-
...(await deserializeAws_queryInvalidDeliveryOptionsExceptionResponse(parsedOutput, context)),
|
|
2957
|
-
name: errorCode,
|
|
2958
|
-
$metadata: deserializeMetadata(output),
|
|
2959
|
-
};
|
|
2960
|
-
break;
|
|
2470
|
+
throw await deserializeAws_queryInvalidDeliveryOptionsExceptionResponse(parsedOutput, context);
|
|
2961
2471
|
default:
|
|
2962
2472
|
const parsedBody = parsedOutput.body;
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
...parsedBody.Error,
|
|
2966
|
-
name: `${errorCode}`,
|
|
2967
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2473
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2474
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
2968
2475
|
$fault: "client",
|
|
2969
2476
|
$metadata: deserializeMetadata(output),
|
|
2970
|
-
};
|
|
2477
|
+
});
|
|
2478
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
2971
2479
|
}
|
|
2972
|
-
const message = response.message || response.Message || errorCode;
|
|
2973
|
-
response.message = message;
|
|
2974
|
-
delete response.Message;
|
|
2975
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2976
2480
|
};
|
|
2977
2481
|
const deserializeAws_queryPutIdentityPolicyCommand = async (output, context) => {
|
|
2978
2482
|
if (output.statusCode >= 300) {
|
|
@@ -2999,27 +2503,16 @@ const deserializeAws_queryPutIdentityPolicyCommandError = async (output, context
|
|
|
2999
2503
|
switch (errorCode) {
|
|
3000
2504
|
case "InvalidPolicyException":
|
|
3001
2505
|
case "com.amazonaws.ses#InvalidPolicyException":
|
|
3002
|
-
|
|
3003
|
-
...(await deserializeAws_queryInvalidPolicyExceptionResponse(parsedOutput, context)),
|
|
3004
|
-
name: errorCode,
|
|
3005
|
-
$metadata: deserializeMetadata(output),
|
|
3006
|
-
};
|
|
3007
|
-
break;
|
|
2506
|
+
throw await deserializeAws_queryInvalidPolicyExceptionResponse(parsedOutput, context);
|
|
3008
2507
|
default:
|
|
3009
2508
|
const parsedBody = parsedOutput.body;
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
...parsedBody.Error,
|
|
3013
|
-
name: `${errorCode}`,
|
|
3014
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2509
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2510
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3015
2511
|
$fault: "client",
|
|
3016
2512
|
$metadata: deserializeMetadata(output),
|
|
3017
|
-
};
|
|
2513
|
+
});
|
|
2514
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3018
2515
|
}
|
|
3019
|
-
const message = response.message || response.Message || errorCode;
|
|
3020
|
-
response.message = message;
|
|
3021
|
-
delete response.Message;
|
|
3022
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3023
2516
|
};
|
|
3024
2517
|
const deserializeAws_queryReorderReceiptRuleSetCommand = async (output, context) => {
|
|
3025
2518
|
if (output.statusCode >= 300) {
|
|
@@ -3046,35 +2539,19 @@ const deserializeAws_queryReorderReceiptRuleSetCommandError = async (output, con
|
|
|
3046
2539
|
switch (errorCode) {
|
|
3047
2540
|
case "RuleDoesNotExistException":
|
|
3048
2541
|
case "com.amazonaws.ses#RuleDoesNotExistException":
|
|
3049
|
-
|
|
3050
|
-
...(await deserializeAws_queryRuleDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
3051
|
-
name: errorCode,
|
|
3052
|
-
$metadata: deserializeMetadata(output),
|
|
3053
|
-
};
|
|
3054
|
-
break;
|
|
2542
|
+
throw await deserializeAws_queryRuleDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3055
2543
|
case "RuleSetDoesNotExistException":
|
|
3056
2544
|
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
3057
|
-
|
|
3058
|
-
...(await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
3059
|
-
name: errorCode,
|
|
3060
|
-
$metadata: deserializeMetadata(output),
|
|
3061
|
-
};
|
|
3062
|
-
break;
|
|
2545
|
+
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3063
2546
|
default:
|
|
3064
2547
|
const parsedBody = parsedOutput.body;
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
...parsedBody.Error,
|
|
3068
|
-
name: `${errorCode}`,
|
|
3069
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2548
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2549
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3070
2550
|
$fault: "client",
|
|
3071
2551
|
$metadata: deserializeMetadata(output),
|
|
3072
|
-
};
|
|
2552
|
+
});
|
|
2553
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3073
2554
|
}
|
|
3074
|
-
const message = response.message || response.Message || errorCode;
|
|
3075
|
-
response.message = message;
|
|
3076
|
-
delete response.Message;
|
|
3077
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3078
2555
|
};
|
|
3079
2556
|
const deserializeAws_querySendBounceCommand = async (output, context) => {
|
|
3080
2557
|
if (output.statusCode >= 300) {
|
|
@@ -3101,27 +2578,16 @@ const deserializeAws_querySendBounceCommandError = async (output, context) => {
|
|
|
3101
2578
|
switch (errorCode) {
|
|
3102
2579
|
case "MessageRejected":
|
|
3103
2580
|
case "com.amazonaws.ses#MessageRejected":
|
|
3104
|
-
|
|
3105
|
-
...(await deserializeAws_queryMessageRejectedResponse(parsedOutput, context)),
|
|
3106
|
-
name: errorCode,
|
|
3107
|
-
$metadata: deserializeMetadata(output),
|
|
3108
|
-
};
|
|
3109
|
-
break;
|
|
2581
|
+
throw await deserializeAws_queryMessageRejectedResponse(parsedOutput, context);
|
|
3110
2582
|
default:
|
|
3111
2583
|
const parsedBody = parsedOutput.body;
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
...parsedBody.Error,
|
|
3115
|
-
name: `${errorCode}`,
|
|
3116
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2584
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2585
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3117
2586
|
$fault: "client",
|
|
3118
2587
|
$metadata: deserializeMetadata(output),
|
|
3119
|
-
};
|
|
2588
|
+
});
|
|
2589
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3120
2590
|
}
|
|
3121
|
-
const message = response.message || response.Message || errorCode;
|
|
3122
|
-
response.message = message;
|
|
3123
|
-
delete response.Message;
|
|
3124
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3125
2591
|
};
|
|
3126
2592
|
const deserializeAws_querySendBulkTemplatedEmailCommand = async (output, context) => {
|
|
3127
2593
|
if (output.statusCode >= 300) {
|
|
@@ -3148,67 +2614,31 @@ const deserializeAws_querySendBulkTemplatedEmailCommandError = async (output, co
|
|
|
3148
2614
|
switch (errorCode) {
|
|
3149
2615
|
case "AccountSendingPausedException":
|
|
3150
2616
|
case "com.amazonaws.ses#AccountSendingPausedException":
|
|
3151
|
-
|
|
3152
|
-
...(await deserializeAws_queryAccountSendingPausedExceptionResponse(parsedOutput, context)),
|
|
3153
|
-
name: errorCode,
|
|
3154
|
-
$metadata: deserializeMetadata(output),
|
|
3155
|
-
};
|
|
3156
|
-
break;
|
|
2617
|
+
throw await deserializeAws_queryAccountSendingPausedExceptionResponse(parsedOutput, context);
|
|
3157
2618
|
case "ConfigurationSetDoesNotExistException":
|
|
3158
2619
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
3159
|
-
|
|
3160
|
-
...(await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
3161
|
-
name: errorCode,
|
|
3162
|
-
$metadata: deserializeMetadata(output),
|
|
3163
|
-
};
|
|
3164
|
-
break;
|
|
2620
|
+
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3165
2621
|
case "ConfigurationSetSendingPausedException":
|
|
3166
2622
|
case "com.amazonaws.ses#ConfigurationSetSendingPausedException":
|
|
3167
|
-
|
|
3168
|
-
...(await deserializeAws_queryConfigurationSetSendingPausedExceptionResponse(parsedOutput, context)),
|
|
3169
|
-
name: errorCode,
|
|
3170
|
-
$metadata: deserializeMetadata(output),
|
|
3171
|
-
};
|
|
3172
|
-
break;
|
|
2623
|
+
throw await deserializeAws_queryConfigurationSetSendingPausedExceptionResponse(parsedOutput, context);
|
|
3173
2624
|
case "MailFromDomainNotVerifiedException":
|
|
3174
2625
|
case "com.amazonaws.ses#MailFromDomainNotVerifiedException":
|
|
3175
|
-
|
|
3176
|
-
...(await deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)),
|
|
3177
|
-
name: errorCode,
|
|
3178
|
-
$metadata: deserializeMetadata(output),
|
|
3179
|
-
};
|
|
3180
|
-
break;
|
|
2626
|
+
throw await deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse(parsedOutput, context);
|
|
3181
2627
|
case "MessageRejected":
|
|
3182
2628
|
case "com.amazonaws.ses#MessageRejected":
|
|
3183
|
-
|
|
3184
|
-
...(await deserializeAws_queryMessageRejectedResponse(parsedOutput, context)),
|
|
3185
|
-
name: errorCode,
|
|
3186
|
-
$metadata: deserializeMetadata(output),
|
|
3187
|
-
};
|
|
3188
|
-
break;
|
|
2629
|
+
throw await deserializeAws_queryMessageRejectedResponse(parsedOutput, context);
|
|
3189
2630
|
case "TemplateDoesNotExistException":
|
|
3190
2631
|
case "com.amazonaws.ses#TemplateDoesNotExistException":
|
|
3191
|
-
|
|
3192
|
-
...(await deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
3193
|
-
name: errorCode,
|
|
3194
|
-
$metadata: deserializeMetadata(output),
|
|
3195
|
-
};
|
|
3196
|
-
break;
|
|
2632
|
+
throw await deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3197
2633
|
default:
|
|
3198
2634
|
const parsedBody = parsedOutput.body;
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
...parsedBody.Error,
|
|
3202
|
-
name: `${errorCode}`,
|
|
3203
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2635
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2636
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3204
2637
|
$fault: "client",
|
|
3205
2638
|
$metadata: deserializeMetadata(output),
|
|
3206
|
-
};
|
|
2639
|
+
});
|
|
2640
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3207
2641
|
}
|
|
3208
|
-
const message = response.message || response.Message || errorCode;
|
|
3209
|
-
response.message = message;
|
|
3210
|
-
delete response.Message;
|
|
3211
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3212
2642
|
};
|
|
3213
2643
|
const deserializeAws_querySendCustomVerificationEmailCommand = async (output, context) => {
|
|
3214
2644
|
if (output.statusCode >= 300) {
|
|
@@ -3235,59 +2665,28 @@ const deserializeAws_querySendCustomVerificationEmailCommandError = async (outpu
|
|
|
3235
2665
|
switch (errorCode) {
|
|
3236
2666
|
case "ConfigurationSetDoesNotExistException":
|
|
3237
2667
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
3238
|
-
|
|
3239
|
-
...(await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
3240
|
-
name: errorCode,
|
|
3241
|
-
$metadata: deserializeMetadata(output),
|
|
3242
|
-
};
|
|
3243
|
-
break;
|
|
2668
|
+
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3244
2669
|
case "CustomVerificationEmailTemplateDoesNotExistException":
|
|
3245
2670
|
case "com.amazonaws.ses#CustomVerificationEmailTemplateDoesNotExistException":
|
|
3246
|
-
|
|
3247
|
-
...(await deserializeAws_queryCustomVerificationEmailTemplateDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
3248
|
-
name: errorCode,
|
|
3249
|
-
$metadata: deserializeMetadata(output),
|
|
3250
|
-
};
|
|
3251
|
-
break;
|
|
2671
|
+
throw await deserializeAws_queryCustomVerificationEmailTemplateDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3252
2672
|
case "FromEmailAddressNotVerifiedException":
|
|
3253
2673
|
case "com.amazonaws.ses#FromEmailAddressNotVerifiedException":
|
|
3254
|
-
|
|
3255
|
-
...(await deserializeAws_queryFromEmailAddressNotVerifiedExceptionResponse(parsedOutput, context)),
|
|
3256
|
-
name: errorCode,
|
|
3257
|
-
$metadata: deserializeMetadata(output),
|
|
3258
|
-
};
|
|
3259
|
-
break;
|
|
2674
|
+
throw await deserializeAws_queryFromEmailAddressNotVerifiedExceptionResponse(parsedOutput, context);
|
|
3260
2675
|
case "MessageRejected":
|
|
3261
2676
|
case "com.amazonaws.ses#MessageRejected":
|
|
3262
|
-
|
|
3263
|
-
...(await deserializeAws_queryMessageRejectedResponse(parsedOutput, context)),
|
|
3264
|
-
name: errorCode,
|
|
3265
|
-
$metadata: deserializeMetadata(output),
|
|
3266
|
-
};
|
|
3267
|
-
break;
|
|
2677
|
+
throw await deserializeAws_queryMessageRejectedResponse(parsedOutput, context);
|
|
3268
2678
|
case "ProductionAccessNotGrantedException":
|
|
3269
2679
|
case "com.amazonaws.ses#ProductionAccessNotGrantedException":
|
|
3270
|
-
|
|
3271
|
-
...(await deserializeAws_queryProductionAccessNotGrantedExceptionResponse(parsedOutput, context)),
|
|
3272
|
-
name: errorCode,
|
|
3273
|
-
$metadata: deserializeMetadata(output),
|
|
3274
|
-
};
|
|
3275
|
-
break;
|
|
2680
|
+
throw await deserializeAws_queryProductionAccessNotGrantedExceptionResponse(parsedOutput, context);
|
|
3276
2681
|
default:
|
|
3277
2682
|
const parsedBody = parsedOutput.body;
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
...parsedBody.Error,
|
|
3281
|
-
name: `${errorCode}`,
|
|
3282
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2683
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2684
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3283
2685
|
$fault: "client",
|
|
3284
2686
|
$metadata: deserializeMetadata(output),
|
|
3285
|
-
};
|
|
2687
|
+
});
|
|
2688
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3286
2689
|
}
|
|
3287
|
-
const message = response.message || response.Message || errorCode;
|
|
3288
|
-
response.message = message;
|
|
3289
|
-
delete response.Message;
|
|
3290
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3291
2690
|
};
|
|
3292
2691
|
const deserializeAws_querySendEmailCommand = async (output, context) => {
|
|
3293
2692
|
if (output.statusCode >= 300) {
|
|
@@ -3314,59 +2713,28 @@ const deserializeAws_querySendEmailCommandError = async (output, context) => {
|
|
|
3314
2713
|
switch (errorCode) {
|
|
3315
2714
|
case "AccountSendingPausedException":
|
|
3316
2715
|
case "com.amazonaws.ses#AccountSendingPausedException":
|
|
3317
|
-
|
|
3318
|
-
...(await deserializeAws_queryAccountSendingPausedExceptionResponse(parsedOutput, context)),
|
|
3319
|
-
name: errorCode,
|
|
3320
|
-
$metadata: deserializeMetadata(output),
|
|
3321
|
-
};
|
|
3322
|
-
break;
|
|
2716
|
+
throw await deserializeAws_queryAccountSendingPausedExceptionResponse(parsedOutput, context);
|
|
3323
2717
|
case "ConfigurationSetDoesNotExistException":
|
|
3324
2718
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
3325
|
-
|
|
3326
|
-
...(await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
3327
|
-
name: errorCode,
|
|
3328
|
-
$metadata: deserializeMetadata(output),
|
|
3329
|
-
};
|
|
3330
|
-
break;
|
|
2719
|
+
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3331
2720
|
case "ConfigurationSetSendingPausedException":
|
|
3332
2721
|
case "com.amazonaws.ses#ConfigurationSetSendingPausedException":
|
|
3333
|
-
|
|
3334
|
-
...(await deserializeAws_queryConfigurationSetSendingPausedExceptionResponse(parsedOutput, context)),
|
|
3335
|
-
name: errorCode,
|
|
3336
|
-
$metadata: deserializeMetadata(output),
|
|
3337
|
-
};
|
|
3338
|
-
break;
|
|
2722
|
+
throw await deserializeAws_queryConfigurationSetSendingPausedExceptionResponse(parsedOutput, context);
|
|
3339
2723
|
case "MailFromDomainNotVerifiedException":
|
|
3340
2724
|
case "com.amazonaws.ses#MailFromDomainNotVerifiedException":
|
|
3341
|
-
|
|
3342
|
-
...(await deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)),
|
|
3343
|
-
name: errorCode,
|
|
3344
|
-
$metadata: deserializeMetadata(output),
|
|
3345
|
-
};
|
|
3346
|
-
break;
|
|
2725
|
+
throw await deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse(parsedOutput, context);
|
|
3347
2726
|
case "MessageRejected":
|
|
3348
2727
|
case "com.amazonaws.ses#MessageRejected":
|
|
3349
|
-
|
|
3350
|
-
...(await deserializeAws_queryMessageRejectedResponse(parsedOutput, context)),
|
|
3351
|
-
name: errorCode,
|
|
3352
|
-
$metadata: deserializeMetadata(output),
|
|
3353
|
-
};
|
|
3354
|
-
break;
|
|
2728
|
+
throw await deserializeAws_queryMessageRejectedResponse(parsedOutput, context);
|
|
3355
2729
|
default:
|
|
3356
2730
|
const parsedBody = parsedOutput.body;
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
...parsedBody.Error,
|
|
3360
|
-
name: `${errorCode}`,
|
|
3361
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2731
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2732
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3362
2733
|
$fault: "client",
|
|
3363
2734
|
$metadata: deserializeMetadata(output),
|
|
3364
|
-
};
|
|
2735
|
+
});
|
|
2736
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3365
2737
|
}
|
|
3366
|
-
const message = response.message || response.Message || errorCode;
|
|
3367
|
-
response.message = message;
|
|
3368
|
-
delete response.Message;
|
|
3369
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3370
2738
|
};
|
|
3371
2739
|
const deserializeAws_querySendRawEmailCommand = async (output, context) => {
|
|
3372
2740
|
if (output.statusCode >= 300) {
|
|
@@ -3393,59 +2761,28 @@ const deserializeAws_querySendRawEmailCommandError = async (output, context) =>
|
|
|
3393
2761
|
switch (errorCode) {
|
|
3394
2762
|
case "AccountSendingPausedException":
|
|
3395
2763
|
case "com.amazonaws.ses#AccountSendingPausedException":
|
|
3396
|
-
|
|
3397
|
-
...(await deserializeAws_queryAccountSendingPausedExceptionResponse(parsedOutput, context)),
|
|
3398
|
-
name: errorCode,
|
|
3399
|
-
$metadata: deserializeMetadata(output),
|
|
3400
|
-
};
|
|
3401
|
-
break;
|
|
2764
|
+
throw await deserializeAws_queryAccountSendingPausedExceptionResponse(parsedOutput, context);
|
|
3402
2765
|
case "ConfigurationSetDoesNotExistException":
|
|
3403
2766
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
3404
|
-
|
|
3405
|
-
...(await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
3406
|
-
name: errorCode,
|
|
3407
|
-
$metadata: deserializeMetadata(output),
|
|
3408
|
-
};
|
|
3409
|
-
break;
|
|
2767
|
+
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3410
2768
|
case "ConfigurationSetSendingPausedException":
|
|
3411
2769
|
case "com.amazonaws.ses#ConfigurationSetSendingPausedException":
|
|
3412
|
-
|
|
3413
|
-
...(await deserializeAws_queryConfigurationSetSendingPausedExceptionResponse(parsedOutput, context)),
|
|
3414
|
-
name: errorCode,
|
|
3415
|
-
$metadata: deserializeMetadata(output),
|
|
3416
|
-
};
|
|
3417
|
-
break;
|
|
2770
|
+
throw await deserializeAws_queryConfigurationSetSendingPausedExceptionResponse(parsedOutput, context);
|
|
3418
2771
|
case "MailFromDomainNotVerifiedException":
|
|
3419
2772
|
case "com.amazonaws.ses#MailFromDomainNotVerifiedException":
|
|
3420
|
-
|
|
3421
|
-
...(await deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)),
|
|
3422
|
-
name: errorCode,
|
|
3423
|
-
$metadata: deserializeMetadata(output),
|
|
3424
|
-
};
|
|
3425
|
-
break;
|
|
2773
|
+
throw await deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse(parsedOutput, context);
|
|
3426
2774
|
case "MessageRejected":
|
|
3427
2775
|
case "com.amazonaws.ses#MessageRejected":
|
|
3428
|
-
|
|
3429
|
-
...(await deserializeAws_queryMessageRejectedResponse(parsedOutput, context)),
|
|
3430
|
-
name: errorCode,
|
|
3431
|
-
$metadata: deserializeMetadata(output),
|
|
3432
|
-
};
|
|
3433
|
-
break;
|
|
2776
|
+
throw await deserializeAws_queryMessageRejectedResponse(parsedOutput, context);
|
|
3434
2777
|
default:
|
|
3435
2778
|
const parsedBody = parsedOutput.body;
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
...parsedBody.Error,
|
|
3439
|
-
name: `${errorCode}`,
|
|
3440
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2779
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2780
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3441
2781
|
$fault: "client",
|
|
3442
2782
|
$metadata: deserializeMetadata(output),
|
|
3443
|
-
};
|
|
2783
|
+
});
|
|
2784
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3444
2785
|
}
|
|
3445
|
-
const message = response.message || response.Message || errorCode;
|
|
3446
|
-
response.message = message;
|
|
3447
|
-
delete response.Message;
|
|
3448
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3449
2786
|
};
|
|
3450
2787
|
const deserializeAws_querySendTemplatedEmailCommand = async (output, context) => {
|
|
3451
2788
|
if (output.statusCode >= 300) {
|
|
@@ -3472,67 +2809,31 @@ const deserializeAws_querySendTemplatedEmailCommandError = async (output, contex
|
|
|
3472
2809
|
switch (errorCode) {
|
|
3473
2810
|
case "AccountSendingPausedException":
|
|
3474
2811
|
case "com.amazonaws.ses#AccountSendingPausedException":
|
|
3475
|
-
|
|
3476
|
-
...(await deserializeAws_queryAccountSendingPausedExceptionResponse(parsedOutput, context)),
|
|
3477
|
-
name: errorCode,
|
|
3478
|
-
$metadata: deserializeMetadata(output),
|
|
3479
|
-
};
|
|
3480
|
-
break;
|
|
2812
|
+
throw await deserializeAws_queryAccountSendingPausedExceptionResponse(parsedOutput, context);
|
|
3481
2813
|
case "ConfigurationSetDoesNotExistException":
|
|
3482
2814
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
3483
|
-
|
|
3484
|
-
...(await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
3485
|
-
name: errorCode,
|
|
3486
|
-
$metadata: deserializeMetadata(output),
|
|
3487
|
-
};
|
|
3488
|
-
break;
|
|
2815
|
+
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3489
2816
|
case "ConfigurationSetSendingPausedException":
|
|
3490
2817
|
case "com.amazonaws.ses#ConfigurationSetSendingPausedException":
|
|
3491
|
-
|
|
3492
|
-
...(await deserializeAws_queryConfigurationSetSendingPausedExceptionResponse(parsedOutput, context)),
|
|
3493
|
-
name: errorCode,
|
|
3494
|
-
$metadata: deserializeMetadata(output),
|
|
3495
|
-
};
|
|
3496
|
-
break;
|
|
2818
|
+
throw await deserializeAws_queryConfigurationSetSendingPausedExceptionResponse(parsedOutput, context);
|
|
3497
2819
|
case "MailFromDomainNotVerifiedException":
|
|
3498
2820
|
case "com.amazonaws.ses#MailFromDomainNotVerifiedException":
|
|
3499
|
-
|
|
3500
|
-
...(await deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse(parsedOutput, context)),
|
|
3501
|
-
name: errorCode,
|
|
3502
|
-
$metadata: deserializeMetadata(output),
|
|
3503
|
-
};
|
|
3504
|
-
break;
|
|
2821
|
+
throw await deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse(parsedOutput, context);
|
|
3505
2822
|
case "MessageRejected":
|
|
3506
2823
|
case "com.amazonaws.ses#MessageRejected":
|
|
3507
|
-
|
|
3508
|
-
...(await deserializeAws_queryMessageRejectedResponse(parsedOutput, context)),
|
|
3509
|
-
name: errorCode,
|
|
3510
|
-
$metadata: deserializeMetadata(output),
|
|
3511
|
-
};
|
|
3512
|
-
break;
|
|
2824
|
+
throw await deserializeAws_queryMessageRejectedResponse(parsedOutput, context);
|
|
3513
2825
|
case "TemplateDoesNotExistException":
|
|
3514
2826
|
case "com.amazonaws.ses#TemplateDoesNotExistException":
|
|
3515
|
-
|
|
3516
|
-
...(await deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
3517
|
-
name: errorCode,
|
|
3518
|
-
$metadata: deserializeMetadata(output),
|
|
3519
|
-
};
|
|
3520
|
-
break;
|
|
2827
|
+
throw await deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3521
2828
|
default:
|
|
3522
2829
|
const parsedBody = parsedOutput.body;
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
...parsedBody.Error,
|
|
3526
|
-
name: `${errorCode}`,
|
|
3527
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2830
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2831
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3528
2832
|
$fault: "client",
|
|
3529
2833
|
$metadata: deserializeMetadata(output),
|
|
3530
|
-
};
|
|
2834
|
+
});
|
|
2835
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3531
2836
|
}
|
|
3532
|
-
const message = response.message || response.Message || errorCode;
|
|
3533
|
-
response.message = message;
|
|
3534
|
-
delete response.Message;
|
|
3535
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3536
2837
|
};
|
|
3537
2838
|
const deserializeAws_querySetActiveReceiptRuleSetCommand = async (output, context) => {
|
|
3538
2839
|
if (output.statusCode >= 300) {
|
|
@@ -3559,27 +2860,16 @@ const deserializeAws_querySetActiveReceiptRuleSetCommandError = async (output, c
|
|
|
3559
2860
|
switch (errorCode) {
|
|
3560
2861
|
case "RuleSetDoesNotExistException":
|
|
3561
2862
|
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
3562
|
-
|
|
3563
|
-
...(await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
3564
|
-
name: errorCode,
|
|
3565
|
-
$metadata: deserializeMetadata(output),
|
|
3566
|
-
};
|
|
3567
|
-
break;
|
|
2863
|
+
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3568
2864
|
default:
|
|
3569
2865
|
const parsedBody = parsedOutput.body;
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
...parsedBody.Error,
|
|
3573
|
-
name: `${errorCode}`,
|
|
3574
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2866
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2867
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3575
2868
|
$fault: "client",
|
|
3576
2869
|
$metadata: deserializeMetadata(output),
|
|
3577
|
-
};
|
|
2870
|
+
});
|
|
2871
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3578
2872
|
}
|
|
3579
|
-
const message = response.message || response.Message || errorCode;
|
|
3580
|
-
response.message = message;
|
|
3581
|
-
delete response.Message;
|
|
3582
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3583
2873
|
};
|
|
3584
2874
|
const deserializeAws_querySetIdentityDkimEnabledCommand = async (output, context) => {
|
|
3585
2875
|
if (output.statusCode >= 300) {
|
|
@@ -3606,19 +2896,13 @@ const deserializeAws_querySetIdentityDkimEnabledCommandError = async (output, co
|
|
|
3606
2896
|
switch (errorCode) {
|
|
3607
2897
|
default:
|
|
3608
2898
|
const parsedBody = parsedOutput.body;
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
...parsedBody.Error,
|
|
3612
|
-
name: `${errorCode}`,
|
|
3613
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2899
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2900
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3614
2901
|
$fault: "client",
|
|
3615
2902
|
$metadata: deserializeMetadata(output),
|
|
3616
|
-
};
|
|
2903
|
+
});
|
|
2904
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3617
2905
|
}
|
|
3618
|
-
const message = response.message || response.Message || errorCode;
|
|
3619
|
-
response.message = message;
|
|
3620
|
-
delete response.Message;
|
|
3621
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3622
2906
|
};
|
|
3623
2907
|
const deserializeAws_querySetIdentityFeedbackForwardingEnabledCommand = async (output, context) => {
|
|
3624
2908
|
if (output.statusCode >= 300) {
|
|
@@ -3645,19 +2929,13 @@ const deserializeAws_querySetIdentityFeedbackForwardingEnabledCommandError = asy
|
|
|
3645
2929
|
switch (errorCode) {
|
|
3646
2930
|
default:
|
|
3647
2931
|
const parsedBody = parsedOutput.body;
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
...parsedBody.Error,
|
|
3651
|
-
name: `${errorCode}`,
|
|
3652
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2932
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2933
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3653
2934
|
$fault: "client",
|
|
3654
2935
|
$metadata: deserializeMetadata(output),
|
|
3655
|
-
};
|
|
2936
|
+
});
|
|
2937
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3656
2938
|
}
|
|
3657
|
-
const message = response.message || response.Message || errorCode;
|
|
3658
|
-
response.message = message;
|
|
3659
|
-
delete response.Message;
|
|
3660
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3661
2939
|
};
|
|
3662
2940
|
const deserializeAws_querySetIdentityHeadersInNotificationsEnabledCommand = async (output, context) => {
|
|
3663
2941
|
if (output.statusCode >= 300) {
|
|
@@ -3684,19 +2962,13 @@ const deserializeAws_querySetIdentityHeadersInNotificationsEnabledCommandError =
|
|
|
3684
2962
|
switch (errorCode) {
|
|
3685
2963
|
default:
|
|
3686
2964
|
const parsedBody = parsedOutput.body;
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
...parsedBody.Error,
|
|
3690
|
-
name: `${errorCode}`,
|
|
3691
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2965
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2966
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3692
2967
|
$fault: "client",
|
|
3693
2968
|
$metadata: deserializeMetadata(output),
|
|
3694
|
-
};
|
|
2969
|
+
});
|
|
2970
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3695
2971
|
}
|
|
3696
|
-
const message = response.message || response.Message || errorCode;
|
|
3697
|
-
response.message = message;
|
|
3698
|
-
delete response.Message;
|
|
3699
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3700
2972
|
};
|
|
3701
2973
|
const deserializeAws_querySetIdentityMailFromDomainCommand = async (output, context) => {
|
|
3702
2974
|
if (output.statusCode >= 300) {
|
|
@@ -3723,19 +2995,13 @@ const deserializeAws_querySetIdentityMailFromDomainCommandError = async (output,
|
|
|
3723
2995
|
switch (errorCode) {
|
|
3724
2996
|
default:
|
|
3725
2997
|
const parsedBody = parsedOutput.body;
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
...parsedBody.Error,
|
|
3729
|
-
name: `${errorCode}`,
|
|
3730
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
2998
|
+
response = new SESServiceException_1.SESServiceException({
|
|
2999
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3731
3000
|
$fault: "client",
|
|
3732
3001
|
$metadata: deserializeMetadata(output),
|
|
3733
|
-
};
|
|
3002
|
+
});
|
|
3003
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3734
3004
|
}
|
|
3735
|
-
const message = response.message || response.Message || errorCode;
|
|
3736
|
-
response.message = message;
|
|
3737
|
-
delete response.Message;
|
|
3738
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3739
3005
|
};
|
|
3740
3006
|
const deserializeAws_querySetIdentityNotificationTopicCommand = async (output, context) => {
|
|
3741
3007
|
if (output.statusCode >= 300) {
|
|
@@ -3762,19 +3028,13 @@ const deserializeAws_querySetIdentityNotificationTopicCommandError = async (outp
|
|
|
3762
3028
|
switch (errorCode) {
|
|
3763
3029
|
default:
|
|
3764
3030
|
const parsedBody = parsedOutput.body;
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
...parsedBody.Error,
|
|
3768
|
-
name: `${errorCode}`,
|
|
3769
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3031
|
+
response = new SESServiceException_1.SESServiceException({
|
|
3032
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3770
3033
|
$fault: "client",
|
|
3771
3034
|
$metadata: deserializeMetadata(output),
|
|
3772
|
-
};
|
|
3035
|
+
});
|
|
3036
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3773
3037
|
}
|
|
3774
|
-
const message = response.message || response.Message || errorCode;
|
|
3775
|
-
response.message = message;
|
|
3776
|
-
delete response.Message;
|
|
3777
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3778
3038
|
};
|
|
3779
3039
|
const deserializeAws_querySetReceiptRulePositionCommand = async (output, context) => {
|
|
3780
3040
|
if (output.statusCode >= 300) {
|
|
@@ -3801,35 +3061,19 @@ const deserializeAws_querySetReceiptRulePositionCommandError = async (output, co
|
|
|
3801
3061
|
switch (errorCode) {
|
|
3802
3062
|
case "RuleDoesNotExistException":
|
|
3803
3063
|
case "com.amazonaws.ses#RuleDoesNotExistException":
|
|
3804
|
-
|
|
3805
|
-
...(await deserializeAws_queryRuleDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
3806
|
-
name: errorCode,
|
|
3807
|
-
$metadata: deserializeMetadata(output),
|
|
3808
|
-
};
|
|
3809
|
-
break;
|
|
3064
|
+
throw await deserializeAws_queryRuleDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3810
3065
|
case "RuleSetDoesNotExistException":
|
|
3811
3066
|
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
3812
|
-
|
|
3813
|
-
...(await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
3814
|
-
name: errorCode,
|
|
3815
|
-
$metadata: deserializeMetadata(output),
|
|
3816
|
-
};
|
|
3817
|
-
break;
|
|
3067
|
+
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3818
3068
|
default:
|
|
3819
3069
|
const parsedBody = parsedOutput.body;
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
...parsedBody.Error,
|
|
3823
|
-
name: `${errorCode}`,
|
|
3824
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3070
|
+
response = new SESServiceException_1.SESServiceException({
|
|
3071
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3825
3072
|
$fault: "client",
|
|
3826
3073
|
$metadata: deserializeMetadata(output),
|
|
3827
|
-
};
|
|
3074
|
+
});
|
|
3075
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3828
3076
|
}
|
|
3829
|
-
const message = response.message || response.Message || errorCode;
|
|
3830
|
-
response.message = message;
|
|
3831
|
-
delete response.Message;
|
|
3832
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3833
3077
|
};
|
|
3834
3078
|
const deserializeAws_queryTestRenderTemplateCommand = async (output, context) => {
|
|
3835
3079
|
if (output.statusCode >= 300) {
|
|
@@ -3856,43 +3100,22 @@ const deserializeAws_queryTestRenderTemplateCommandError = async (output, contex
|
|
|
3856
3100
|
switch (errorCode) {
|
|
3857
3101
|
case "InvalidRenderingParameterException":
|
|
3858
3102
|
case "com.amazonaws.ses#InvalidRenderingParameterException":
|
|
3859
|
-
|
|
3860
|
-
...(await deserializeAws_queryInvalidRenderingParameterExceptionResponse(parsedOutput, context)),
|
|
3861
|
-
name: errorCode,
|
|
3862
|
-
$metadata: deserializeMetadata(output),
|
|
3863
|
-
};
|
|
3864
|
-
break;
|
|
3103
|
+
throw await deserializeAws_queryInvalidRenderingParameterExceptionResponse(parsedOutput, context);
|
|
3865
3104
|
case "MissingRenderingAttributeException":
|
|
3866
3105
|
case "com.amazonaws.ses#MissingRenderingAttributeException":
|
|
3867
|
-
|
|
3868
|
-
...(await deserializeAws_queryMissingRenderingAttributeExceptionResponse(parsedOutput, context)),
|
|
3869
|
-
name: errorCode,
|
|
3870
|
-
$metadata: deserializeMetadata(output),
|
|
3871
|
-
};
|
|
3872
|
-
break;
|
|
3106
|
+
throw await deserializeAws_queryMissingRenderingAttributeExceptionResponse(parsedOutput, context);
|
|
3873
3107
|
case "TemplateDoesNotExistException":
|
|
3874
3108
|
case "com.amazonaws.ses#TemplateDoesNotExistException":
|
|
3875
|
-
|
|
3876
|
-
...(await deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
3877
|
-
name: errorCode,
|
|
3878
|
-
$metadata: deserializeMetadata(output),
|
|
3879
|
-
};
|
|
3880
|
-
break;
|
|
3109
|
+
throw await deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3881
3110
|
default:
|
|
3882
3111
|
const parsedBody = parsedOutput.body;
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
...parsedBody.Error,
|
|
3886
|
-
name: `${errorCode}`,
|
|
3887
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3112
|
+
response = new SESServiceException_1.SESServiceException({
|
|
3113
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3888
3114
|
$fault: "client",
|
|
3889
3115
|
$metadata: deserializeMetadata(output),
|
|
3890
|
-
};
|
|
3116
|
+
});
|
|
3117
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3891
3118
|
}
|
|
3892
|
-
const message = response.message || response.Message || errorCode;
|
|
3893
|
-
response.message = message;
|
|
3894
|
-
delete response.Message;
|
|
3895
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3896
3119
|
};
|
|
3897
3120
|
const deserializeAws_queryUpdateAccountSendingEnabledCommand = async (output, context) => {
|
|
3898
3121
|
if (output.statusCode >= 300) {
|
|
@@ -3916,19 +3139,13 @@ const deserializeAws_queryUpdateAccountSendingEnabledCommandError = async (outpu
|
|
|
3916
3139
|
switch (errorCode) {
|
|
3917
3140
|
default:
|
|
3918
3141
|
const parsedBody = parsedOutput.body;
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
...parsedBody.Error,
|
|
3922
|
-
name: `${errorCode}`,
|
|
3923
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3142
|
+
response = new SESServiceException_1.SESServiceException({
|
|
3143
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
3924
3144
|
$fault: "client",
|
|
3925
3145
|
$metadata: deserializeMetadata(output),
|
|
3926
|
-
};
|
|
3146
|
+
});
|
|
3147
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
3927
3148
|
}
|
|
3928
|
-
const message = response.message || response.Message || errorCode;
|
|
3929
|
-
response.message = message;
|
|
3930
|
-
delete response.Message;
|
|
3931
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3932
3149
|
};
|
|
3933
3150
|
const deserializeAws_queryUpdateConfigurationSetEventDestinationCommand = async (output, context) => {
|
|
3934
3151
|
if (output.statusCode >= 300) {
|
|
@@ -3955,59 +3172,28 @@ const deserializeAws_queryUpdateConfigurationSetEventDestinationCommandError = a
|
|
|
3955
3172
|
switch (errorCode) {
|
|
3956
3173
|
case "ConfigurationSetDoesNotExistException":
|
|
3957
3174
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
3958
|
-
|
|
3959
|
-
...(await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
3960
|
-
name: errorCode,
|
|
3961
|
-
$metadata: deserializeMetadata(output),
|
|
3962
|
-
};
|
|
3963
|
-
break;
|
|
3175
|
+
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3964
3176
|
case "EventDestinationDoesNotExistException":
|
|
3965
3177
|
case "com.amazonaws.ses#EventDestinationDoesNotExistException":
|
|
3966
|
-
|
|
3967
|
-
...(await deserializeAws_queryEventDestinationDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
3968
|
-
name: errorCode,
|
|
3969
|
-
$metadata: deserializeMetadata(output),
|
|
3970
|
-
};
|
|
3971
|
-
break;
|
|
3178
|
+
throw await deserializeAws_queryEventDestinationDoesNotExistExceptionResponse(parsedOutput, context);
|
|
3972
3179
|
case "InvalidCloudWatchDestinationException":
|
|
3973
3180
|
case "com.amazonaws.ses#InvalidCloudWatchDestinationException":
|
|
3974
|
-
|
|
3975
|
-
...(await deserializeAws_queryInvalidCloudWatchDestinationExceptionResponse(parsedOutput, context)),
|
|
3976
|
-
name: errorCode,
|
|
3977
|
-
$metadata: deserializeMetadata(output),
|
|
3978
|
-
};
|
|
3979
|
-
break;
|
|
3181
|
+
throw await deserializeAws_queryInvalidCloudWatchDestinationExceptionResponse(parsedOutput, context);
|
|
3980
3182
|
case "InvalidFirehoseDestinationException":
|
|
3981
3183
|
case "com.amazonaws.ses#InvalidFirehoseDestinationException":
|
|
3982
|
-
|
|
3983
|
-
...(await deserializeAws_queryInvalidFirehoseDestinationExceptionResponse(parsedOutput, context)),
|
|
3984
|
-
name: errorCode,
|
|
3985
|
-
$metadata: deserializeMetadata(output),
|
|
3986
|
-
};
|
|
3987
|
-
break;
|
|
3184
|
+
throw await deserializeAws_queryInvalidFirehoseDestinationExceptionResponse(parsedOutput, context);
|
|
3988
3185
|
case "InvalidSNSDestinationException":
|
|
3989
3186
|
case "com.amazonaws.ses#InvalidSNSDestinationException":
|
|
3990
|
-
|
|
3991
|
-
...(await deserializeAws_queryInvalidSNSDestinationExceptionResponse(parsedOutput, context)),
|
|
3992
|
-
name: errorCode,
|
|
3993
|
-
$metadata: deserializeMetadata(output),
|
|
3994
|
-
};
|
|
3995
|
-
break;
|
|
3187
|
+
throw await deserializeAws_queryInvalidSNSDestinationExceptionResponse(parsedOutput, context);
|
|
3996
3188
|
default:
|
|
3997
3189
|
const parsedBody = parsedOutput.body;
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
...parsedBody.Error,
|
|
4001
|
-
name: `${errorCode}`,
|
|
4002
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3190
|
+
response = new SESServiceException_1.SESServiceException({
|
|
3191
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4003
3192
|
$fault: "client",
|
|
4004
3193
|
$metadata: deserializeMetadata(output),
|
|
4005
|
-
};
|
|
3194
|
+
});
|
|
3195
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4006
3196
|
}
|
|
4007
|
-
const message = response.message || response.Message || errorCode;
|
|
4008
|
-
response.message = message;
|
|
4009
|
-
delete response.Message;
|
|
4010
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4011
3197
|
};
|
|
4012
3198
|
const deserializeAws_queryUpdateConfigurationSetReputationMetricsEnabledCommand = async (output, context) => {
|
|
4013
3199
|
if (output.statusCode >= 300) {
|
|
@@ -4031,27 +3217,16 @@ const deserializeAws_queryUpdateConfigurationSetReputationMetricsEnabledCommandE
|
|
|
4031
3217
|
switch (errorCode) {
|
|
4032
3218
|
case "ConfigurationSetDoesNotExistException":
|
|
4033
3219
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
4034
|
-
|
|
4035
|
-
...(await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
4036
|
-
name: errorCode,
|
|
4037
|
-
$metadata: deserializeMetadata(output),
|
|
4038
|
-
};
|
|
4039
|
-
break;
|
|
3220
|
+
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
4040
3221
|
default:
|
|
4041
3222
|
const parsedBody = parsedOutput.body;
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
...parsedBody.Error,
|
|
4045
|
-
name: `${errorCode}`,
|
|
4046
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3223
|
+
response = new SESServiceException_1.SESServiceException({
|
|
3224
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4047
3225
|
$fault: "client",
|
|
4048
3226
|
$metadata: deserializeMetadata(output),
|
|
4049
|
-
};
|
|
3227
|
+
});
|
|
3228
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4050
3229
|
}
|
|
4051
|
-
const message = response.message || response.Message || errorCode;
|
|
4052
|
-
response.message = message;
|
|
4053
|
-
delete response.Message;
|
|
4054
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4055
3230
|
};
|
|
4056
3231
|
const deserializeAws_queryUpdateConfigurationSetSendingEnabledCommand = async (output, context) => {
|
|
4057
3232
|
if (output.statusCode >= 300) {
|
|
@@ -4075,27 +3250,16 @@ const deserializeAws_queryUpdateConfigurationSetSendingEnabledCommandError = asy
|
|
|
4075
3250
|
switch (errorCode) {
|
|
4076
3251
|
case "ConfigurationSetDoesNotExistException":
|
|
4077
3252
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
4078
|
-
|
|
4079
|
-
...(await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
4080
|
-
name: errorCode,
|
|
4081
|
-
$metadata: deserializeMetadata(output),
|
|
4082
|
-
};
|
|
4083
|
-
break;
|
|
3253
|
+
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
4084
3254
|
default:
|
|
4085
3255
|
const parsedBody = parsedOutput.body;
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
...parsedBody.Error,
|
|
4089
|
-
name: `${errorCode}`,
|
|
4090
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3256
|
+
response = new SESServiceException_1.SESServiceException({
|
|
3257
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4091
3258
|
$fault: "client",
|
|
4092
3259
|
$metadata: deserializeMetadata(output),
|
|
4093
|
-
};
|
|
3260
|
+
});
|
|
3261
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4094
3262
|
}
|
|
4095
|
-
const message = response.message || response.Message || errorCode;
|
|
4096
|
-
response.message = message;
|
|
4097
|
-
delete response.Message;
|
|
4098
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4099
3263
|
};
|
|
4100
3264
|
const deserializeAws_queryUpdateConfigurationSetTrackingOptionsCommand = async (output, context) => {
|
|
4101
3265
|
if (output.statusCode >= 300) {
|
|
@@ -4122,43 +3286,22 @@ const deserializeAws_queryUpdateConfigurationSetTrackingOptionsCommandError = as
|
|
|
4122
3286
|
switch (errorCode) {
|
|
4123
3287
|
case "ConfigurationSetDoesNotExistException":
|
|
4124
3288
|
case "com.amazonaws.ses#ConfigurationSetDoesNotExistException":
|
|
4125
|
-
|
|
4126
|
-
...(await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
4127
|
-
name: errorCode,
|
|
4128
|
-
$metadata: deserializeMetadata(output),
|
|
4129
|
-
};
|
|
4130
|
-
break;
|
|
3289
|
+
throw await deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
4131
3290
|
case "InvalidTrackingOptionsException":
|
|
4132
3291
|
case "com.amazonaws.ses#InvalidTrackingOptionsException":
|
|
4133
|
-
|
|
4134
|
-
...(await deserializeAws_queryInvalidTrackingOptionsExceptionResponse(parsedOutput, context)),
|
|
4135
|
-
name: errorCode,
|
|
4136
|
-
$metadata: deserializeMetadata(output),
|
|
4137
|
-
};
|
|
4138
|
-
break;
|
|
3292
|
+
throw await deserializeAws_queryInvalidTrackingOptionsExceptionResponse(parsedOutput, context);
|
|
4139
3293
|
case "TrackingOptionsDoesNotExistException":
|
|
4140
3294
|
case "com.amazonaws.ses#TrackingOptionsDoesNotExistException":
|
|
4141
|
-
|
|
4142
|
-
...(await deserializeAws_queryTrackingOptionsDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
4143
|
-
name: errorCode,
|
|
4144
|
-
$metadata: deserializeMetadata(output),
|
|
4145
|
-
};
|
|
4146
|
-
break;
|
|
3295
|
+
throw await deserializeAws_queryTrackingOptionsDoesNotExistExceptionResponse(parsedOutput, context);
|
|
4147
3296
|
default:
|
|
4148
3297
|
const parsedBody = parsedOutput.body;
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
...parsedBody.Error,
|
|
4152
|
-
name: `${errorCode}`,
|
|
4153
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3298
|
+
response = new SESServiceException_1.SESServiceException({
|
|
3299
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4154
3300
|
$fault: "client",
|
|
4155
3301
|
$metadata: deserializeMetadata(output),
|
|
4156
|
-
};
|
|
3302
|
+
});
|
|
3303
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4157
3304
|
}
|
|
4158
|
-
const message = response.message || response.Message || errorCode;
|
|
4159
|
-
response.message = message;
|
|
4160
|
-
delete response.Message;
|
|
4161
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4162
3305
|
};
|
|
4163
3306
|
const deserializeAws_queryUpdateCustomVerificationEmailTemplateCommand = async (output, context) => {
|
|
4164
3307
|
if (output.statusCode >= 300) {
|
|
@@ -4182,43 +3325,22 @@ const deserializeAws_queryUpdateCustomVerificationEmailTemplateCommandError = as
|
|
|
4182
3325
|
switch (errorCode) {
|
|
4183
3326
|
case "CustomVerificationEmailInvalidContentException":
|
|
4184
3327
|
case "com.amazonaws.ses#CustomVerificationEmailInvalidContentException":
|
|
4185
|
-
|
|
4186
|
-
...(await deserializeAws_queryCustomVerificationEmailInvalidContentExceptionResponse(parsedOutput, context)),
|
|
4187
|
-
name: errorCode,
|
|
4188
|
-
$metadata: deserializeMetadata(output),
|
|
4189
|
-
};
|
|
4190
|
-
break;
|
|
3328
|
+
throw await deserializeAws_queryCustomVerificationEmailInvalidContentExceptionResponse(parsedOutput, context);
|
|
4191
3329
|
case "CustomVerificationEmailTemplateDoesNotExistException":
|
|
4192
3330
|
case "com.amazonaws.ses#CustomVerificationEmailTemplateDoesNotExistException":
|
|
4193
|
-
|
|
4194
|
-
...(await deserializeAws_queryCustomVerificationEmailTemplateDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
4195
|
-
name: errorCode,
|
|
4196
|
-
$metadata: deserializeMetadata(output),
|
|
4197
|
-
};
|
|
4198
|
-
break;
|
|
3331
|
+
throw await deserializeAws_queryCustomVerificationEmailTemplateDoesNotExistExceptionResponse(parsedOutput, context);
|
|
4199
3332
|
case "FromEmailAddressNotVerifiedException":
|
|
4200
3333
|
case "com.amazonaws.ses#FromEmailAddressNotVerifiedException":
|
|
4201
|
-
|
|
4202
|
-
...(await deserializeAws_queryFromEmailAddressNotVerifiedExceptionResponse(parsedOutput, context)),
|
|
4203
|
-
name: errorCode,
|
|
4204
|
-
$metadata: deserializeMetadata(output),
|
|
4205
|
-
};
|
|
4206
|
-
break;
|
|
3334
|
+
throw await deserializeAws_queryFromEmailAddressNotVerifiedExceptionResponse(parsedOutput, context);
|
|
4207
3335
|
default:
|
|
4208
3336
|
const parsedBody = parsedOutput.body;
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
...parsedBody.Error,
|
|
4212
|
-
name: `${errorCode}`,
|
|
4213
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3337
|
+
response = new SESServiceException_1.SESServiceException({
|
|
3338
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4214
3339
|
$fault: "client",
|
|
4215
3340
|
$metadata: deserializeMetadata(output),
|
|
4216
|
-
};
|
|
3341
|
+
});
|
|
3342
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4217
3343
|
}
|
|
4218
|
-
const message = response.message || response.Message || errorCode;
|
|
4219
|
-
response.message = message;
|
|
4220
|
-
delete response.Message;
|
|
4221
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4222
3344
|
};
|
|
4223
3345
|
const deserializeAws_queryUpdateReceiptRuleCommand = async (output, context) => {
|
|
4224
3346
|
if (output.statusCode >= 300) {
|
|
@@ -4245,67 +3367,31 @@ const deserializeAws_queryUpdateReceiptRuleCommandError = async (output, context
|
|
|
4245
3367
|
switch (errorCode) {
|
|
4246
3368
|
case "InvalidLambdaFunctionException":
|
|
4247
3369
|
case "com.amazonaws.ses#InvalidLambdaFunctionException":
|
|
4248
|
-
|
|
4249
|
-
...(await deserializeAws_queryInvalidLambdaFunctionExceptionResponse(parsedOutput, context)),
|
|
4250
|
-
name: errorCode,
|
|
4251
|
-
$metadata: deserializeMetadata(output),
|
|
4252
|
-
};
|
|
4253
|
-
break;
|
|
3370
|
+
throw await deserializeAws_queryInvalidLambdaFunctionExceptionResponse(parsedOutput, context);
|
|
4254
3371
|
case "InvalidS3ConfigurationException":
|
|
4255
3372
|
case "com.amazonaws.ses#InvalidS3ConfigurationException":
|
|
4256
|
-
|
|
4257
|
-
...(await deserializeAws_queryInvalidS3ConfigurationExceptionResponse(parsedOutput, context)),
|
|
4258
|
-
name: errorCode,
|
|
4259
|
-
$metadata: deserializeMetadata(output),
|
|
4260
|
-
};
|
|
4261
|
-
break;
|
|
3373
|
+
throw await deserializeAws_queryInvalidS3ConfigurationExceptionResponse(parsedOutput, context);
|
|
4262
3374
|
case "InvalidSnsTopicException":
|
|
4263
3375
|
case "com.amazonaws.ses#InvalidSnsTopicException":
|
|
4264
|
-
|
|
4265
|
-
...(await deserializeAws_queryInvalidSnsTopicExceptionResponse(parsedOutput, context)),
|
|
4266
|
-
name: errorCode,
|
|
4267
|
-
$metadata: deserializeMetadata(output),
|
|
4268
|
-
};
|
|
4269
|
-
break;
|
|
3376
|
+
throw await deserializeAws_queryInvalidSnsTopicExceptionResponse(parsedOutput, context);
|
|
4270
3377
|
case "LimitExceededException":
|
|
4271
3378
|
case "com.amazonaws.ses#LimitExceededException":
|
|
4272
|
-
|
|
4273
|
-
...(await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context)),
|
|
4274
|
-
name: errorCode,
|
|
4275
|
-
$metadata: deserializeMetadata(output),
|
|
4276
|
-
};
|
|
4277
|
-
break;
|
|
3379
|
+
throw await deserializeAws_queryLimitExceededExceptionResponse(parsedOutput, context);
|
|
4278
3380
|
case "RuleDoesNotExistException":
|
|
4279
3381
|
case "com.amazonaws.ses#RuleDoesNotExistException":
|
|
4280
|
-
|
|
4281
|
-
...(await deserializeAws_queryRuleDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
4282
|
-
name: errorCode,
|
|
4283
|
-
$metadata: deserializeMetadata(output),
|
|
4284
|
-
};
|
|
4285
|
-
break;
|
|
3382
|
+
throw await deserializeAws_queryRuleDoesNotExistExceptionResponse(parsedOutput, context);
|
|
4286
3383
|
case "RuleSetDoesNotExistException":
|
|
4287
3384
|
case "com.amazonaws.ses#RuleSetDoesNotExistException":
|
|
4288
|
-
|
|
4289
|
-
...(await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
4290
|
-
name: errorCode,
|
|
4291
|
-
$metadata: deserializeMetadata(output),
|
|
4292
|
-
};
|
|
4293
|
-
break;
|
|
3385
|
+
throw await deserializeAws_queryRuleSetDoesNotExistExceptionResponse(parsedOutput, context);
|
|
4294
3386
|
default:
|
|
4295
3387
|
const parsedBody = parsedOutput.body;
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
...parsedBody.Error,
|
|
4299
|
-
name: `${errorCode}`,
|
|
4300
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3388
|
+
response = new SESServiceException_1.SESServiceException({
|
|
3389
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4301
3390
|
$fault: "client",
|
|
4302
3391
|
$metadata: deserializeMetadata(output),
|
|
4303
|
-
};
|
|
3392
|
+
});
|
|
3393
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4304
3394
|
}
|
|
4305
|
-
const message = response.message || response.Message || errorCode;
|
|
4306
|
-
response.message = message;
|
|
4307
|
-
delete response.Message;
|
|
4308
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4309
3395
|
};
|
|
4310
3396
|
const deserializeAws_queryUpdateTemplateCommand = async (output, context) => {
|
|
4311
3397
|
if (output.statusCode >= 300) {
|
|
@@ -4332,35 +3418,19 @@ const deserializeAws_queryUpdateTemplateCommandError = async (output, context) =
|
|
|
4332
3418
|
switch (errorCode) {
|
|
4333
3419
|
case "InvalidTemplateException":
|
|
4334
3420
|
case "com.amazonaws.ses#InvalidTemplateException":
|
|
4335
|
-
|
|
4336
|
-
...(await deserializeAws_queryInvalidTemplateExceptionResponse(parsedOutput, context)),
|
|
4337
|
-
name: errorCode,
|
|
4338
|
-
$metadata: deserializeMetadata(output),
|
|
4339
|
-
};
|
|
4340
|
-
break;
|
|
3421
|
+
throw await deserializeAws_queryInvalidTemplateExceptionResponse(parsedOutput, context);
|
|
4341
3422
|
case "TemplateDoesNotExistException":
|
|
4342
3423
|
case "com.amazonaws.ses#TemplateDoesNotExistException":
|
|
4343
|
-
|
|
4344
|
-
...(await deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
4345
|
-
name: errorCode,
|
|
4346
|
-
$metadata: deserializeMetadata(output),
|
|
4347
|
-
};
|
|
4348
|
-
break;
|
|
3424
|
+
throw await deserializeAws_queryTemplateDoesNotExistExceptionResponse(parsedOutput, context);
|
|
4349
3425
|
default:
|
|
4350
3426
|
const parsedBody = parsedOutput.body;
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
...parsedBody.Error,
|
|
4354
|
-
name: `${errorCode}`,
|
|
4355
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3427
|
+
response = new SESServiceException_1.SESServiceException({
|
|
3428
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4356
3429
|
$fault: "client",
|
|
4357
3430
|
$metadata: deserializeMetadata(output),
|
|
4358
|
-
};
|
|
3431
|
+
});
|
|
3432
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4359
3433
|
}
|
|
4360
|
-
const message = response.message || response.Message || errorCode;
|
|
4361
|
-
response.message = message;
|
|
4362
|
-
delete response.Message;
|
|
4363
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4364
3434
|
};
|
|
4365
3435
|
const deserializeAws_queryVerifyDomainDkimCommand = async (output, context) => {
|
|
4366
3436
|
if (output.statusCode >= 300) {
|
|
@@ -4387,19 +3457,13 @@ const deserializeAws_queryVerifyDomainDkimCommandError = async (output, context)
|
|
|
4387
3457
|
switch (errorCode) {
|
|
4388
3458
|
default:
|
|
4389
3459
|
const parsedBody = parsedOutput.body;
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
...parsedBody.Error,
|
|
4393
|
-
name: `${errorCode}`,
|
|
4394
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3460
|
+
response = new SESServiceException_1.SESServiceException({
|
|
3461
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4395
3462
|
$fault: "client",
|
|
4396
3463
|
$metadata: deserializeMetadata(output),
|
|
4397
|
-
};
|
|
3464
|
+
});
|
|
3465
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4398
3466
|
}
|
|
4399
|
-
const message = response.message || response.Message || errorCode;
|
|
4400
|
-
response.message = message;
|
|
4401
|
-
delete response.Message;
|
|
4402
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4403
3467
|
};
|
|
4404
3468
|
const deserializeAws_queryVerifyDomainIdentityCommand = async (output, context) => {
|
|
4405
3469
|
if (output.statusCode >= 300) {
|
|
@@ -4426,19 +3490,13 @@ const deserializeAws_queryVerifyDomainIdentityCommandError = async (output, cont
|
|
|
4426
3490
|
switch (errorCode) {
|
|
4427
3491
|
default:
|
|
4428
3492
|
const parsedBody = parsedOutput.body;
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
...parsedBody.Error,
|
|
4432
|
-
name: `${errorCode}`,
|
|
4433
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3493
|
+
response = new SESServiceException_1.SESServiceException({
|
|
3494
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4434
3495
|
$fault: "client",
|
|
4435
3496
|
$metadata: deserializeMetadata(output),
|
|
4436
|
-
};
|
|
3497
|
+
});
|
|
3498
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4437
3499
|
}
|
|
4438
|
-
const message = response.message || response.Message || errorCode;
|
|
4439
|
-
response.message = message;
|
|
4440
|
-
delete response.Message;
|
|
4441
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4442
3500
|
};
|
|
4443
3501
|
const deserializeAws_queryVerifyEmailAddressCommand = async (output, context) => {
|
|
4444
3502
|
if (output.statusCode >= 300) {
|
|
@@ -4462,19 +3520,13 @@ const deserializeAws_queryVerifyEmailAddressCommandError = async (output, contex
|
|
|
4462
3520
|
switch (errorCode) {
|
|
4463
3521
|
default:
|
|
4464
3522
|
const parsedBody = parsedOutput.body;
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
...parsedBody.Error,
|
|
4468
|
-
name: `${errorCode}`,
|
|
4469
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3523
|
+
response = new SESServiceException_1.SESServiceException({
|
|
3524
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4470
3525
|
$fault: "client",
|
|
4471
3526
|
$metadata: deserializeMetadata(output),
|
|
4472
|
-
};
|
|
3527
|
+
});
|
|
3528
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4473
3529
|
}
|
|
4474
|
-
const message = response.message || response.Message || errorCode;
|
|
4475
|
-
response.message = message;
|
|
4476
|
-
delete response.Message;
|
|
4477
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4478
3530
|
};
|
|
4479
3531
|
const deserializeAws_queryVerifyEmailIdentityCommand = async (output, context) => {
|
|
4480
3532
|
if (output.statusCode >= 300) {
|
|
@@ -4501,393 +3553,319 @@ const deserializeAws_queryVerifyEmailIdentityCommandError = async (output, conte
|
|
|
4501
3553
|
switch (errorCode) {
|
|
4502
3554
|
default:
|
|
4503
3555
|
const parsedBody = parsedOutput.body;
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
...parsedBody.Error,
|
|
4507
|
-
name: `${errorCode}`,
|
|
4508
|
-
message: parsedBody.Error.message || parsedBody.Error.Message || errorCode,
|
|
3556
|
+
response = new SESServiceException_1.SESServiceException({
|
|
3557
|
+
name: parsedBody.Error.code || parsedBody.Error.Code || errorCode,
|
|
4509
3558
|
$fault: "client",
|
|
4510
3559
|
$metadata: deserializeMetadata(output),
|
|
4511
|
-
};
|
|
3560
|
+
});
|
|
3561
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
|
|
4512
3562
|
}
|
|
4513
|
-
const message = response.message || response.Message || errorCode;
|
|
4514
|
-
response.message = message;
|
|
4515
|
-
delete response.Message;
|
|
4516
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4517
3563
|
};
|
|
4518
3564
|
const deserializeAws_queryAccountSendingPausedExceptionResponse = async (parsedOutput, context) => {
|
|
4519
3565
|
const body = parsedOutput.body;
|
|
4520
3566
|
const deserialized = deserializeAws_queryAccountSendingPausedException(body.Error, context);
|
|
4521
|
-
const
|
|
4522
|
-
name: "AccountSendingPausedException",
|
|
4523
|
-
$fault: "client",
|
|
3567
|
+
const exception = new models_0_1.AccountSendingPausedException({
|
|
4524
3568
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4525
3569
|
...deserialized,
|
|
4526
|
-
};
|
|
4527
|
-
return
|
|
3570
|
+
});
|
|
3571
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4528
3572
|
};
|
|
4529
3573
|
const deserializeAws_queryAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
4530
3574
|
const body = parsedOutput.body;
|
|
4531
3575
|
const deserialized = deserializeAws_queryAlreadyExistsException(body.Error, context);
|
|
4532
|
-
const
|
|
4533
|
-
name: "AlreadyExistsException",
|
|
4534
|
-
$fault: "client",
|
|
3576
|
+
const exception = new models_0_1.AlreadyExistsException({
|
|
4535
3577
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4536
3578
|
...deserialized,
|
|
4537
|
-
};
|
|
4538
|
-
return
|
|
3579
|
+
});
|
|
3580
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4539
3581
|
};
|
|
4540
3582
|
const deserializeAws_queryCannotDeleteExceptionResponse = async (parsedOutput, context) => {
|
|
4541
3583
|
const body = parsedOutput.body;
|
|
4542
3584
|
const deserialized = deserializeAws_queryCannotDeleteException(body.Error, context);
|
|
4543
|
-
const
|
|
4544
|
-
name: "CannotDeleteException",
|
|
4545
|
-
$fault: "client",
|
|
3585
|
+
const exception = new models_0_1.CannotDeleteException({
|
|
4546
3586
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4547
3587
|
...deserialized,
|
|
4548
|
-
};
|
|
4549
|
-
return
|
|
3588
|
+
});
|
|
3589
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4550
3590
|
};
|
|
4551
3591
|
const deserializeAws_queryConfigurationSetAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
4552
3592
|
const body = parsedOutput.body;
|
|
4553
3593
|
const deserialized = deserializeAws_queryConfigurationSetAlreadyExistsException(body.Error, context);
|
|
4554
|
-
const
|
|
4555
|
-
name: "ConfigurationSetAlreadyExistsException",
|
|
4556
|
-
$fault: "client",
|
|
3594
|
+
const exception = new models_0_1.ConfigurationSetAlreadyExistsException({
|
|
4557
3595
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4558
3596
|
...deserialized,
|
|
4559
|
-
};
|
|
4560
|
-
return
|
|
3597
|
+
});
|
|
3598
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4561
3599
|
};
|
|
4562
3600
|
const deserializeAws_queryConfigurationSetDoesNotExistExceptionResponse = async (parsedOutput, context) => {
|
|
4563
3601
|
const body = parsedOutput.body;
|
|
4564
3602
|
const deserialized = deserializeAws_queryConfigurationSetDoesNotExistException(body.Error, context);
|
|
4565
|
-
const
|
|
4566
|
-
name: "ConfigurationSetDoesNotExistException",
|
|
4567
|
-
$fault: "client",
|
|
3603
|
+
const exception = new models_0_1.ConfigurationSetDoesNotExistException({
|
|
4568
3604
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4569
3605
|
...deserialized,
|
|
4570
|
-
};
|
|
4571
|
-
return
|
|
3606
|
+
});
|
|
3607
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4572
3608
|
};
|
|
4573
3609
|
const deserializeAws_queryConfigurationSetSendingPausedExceptionResponse = async (parsedOutput, context) => {
|
|
4574
3610
|
const body = parsedOutput.body;
|
|
4575
3611
|
const deserialized = deserializeAws_queryConfigurationSetSendingPausedException(body.Error, context);
|
|
4576
|
-
const
|
|
4577
|
-
name: "ConfigurationSetSendingPausedException",
|
|
4578
|
-
$fault: "client",
|
|
3612
|
+
const exception = new models_0_1.ConfigurationSetSendingPausedException({
|
|
4579
3613
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4580
3614
|
...deserialized,
|
|
4581
|
-
};
|
|
4582
|
-
return
|
|
3615
|
+
});
|
|
3616
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4583
3617
|
};
|
|
4584
3618
|
const deserializeAws_queryCustomVerificationEmailInvalidContentExceptionResponse = async (parsedOutput, context) => {
|
|
4585
3619
|
const body = parsedOutput.body;
|
|
4586
3620
|
const deserialized = deserializeAws_queryCustomVerificationEmailInvalidContentException(body.Error, context);
|
|
4587
|
-
const
|
|
4588
|
-
name: "CustomVerificationEmailInvalidContentException",
|
|
4589
|
-
$fault: "client",
|
|
3621
|
+
const exception = new models_0_1.CustomVerificationEmailInvalidContentException({
|
|
4590
3622
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4591
3623
|
...deserialized,
|
|
4592
|
-
};
|
|
4593
|
-
return
|
|
3624
|
+
});
|
|
3625
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4594
3626
|
};
|
|
4595
3627
|
const deserializeAws_queryCustomVerificationEmailTemplateAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
4596
3628
|
const body = parsedOutput.body;
|
|
4597
3629
|
const deserialized = deserializeAws_queryCustomVerificationEmailTemplateAlreadyExistsException(body.Error, context);
|
|
4598
|
-
const
|
|
4599
|
-
name: "CustomVerificationEmailTemplateAlreadyExistsException",
|
|
4600
|
-
$fault: "client",
|
|
3630
|
+
const exception = new models_0_1.CustomVerificationEmailTemplateAlreadyExistsException({
|
|
4601
3631
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4602
3632
|
...deserialized,
|
|
4603
|
-
};
|
|
4604
|
-
return
|
|
3633
|
+
});
|
|
3634
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4605
3635
|
};
|
|
4606
3636
|
const deserializeAws_queryCustomVerificationEmailTemplateDoesNotExistExceptionResponse = async (parsedOutput, context) => {
|
|
4607
3637
|
const body = parsedOutput.body;
|
|
4608
3638
|
const deserialized = deserializeAws_queryCustomVerificationEmailTemplateDoesNotExistException(body.Error, context);
|
|
4609
|
-
const
|
|
4610
|
-
name: "CustomVerificationEmailTemplateDoesNotExistException",
|
|
4611
|
-
$fault: "client",
|
|
3639
|
+
const exception = new models_0_1.CustomVerificationEmailTemplateDoesNotExistException({
|
|
4612
3640
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4613
3641
|
...deserialized,
|
|
4614
|
-
};
|
|
4615
|
-
return
|
|
3642
|
+
});
|
|
3643
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4616
3644
|
};
|
|
4617
3645
|
const deserializeAws_queryEventDestinationAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
4618
3646
|
const body = parsedOutput.body;
|
|
4619
3647
|
const deserialized = deserializeAws_queryEventDestinationAlreadyExistsException(body.Error, context);
|
|
4620
|
-
const
|
|
4621
|
-
name: "EventDestinationAlreadyExistsException",
|
|
4622
|
-
$fault: "client",
|
|
3648
|
+
const exception = new models_0_1.EventDestinationAlreadyExistsException({
|
|
4623
3649
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4624
3650
|
...deserialized,
|
|
4625
|
-
};
|
|
4626
|
-
return
|
|
3651
|
+
});
|
|
3652
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4627
3653
|
};
|
|
4628
3654
|
const deserializeAws_queryEventDestinationDoesNotExistExceptionResponse = async (parsedOutput, context) => {
|
|
4629
3655
|
const body = parsedOutput.body;
|
|
4630
3656
|
const deserialized = deserializeAws_queryEventDestinationDoesNotExistException(body.Error, context);
|
|
4631
|
-
const
|
|
4632
|
-
name: "EventDestinationDoesNotExistException",
|
|
4633
|
-
$fault: "client",
|
|
3657
|
+
const exception = new models_0_1.EventDestinationDoesNotExistException({
|
|
4634
3658
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4635
3659
|
...deserialized,
|
|
4636
|
-
};
|
|
4637
|
-
return
|
|
3660
|
+
});
|
|
3661
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4638
3662
|
};
|
|
4639
3663
|
const deserializeAws_queryFromEmailAddressNotVerifiedExceptionResponse = async (parsedOutput, context) => {
|
|
4640
3664
|
const body = parsedOutput.body;
|
|
4641
3665
|
const deserialized = deserializeAws_queryFromEmailAddressNotVerifiedException(body.Error, context);
|
|
4642
|
-
const
|
|
4643
|
-
name: "FromEmailAddressNotVerifiedException",
|
|
4644
|
-
$fault: "client",
|
|
3666
|
+
const exception = new models_0_1.FromEmailAddressNotVerifiedException({
|
|
4645
3667
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4646
3668
|
...deserialized,
|
|
4647
|
-
};
|
|
4648
|
-
return
|
|
3669
|
+
});
|
|
3670
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4649
3671
|
};
|
|
4650
3672
|
const deserializeAws_queryInvalidCloudWatchDestinationExceptionResponse = async (parsedOutput, context) => {
|
|
4651
3673
|
const body = parsedOutput.body;
|
|
4652
3674
|
const deserialized = deserializeAws_queryInvalidCloudWatchDestinationException(body.Error, context);
|
|
4653
|
-
const
|
|
4654
|
-
name: "InvalidCloudWatchDestinationException",
|
|
4655
|
-
$fault: "client",
|
|
3675
|
+
const exception = new models_0_1.InvalidCloudWatchDestinationException({
|
|
4656
3676
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4657
3677
|
...deserialized,
|
|
4658
|
-
};
|
|
4659
|
-
return
|
|
3678
|
+
});
|
|
3679
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4660
3680
|
};
|
|
4661
3681
|
const deserializeAws_queryInvalidConfigurationSetExceptionResponse = async (parsedOutput, context) => {
|
|
4662
3682
|
const body = parsedOutput.body;
|
|
4663
3683
|
const deserialized = deserializeAws_queryInvalidConfigurationSetException(body.Error, context);
|
|
4664
|
-
const
|
|
4665
|
-
name: "InvalidConfigurationSetException",
|
|
4666
|
-
$fault: "client",
|
|
3684
|
+
const exception = new models_0_1.InvalidConfigurationSetException({
|
|
4667
3685
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4668
3686
|
...deserialized,
|
|
4669
|
-
};
|
|
4670
|
-
return
|
|
3687
|
+
});
|
|
3688
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4671
3689
|
};
|
|
4672
3690
|
const deserializeAws_queryInvalidDeliveryOptionsExceptionResponse = async (parsedOutput, context) => {
|
|
4673
3691
|
const body = parsedOutput.body;
|
|
4674
3692
|
const deserialized = deserializeAws_queryInvalidDeliveryOptionsException(body.Error, context);
|
|
4675
|
-
const
|
|
4676
|
-
name: "InvalidDeliveryOptionsException",
|
|
4677
|
-
$fault: "client",
|
|
3693
|
+
const exception = new models_0_1.InvalidDeliveryOptionsException({
|
|
4678
3694
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4679
3695
|
...deserialized,
|
|
4680
|
-
};
|
|
4681
|
-
return
|
|
3696
|
+
});
|
|
3697
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4682
3698
|
};
|
|
4683
3699
|
const deserializeAws_queryInvalidFirehoseDestinationExceptionResponse = async (parsedOutput, context) => {
|
|
4684
3700
|
const body = parsedOutput.body;
|
|
4685
3701
|
const deserialized = deserializeAws_queryInvalidFirehoseDestinationException(body.Error, context);
|
|
4686
|
-
const
|
|
4687
|
-
name: "InvalidFirehoseDestinationException",
|
|
4688
|
-
$fault: "client",
|
|
3702
|
+
const exception = new models_0_1.InvalidFirehoseDestinationException({
|
|
4689
3703
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4690
3704
|
...deserialized,
|
|
4691
|
-
};
|
|
4692
|
-
return
|
|
3705
|
+
});
|
|
3706
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4693
3707
|
};
|
|
4694
3708
|
const deserializeAws_queryInvalidLambdaFunctionExceptionResponse = async (parsedOutput, context) => {
|
|
4695
3709
|
const body = parsedOutput.body;
|
|
4696
3710
|
const deserialized = deserializeAws_queryInvalidLambdaFunctionException(body.Error, context);
|
|
4697
|
-
const
|
|
4698
|
-
name: "InvalidLambdaFunctionException",
|
|
4699
|
-
$fault: "client",
|
|
3711
|
+
const exception = new models_0_1.InvalidLambdaFunctionException({
|
|
4700
3712
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4701
3713
|
...deserialized,
|
|
4702
|
-
};
|
|
4703
|
-
return
|
|
3714
|
+
});
|
|
3715
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4704
3716
|
};
|
|
4705
3717
|
const deserializeAws_queryInvalidPolicyExceptionResponse = async (parsedOutput, context) => {
|
|
4706
3718
|
const body = parsedOutput.body;
|
|
4707
3719
|
const deserialized = deserializeAws_queryInvalidPolicyException(body.Error, context);
|
|
4708
|
-
const
|
|
4709
|
-
name: "InvalidPolicyException",
|
|
4710
|
-
$fault: "client",
|
|
3720
|
+
const exception = new models_0_1.InvalidPolicyException({
|
|
4711
3721
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4712
3722
|
...deserialized,
|
|
4713
|
-
};
|
|
4714
|
-
return
|
|
3723
|
+
});
|
|
3724
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4715
3725
|
};
|
|
4716
3726
|
const deserializeAws_queryInvalidRenderingParameterExceptionResponse = async (parsedOutput, context) => {
|
|
4717
3727
|
const body = parsedOutput.body;
|
|
4718
3728
|
const deserialized = deserializeAws_queryInvalidRenderingParameterException(body.Error, context);
|
|
4719
|
-
const
|
|
4720
|
-
name: "InvalidRenderingParameterException",
|
|
4721
|
-
$fault: "client",
|
|
3729
|
+
const exception = new models_0_1.InvalidRenderingParameterException({
|
|
4722
3730
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4723
3731
|
...deserialized,
|
|
4724
|
-
};
|
|
4725
|
-
return
|
|
3732
|
+
});
|
|
3733
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4726
3734
|
};
|
|
4727
3735
|
const deserializeAws_queryInvalidS3ConfigurationExceptionResponse = async (parsedOutput, context) => {
|
|
4728
3736
|
const body = parsedOutput.body;
|
|
4729
3737
|
const deserialized = deserializeAws_queryInvalidS3ConfigurationException(body.Error, context);
|
|
4730
|
-
const
|
|
4731
|
-
name: "InvalidS3ConfigurationException",
|
|
4732
|
-
$fault: "client",
|
|
3738
|
+
const exception = new models_0_1.InvalidS3ConfigurationException({
|
|
4733
3739
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4734
3740
|
...deserialized,
|
|
4735
|
-
};
|
|
4736
|
-
return
|
|
3741
|
+
});
|
|
3742
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4737
3743
|
};
|
|
4738
3744
|
const deserializeAws_queryInvalidSNSDestinationExceptionResponse = async (parsedOutput, context) => {
|
|
4739
3745
|
const body = parsedOutput.body;
|
|
4740
3746
|
const deserialized = deserializeAws_queryInvalidSNSDestinationException(body.Error, context);
|
|
4741
|
-
const
|
|
4742
|
-
name: "InvalidSNSDestinationException",
|
|
4743
|
-
$fault: "client",
|
|
3747
|
+
const exception = new models_0_1.InvalidSNSDestinationException({
|
|
4744
3748
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4745
3749
|
...deserialized,
|
|
4746
|
-
};
|
|
4747
|
-
return
|
|
3750
|
+
});
|
|
3751
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4748
3752
|
};
|
|
4749
3753
|
const deserializeAws_queryInvalidSnsTopicExceptionResponse = async (parsedOutput, context) => {
|
|
4750
3754
|
const body = parsedOutput.body;
|
|
4751
3755
|
const deserialized = deserializeAws_queryInvalidSnsTopicException(body.Error, context);
|
|
4752
|
-
const
|
|
4753
|
-
name: "InvalidSnsTopicException",
|
|
4754
|
-
$fault: "client",
|
|
3756
|
+
const exception = new models_0_1.InvalidSnsTopicException({
|
|
4755
3757
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4756
3758
|
...deserialized,
|
|
4757
|
-
};
|
|
4758
|
-
return
|
|
3759
|
+
});
|
|
3760
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4759
3761
|
};
|
|
4760
3762
|
const deserializeAws_queryInvalidTemplateExceptionResponse = async (parsedOutput, context) => {
|
|
4761
3763
|
const body = parsedOutput.body;
|
|
4762
3764
|
const deserialized = deserializeAws_queryInvalidTemplateException(body.Error, context);
|
|
4763
|
-
const
|
|
4764
|
-
name: "InvalidTemplateException",
|
|
4765
|
-
$fault: "client",
|
|
3765
|
+
const exception = new models_0_1.InvalidTemplateException({
|
|
4766
3766
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4767
3767
|
...deserialized,
|
|
4768
|
-
};
|
|
4769
|
-
return
|
|
3768
|
+
});
|
|
3769
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4770
3770
|
};
|
|
4771
3771
|
const deserializeAws_queryInvalidTrackingOptionsExceptionResponse = async (parsedOutput, context) => {
|
|
4772
3772
|
const body = parsedOutput.body;
|
|
4773
3773
|
const deserialized = deserializeAws_queryInvalidTrackingOptionsException(body.Error, context);
|
|
4774
|
-
const
|
|
4775
|
-
name: "InvalidTrackingOptionsException",
|
|
4776
|
-
$fault: "client",
|
|
3774
|
+
const exception = new models_0_1.InvalidTrackingOptionsException({
|
|
4777
3775
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4778
3776
|
...deserialized,
|
|
4779
|
-
};
|
|
4780
|
-
return
|
|
3777
|
+
});
|
|
3778
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4781
3779
|
};
|
|
4782
3780
|
const deserializeAws_queryLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
4783
3781
|
const body = parsedOutput.body;
|
|
4784
3782
|
const deserialized = deserializeAws_queryLimitExceededException(body.Error, context);
|
|
4785
|
-
const
|
|
4786
|
-
name: "LimitExceededException",
|
|
4787
|
-
$fault: "client",
|
|
3783
|
+
const exception = new models_0_1.LimitExceededException({
|
|
4788
3784
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4789
3785
|
...deserialized,
|
|
4790
|
-
};
|
|
4791
|
-
return
|
|
3786
|
+
});
|
|
3787
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4792
3788
|
};
|
|
4793
3789
|
const deserializeAws_queryMailFromDomainNotVerifiedExceptionResponse = async (parsedOutput, context) => {
|
|
4794
3790
|
const body = parsedOutput.body;
|
|
4795
3791
|
const deserialized = deserializeAws_queryMailFromDomainNotVerifiedException(body.Error, context);
|
|
4796
|
-
const
|
|
4797
|
-
name: "MailFromDomainNotVerifiedException",
|
|
4798
|
-
$fault: "client",
|
|
3792
|
+
const exception = new models_0_1.MailFromDomainNotVerifiedException({
|
|
4799
3793
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4800
3794
|
...deserialized,
|
|
4801
|
-
};
|
|
4802
|
-
return
|
|
3795
|
+
});
|
|
3796
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4803
3797
|
};
|
|
4804
3798
|
const deserializeAws_queryMessageRejectedResponse = async (parsedOutput, context) => {
|
|
4805
3799
|
const body = parsedOutput.body;
|
|
4806
3800
|
const deserialized = deserializeAws_queryMessageRejected(body.Error, context);
|
|
4807
|
-
const
|
|
4808
|
-
name: "MessageRejected",
|
|
4809
|
-
$fault: "client",
|
|
3801
|
+
const exception = new models_0_1.MessageRejected({
|
|
4810
3802
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4811
3803
|
...deserialized,
|
|
4812
|
-
};
|
|
4813
|
-
return
|
|
3804
|
+
});
|
|
3805
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4814
3806
|
};
|
|
4815
3807
|
const deserializeAws_queryMissingRenderingAttributeExceptionResponse = async (parsedOutput, context) => {
|
|
4816
3808
|
const body = parsedOutput.body;
|
|
4817
3809
|
const deserialized = deserializeAws_queryMissingRenderingAttributeException(body.Error, context);
|
|
4818
|
-
const
|
|
4819
|
-
name: "MissingRenderingAttributeException",
|
|
4820
|
-
$fault: "client",
|
|
3810
|
+
const exception = new models_0_1.MissingRenderingAttributeException({
|
|
4821
3811
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4822
3812
|
...deserialized,
|
|
4823
|
-
};
|
|
4824
|
-
return
|
|
3813
|
+
});
|
|
3814
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4825
3815
|
};
|
|
4826
3816
|
const deserializeAws_queryProductionAccessNotGrantedExceptionResponse = async (parsedOutput, context) => {
|
|
4827
3817
|
const body = parsedOutput.body;
|
|
4828
3818
|
const deserialized = deserializeAws_queryProductionAccessNotGrantedException(body.Error, context);
|
|
4829
|
-
const
|
|
4830
|
-
name: "ProductionAccessNotGrantedException",
|
|
4831
|
-
$fault: "client",
|
|
3819
|
+
const exception = new models_0_1.ProductionAccessNotGrantedException({
|
|
4832
3820
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4833
3821
|
...deserialized,
|
|
4834
|
-
};
|
|
4835
|
-
return
|
|
3822
|
+
});
|
|
3823
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4836
3824
|
};
|
|
4837
3825
|
const deserializeAws_queryRuleDoesNotExistExceptionResponse = async (parsedOutput, context) => {
|
|
4838
3826
|
const body = parsedOutput.body;
|
|
4839
3827
|
const deserialized = deserializeAws_queryRuleDoesNotExistException(body.Error, context);
|
|
4840
|
-
const
|
|
4841
|
-
name: "RuleDoesNotExistException",
|
|
4842
|
-
$fault: "client",
|
|
3828
|
+
const exception = new models_0_1.RuleDoesNotExistException({
|
|
4843
3829
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4844
3830
|
...deserialized,
|
|
4845
|
-
};
|
|
4846
|
-
return
|
|
3831
|
+
});
|
|
3832
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4847
3833
|
};
|
|
4848
3834
|
const deserializeAws_queryRuleSetDoesNotExistExceptionResponse = async (parsedOutput, context) => {
|
|
4849
3835
|
const body = parsedOutput.body;
|
|
4850
3836
|
const deserialized = deserializeAws_queryRuleSetDoesNotExistException(body.Error, context);
|
|
4851
|
-
const
|
|
4852
|
-
name: "RuleSetDoesNotExistException",
|
|
4853
|
-
$fault: "client",
|
|
3837
|
+
const exception = new models_0_1.RuleSetDoesNotExistException({
|
|
4854
3838
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4855
3839
|
...deserialized,
|
|
4856
|
-
};
|
|
4857
|
-
return
|
|
3840
|
+
});
|
|
3841
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4858
3842
|
};
|
|
4859
3843
|
const deserializeAws_queryTemplateDoesNotExistExceptionResponse = async (parsedOutput, context) => {
|
|
4860
3844
|
const body = parsedOutput.body;
|
|
4861
3845
|
const deserialized = deserializeAws_queryTemplateDoesNotExistException(body.Error, context);
|
|
4862
|
-
const
|
|
4863
|
-
name: "TemplateDoesNotExistException",
|
|
4864
|
-
$fault: "client",
|
|
3846
|
+
const exception = new models_0_1.TemplateDoesNotExistException({
|
|
4865
3847
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4866
3848
|
...deserialized,
|
|
4867
|
-
};
|
|
4868
|
-
return
|
|
3849
|
+
});
|
|
3850
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4869
3851
|
};
|
|
4870
3852
|
const deserializeAws_queryTrackingOptionsAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
4871
3853
|
const body = parsedOutput.body;
|
|
4872
3854
|
const deserialized = deserializeAws_queryTrackingOptionsAlreadyExistsException(body.Error, context);
|
|
4873
|
-
const
|
|
4874
|
-
name: "TrackingOptionsAlreadyExistsException",
|
|
4875
|
-
$fault: "client",
|
|
3855
|
+
const exception = new models_0_1.TrackingOptionsAlreadyExistsException({
|
|
4876
3856
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4877
3857
|
...deserialized,
|
|
4878
|
-
};
|
|
4879
|
-
return
|
|
3858
|
+
});
|
|
3859
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4880
3860
|
};
|
|
4881
3861
|
const deserializeAws_queryTrackingOptionsDoesNotExistExceptionResponse = async (parsedOutput, context) => {
|
|
4882
3862
|
const body = parsedOutput.body;
|
|
4883
3863
|
const deserialized = deserializeAws_queryTrackingOptionsDoesNotExistException(body.Error, context);
|
|
4884
|
-
const
|
|
4885
|
-
name: "TrackingOptionsDoesNotExistException",
|
|
4886
|
-
$fault: "client",
|
|
3864
|
+
const exception = new models_0_1.TrackingOptionsDoesNotExistException({
|
|
4887
3865
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4888
3866
|
...deserialized,
|
|
4889
|
-
};
|
|
4890
|
-
return
|
|
3867
|
+
});
|
|
3868
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
4891
3869
|
};
|
|
4892
3870
|
const serializeAws_queryAddHeaderAction = (input, context) => {
|
|
4893
3871
|
const entries = {};
|