@aws-sdk/client-waf 3.141.0 → 3.142.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 +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +385 -664
- package/dist-es/protocols/Aws_json1_1.js +617 -665
- package/package.json +6 -6
|
@@ -797,7 +797,6 @@ const deserializeAws_json1_1CreateByteMatchSetCommandError = async (output, cont
|
|
|
797
797
|
...output,
|
|
798
798
|
body: await parseBody(output.body, context),
|
|
799
799
|
};
|
|
800
|
-
let response;
|
|
801
800
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
801
|
switch (errorCode) {
|
|
803
802
|
case "WAFDisallowedNameException":
|
|
@@ -820,14 +819,12 @@ const deserializeAws_json1_1CreateByteMatchSetCommandError = async (output, cont
|
|
|
820
819
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
821
820
|
default:
|
|
822
821
|
const parsedBody = parsedOutput.body;
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
$metadata,
|
|
822
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
823
|
+
output,
|
|
824
|
+
parsedBody,
|
|
825
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
826
|
+
errorCode,
|
|
829
827
|
});
|
|
830
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
831
828
|
}
|
|
832
829
|
};
|
|
833
830
|
const deserializeAws_json1_1CreateGeoMatchSetCommand = async (output, context) => {
|
|
@@ -849,7 +846,6 @@ const deserializeAws_json1_1CreateGeoMatchSetCommandError = async (output, conte
|
|
|
849
846
|
...output,
|
|
850
847
|
body: await parseBody(output.body, context),
|
|
851
848
|
};
|
|
852
|
-
let response;
|
|
853
849
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
854
850
|
switch (errorCode) {
|
|
855
851
|
case "WAFDisallowedNameException":
|
|
@@ -872,14 +868,12 @@ const deserializeAws_json1_1CreateGeoMatchSetCommandError = async (output, conte
|
|
|
872
868
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
873
869
|
default:
|
|
874
870
|
const parsedBody = parsedOutput.body;
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
$metadata,
|
|
871
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
872
|
+
output,
|
|
873
|
+
parsedBody,
|
|
874
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
875
|
+
errorCode,
|
|
881
876
|
});
|
|
882
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
883
877
|
}
|
|
884
878
|
};
|
|
885
879
|
const deserializeAws_json1_1CreateIPSetCommand = async (output, context) => {
|
|
@@ -901,7 +895,6 @@ const deserializeAws_json1_1CreateIPSetCommandError = async (output, context) =>
|
|
|
901
895
|
...output,
|
|
902
896
|
body: await parseBody(output.body, context),
|
|
903
897
|
};
|
|
904
|
-
let response;
|
|
905
898
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
906
899
|
switch (errorCode) {
|
|
907
900
|
case "WAFDisallowedNameException":
|
|
@@ -924,14 +917,12 @@ const deserializeAws_json1_1CreateIPSetCommandError = async (output, context) =>
|
|
|
924
917
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
925
918
|
default:
|
|
926
919
|
const parsedBody = parsedOutput.body;
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
$metadata,
|
|
920
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
921
|
+
output,
|
|
922
|
+
parsedBody,
|
|
923
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
924
|
+
errorCode,
|
|
933
925
|
});
|
|
934
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
935
926
|
}
|
|
936
927
|
};
|
|
937
928
|
const deserializeAws_json1_1CreateRateBasedRuleCommand = async (output, context) => {
|
|
@@ -953,7 +944,6 @@ const deserializeAws_json1_1CreateRateBasedRuleCommandError = async (output, con
|
|
|
953
944
|
...output,
|
|
954
945
|
body: await parseBody(output.body, context),
|
|
955
946
|
};
|
|
956
|
-
let response;
|
|
957
947
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
958
948
|
switch (errorCode) {
|
|
959
949
|
case "WAFBadRequestException":
|
|
@@ -982,14 +972,12 @@ const deserializeAws_json1_1CreateRateBasedRuleCommandError = async (output, con
|
|
|
982
972
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
983
973
|
default:
|
|
984
974
|
const parsedBody = parsedOutput.body;
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
$metadata,
|
|
975
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
976
|
+
output,
|
|
977
|
+
parsedBody,
|
|
978
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
979
|
+
errorCode,
|
|
991
980
|
});
|
|
992
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
993
981
|
}
|
|
994
982
|
};
|
|
995
983
|
const deserializeAws_json1_1CreateRegexMatchSetCommand = async (output, context) => {
|
|
@@ -1011,7 +999,6 @@ const deserializeAws_json1_1CreateRegexMatchSetCommandError = async (output, con
|
|
|
1011
999
|
...output,
|
|
1012
1000
|
body: await parseBody(output.body, context),
|
|
1013
1001
|
};
|
|
1014
|
-
let response;
|
|
1015
1002
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1016
1003
|
switch (errorCode) {
|
|
1017
1004
|
case "WAFDisallowedNameException":
|
|
@@ -1028,14 +1015,12 @@ const deserializeAws_json1_1CreateRegexMatchSetCommandError = async (output, con
|
|
|
1028
1015
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1029
1016
|
default:
|
|
1030
1017
|
const parsedBody = parsedOutput.body;
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
$metadata,
|
|
1018
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1019
|
+
output,
|
|
1020
|
+
parsedBody,
|
|
1021
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1022
|
+
errorCode,
|
|
1037
1023
|
});
|
|
1038
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1039
1024
|
}
|
|
1040
1025
|
};
|
|
1041
1026
|
const deserializeAws_json1_1CreateRegexPatternSetCommand = async (output, context) => {
|
|
@@ -1057,7 +1042,6 @@ const deserializeAws_json1_1CreateRegexPatternSetCommandError = async (output, c
|
|
|
1057
1042
|
...output,
|
|
1058
1043
|
body: await parseBody(output.body, context),
|
|
1059
1044
|
};
|
|
1060
|
-
let response;
|
|
1061
1045
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1062
1046
|
switch (errorCode) {
|
|
1063
1047
|
case "WAFDisallowedNameException":
|
|
@@ -1074,14 +1058,12 @@ const deserializeAws_json1_1CreateRegexPatternSetCommandError = async (output, c
|
|
|
1074
1058
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1075
1059
|
default:
|
|
1076
1060
|
const parsedBody = parsedOutput.body;
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
$metadata,
|
|
1061
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1062
|
+
output,
|
|
1063
|
+
parsedBody,
|
|
1064
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1065
|
+
errorCode,
|
|
1083
1066
|
});
|
|
1084
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1085
1067
|
}
|
|
1086
1068
|
};
|
|
1087
1069
|
const deserializeAws_json1_1CreateRuleCommand = async (output, context) => {
|
|
@@ -1103,7 +1085,6 @@ const deserializeAws_json1_1CreateRuleCommandError = async (output, context) =>
|
|
|
1103
1085
|
...output,
|
|
1104
1086
|
body: await parseBody(output.body, context),
|
|
1105
1087
|
};
|
|
1106
|
-
let response;
|
|
1107
1088
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
1089
|
switch (errorCode) {
|
|
1109
1090
|
case "WAFBadRequestException":
|
|
@@ -1132,14 +1113,12 @@ const deserializeAws_json1_1CreateRuleCommandError = async (output, context) =>
|
|
|
1132
1113
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
1133
1114
|
default:
|
|
1134
1115
|
const parsedBody = parsedOutput.body;
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
$metadata,
|
|
1116
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1117
|
+
output,
|
|
1118
|
+
parsedBody,
|
|
1119
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1120
|
+
errorCode,
|
|
1141
1121
|
});
|
|
1142
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1143
1122
|
}
|
|
1144
1123
|
};
|
|
1145
1124
|
const deserializeAws_json1_1CreateRuleGroupCommand = async (output, context) => {
|
|
@@ -1161,7 +1140,6 @@ const deserializeAws_json1_1CreateRuleGroupCommandError = async (output, context
|
|
|
1161
1140
|
...output,
|
|
1162
1141
|
body: await parseBody(output.body, context),
|
|
1163
1142
|
};
|
|
1164
|
-
let response;
|
|
1165
1143
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
1144
|
switch (errorCode) {
|
|
1167
1145
|
case "WAFBadRequestException":
|
|
@@ -1187,14 +1165,12 @@ const deserializeAws_json1_1CreateRuleGroupCommandError = async (output, context
|
|
|
1187
1165
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
1188
1166
|
default:
|
|
1189
1167
|
const parsedBody = parsedOutput.body;
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
$metadata,
|
|
1168
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1169
|
+
output,
|
|
1170
|
+
parsedBody,
|
|
1171
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1172
|
+
errorCode,
|
|
1196
1173
|
});
|
|
1197
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1198
1174
|
}
|
|
1199
1175
|
};
|
|
1200
1176
|
const deserializeAws_json1_1CreateSizeConstraintSetCommand = async (output, context) => {
|
|
@@ -1216,7 +1192,6 @@ const deserializeAws_json1_1CreateSizeConstraintSetCommandError = async (output,
|
|
|
1216
1192
|
...output,
|
|
1217
1193
|
body: await parseBody(output.body, context),
|
|
1218
1194
|
};
|
|
1219
|
-
let response;
|
|
1220
1195
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1221
1196
|
switch (errorCode) {
|
|
1222
1197
|
case "WAFDisallowedNameException":
|
|
@@ -1239,14 +1214,12 @@ const deserializeAws_json1_1CreateSizeConstraintSetCommandError = async (output,
|
|
|
1239
1214
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1240
1215
|
default:
|
|
1241
1216
|
const parsedBody = parsedOutput.body;
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
$metadata,
|
|
1217
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1218
|
+
output,
|
|
1219
|
+
parsedBody,
|
|
1220
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1221
|
+
errorCode,
|
|
1248
1222
|
});
|
|
1249
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1250
1223
|
}
|
|
1251
1224
|
};
|
|
1252
1225
|
const deserializeAws_json1_1CreateSqlInjectionMatchSetCommand = async (output, context) => {
|
|
@@ -1268,7 +1241,6 @@ const deserializeAws_json1_1CreateSqlInjectionMatchSetCommandError = async (outp
|
|
|
1268
1241
|
...output,
|
|
1269
1242
|
body: await parseBody(output.body, context),
|
|
1270
1243
|
};
|
|
1271
|
-
let response;
|
|
1272
1244
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1273
1245
|
switch (errorCode) {
|
|
1274
1246
|
case "WAFDisallowedNameException":
|
|
@@ -1291,14 +1263,12 @@ const deserializeAws_json1_1CreateSqlInjectionMatchSetCommandError = async (outp
|
|
|
1291
1263
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1292
1264
|
default:
|
|
1293
1265
|
const parsedBody = parsedOutput.body;
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
$metadata,
|
|
1266
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1267
|
+
output,
|
|
1268
|
+
parsedBody,
|
|
1269
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1270
|
+
errorCode,
|
|
1300
1271
|
});
|
|
1301
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1302
1272
|
}
|
|
1303
1273
|
};
|
|
1304
1274
|
const deserializeAws_json1_1CreateWebACLCommand = async (output, context) => {
|
|
@@ -1320,7 +1290,6 @@ const deserializeAws_json1_1CreateWebACLCommandError = async (output, context) =
|
|
|
1320
1290
|
...output,
|
|
1321
1291
|
body: await parseBody(output.body, context),
|
|
1322
1292
|
};
|
|
1323
|
-
let response;
|
|
1324
1293
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1325
1294
|
switch (errorCode) {
|
|
1326
1295
|
case "WAFBadRequestException":
|
|
@@ -1352,14 +1321,12 @@ const deserializeAws_json1_1CreateWebACLCommandError = async (output, context) =
|
|
|
1352
1321
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
1353
1322
|
default:
|
|
1354
1323
|
const parsedBody = parsedOutput.body;
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
$metadata,
|
|
1324
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1325
|
+
output,
|
|
1326
|
+
parsedBody,
|
|
1327
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1328
|
+
errorCode,
|
|
1361
1329
|
});
|
|
1362
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1363
1330
|
}
|
|
1364
1331
|
};
|
|
1365
1332
|
const deserializeAws_json1_1CreateWebACLMigrationStackCommand = async (output, context) => {
|
|
@@ -1381,7 +1348,6 @@ const deserializeAws_json1_1CreateWebACLMigrationStackCommandError = async (outp
|
|
|
1381
1348
|
...output,
|
|
1382
1349
|
body: await parseBody(output.body, context),
|
|
1383
1350
|
};
|
|
1384
|
-
let response;
|
|
1385
1351
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1386
1352
|
switch (errorCode) {
|
|
1387
1353
|
case "WAFEntityMigrationException":
|
|
@@ -1401,14 +1367,12 @@ const deserializeAws_json1_1CreateWebACLMigrationStackCommandError = async (outp
|
|
|
1401
1367
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1402
1368
|
default:
|
|
1403
1369
|
const parsedBody = parsedOutput.body;
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
$metadata,
|
|
1370
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1371
|
+
output,
|
|
1372
|
+
parsedBody,
|
|
1373
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1374
|
+
errorCode,
|
|
1410
1375
|
});
|
|
1411
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1412
1376
|
}
|
|
1413
1377
|
};
|
|
1414
1378
|
const deserializeAws_json1_1CreateXssMatchSetCommand = async (output, context) => {
|
|
@@ -1430,7 +1394,6 @@ const deserializeAws_json1_1CreateXssMatchSetCommandError = async (output, conte
|
|
|
1430
1394
|
...output,
|
|
1431
1395
|
body: await parseBody(output.body, context),
|
|
1432
1396
|
};
|
|
1433
|
-
let response;
|
|
1434
1397
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1435
1398
|
switch (errorCode) {
|
|
1436
1399
|
case "WAFDisallowedNameException":
|
|
@@ -1453,14 +1416,12 @@ const deserializeAws_json1_1CreateXssMatchSetCommandError = async (output, conte
|
|
|
1453
1416
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1454
1417
|
default:
|
|
1455
1418
|
const parsedBody = parsedOutput.body;
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
$metadata,
|
|
1419
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1420
|
+
output,
|
|
1421
|
+
parsedBody,
|
|
1422
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1423
|
+
errorCode,
|
|
1462
1424
|
});
|
|
1463
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1464
1425
|
}
|
|
1465
1426
|
};
|
|
1466
1427
|
const deserializeAws_json1_1DeleteByteMatchSetCommand = async (output, context) => {
|
|
@@ -1482,7 +1443,6 @@ const deserializeAws_json1_1DeleteByteMatchSetCommandError = async (output, cont
|
|
|
1482
1443
|
...output,
|
|
1483
1444
|
body: await parseBody(output.body, context),
|
|
1484
1445
|
};
|
|
1485
|
-
let response;
|
|
1486
1446
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1487
1447
|
switch (errorCode) {
|
|
1488
1448
|
case "WAFInternalErrorException":
|
|
@@ -1505,14 +1465,12 @@ const deserializeAws_json1_1DeleteByteMatchSetCommandError = async (output, cont
|
|
|
1505
1465
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1506
1466
|
default:
|
|
1507
1467
|
const parsedBody = parsedOutput.body;
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
$metadata,
|
|
1468
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1469
|
+
output,
|
|
1470
|
+
parsedBody,
|
|
1471
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1472
|
+
errorCode,
|
|
1514
1473
|
});
|
|
1515
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1516
1474
|
}
|
|
1517
1475
|
};
|
|
1518
1476
|
const deserializeAws_json1_1DeleteGeoMatchSetCommand = async (output, context) => {
|
|
@@ -1534,7 +1492,6 @@ const deserializeAws_json1_1DeleteGeoMatchSetCommandError = async (output, conte
|
|
|
1534
1492
|
...output,
|
|
1535
1493
|
body: await parseBody(output.body, context),
|
|
1536
1494
|
};
|
|
1537
|
-
let response;
|
|
1538
1495
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1539
1496
|
switch (errorCode) {
|
|
1540
1497
|
case "WAFInternalErrorException":
|
|
@@ -1557,14 +1514,12 @@ const deserializeAws_json1_1DeleteGeoMatchSetCommandError = async (output, conte
|
|
|
1557
1514
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1558
1515
|
default:
|
|
1559
1516
|
const parsedBody = parsedOutput.body;
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
$metadata,
|
|
1517
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1518
|
+
output,
|
|
1519
|
+
parsedBody,
|
|
1520
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1521
|
+
errorCode,
|
|
1566
1522
|
});
|
|
1567
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1568
1523
|
}
|
|
1569
1524
|
};
|
|
1570
1525
|
const deserializeAws_json1_1DeleteIPSetCommand = async (output, context) => {
|
|
@@ -1586,7 +1541,6 @@ const deserializeAws_json1_1DeleteIPSetCommandError = async (output, context) =>
|
|
|
1586
1541
|
...output,
|
|
1587
1542
|
body: await parseBody(output.body, context),
|
|
1588
1543
|
};
|
|
1589
|
-
let response;
|
|
1590
1544
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1591
1545
|
switch (errorCode) {
|
|
1592
1546
|
case "WAFInternalErrorException":
|
|
@@ -1609,14 +1563,12 @@ const deserializeAws_json1_1DeleteIPSetCommandError = async (output, context) =>
|
|
|
1609
1563
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1610
1564
|
default:
|
|
1611
1565
|
const parsedBody = parsedOutput.body;
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
$metadata,
|
|
1566
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1567
|
+
output,
|
|
1568
|
+
parsedBody,
|
|
1569
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1570
|
+
errorCode,
|
|
1618
1571
|
});
|
|
1619
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1620
1572
|
}
|
|
1621
1573
|
};
|
|
1622
1574
|
const deserializeAws_json1_1DeleteLoggingConfigurationCommand = async (output, context) => {
|
|
@@ -1638,7 +1590,6 @@ const deserializeAws_json1_1DeleteLoggingConfigurationCommandError = async (outp
|
|
|
1638
1590
|
...output,
|
|
1639
1591
|
body: await parseBody(output.body, context),
|
|
1640
1592
|
};
|
|
1641
|
-
let response;
|
|
1642
1593
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1643
1594
|
switch (errorCode) {
|
|
1644
1595
|
case "WAFInternalErrorException":
|
|
@@ -1652,14 +1603,12 @@ const deserializeAws_json1_1DeleteLoggingConfigurationCommandError = async (outp
|
|
|
1652
1603
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1653
1604
|
default:
|
|
1654
1605
|
const parsedBody = parsedOutput.body;
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
$metadata,
|
|
1606
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1607
|
+
output,
|
|
1608
|
+
parsedBody,
|
|
1609
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1610
|
+
errorCode,
|
|
1661
1611
|
});
|
|
1662
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1663
1612
|
}
|
|
1664
1613
|
};
|
|
1665
1614
|
const deserializeAws_json1_1DeletePermissionPolicyCommand = async (output, context) => {
|
|
@@ -1681,7 +1630,6 @@ const deserializeAws_json1_1DeletePermissionPolicyCommandError = async (output,
|
|
|
1681
1630
|
...output,
|
|
1682
1631
|
body: await parseBody(output.body, context),
|
|
1683
1632
|
};
|
|
1684
|
-
let response;
|
|
1685
1633
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1686
1634
|
switch (errorCode) {
|
|
1687
1635
|
case "WAFInternalErrorException":
|
|
@@ -1695,14 +1643,12 @@ const deserializeAws_json1_1DeletePermissionPolicyCommandError = async (output,
|
|
|
1695
1643
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1696
1644
|
default:
|
|
1697
1645
|
const parsedBody = parsedOutput.body;
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
$metadata,
|
|
1646
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1647
|
+
output,
|
|
1648
|
+
parsedBody,
|
|
1649
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1650
|
+
errorCode,
|
|
1704
1651
|
});
|
|
1705
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1706
1652
|
}
|
|
1707
1653
|
};
|
|
1708
1654
|
const deserializeAws_json1_1DeleteRateBasedRuleCommand = async (output, context) => {
|
|
@@ -1724,7 +1670,6 @@ const deserializeAws_json1_1DeleteRateBasedRuleCommandError = async (output, con
|
|
|
1724
1670
|
...output,
|
|
1725
1671
|
body: await parseBody(output.body, context),
|
|
1726
1672
|
};
|
|
1727
|
-
let response;
|
|
1728
1673
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1729
1674
|
switch (errorCode) {
|
|
1730
1675
|
case "WAFInternalErrorException":
|
|
@@ -1753,14 +1698,12 @@ const deserializeAws_json1_1DeleteRateBasedRuleCommandError = async (output, con
|
|
|
1753
1698
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
1754
1699
|
default:
|
|
1755
1700
|
const parsedBody = parsedOutput.body;
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
$metadata,
|
|
1701
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1702
|
+
output,
|
|
1703
|
+
parsedBody,
|
|
1704
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1705
|
+
errorCode,
|
|
1762
1706
|
});
|
|
1763
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1764
1707
|
}
|
|
1765
1708
|
};
|
|
1766
1709
|
const deserializeAws_json1_1DeleteRegexMatchSetCommand = async (output, context) => {
|
|
@@ -1782,7 +1725,6 @@ const deserializeAws_json1_1DeleteRegexMatchSetCommandError = async (output, con
|
|
|
1782
1725
|
...output,
|
|
1783
1726
|
body: await parseBody(output.body, context),
|
|
1784
1727
|
};
|
|
1785
|
-
let response;
|
|
1786
1728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1787
1729
|
switch (errorCode) {
|
|
1788
1730
|
case "WAFInternalErrorException":
|
|
@@ -1805,14 +1747,12 @@ const deserializeAws_json1_1DeleteRegexMatchSetCommandError = async (output, con
|
|
|
1805
1747
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1806
1748
|
default:
|
|
1807
1749
|
const parsedBody = parsedOutput.body;
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
$metadata,
|
|
1750
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1751
|
+
output,
|
|
1752
|
+
parsedBody,
|
|
1753
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1754
|
+
errorCode,
|
|
1814
1755
|
});
|
|
1815
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1816
1756
|
}
|
|
1817
1757
|
};
|
|
1818
1758
|
const deserializeAws_json1_1DeleteRegexPatternSetCommand = async (output, context) => {
|
|
@@ -1834,7 +1774,6 @@ const deserializeAws_json1_1DeleteRegexPatternSetCommandError = async (output, c
|
|
|
1834
1774
|
...output,
|
|
1835
1775
|
body: await parseBody(output.body, context),
|
|
1836
1776
|
};
|
|
1837
|
-
let response;
|
|
1838
1777
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
1778
|
switch (errorCode) {
|
|
1840
1779
|
case "WAFInternalErrorException":
|
|
@@ -1857,14 +1796,12 @@ const deserializeAws_json1_1DeleteRegexPatternSetCommandError = async (output, c
|
|
|
1857
1796
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1858
1797
|
default:
|
|
1859
1798
|
const parsedBody = parsedOutput.body;
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
$metadata,
|
|
1799
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1800
|
+
output,
|
|
1801
|
+
parsedBody,
|
|
1802
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1803
|
+
errorCode,
|
|
1866
1804
|
});
|
|
1867
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1868
1805
|
}
|
|
1869
1806
|
};
|
|
1870
1807
|
const deserializeAws_json1_1DeleteRuleCommand = async (output, context) => {
|
|
@@ -1886,7 +1823,6 @@ const deserializeAws_json1_1DeleteRuleCommandError = async (output, context) =>
|
|
|
1886
1823
|
...output,
|
|
1887
1824
|
body: await parseBody(output.body, context),
|
|
1888
1825
|
};
|
|
1889
|
-
let response;
|
|
1890
1826
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1891
1827
|
switch (errorCode) {
|
|
1892
1828
|
case "WAFInternalErrorException":
|
|
@@ -1915,14 +1851,12 @@ const deserializeAws_json1_1DeleteRuleCommandError = async (output, context) =>
|
|
|
1915
1851
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
1916
1852
|
default:
|
|
1917
1853
|
const parsedBody = parsedOutput.body;
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
$metadata,
|
|
1854
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1855
|
+
output,
|
|
1856
|
+
parsedBody,
|
|
1857
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1858
|
+
errorCode,
|
|
1924
1859
|
});
|
|
1925
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1926
1860
|
}
|
|
1927
1861
|
};
|
|
1928
1862
|
const deserializeAws_json1_1DeleteRuleGroupCommand = async (output, context) => {
|
|
@@ -1944,7 +1878,6 @@ const deserializeAws_json1_1DeleteRuleGroupCommandError = async (output, context
|
|
|
1944
1878
|
...output,
|
|
1945
1879
|
body: await parseBody(output.body, context),
|
|
1946
1880
|
};
|
|
1947
|
-
let response;
|
|
1948
1881
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1949
1882
|
switch (errorCode) {
|
|
1950
1883
|
case "WAFInternalErrorException":
|
|
@@ -1973,14 +1906,12 @@ const deserializeAws_json1_1DeleteRuleGroupCommandError = async (output, context
|
|
|
1973
1906
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
1974
1907
|
default:
|
|
1975
1908
|
const parsedBody = parsedOutput.body;
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
$metadata,
|
|
1909
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1910
|
+
output,
|
|
1911
|
+
parsedBody,
|
|
1912
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1913
|
+
errorCode,
|
|
1982
1914
|
});
|
|
1983
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1984
1915
|
}
|
|
1985
1916
|
};
|
|
1986
1917
|
const deserializeAws_json1_1DeleteSizeConstraintSetCommand = async (output, context) => {
|
|
@@ -2002,7 +1933,6 @@ const deserializeAws_json1_1DeleteSizeConstraintSetCommandError = async (output,
|
|
|
2002
1933
|
...output,
|
|
2003
1934
|
body: await parseBody(output.body, context),
|
|
2004
1935
|
};
|
|
2005
|
-
let response;
|
|
2006
1936
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2007
1937
|
switch (errorCode) {
|
|
2008
1938
|
case "WAFInternalErrorException":
|
|
@@ -2025,14 +1955,12 @@ const deserializeAws_json1_1DeleteSizeConstraintSetCommandError = async (output,
|
|
|
2025
1955
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
2026
1956
|
default:
|
|
2027
1957
|
const parsedBody = parsedOutput.body;
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
$metadata,
|
|
1958
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1959
|
+
output,
|
|
1960
|
+
parsedBody,
|
|
1961
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
1962
|
+
errorCode,
|
|
2034
1963
|
});
|
|
2035
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2036
1964
|
}
|
|
2037
1965
|
};
|
|
2038
1966
|
const deserializeAws_json1_1DeleteSqlInjectionMatchSetCommand = async (output, context) => {
|
|
@@ -2054,7 +1982,6 @@ const deserializeAws_json1_1DeleteSqlInjectionMatchSetCommandError = async (outp
|
|
|
2054
1982
|
...output,
|
|
2055
1983
|
body: await parseBody(output.body, context),
|
|
2056
1984
|
};
|
|
2057
|
-
let response;
|
|
2058
1985
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2059
1986
|
switch (errorCode) {
|
|
2060
1987
|
case "WAFInternalErrorException":
|
|
@@ -2077,14 +2004,12 @@ const deserializeAws_json1_1DeleteSqlInjectionMatchSetCommandError = async (outp
|
|
|
2077
2004
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
2078
2005
|
default:
|
|
2079
2006
|
const parsedBody = parsedOutput.body;
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
$metadata,
|
|
2007
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2008
|
+
output,
|
|
2009
|
+
parsedBody,
|
|
2010
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2011
|
+
errorCode,
|
|
2086
2012
|
});
|
|
2087
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2088
2013
|
}
|
|
2089
2014
|
};
|
|
2090
2015
|
const deserializeAws_json1_1DeleteWebACLCommand = async (output, context) => {
|
|
@@ -2106,7 +2031,6 @@ const deserializeAws_json1_1DeleteWebACLCommandError = async (output, context) =
|
|
|
2106
2031
|
...output,
|
|
2107
2032
|
body: await parseBody(output.body, context),
|
|
2108
2033
|
};
|
|
2109
|
-
let response;
|
|
2110
2034
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2111
2035
|
switch (errorCode) {
|
|
2112
2036
|
case "WAFInternalErrorException":
|
|
@@ -2135,14 +2059,12 @@ const deserializeAws_json1_1DeleteWebACLCommandError = async (output, context) =
|
|
|
2135
2059
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
2136
2060
|
default:
|
|
2137
2061
|
const parsedBody = parsedOutput.body;
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
$metadata,
|
|
2062
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2063
|
+
output,
|
|
2064
|
+
parsedBody,
|
|
2065
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2066
|
+
errorCode,
|
|
2144
2067
|
});
|
|
2145
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2146
2068
|
}
|
|
2147
2069
|
};
|
|
2148
2070
|
const deserializeAws_json1_1DeleteXssMatchSetCommand = async (output, context) => {
|
|
@@ -2164,7 +2086,6 @@ const deserializeAws_json1_1DeleteXssMatchSetCommandError = async (output, conte
|
|
|
2164
2086
|
...output,
|
|
2165
2087
|
body: await parseBody(output.body, context),
|
|
2166
2088
|
};
|
|
2167
|
-
let response;
|
|
2168
2089
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2169
2090
|
switch (errorCode) {
|
|
2170
2091
|
case "WAFInternalErrorException":
|
|
@@ -2187,14 +2108,12 @@ const deserializeAws_json1_1DeleteXssMatchSetCommandError = async (output, conte
|
|
|
2187
2108
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
2188
2109
|
default:
|
|
2189
2110
|
const parsedBody = parsedOutput.body;
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
$metadata,
|
|
2111
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2112
|
+
output,
|
|
2113
|
+
parsedBody,
|
|
2114
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2115
|
+
errorCode,
|
|
2196
2116
|
});
|
|
2197
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2198
2117
|
}
|
|
2199
2118
|
};
|
|
2200
2119
|
const deserializeAws_json1_1GetByteMatchSetCommand = async (output, context) => {
|
|
@@ -2216,7 +2135,6 @@ const deserializeAws_json1_1GetByteMatchSetCommandError = async (output, context
|
|
|
2216
2135
|
...output,
|
|
2217
2136
|
body: await parseBody(output.body, context),
|
|
2218
2137
|
};
|
|
2219
|
-
let response;
|
|
2220
2138
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2221
2139
|
switch (errorCode) {
|
|
2222
2140
|
case "WAFInternalErrorException":
|
|
@@ -2230,14 +2148,12 @@ const deserializeAws_json1_1GetByteMatchSetCommandError = async (output, context
|
|
|
2230
2148
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2231
2149
|
default:
|
|
2232
2150
|
const parsedBody = parsedOutput.body;
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
$metadata,
|
|
2151
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2152
|
+
output,
|
|
2153
|
+
parsedBody,
|
|
2154
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2155
|
+
errorCode,
|
|
2239
2156
|
});
|
|
2240
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2241
2157
|
}
|
|
2242
2158
|
};
|
|
2243
2159
|
const deserializeAws_json1_1GetChangeTokenCommand = async (output, context) => {
|
|
@@ -2259,7 +2175,6 @@ const deserializeAws_json1_1GetChangeTokenCommandError = async (output, context)
|
|
|
2259
2175
|
...output,
|
|
2260
2176
|
body: await parseBody(output.body, context),
|
|
2261
2177
|
};
|
|
2262
|
-
let response;
|
|
2263
2178
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2264
2179
|
switch (errorCode) {
|
|
2265
2180
|
case "WAFInternalErrorException":
|
|
@@ -2267,14 +2182,12 @@ const deserializeAws_json1_1GetChangeTokenCommandError = async (output, context)
|
|
|
2267
2182
|
throw await deserializeAws_json1_1WAFInternalErrorExceptionResponse(parsedOutput, context);
|
|
2268
2183
|
default:
|
|
2269
2184
|
const parsedBody = parsedOutput.body;
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
$metadata,
|
|
2185
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2186
|
+
output,
|
|
2187
|
+
parsedBody,
|
|
2188
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2189
|
+
errorCode,
|
|
2276
2190
|
});
|
|
2277
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2278
2191
|
}
|
|
2279
2192
|
};
|
|
2280
2193
|
const deserializeAws_json1_1GetChangeTokenStatusCommand = async (output, context) => {
|
|
@@ -2296,7 +2209,6 @@ const deserializeAws_json1_1GetChangeTokenStatusCommandError = async (output, co
|
|
|
2296
2209
|
...output,
|
|
2297
2210
|
body: await parseBody(output.body, context),
|
|
2298
2211
|
};
|
|
2299
|
-
let response;
|
|
2300
2212
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2301
2213
|
switch (errorCode) {
|
|
2302
2214
|
case "WAFInternalErrorException":
|
|
@@ -2307,14 +2219,12 @@ const deserializeAws_json1_1GetChangeTokenStatusCommandError = async (output, co
|
|
|
2307
2219
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2308
2220
|
default:
|
|
2309
2221
|
const parsedBody = parsedOutput.body;
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
$metadata,
|
|
2222
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2223
|
+
output,
|
|
2224
|
+
parsedBody,
|
|
2225
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2226
|
+
errorCode,
|
|
2316
2227
|
});
|
|
2317
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2318
2228
|
}
|
|
2319
2229
|
};
|
|
2320
2230
|
const deserializeAws_json1_1GetGeoMatchSetCommand = async (output, context) => {
|
|
@@ -2336,7 +2246,6 @@ const deserializeAws_json1_1GetGeoMatchSetCommandError = async (output, context)
|
|
|
2336
2246
|
...output,
|
|
2337
2247
|
body: await parseBody(output.body, context),
|
|
2338
2248
|
};
|
|
2339
|
-
let response;
|
|
2340
2249
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2341
2250
|
switch (errorCode) {
|
|
2342
2251
|
case "WAFInternalErrorException":
|
|
@@ -2350,14 +2259,12 @@ const deserializeAws_json1_1GetGeoMatchSetCommandError = async (output, context)
|
|
|
2350
2259
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2351
2260
|
default:
|
|
2352
2261
|
const parsedBody = parsedOutput.body;
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
$metadata,
|
|
2262
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2263
|
+
output,
|
|
2264
|
+
parsedBody,
|
|
2265
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2266
|
+
errorCode,
|
|
2359
2267
|
});
|
|
2360
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2361
2268
|
}
|
|
2362
2269
|
};
|
|
2363
2270
|
const deserializeAws_json1_1GetIPSetCommand = async (output, context) => {
|
|
@@ -2379,7 +2286,6 @@ const deserializeAws_json1_1GetIPSetCommandError = async (output, context) => {
|
|
|
2379
2286
|
...output,
|
|
2380
2287
|
body: await parseBody(output.body, context),
|
|
2381
2288
|
};
|
|
2382
|
-
let response;
|
|
2383
2289
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2384
2290
|
switch (errorCode) {
|
|
2385
2291
|
case "WAFInternalErrorException":
|
|
@@ -2393,14 +2299,12 @@ const deserializeAws_json1_1GetIPSetCommandError = async (output, context) => {
|
|
|
2393
2299
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2394
2300
|
default:
|
|
2395
2301
|
const parsedBody = parsedOutput.body;
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
$metadata,
|
|
2302
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2303
|
+
output,
|
|
2304
|
+
parsedBody,
|
|
2305
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2306
|
+
errorCode,
|
|
2402
2307
|
});
|
|
2403
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2404
2308
|
}
|
|
2405
2309
|
};
|
|
2406
2310
|
const deserializeAws_json1_1GetLoggingConfigurationCommand = async (output, context) => {
|
|
@@ -2422,7 +2326,6 @@ const deserializeAws_json1_1GetLoggingConfigurationCommandError = async (output,
|
|
|
2422
2326
|
...output,
|
|
2423
2327
|
body: await parseBody(output.body, context),
|
|
2424
2328
|
};
|
|
2425
|
-
let response;
|
|
2426
2329
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2427
2330
|
switch (errorCode) {
|
|
2428
2331
|
case "WAFInternalErrorException":
|
|
@@ -2433,14 +2336,12 @@ const deserializeAws_json1_1GetLoggingConfigurationCommandError = async (output,
|
|
|
2433
2336
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2434
2337
|
default:
|
|
2435
2338
|
const parsedBody = parsedOutput.body;
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
$metadata,
|
|
2339
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2340
|
+
output,
|
|
2341
|
+
parsedBody,
|
|
2342
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2343
|
+
errorCode,
|
|
2442
2344
|
});
|
|
2443
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2444
2345
|
}
|
|
2445
2346
|
};
|
|
2446
2347
|
const deserializeAws_json1_1GetPermissionPolicyCommand = async (output, context) => {
|
|
@@ -2462,7 +2363,6 @@ const deserializeAws_json1_1GetPermissionPolicyCommandError = async (output, con
|
|
|
2462
2363
|
...output,
|
|
2463
2364
|
body: await parseBody(output.body, context),
|
|
2464
2365
|
};
|
|
2465
|
-
let response;
|
|
2466
2366
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2467
2367
|
switch (errorCode) {
|
|
2468
2368
|
case "WAFInternalErrorException":
|
|
@@ -2473,14 +2373,12 @@ const deserializeAws_json1_1GetPermissionPolicyCommandError = async (output, con
|
|
|
2473
2373
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2474
2374
|
default:
|
|
2475
2375
|
const parsedBody = parsedOutput.body;
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
$metadata,
|
|
2376
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2377
|
+
output,
|
|
2378
|
+
parsedBody,
|
|
2379
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2380
|
+
errorCode,
|
|
2482
2381
|
});
|
|
2483
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2484
2382
|
}
|
|
2485
2383
|
};
|
|
2486
2384
|
const deserializeAws_json1_1GetRateBasedRuleCommand = async (output, context) => {
|
|
@@ -2502,7 +2400,6 @@ const deserializeAws_json1_1GetRateBasedRuleCommandError = async (output, contex
|
|
|
2502
2400
|
...output,
|
|
2503
2401
|
body: await parseBody(output.body, context),
|
|
2504
2402
|
};
|
|
2505
|
-
let response;
|
|
2506
2403
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2507
2404
|
switch (errorCode) {
|
|
2508
2405
|
case "WAFInternalErrorException":
|
|
@@ -2516,14 +2413,12 @@ const deserializeAws_json1_1GetRateBasedRuleCommandError = async (output, contex
|
|
|
2516
2413
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2517
2414
|
default:
|
|
2518
2415
|
const parsedBody = parsedOutput.body;
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
$metadata,
|
|
2416
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2417
|
+
output,
|
|
2418
|
+
parsedBody,
|
|
2419
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2420
|
+
errorCode,
|
|
2525
2421
|
});
|
|
2526
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2527
2422
|
}
|
|
2528
2423
|
};
|
|
2529
2424
|
const deserializeAws_json1_1GetRateBasedRuleManagedKeysCommand = async (output, context) => {
|
|
@@ -2545,7 +2440,6 @@ const deserializeAws_json1_1GetRateBasedRuleManagedKeysCommandError = async (out
|
|
|
2545
2440
|
...output,
|
|
2546
2441
|
body: await parseBody(output.body, context),
|
|
2547
2442
|
};
|
|
2548
|
-
let response;
|
|
2549
2443
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2550
2444
|
switch (errorCode) {
|
|
2551
2445
|
case "WAFInternalErrorException":
|
|
@@ -2562,14 +2456,12 @@ const deserializeAws_json1_1GetRateBasedRuleManagedKeysCommandError = async (out
|
|
|
2562
2456
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2563
2457
|
default:
|
|
2564
2458
|
const parsedBody = parsedOutput.body;
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
$metadata,
|
|
2459
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2460
|
+
output,
|
|
2461
|
+
parsedBody,
|
|
2462
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2463
|
+
errorCode,
|
|
2571
2464
|
});
|
|
2572
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2573
2465
|
}
|
|
2574
2466
|
};
|
|
2575
2467
|
const deserializeAws_json1_1GetRegexMatchSetCommand = async (output, context) => {
|
|
@@ -2591,7 +2483,6 @@ const deserializeAws_json1_1GetRegexMatchSetCommandError = async (output, contex
|
|
|
2591
2483
|
...output,
|
|
2592
2484
|
body: await parseBody(output.body, context),
|
|
2593
2485
|
};
|
|
2594
|
-
let response;
|
|
2595
2486
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2596
2487
|
switch (errorCode) {
|
|
2597
2488
|
case "WAFInternalErrorException":
|
|
@@ -2605,14 +2496,12 @@ const deserializeAws_json1_1GetRegexMatchSetCommandError = async (output, contex
|
|
|
2605
2496
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2606
2497
|
default:
|
|
2607
2498
|
const parsedBody = parsedOutput.body;
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
$metadata,
|
|
2499
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2500
|
+
output,
|
|
2501
|
+
parsedBody,
|
|
2502
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2503
|
+
errorCode,
|
|
2614
2504
|
});
|
|
2615
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2616
2505
|
}
|
|
2617
2506
|
};
|
|
2618
2507
|
const deserializeAws_json1_1GetRegexPatternSetCommand = async (output, context) => {
|
|
@@ -2634,7 +2523,6 @@ const deserializeAws_json1_1GetRegexPatternSetCommandError = async (output, cont
|
|
|
2634
2523
|
...output,
|
|
2635
2524
|
body: await parseBody(output.body, context),
|
|
2636
2525
|
};
|
|
2637
|
-
let response;
|
|
2638
2526
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2639
2527
|
switch (errorCode) {
|
|
2640
2528
|
case "WAFInternalErrorException":
|
|
@@ -2648,14 +2536,12 @@ const deserializeAws_json1_1GetRegexPatternSetCommandError = async (output, cont
|
|
|
2648
2536
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2649
2537
|
default:
|
|
2650
2538
|
const parsedBody = parsedOutput.body;
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
$metadata,
|
|
2539
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2540
|
+
output,
|
|
2541
|
+
parsedBody,
|
|
2542
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2543
|
+
errorCode,
|
|
2657
2544
|
});
|
|
2658
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2659
2545
|
}
|
|
2660
2546
|
};
|
|
2661
2547
|
const deserializeAws_json1_1GetRuleCommand = async (output, context) => {
|
|
@@ -2677,7 +2563,6 @@ const deserializeAws_json1_1GetRuleCommandError = async (output, context) => {
|
|
|
2677
2563
|
...output,
|
|
2678
2564
|
body: await parseBody(output.body, context),
|
|
2679
2565
|
};
|
|
2680
|
-
let response;
|
|
2681
2566
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2682
2567
|
switch (errorCode) {
|
|
2683
2568
|
case "WAFInternalErrorException":
|
|
@@ -2691,14 +2576,12 @@ const deserializeAws_json1_1GetRuleCommandError = async (output, context) => {
|
|
|
2691
2576
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2692
2577
|
default:
|
|
2693
2578
|
const parsedBody = parsedOutput.body;
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
$metadata,
|
|
2579
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2580
|
+
output,
|
|
2581
|
+
parsedBody,
|
|
2582
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2583
|
+
errorCode,
|
|
2700
2584
|
});
|
|
2701
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2702
2585
|
}
|
|
2703
2586
|
};
|
|
2704
2587
|
const deserializeAws_json1_1GetRuleGroupCommand = async (output, context) => {
|
|
@@ -2720,7 +2603,6 @@ const deserializeAws_json1_1GetRuleGroupCommandError = async (output, context) =
|
|
|
2720
2603
|
...output,
|
|
2721
2604
|
body: await parseBody(output.body, context),
|
|
2722
2605
|
};
|
|
2723
|
-
let response;
|
|
2724
2606
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2725
2607
|
switch (errorCode) {
|
|
2726
2608
|
case "WAFInternalErrorException":
|
|
@@ -2731,14 +2613,12 @@ const deserializeAws_json1_1GetRuleGroupCommandError = async (output, context) =
|
|
|
2731
2613
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2732
2614
|
default:
|
|
2733
2615
|
const parsedBody = parsedOutput.body;
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
$metadata,
|
|
2616
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2617
|
+
output,
|
|
2618
|
+
parsedBody,
|
|
2619
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2620
|
+
errorCode,
|
|
2740
2621
|
});
|
|
2741
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2742
2622
|
}
|
|
2743
2623
|
};
|
|
2744
2624
|
const deserializeAws_json1_1GetSampledRequestsCommand = async (output, context) => {
|
|
@@ -2760,7 +2640,6 @@ const deserializeAws_json1_1GetSampledRequestsCommandError = async (output, cont
|
|
|
2760
2640
|
...output,
|
|
2761
2641
|
body: await parseBody(output.body, context),
|
|
2762
2642
|
};
|
|
2763
|
-
let response;
|
|
2764
2643
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2765
2644
|
switch (errorCode) {
|
|
2766
2645
|
case "WAFInternalErrorException":
|
|
@@ -2771,14 +2650,12 @@ const deserializeAws_json1_1GetSampledRequestsCommandError = async (output, cont
|
|
|
2771
2650
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2772
2651
|
default:
|
|
2773
2652
|
const parsedBody = parsedOutput.body;
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
$metadata,
|
|
2653
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2654
|
+
output,
|
|
2655
|
+
parsedBody,
|
|
2656
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2657
|
+
errorCode,
|
|
2780
2658
|
});
|
|
2781
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2782
2659
|
}
|
|
2783
2660
|
};
|
|
2784
2661
|
const deserializeAws_json1_1GetSizeConstraintSetCommand = async (output, context) => {
|
|
@@ -2800,7 +2677,6 @@ const deserializeAws_json1_1GetSizeConstraintSetCommandError = async (output, co
|
|
|
2800
2677
|
...output,
|
|
2801
2678
|
body: await parseBody(output.body, context),
|
|
2802
2679
|
};
|
|
2803
|
-
let response;
|
|
2804
2680
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2805
2681
|
switch (errorCode) {
|
|
2806
2682
|
case "WAFInternalErrorException":
|
|
@@ -2814,14 +2690,12 @@ const deserializeAws_json1_1GetSizeConstraintSetCommandError = async (output, co
|
|
|
2814
2690
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2815
2691
|
default:
|
|
2816
2692
|
const parsedBody = parsedOutput.body;
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
$metadata,
|
|
2693
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2694
|
+
output,
|
|
2695
|
+
parsedBody,
|
|
2696
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2697
|
+
errorCode,
|
|
2823
2698
|
});
|
|
2824
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2825
2699
|
}
|
|
2826
2700
|
};
|
|
2827
2701
|
const deserializeAws_json1_1GetSqlInjectionMatchSetCommand = async (output, context) => {
|
|
@@ -2843,7 +2717,6 @@ const deserializeAws_json1_1GetSqlInjectionMatchSetCommandError = async (output,
|
|
|
2843
2717
|
...output,
|
|
2844
2718
|
body: await parseBody(output.body, context),
|
|
2845
2719
|
};
|
|
2846
|
-
let response;
|
|
2847
2720
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2848
2721
|
switch (errorCode) {
|
|
2849
2722
|
case "WAFInternalErrorException":
|
|
@@ -2857,14 +2730,12 @@ const deserializeAws_json1_1GetSqlInjectionMatchSetCommandError = async (output,
|
|
|
2857
2730
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2858
2731
|
default:
|
|
2859
2732
|
const parsedBody = parsedOutput.body;
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
$metadata,
|
|
2733
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2734
|
+
output,
|
|
2735
|
+
parsedBody,
|
|
2736
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2737
|
+
errorCode,
|
|
2866
2738
|
});
|
|
2867
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2868
2739
|
}
|
|
2869
2740
|
};
|
|
2870
2741
|
const deserializeAws_json1_1GetWebACLCommand = async (output, context) => {
|
|
@@ -2886,7 +2757,6 @@ const deserializeAws_json1_1GetWebACLCommandError = async (output, context) => {
|
|
|
2886
2757
|
...output,
|
|
2887
2758
|
body: await parseBody(output.body, context),
|
|
2888
2759
|
};
|
|
2889
|
-
let response;
|
|
2890
2760
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2891
2761
|
switch (errorCode) {
|
|
2892
2762
|
case "WAFInternalErrorException":
|
|
@@ -2900,14 +2770,12 @@ const deserializeAws_json1_1GetWebACLCommandError = async (output, context) => {
|
|
|
2900
2770
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2901
2771
|
default:
|
|
2902
2772
|
const parsedBody = parsedOutput.body;
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
$metadata,
|
|
2773
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2774
|
+
output,
|
|
2775
|
+
parsedBody,
|
|
2776
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2777
|
+
errorCode,
|
|
2909
2778
|
});
|
|
2910
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2911
2779
|
}
|
|
2912
2780
|
};
|
|
2913
2781
|
const deserializeAws_json1_1GetXssMatchSetCommand = async (output, context) => {
|
|
@@ -2929,7 +2797,6 @@ const deserializeAws_json1_1GetXssMatchSetCommandError = async (output, context)
|
|
|
2929
2797
|
...output,
|
|
2930
2798
|
body: await parseBody(output.body, context),
|
|
2931
2799
|
};
|
|
2932
|
-
let response;
|
|
2933
2800
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2934
2801
|
switch (errorCode) {
|
|
2935
2802
|
case "WAFInternalErrorException":
|
|
@@ -2943,14 +2810,12 @@ const deserializeAws_json1_1GetXssMatchSetCommandError = async (output, context)
|
|
|
2943
2810
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2944
2811
|
default:
|
|
2945
2812
|
const parsedBody = parsedOutput.body;
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
$metadata,
|
|
2813
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2814
|
+
output,
|
|
2815
|
+
parsedBody,
|
|
2816
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2817
|
+
errorCode,
|
|
2952
2818
|
});
|
|
2953
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2954
2819
|
}
|
|
2955
2820
|
};
|
|
2956
2821
|
const deserializeAws_json1_1ListActivatedRulesInRuleGroupCommand = async (output, context) => {
|
|
@@ -2972,7 +2837,6 @@ const deserializeAws_json1_1ListActivatedRulesInRuleGroupCommandError = async (o
|
|
|
2972
2837
|
...output,
|
|
2973
2838
|
body: await parseBody(output.body, context),
|
|
2974
2839
|
};
|
|
2975
|
-
let response;
|
|
2976
2840
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2977
2841
|
switch (errorCode) {
|
|
2978
2842
|
case "WAFInternalErrorException":
|
|
@@ -2986,14 +2850,12 @@ const deserializeAws_json1_1ListActivatedRulesInRuleGroupCommandError = async (o
|
|
|
2986
2850
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2987
2851
|
default:
|
|
2988
2852
|
const parsedBody = parsedOutput.body;
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
$metadata,
|
|
2853
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2854
|
+
output,
|
|
2855
|
+
parsedBody,
|
|
2856
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2857
|
+
errorCode,
|
|
2995
2858
|
});
|
|
2996
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2997
2859
|
}
|
|
2998
2860
|
};
|
|
2999
2861
|
const deserializeAws_json1_1ListByteMatchSetsCommand = async (output, context) => {
|
|
@@ -3015,7 +2877,6 @@ const deserializeAws_json1_1ListByteMatchSetsCommandError = async (output, conte
|
|
|
3015
2877
|
...output,
|
|
3016
2878
|
body: await parseBody(output.body, context),
|
|
3017
2879
|
};
|
|
3018
|
-
let response;
|
|
3019
2880
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3020
2881
|
switch (errorCode) {
|
|
3021
2882
|
case "WAFInternalErrorException":
|
|
@@ -3026,14 +2887,12 @@ const deserializeAws_json1_1ListByteMatchSetsCommandError = async (output, conte
|
|
|
3026
2887
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3027
2888
|
default:
|
|
3028
2889
|
const parsedBody = parsedOutput.body;
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
$metadata,
|
|
2890
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2891
|
+
output,
|
|
2892
|
+
parsedBody,
|
|
2893
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2894
|
+
errorCode,
|
|
3035
2895
|
});
|
|
3036
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3037
2896
|
}
|
|
3038
2897
|
};
|
|
3039
2898
|
const deserializeAws_json1_1ListGeoMatchSetsCommand = async (output, context) => {
|
|
@@ -3055,7 +2914,6 @@ const deserializeAws_json1_1ListGeoMatchSetsCommandError = async (output, contex
|
|
|
3055
2914
|
...output,
|
|
3056
2915
|
body: await parseBody(output.body, context),
|
|
3057
2916
|
};
|
|
3058
|
-
let response;
|
|
3059
2917
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3060
2918
|
switch (errorCode) {
|
|
3061
2919
|
case "WAFInternalErrorException":
|
|
@@ -3066,14 +2924,12 @@ const deserializeAws_json1_1ListGeoMatchSetsCommandError = async (output, contex
|
|
|
3066
2924
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3067
2925
|
default:
|
|
3068
2926
|
const parsedBody = parsedOutput.body;
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
$metadata,
|
|
2927
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2928
|
+
output,
|
|
2929
|
+
parsedBody,
|
|
2930
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2931
|
+
errorCode,
|
|
3075
2932
|
});
|
|
3076
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3077
2933
|
}
|
|
3078
2934
|
};
|
|
3079
2935
|
const deserializeAws_json1_1ListIPSetsCommand = async (output, context) => {
|
|
@@ -3095,7 +2951,6 @@ const deserializeAws_json1_1ListIPSetsCommandError = async (output, context) =>
|
|
|
3095
2951
|
...output,
|
|
3096
2952
|
body: await parseBody(output.body, context),
|
|
3097
2953
|
};
|
|
3098
|
-
let response;
|
|
3099
2954
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3100
2955
|
switch (errorCode) {
|
|
3101
2956
|
case "WAFInternalErrorException":
|
|
@@ -3106,14 +2961,12 @@ const deserializeAws_json1_1ListIPSetsCommandError = async (output, context) =>
|
|
|
3106
2961
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3107
2962
|
default:
|
|
3108
2963
|
const parsedBody = parsedOutput.body;
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
$metadata,
|
|
2964
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2965
|
+
output,
|
|
2966
|
+
parsedBody,
|
|
2967
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
2968
|
+
errorCode,
|
|
3115
2969
|
});
|
|
3116
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3117
2970
|
}
|
|
3118
2971
|
};
|
|
3119
2972
|
const deserializeAws_json1_1ListLoggingConfigurationsCommand = async (output, context) => {
|
|
@@ -3135,7 +2988,6 @@ const deserializeAws_json1_1ListLoggingConfigurationsCommandError = async (outpu
|
|
|
3135
2988
|
...output,
|
|
3136
2989
|
body: await parseBody(output.body, context),
|
|
3137
2990
|
};
|
|
3138
|
-
let response;
|
|
3139
2991
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3140
2992
|
switch (errorCode) {
|
|
3141
2993
|
case "WAFInternalErrorException":
|
|
@@ -3149,14 +3001,12 @@ const deserializeAws_json1_1ListLoggingConfigurationsCommandError = async (outpu
|
|
|
3149
3001
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
3150
3002
|
default:
|
|
3151
3003
|
const parsedBody = parsedOutput.body;
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
$metadata,
|
|
3004
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3005
|
+
output,
|
|
3006
|
+
parsedBody,
|
|
3007
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3008
|
+
errorCode,
|
|
3158
3009
|
});
|
|
3159
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3160
3010
|
}
|
|
3161
3011
|
};
|
|
3162
3012
|
const deserializeAws_json1_1ListRateBasedRulesCommand = async (output, context) => {
|
|
@@ -3178,7 +3028,6 @@ const deserializeAws_json1_1ListRateBasedRulesCommandError = async (output, cont
|
|
|
3178
3028
|
...output,
|
|
3179
3029
|
body: await parseBody(output.body, context),
|
|
3180
3030
|
};
|
|
3181
|
-
let response;
|
|
3182
3031
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3183
3032
|
switch (errorCode) {
|
|
3184
3033
|
case "WAFInternalErrorException":
|
|
@@ -3189,14 +3038,12 @@ const deserializeAws_json1_1ListRateBasedRulesCommandError = async (output, cont
|
|
|
3189
3038
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3190
3039
|
default:
|
|
3191
3040
|
const parsedBody = parsedOutput.body;
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
$metadata,
|
|
3041
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3042
|
+
output,
|
|
3043
|
+
parsedBody,
|
|
3044
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3045
|
+
errorCode,
|
|
3198
3046
|
});
|
|
3199
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3200
3047
|
}
|
|
3201
3048
|
};
|
|
3202
3049
|
const deserializeAws_json1_1ListRegexMatchSetsCommand = async (output, context) => {
|
|
@@ -3218,7 +3065,6 @@ const deserializeAws_json1_1ListRegexMatchSetsCommandError = async (output, cont
|
|
|
3218
3065
|
...output,
|
|
3219
3066
|
body: await parseBody(output.body, context),
|
|
3220
3067
|
};
|
|
3221
|
-
let response;
|
|
3222
3068
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3223
3069
|
switch (errorCode) {
|
|
3224
3070
|
case "WAFInternalErrorException":
|
|
@@ -3229,14 +3075,12 @@ const deserializeAws_json1_1ListRegexMatchSetsCommandError = async (output, cont
|
|
|
3229
3075
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3230
3076
|
default:
|
|
3231
3077
|
const parsedBody = parsedOutput.body;
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
$metadata,
|
|
3078
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3079
|
+
output,
|
|
3080
|
+
parsedBody,
|
|
3081
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3082
|
+
errorCode,
|
|
3238
3083
|
});
|
|
3239
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3240
3084
|
}
|
|
3241
3085
|
};
|
|
3242
3086
|
const deserializeAws_json1_1ListRegexPatternSetsCommand = async (output, context) => {
|
|
@@ -3258,7 +3102,6 @@ const deserializeAws_json1_1ListRegexPatternSetsCommandError = async (output, co
|
|
|
3258
3102
|
...output,
|
|
3259
3103
|
body: await parseBody(output.body, context),
|
|
3260
3104
|
};
|
|
3261
|
-
let response;
|
|
3262
3105
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3263
3106
|
switch (errorCode) {
|
|
3264
3107
|
case "WAFInternalErrorException":
|
|
@@ -3269,14 +3112,12 @@ const deserializeAws_json1_1ListRegexPatternSetsCommandError = async (output, co
|
|
|
3269
3112
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3270
3113
|
default:
|
|
3271
3114
|
const parsedBody = parsedOutput.body;
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
$metadata,
|
|
3115
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3116
|
+
output,
|
|
3117
|
+
parsedBody,
|
|
3118
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3119
|
+
errorCode,
|
|
3278
3120
|
});
|
|
3279
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3280
3121
|
}
|
|
3281
3122
|
};
|
|
3282
3123
|
const deserializeAws_json1_1ListRuleGroupsCommand = async (output, context) => {
|
|
@@ -3298,7 +3139,6 @@ const deserializeAws_json1_1ListRuleGroupsCommandError = async (output, context)
|
|
|
3298
3139
|
...output,
|
|
3299
3140
|
body: await parseBody(output.body, context),
|
|
3300
3141
|
};
|
|
3301
|
-
let response;
|
|
3302
3142
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3303
3143
|
switch (errorCode) {
|
|
3304
3144
|
case "WAFInternalErrorException":
|
|
@@ -3306,14 +3146,12 @@ const deserializeAws_json1_1ListRuleGroupsCommandError = async (output, context)
|
|
|
3306
3146
|
throw await deserializeAws_json1_1WAFInternalErrorExceptionResponse(parsedOutput, context);
|
|
3307
3147
|
default:
|
|
3308
3148
|
const parsedBody = parsedOutput.body;
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
$metadata,
|
|
3149
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3150
|
+
output,
|
|
3151
|
+
parsedBody,
|
|
3152
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3153
|
+
errorCode,
|
|
3315
3154
|
});
|
|
3316
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3317
3155
|
}
|
|
3318
3156
|
};
|
|
3319
3157
|
const deserializeAws_json1_1ListRulesCommand = async (output, context) => {
|
|
@@ -3335,7 +3173,6 @@ const deserializeAws_json1_1ListRulesCommandError = async (output, context) => {
|
|
|
3335
3173
|
...output,
|
|
3336
3174
|
body: await parseBody(output.body, context),
|
|
3337
3175
|
};
|
|
3338
|
-
let response;
|
|
3339
3176
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3340
3177
|
switch (errorCode) {
|
|
3341
3178
|
case "WAFInternalErrorException":
|
|
@@ -3346,14 +3183,12 @@ const deserializeAws_json1_1ListRulesCommandError = async (output, context) => {
|
|
|
3346
3183
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3347
3184
|
default:
|
|
3348
3185
|
const parsedBody = parsedOutput.body;
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
$metadata,
|
|
3186
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3187
|
+
output,
|
|
3188
|
+
parsedBody,
|
|
3189
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3190
|
+
errorCode,
|
|
3355
3191
|
});
|
|
3356
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3357
3192
|
}
|
|
3358
3193
|
};
|
|
3359
3194
|
const deserializeAws_json1_1ListSizeConstraintSetsCommand = async (output, context) => {
|
|
@@ -3375,7 +3210,6 @@ const deserializeAws_json1_1ListSizeConstraintSetsCommandError = async (output,
|
|
|
3375
3210
|
...output,
|
|
3376
3211
|
body: await parseBody(output.body, context),
|
|
3377
3212
|
};
|
|
3378
|
-
let response;
|
|
3379
3213
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3380
3214
|
switch (errorCode) {
|
|
3381
3215
|
case "WAFInternalErrorException":
|
|
@@ -3386,14 +3220,12 @@ const deserializeAws_json1_1ListSizeConstraintSetsCommandError = async (output,
|
|
|
3386
3220
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3387
3221
|
default:
|
|
3388
3222
|
const parsedBody = parsedOutput.body;
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
$metadata,
|
|
3223
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3224
|
+
output,
|
|
3225
|
+
parsedBody,
|
|
3226
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3227
|
+
errorCode,
|
|
3395
3228
|
});
|
|
3396
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3397
3229
|
}
|
|
3398
3230
|
};
|
|
3399
3231
|
const deserializeAws_json1_1ListSqlInjectionMatchSetsCommand = async (output, context) => {
|
|
@@ -3415,7 +3247,6 @@ const deserializeAws_json1_1ListSqlInjectionMatchSetsCommandError = async (outpu
|
|
|
3415
3247
|
...output,
|
|
3416
3248
|
body: await parseBody(output.body, context),
|
|
3417
3249
|
};
|
|
3418
|
-
let response;
|
|
3419
3250
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3420
3251
|
switch (errorCode) {
|
|
3421
3252
|
case "WAFInternalErrorException":
|
|
@@ -3426,14 +3257,12 @@ const deserializeAws_json1_1ListSqlInjectionMatchSetsCommandError = async (outpu
|
|
|
3426
3257
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3427
3258
|
default:
|
|
3428
3259
|
const parsedBody = parsedOutput.body;
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
$metadata,
|
|
3260
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3261
|
+
output,
|
|
3262
|
+
parsedBody,
|
|
3263
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3264
|
+
errorCode,
|
|
3435
3265
|
});
|
|
3436
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3437
3266
|
}
|
|
3438
3267
|
};
|
|
3439
3268
|
const deserializeAws_json1_1ListSubscribedRuleGroupsCommand = async (output, context) => {
|
|
@@ -3455,7 +3284,6 @@ const deserializeAws_json1_1ListSubscribedRuleGroupsCommandError = async (output
|
|
|
3455
3284
|
...output,
|
|
3456
3285
|
body: await parseBody(output.body, context),
|
|
3457
3286
|
};
|
|
3458
|
-
let response;
|
|
3459
3287
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3460
3288
|
switch (errorCode) {
|
|
3461
3289
|
case "WAFInternalErrorException":
|
|
@@ -3466,14 +3294,12 @@ const deserializeAws_json1_1ListSubscribedRuleGroupsCommandError = async (output
|
|
|
3466
3294
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
3467
3295
|
default:
|
|
3468
3296
|
const parsedBody = parsedOutput.body;
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
$metadata,
|
|
3297
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3298
|
+
output,
|
|
3299
|
+
parsedBody,
|
|
3300
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3301
|
+
errorCode,
|
|
3475
3302
|
});
|
|
3476
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3477
3303
|
}
|
|
3478
3304
|
};
|
|
3479
3305
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -3495,7 +3321,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
3495
3321
|
...output,
|
|
3496
3322
|
body: await parseBody(output.body, context),
|
|
3497
3323
|
};
|
|
3498
|
-
let response;
|
|
3499
3324
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3500
3325
|
switch (errorCode) {
|
|
3501
3326
|
case "WAFBadRequestException":
|
|
@@ -3518,14 +3343,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
3518
3343
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
3519
3344
|
default:
|
|
3520
3345
|
const parsedBody = parsedOutput.body;
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
$metadata,
|
|
3346
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3347
|
+
output,
|
|
3348
|
+
parsedBody,
|
|
3349
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3350
|
+
errorCode,
|
|
3527
3351
|
});
|
|
3528
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3529
3352
|
}
|
|
3530
3353
|
};
|
|
3531
3354
|
const deserializeAws_json1_1ListWebACLsCommand = async (output, context) => {
|
|
@@ -3547,7 +3370,6 @@ const deserializeAws_json1_1ListWebACLsCommandError = async (output, context) =>
|
|
|
3547
3370
|
...output,
|
|
3548
3371
|
body: await parseBody(output.body, context),
|
|
3549
3372
|
};
|
|
3550
|
-
let response;
|
|
3551
3373
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3552
3374
|
switch (errorCode) {
|
|
3553
3375
|
case "WAFInternalErrorException":
|
|
@@ -3558,14 +3380,12 @@ const deserializeAws_json1_1ListWebACLsCommandError = async (output, context) =>
|
|
|
3558
3380
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3559
3381
|
default:
|
|
3560
3382
|
const parsedBody = parsedOutput.body;
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
$metadata,
|
|
3383
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3384
|
+
output,
|
|
3385
|
+
parsedBody,
|
|
3386
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3387
|
+
errorCode,
|
|
3567
3388
|
});
|
|
3568
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3569
3389
|
}
|
|
3570
3390
|
};
|
|
3571
3391
|
const deserializeAws_json1_1ListXssMatchSetsCommand = async (output, context) => {
|
|
@@ -3587,7 +3407,6 @@ const deserializeAws_json1_1ListXssMatchSetsCommandError = async (output, contex
|
|
|
3587
3407
|
...output,
|
|
3588
3408
|
body: await parseBody(output.body, context),
|
|
3589
3409
|
};
|
|
3590
|
-
let response;
|
|
3591
3410
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3592
3411
|
switch (errorCode) {
|
|
3593
3412
|
case "WAFInternalErrorException":
|
|
@@ -3598,14 +3417,12 @@ const deserializeAws_json1_1ListXssMatchSetsCommandError = async (output, contex
|
|
|
3598
3417
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3599
3418
|
default:
|
|
3600
3419
|
const parsedBody = parsedOutput.body;
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
$metadata,
|
|
3420
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3421
|
+
output,
|
|
3422
|
+
parsedBody,
|
|
3423
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3424
|
+
errorCode,
|
|
3607
3425
|
});
|
|
3608
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3609
3426
|
}
|
|
3610
3427
|
};
|
|
3611
3428
|
const deserializeAws_json1_1PutLoggingConfigurationCommand = async (output, context) => {
|
|
@@ -3627,7 +3444,6 @@ const deserializeAws_json1_1PutLoggingConfigurationCommandError = async (output,
|
|
|
3627
3444
|
...output,
|
|
3628
3445
|
body: await parseBody(output.body, context),
|
|
3629
3446
|
};
|
|
3630
|
-
let response;
|
|
3631
3447
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3632
3448
|
switch (errorCode) {
|
|
3633
3449
|
case "WAFInternalErrorException":
|
|
@@ -3644,14 +3460,12 @@ const deserializeAws_json1_1PutLoggingConfigurationCommandError = async (output,
|
|
|
3644
3460
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
3645
3461
|
default:
|
|
3646
3462
|
const parsedBody = parsedOutput.body;
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
$metadata,
|
|
3463
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3464
|
+
output,
|
|
3465
|
+
parsedBody,
|
|
3466
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3467
|
+
errorCode,
|
|
3653
3468
|
});
|
|
3654
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3655
3469
|
}
|
|
3656
3470
|
};
|
|
3657
3471
|
const deserializeAws_json1_1PutPermissionPolicyCommand = async (output, context) => {
|
|
@@ -3673,7 +3487,6 @@ const deserializeAws_json1_1PutPermissionPolicyCommandError = async (output, con
|
|
|
3673
3487
|
...output,
|
|
3674
3488
|
body: await parseBody(output.body, context),
|
|
3675
3489
|
};
|
|
3676
|
-
let response;
|
|
3677
3490
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3678
3491
|
switch (errorCode) {
|
|
3679
3492
|
case "WAFInternalErrorException":
|
|
@@ -3690,14 +3503,12 @@ const deserializeAws_json1_1PutPermissionPolicyCommandError = async (output, con
|
|
|
3690
3503
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
3691
3504
|
default:
|
|
3692
3505
|
const parsedBody = parsedOutput.body;
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
$metadata,
|
|
3506
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3507
|
+
output,
|
|
3508
|
+
parsedBody,
|
|
3509
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3510
|
+
errorCode,
|
|
3699
3511
|
});
|
|
3700
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3701
3512
|
}
|
|
3702
3513
|
};
|
|
3703
3514
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -3719,7 +3530,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3719
3530
|
...output,
|
|
3720
3531
|
body: await parseBody(output.body, context),
|
|
3721
3532
|
};
|
|
3722
|
-
let response;
|
|
3723
3533
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3724
3534
|
switch (errorCode) {
|
|
3725
3535
|
case "WAFBadRequestException":
|
|
@@ -3745,14 +3555,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3745
3555
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
3746
3556
|
default:
|
|
3747
3557
|
const parsedBody = parsedOutput.body;
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
$metadata,
|
|
3558
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3559
|
+
output,
|
|
3560
|
+
parsedBody,
|
|
3561
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3562
|
+
errorCode,
|
|
3754
3563
|
});
|
|
3755
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3756
3564
|
}
|
|
3757
3565
|
};
|
|
3758
3566
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -3774,7 +3582,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3774
3582
|
...output,
|
|
3775
3583
|
body: await parseBody(output.body, context),
|
|
3776
3584
|
};
|
|
3777
|
-
let response;
|
|
3778
3585
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3779
3586
|
switch (errorCode) {
|
|
3780
3587
|
case "WAFBadRequestException":
|
|
@@ -3797,14 +3604,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3797
3604
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
3798
3605
|
default:
|
|
3799
3606
|
const parsedBody = parsedOutput.body;
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
$metadata,
|
|
3607
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3608
|
+
output,
|
|
3609
|
+
parsedBody,
|
|
3610
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3611
|
+
errorCode,
|
|
3806
3612
|
});
|
|
3807
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3808
3613
|
}
|
|
3809
3614
|
};
|
|
3810
3615
|
const deserializeAws_json1_1UpdateByteMatchSetCommand = async (output, context) => {
|
|
@@ -3826,7 +3631,6 @@ const deserializeAws_json1_1UpdateByteMatchSetCommandError = async (output, cont
|
|
|
3826
3631
|
...output,
|
|
3827
3632
|
body: await parseBody(output.body, context),
|
|
3828
3633
|
};
|
|
3829
|
-
let response;
|
|
3830
3634
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3831
3635
|
switch (errorCode) {
|
|
3832
3636
|
case "WAFInternalErrorException":
|
|
@@ -3855,14 +3659,12 @@ const deserializeAws_json1_1UpdateByteMatchSetCommandError = async (output, cont
|
|
|
3855
3659
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
3856
3660
|
default:
|
|
3857
3661
|
const parsedBody = parsedOutput.body;
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
$metadata,
|
|
3662
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3663
|
+
output,
|
|
3664
|
+
parsedBody,
|
|
3665
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3666
|
+
errorCode,
|
|
3864
3667
|
});
|
|
3865
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3866
3668
|
}
|
|
3867
3669
|
};
|
|
3868
3670
|
const deserializeAws_json1_1UpdateGeoMatchSetCommand = async (output, context) => {
|
|
@@ -3884,7 +3686,6 @@ const deserializeAws_json1_1UpdateGeoMatchSetCommandError = async (output, conte
|
|
|
3884
3686
|
...output,
|
|
3885
3687
|
body: await parseBody(output.body, context),
|
|
3886
3688
|
};
|
|
3887
|
-
let response;
|
|
3888
3689
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3889
3690
|
switch (errorCode) {
|
|
3890
3691
|
case "WAFInternalErrorException":
|
|
@@ -3916,14 +3717,12 @@ const deserializeAws_json1_1UpdateGeoMatchSetCommandError = async (output, conte
|
|
|
3916
3717
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
3917
3718
|
default:
|
|
3918
3719
|
const parsedBody = parsedOutput.body;
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
$metadata,
|
|
3720
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3721
|
+
output,
|
|
3722
|
+
parsedBody,
|
|
3723
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3724
|
+
errorCode,
|
|
3925
3725
|
});
|
|
3926
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3927
3726
|
}
|
|
3928
3727
|
};
|
|
3929
3728
|
const deserializeAws_json1_1UpdateIPSetCommand = async (output, context) => {
|
|
@@ -3945,7 +3744,6 @@ const deserializeAws_json1_1UpdateIPSetCommandError = async (output, context) =>
|
|
|
3945
3744
|
...output,
|
|
3946
3745
|
body: await parseBody(output.body, context),
|
|
3947
3746
|
};
|
|
3948
|
-
let response;
|
|
3949
3747
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3950
3748
|
switch (errorCode) {
|
|
3951
3749
|
case "WAFInternalErrorException":
|
|
@@ -3977,14 +3775,12 @@ const deserializeAws_json1_1UpdateIPSetCommandError = async (output, context) =>
|
|
|
3977
3775
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
3978
3776
|
default:
|
|
3979
3777
|
const parsedBody = parsedOutput.body;
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
$metadata,
|
|
3778
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3779
|
+
output,
|
|
3780
|
+
parsedBody,
|
|
3781
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3782
|
+
errorCode,
|
|
3986
3783
|
});
|
|
3987
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3988
3784
|
}
|
|
3989
3785
|
};
|
|
3990
3786
|
const deserializeAws_json1_1UpdateRateBasedRuleCommand = async (output, context) => {
|
|
@@ -4006,7 +3802,6 @@ const deserializeAws_json1_1UpdateRateBasedRuleCommandError = async (output, con
|
|
|
4006
3802
|
...output,
|
|
4007
3803
|
body: await parseBody(output.body, context),
|
|
4008
3804
|
};
|
|
4009
|
-
let response;
|
|
4010
3805
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4011
3806
|
switch (errorCode) {
|
|
4012
3807
|
case "WAFInternalErrorException":
|
|
@@ -4038,14 +3833,12 @@ const deserializeAws_json1_1UpdateRateBasedRuleCommandError = async (output, con
|
|
|
4038
3833
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
4039
3834
|
default:
|
|
4040
3835
|
const parsedBody = parsedOutput.body;
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
$metadata,
|
|
3836
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3837
|
+
output,
|
|
3838
|
+
parsedBody,
|
|
3839
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3840
|
+
errorCode,
|
|
4047
3841
|
});
|
|
4048
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4049
3842
|
}
|
|
4050
3843
|
};
|
|
4051
3844
|
const deserializeAws_json1_1UpdateRegexMatchSetCommand = async (output, context) => {
|
|
@@ -4067,7 +3860,6 @@ const deserializeAws_json1_1UpdateRegexMatchSetCommandError = async (output, con
|
|
|
4067
3860
|
...output,
|
|
4068
3861
|
body: await parseBody(output.body, context),
|
|
4069
3862
|
};
|
|
4070
|
-
let response;
|
|
4071
3863
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4072
3864
|
switch (errorCode) {
|
|
4073
3865
|
case "WAFDisallowedNameException":
|
|
@@ -4096,14 +3888,12 @@ const deserializeAws_json1_1UpdateRegexMatchSetCommandError = async (output, con
|
|
|
4096
3888
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
4097
3889
|
default:
|
|
4098
3890
|
const parsedBody = parsedOutput.body;
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
$metadata,
|
|
3891
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3892
|
+
output,
|
|
3893
|
+
parsedBody,
|
|
3894
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3895
|
+
errorCode,
|
|
4105
3896
|
});
|
|
4106
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4107
3897
|
}
|
|
4108
3898
|
};
|
|
4109
3899
|
const deserializeAws_json1_1UpdateRegexPatternSetCommand = async (output, context) => {
|
|
@@ -4125,7 +3915,6 @@ const deserializeAws_json1_1UpdateRegexPatternSetCommandError = async (output, c
|
|
|
4125
3915
|
...output,
|
|
4126
3916
|
body: await parseBody(output.body, context),
|
|
4127
3917
|
};
|
|
4128
|
-
let response;
|
|
4129
3918
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4130
3919
|
switch (errorCode) {
|
|
4131
3920
|
case "WAFInternalErrorException":
|
|
@@ -4154,14 +3943,12 @@ const deserializeAws_json1_1UpdateRegexPatternSetCommandError = async (output, c
|
|
|
4154
3943
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
4155
3944
|
default:
|
|
4156
3945
|
const parsedBody = parsedOutput.body;
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
$metadata,
|
|
3946
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3947
|
+
output,
|
|
3948
|
+
parsedBody,
|
|
3949
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
3950
|
+
errorCode,
|
|
4163
3951
|
});
|
|
4164
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4165
3952
|
}
|
|
4166
3953
|
};
|
|
4167
3954
|
const deserializeAws_json1_1UpdateRuleCommand = async (output, context) => {
|
|
@@ -4183,7 +3970,6 @@ const deserializeAws_json1_1UpdateRuleCommandError = async (output, context) =>
|
|
|
4183
3970
|
...output,
|
|
4184
3971
|
body: await parseBody(output.body, context),
|
|
4185
3972
|
};
|
|
4186
|
-
let response;
|
|
4187
3973
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4188
3974
|
switch (errorCode) {
|
|
4189
3975
|
case "WAFInternalErrorException":
|
|
@@ -4215,14 +4001,12 @@ const deserializeAws_json1_1UpdateRuleCommandError = async (output, context) =>
|
|
|
4215
4001
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
4216
4002
|
default:
|
|
4217
4003
|
const parsedBody = parsedOutput.body;
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
$metadata,
|
|
4004
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4005
|
+
output,
|
|
4006
|
+
parsedBody,
|
|
4007
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
4008
|
+
errorCode,
|
|
4224
4009
|
});
|
|
4225
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4226
4010
|
}
|
|
4227
4011
|
};
|
|
4228
4012
|
const deserializeAws_json1_1UpdateRuleGroupCommand = async (output, context) => {
|
|
@@ -4244,7 +4028,6 @@ const deserializeAws_json1_1UpdateRuleGroupCommandError = async (output, context
|
|
|
4244
4028
|
...output,
|
|
4245
4029
|
body: await parseBody(output.body, context),
|
|
4246
4030
|
};
|
|
4247
|
-
let response;
|
|
4248
4031
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4249
4032
|
switch (errorCode) {
|
|
4250
4033
|
case "WAFInternalErrorException":
|
|
@@ -4270,14 +4053,12 @@ const deserializeAws_json1_1UpdateRuleGroupCommandError = async (output, context
|
|
|
4270
4053
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
4271
4054
|
default:
|
|
4272
4055
|
const parsedBody = parsedOutput.body;
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
$metadata,
|
|
4056
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4057
|
+
output,
|
|
4058
|
+
parsedBody,
|
|
4059
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
4060
|
+
errorCode,
|
|
4279
4061
|
});
|
|
4280
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4281
4062
|
}
|
|
4282
4063
|
};
|
|
4283
4064
|
const deserializeAws_json1_1UpdateSizeConstraintSetCommand = async (output, context) => {
|
|
@@ -4299,7 +4080,6 @@ const deserializeAws_json1_1UpdateSizeConstraintSetCommandError = async (output,
|
|
|
4299
4080
|
...output,
|
|
4300
4081
|
body: await parseBody(output.body, context),
|
|
4301
4082
|
};
|
|
4302
|
-
let response;
|
|
4303
4083
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4304
4084
|
switch (errorCode) {
|
|
4305
4085
|
case "WAFInternalErrorException":
|
|
@@ -4331,14 +4111,12 @@ const deserializeAws_json1_1UpdateSizeConstraintSetCommandError = async (output,
|
|
|
4331
4111
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
4332
4112
|
default:
|
|
4333
4113
|
const parsedBody = parsedOutput.body;
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
$metadata,
|
|
4114
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4115
|
+
output,
|
|
4116
|
+
parsedBody,
|
|
4117
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
4118
|
+
errorCode,
|
|
4340
4119
|
});
|
|
4341
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4342
4120
|
}
|
|
4343
4121
|
};
|
|
4344
4122
|
const deserializeAws_json1_1UpdateSqlInjectionMatchSetCommand = async (output, context) => {
|
|
@@ -4360,7 +4138,6 @@ const deserializeAws_json1_1UpdateSqlInjectionMatchSetCommandError = async (outp
|
|
|
4360
4138
|
...output,
|
|
4361
4139
|
body: await parseBody(output.body, context),
|
|
4362
4140
|
};
|
|
4363
|
-
let response;
|
|
4364
4141
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4365
4142
|
switch (errorCode) {
|
|
4366
4143
|
case "WAFInternalErrorException":
|
|
@@ -4389,14 +4166,12 @@ const deserializeAws_json1_1UpdateSqlInjectionMatchSetCommandError = async (outp
|
|
|
4389
4166
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
4390
4167
|
default:
|
|
4391
4168
|
const parsedBody = parsedOutput.body;
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
$metadata,
|
|
4169
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4170
|
+
output,
|
|
4171
|
+
parsedBody,
|
|
4172
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
4173
|
+
errorCode,
|
|
4398
4174
|
});
|
|
4399
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4400
4175
|
}
|
|
4401
4176
|
};
|
|
4402
4177
|
const deserializeAws_json1_1UpdateWebACLCommand = async (output, context) => {
|
|
@@ -4418,7 +4193,6 @@ const deserializeAws_json1_1UpdateWebACLCommandError = async (output, context) =
|
|
|
4418
4193
|
...output,
|
|
4419
4194
|
body: await parseBody(output.body, context),
|
|
4420
4195
|
};
|
|
4421
|
-
let response;
|
|
4422
4196
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4423
4197
|
switch (errorCode) {
|
|
4424
4198
|
case "WAFInternalErrorException":
|
|
@@ -4453,14 +4227,12 @@ const deserializeAws_json1_1UpdateWebACLCommandError = async (output, context) =
|
|
|
4453
4227
|
throw await deserializeAws_json1_1WAFSubscriptionNotFoundExceptionResponse(parsedOutput, context);
|
|
4454
4228
|
default:
|
|
4455
4229
|
const parsedBody = parsedOutput.body;
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
$metadata,
|
|
4230
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4231
|
+
output,
|
|
4232
|
+
parsedBody,
|
|
4233
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
4234
|
+
errorCode,
|
|
4462
4235
|
});
|
|
4463
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4464
4236
|
}
|
|
4465
4237
|
};
|
|
4466
4238
|
const deserializeAws_json1_1UpdateXssMatchSetCommand = async (output, context) => {
|
|
@@ -4482,7 +4254,6 @@ const deserializeAws_json1_1UpdateXssMatchSetCommandError = async (output, conte
|
|
|
4482
4254
|
...output,
|
|
4483
4255
|
body: await parseBody(output.body, context),
|
|
4484
4256
|
};
|
|
4485
|
-
let response;
|
|
4486
4257
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4487
4258
|
switch (errorCode) {
|
|
4488
4259
|
case "WAFInternalErrorException":
|
|
@@ -4511,14 +4282,12 @@ const deserializeAws_json1_1UpdateXssMatchSetCommandError = async (output, conte
|
|
|
4511
4282
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
4512
4283
|
default:
|
|
4513
4284
|
const parsedBody = parsedOutput.body;
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
$metadata,
|
|
4285
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4286
|
+
output,
|
|
4287
|
+
parsedBody,
|
|
4288
|
+
exceptionCtor: WAFServiceException_1.WAFServiceException,
|
|
4289
|
+
errorCode,
|
|
4520
4290
|
});
|
|
4521
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4522
4291
|
}
|
|
4523
4292
|
};
|
|
4524
4293
|
const deserializeAws_json1_1WAFBadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -4718,9 +4487,6 @@ const serializeAws_json1_1ByteMatchSetUpdates = (input, context) => {
|
|
|
4718
4487
|
return input
|
|
4719
4488
|
.filter((e) => e != null)
|
|
4720
4489
|
.map((entry) => {
|
|
4721
|
-
if (entry === null) {
|
|
4722
|
-
return null;
|
|
4723
|
-
}
|
|
4724
4490
|
return serializeAws_json1_1ByteMatchSetUpdate(entry, context);
|
|
4725
4491
|
});
|
|
4726
4492
|
};
|
|
@@ -4913,9 +4679,6 @@ const serializeAws_json1_1ExcludedRules = (input, context) => {
|
|
|
4913
4679
|
return input
|
|
4914
4680
|
.filter((e) => e != null)
|
|
4915
4681
|
.map((entry) => {
|
|
4916
|
-
if (entry === null) {
|
|
4917
|
-
return null;
|
|
4918
|
-
}
|
|
4919
4682
|
return serializeAws_json1_1ExcludedRule(entry, context);
|
|
4920
4683
|
});
|
|
4921
4684
|
};
|
|
@@ -4943,9 +4706,6 @@ const serializeAws_json1_1GeoMatchSetUpdates = (input, context) => {
|
|
|
4943
4706
|
return input
|
|
4944
4707
|
.filter((e) => e != null)
|
|
4945
4708
|
.map((entry) => {
|
|
4946
|
-
if (entry === null) {
|
|
4947
|
-
return null;
|
|
4948
|
-
}
|
|
4949
4709
|
return serializeAws_json1_1GeoMatchSetUpdate(entry, context);
|
|
4950
4710
|
});
|
|
4951
4711
|
};
|
|
@@ -5059,9 +4819,6 @@ const serializeAws_json1_1IPSetUpdates = (input, context) => {
|
|
|
5059
4819
|
return input
|
|
5060
4820
|
.filter((e) => e != null)
|
|
5061
4821
|
.map((entry) => {
|
|
5062
|
-
if (entry === null) {
|
|
5063
|
-
return null;
|
|
5064
|
-
}
|
|
5065
4822
|
return serializeAws_json1_1IPSetUpdate(entry, context);
|
|
5066
4823
|
});
|
|
5067
4824
|
};
|
|
@@ -5167,9 +4924,6 @@ const serializeAws_json1_1LogDestinationConfigs = (input, context) => {
|
|
|
5167
4924
|
return input
|
|
5168
4925
|
.filter((e) => e != null)
|
|
5169
4926
|
.map((entry) => {
|
|
5170
|
-
if (entry === null) {
|
|
5171
|
-
return null;
|
|
5172
|
-
}
|
|
5173
4927
|
return entry;
|
|
5174
4928
|
});
|
|
5175
4929
|
};
|
|
@@ -5208,9 +4962,6 @@ const serializeAws_json1_1RedactedFields = (input, context) => {
|
|
|
5208
4962
|
return input
|
|
5209
4963
|
.filter((e) => e != null)
|
|
5210
4964
|
.map((entry) => {
|
|
5211
|
-
if (entry === null) {
|
|
5212
|
-
return null;
|
|
5213
|
-
}
|
|
5214
4965
|
return serializeAws_json1_1FieldToMatch(entry, context);
|
|
5215
4966
|
});
|
|
5216
4967
|
};
|
|
@@ -5226,9 +4977,6 @@ const serializeAws_json1_1RegexMatchSetUpdates = (input, context) => {
|
|
|
5226
4977
|
return input
|
|
5227
4978
|
.filter((e) => e != null)
|
|
5228
4979
|
.map((entry) => {
|
|
5229
|
-
if (entry === null) {
|
|
5230
|
-
return null;
|
|
5231
|
-
}
|
|
5232
4980
|
return serializeAws_json1_1RegexMatchSetUpdate(entry, context);
|
|
5233
4981
|
});
|
|
5234
4982
|
};
|
|
@@ -5249,9 +4997,6 @@ const serializeAws_json1_1RegexPatternSetUpdates = (input, context) => {
|
|
|
5249
4997
|
return input
|
|
5250
4998
|
.filter((e) => e != null)
|
|
5251
4999
|
.map((entry) => {
|
|
5252
|
-
if (entry === null) {
|
|
5253
|
-
return null;
|
|
5254
|
-
}
|
|
5255
5000
|
return serializeAws_json1_1RegexPatternSetUpdate(entry, context);
|
|
5256
5001
|
});
|
|
5257
5002
|
};
|
|
@@ -5267,9 +5012,6 @@ const serializeAws_json1_1RuleGroupUpdates = (input, context) => {
|
|
|
5267
5012
|
return input
|
|
5268
5013
|
.filter((e) => e != null)
|
|
5269
5014
|
.map((entry) => {
|
|
5270
|
-
if (entry === null) {
|
|
5271
|
-
return null;
|
|
5272
|
-
}
|
|
5273
5015
|
return serializeAws_json1_1RuleGroupUpdate(entry, context);
|
|
5274
5016
|
});
|
|
5275
5017
|
};
|
|
@@ -5283,9 +5025,6 @@ const serializeAws_json1_1RuleUpdates = (input, context) => {
|
|
|
5283
5025
|
return input
|
|
5284
5026
|
.filter((e) => e != null)
|
|
5285
5027
|
.map((entry) => {
|
|
5286
|
-
if (entry === null) {
|
|
5287
|
-
return null;
|
|
5288
|
-
}
|
|
5289
5028
|
return serializeAws_json1_1RuleUpdate(entry, context);
|
|
5290
5029
|
});
|
|
5291
5030
|
};
|
|
@@ -5309,9 +5048,6 @@ const serializeAws_json1_1SizeConstraintSetUpdates = (input, context) => {
|
|
|
5309
5048
|
return input
|
|
5310
5049
|
.filter((e) => e != null)
|
|
5311
5050
|
.map((entry) => {
|
|
5312
|
-
if (entry === null) {
|
|
5313
|
-
return null;
|
|
5314
|
-
}
|
|
5315
5051
|
return serializeAws_json1_1SizeConstraintSetUpdate(entry, context);
|
|
5316
5052
|
});
|
|
5317
5053
|
};
|
|
@@ -5327,9 +5063,6 @@ const serializeAws_json1_1SqlInjectionMatchSetUpdates = (input, context) => {
|
|
|
5327
5063
|
return input
|
|
5328
5064
|
.filter((e) => e != null)
|
|
5329
5065
|
.map((entry) => {
|
|
5330
|
-
if (entry === null) {
|
|
5331
|
-
return null;
|
|
5332
|
-
}
|
|
5333
5066
|
return serializeAws_json1_1SqlInjectionMatchSetUpdate(entry, context);
|
|
5334
5067
|
});
|
|
5335
5068
|
};
|
|
@@ -5349,9 +5082,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
5349
5082
|
return input
|
|
5350
5083
|
.filter((e) => e != null)
|
|
5351
5084
|
.map((entry) => {
|
|
5352
|
-
if (entry === null) {
|
|
5353
|
-
return null;
|
|
5354
|
-
}
|
|
5355
5085
|
return entry;
|
|
5356
5086
|
});
|
|
5357
5087
|
};
|
|
@@ -5359,9 +5089,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
5359
5089
|
return input
|
|
5360
5090
|
.filter((e) => e != null)
|
|
5361
5091
|
.map((entry) => {
|
|
5362
|
-
if (entry === null) {
|
|
5363
|
-
return null;
|
|
5364
|
-
}
|
|
5365
5092
|
return serializeAws_json1_1Tag(entry, context);
|
|
5366
5093
|
});
|
|
5367
5094
|
};
|
|
@@ -5491,9 +5218,6 @@ const serializeAws_json1_1WebACLUpdates = (input, context) => {
|
|
|
5491
5218
|
return input
|
|
5492
5219
|
.filter((e) => e != null)
|
|
5493
5220
|
.map((entry) => {
|
|
5494
|
-
if (entry === null) {
|
|
5495
|
-
return null;
|
|
5496
|
-
}
|
|
5497
5221
|
return serializeAws_json1_1WebACLUpdate(entry, context);
|
|
5498
5222
|
});
|
|
5499
5223
|
};
|
|
@@ -5509,9 +5233,6 @@ const serializeAws_json1_1XssMatchSetUpdates = (input, context) => {
|
|
|
5509
5233
|
return input
|
|
5510
5234
|
.filter((e) => e != null)
|
|
5511
5235
|
.map((entry) => {
|
|
5512
|
-
if (entry === null) {
|
|
5513
|
-
return null;
|
|
5514
|
-
}
|
|
5515
5236
|
return serializeAws_json1_1XssMatchSetUpdate(entry, context);
|
|
5516
5237
|
});
|
|
5517
5238
|
};
|