@aws-sdk/client-waf 3.118.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +685 -762
- package/dist-es/protocols/Aws_json1_1.js +566 -643
- package/package.json +26 -26
|
@@ -798,8 +798,7 @@ const deserializeAws_json1_1CreateByteMatchSetCommandError = async (output, cont
|
|
|
798
798
|
body: await parseBody(output.body, context),
|
|
799
799
|
};
|
|
800
800
|
let response;
|
|
801
|
-
|
|
802
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
801
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
803
802
|
switch (errorCode) {
|
|
804
803
|
case "WAFDisallowedNameException":
|
|
805
804
|
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
@@ -821,10 +820,12 @@ const deserializeAws_json1_1CreateByteMatchSetCommandError = async (output, cont
|
|
|
821
820
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
822
821
|
default:
|
|
823
822
|
const parsedBody = parsedOutput.body;
|
|
823
|
+
const $metadata = deserializeMetadata(output);
|
|
824
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
824
825
|
response = new WAFServiceException_1.WAFServiceException({
|
|
825
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
826
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
826
827
|
$fault: "client",
|
|
827
|
-
$metadata
|
|
828
|
+
$metadata,
|
|
828
829
|
});
|
|
829
830
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
830
831
|
}
|
|
@@ -849,8 +850,7 @@ const deserializeAws_json1_1CreateGeoMatchSetCommandError = async (output, conte
|
|
|
849
850
|
body: await parseBody(output.body, context),
|
|
850
851
|
};
|
|
851
852
|
let response;
|
|
852
|
-
|
|
853
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
853
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
854
854
|
switch (errorCode) {
|
|
855
855
|
case "WAFDisallowedNameException":
|
|
856
856
|
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
@@ -872,10 +872,12 @@ const deserializeAws_json1_1CreateGeoMatchSetCommandError = async (output, conte
|
|
|
872
872
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
873
873
|
default:
|
|
874
874
|
const parsedBody = parsedOutput.body;
|
|
875
|
+
const $metadata = deserializeMetadata(output);
|
|
876
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
875
877
|
response = new WAFServiceException_1.WAFServiceException({
|
|
876
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
878
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
877
879
|
$fault: "client",
|
|
878
|
-
$metadata
|
|
880
|
+
$metadata,
|
|
879
881
|
});
|
|
880
882
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
881
883
|
}
|
|
@@ -900,8 +902,7 @@ const deserializeAws_json1_1CreateIPSetCommandError = async (output, context) =>
|
|
|
900
902
|
body: await parseBody(output.body, context),
|
|
901
903
|
};
|
|
902
904
|
let response;
|
|
903
|
-
|
|
904
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
905
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
905
906
|
switch (errorCode) {
|
|
906
907
|
case "WAFDisallowedNameException":
|
|
907
908
|
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
@@ -923,10 +924,12 @@ const deserializeAws_json1_1CreateIPSetCommandError = async (output, context) =>
|
|
|
923
924
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
924
925
|
default:
|
|
925
926
|
const parsedBody = parsedOutput.body;
|
|
927
|
+
const $metadata = deserializeMetadata(output);
|
|
928
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
926
929
|
response = new WAFServiceException_1.WAFServiceException({
|
|
927
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
930
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
928
931
|
$fault: "client",
|
|
929
|
-
$metadata
|
|
932
|
+
$metadata,
|
|
930
933
|
});
|
|
931
934
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
932
935
|
}
|
|
@@ -951,8 +954,7 @@ const deserializeAws_json1_1CreateRateBasedRuleCommandError = async (output, con
|
|
|
951
954
|
body: await parseBody(output.body, context),
|
|
952
955
|
};
|
|
953
956
|
let response;
|
|
954
|
-
|
|
955
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
957
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
956
958
|
switch (errorCode) {
|
|
957
959
|
case "WAFBadRequestException":
|
|
958
960
|
case "com.amazonaws.waf#WAFBadRequestException":
|
|
@@ -980,10 +982,12 @@ const deserializeAws_json1_1CreateRateBasedRuleCommandError = async (output, con
|
|
|
980
982
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
981
983
|
default:
|
|
982
984
|
const parsedBody = parsedOutput.body;
|
|
985
|
+
const $metadata = deserializeMetadata(output);
|
|
986
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
983
987
|
response = new WAFServiceException_1.WAFServiceException({
|
|
984
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
988
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
985
989
|
$fault: "client",
|
|
986
|
-
$metadata
|
|
990
|
+
$metadata,
|
|
987
991
|
});
|
|
988
992
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
989
993
|
}
|
|
@@ -1008,8 +1012,7 @@ const deserializeAws_json1_1CreateRegexMatchSetCommandError = async (output, con
|
|
|
1008
1012
|
body: await parseBody(output.body, context),
|
|
1009
1013
|
};
|
|
1010
1014
|
let response;
|
|
1011
|
-
|
|
1012
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1013
1016
|
switch (errorCode) {
|
|
1014
1017
|
case "WAFDisallowedNameException":
|
|
1015
1018
|
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
@@ -1025,10 +1028,12 @@ const deserializeAws_json1_1CreateRegexMatchSetCommandError = async (output, con
|
|
|
1025
1028
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1026
1029
|
default:
|
|
1027
1030
|
const parsedBody = parsedOutput.body;
|
|
1031
|
+
const $metadata = deserializeMetadata(output);
|
|
1032
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1028
1033
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1029
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1034
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1030
1035
|
$fault: "client",
|
|
1031
|
-
$metadata
|
|
1036
|
+
$metadata,
|
|
1032
1037
|
});
|
|
1033
1038
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1034
1039
|
}
|
|
@@ -1053,8 +1058,7 @@ const deserializeAws_json1_1CreateRegexPatternSetCommandError = async (output, c
|
|
|
1053
1058
|
body: await parseBody(output.body, context),
|
|
1054
1059
|
};
|
|
1055
1060
|
let response;
|
|
1056
|
-
|
|
1057
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
1062
|
switch (errorCode) {
|
|
1059
1063
|
case "WAFDisallowedNameException":
|
|
1060
1064
|
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
@@ -1070,10 +1074,12 @@ const deserializeAws_json1_1CreateRegexPatternSetCommandError = async (output, c
|
|
|
1070
1074
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1071
1075
|
default:
|
|
1072
1076
|
const parsedBody = parsedOutput.body;
|
|
1077
|
+
const $metadata = deserializeMetadata(output);
|
|
1078
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1073
1079
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1074
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1080
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1075
1081
|
$fault: "client",
|
|
1076
|
-
$metadata
|
|
1082
|
+
$metadata,
|
|
1077
1083
|
});
|
|
1078
1084
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1079
1085
|
}
|
|
@@ -1098,8 +1104,7 @@ const deserializeAws_json1_1CreateRuleCommandError = async (output, context) =>
|
|
|
1098
1104
|
body: await parseBody(output.body, context),
|
|
1099
1105
|
};
|
|
1100
1106
|
let response;
|
|
1101
|
-
|
|
1102
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1103
1108
|
switch (errorCode) {
|
|
1104
1109
|
case "WAFBadRequestException":
|
|
1105
1110
|
case "com.amazonaws.waf#WAFBadRequestException":
|
|
@@ -1127,10 +1132,12 @@ const deserializeAws_json1_1CreateRuleCommandError = async (output, context) =>
|
|
|
1127
1132
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
1128
1133
|
default:
|
|
1129
1134
|
const parsedBody = parsedOutput.body;
|
|
1135
|
+
const $metadata = deserializeMetadata(output);
|
|
1136
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1130
1137
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1131
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1138
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1132
1139
|
$fault: "client",
|
|
1133
|
-
$metadata
|
|
1140
|
+
$metadata,
|
|
1134
1141
|
});
|
|
1135
1142
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1136
1143
|
}
|
|
@@ -1155,8 +1162,7 @@ const deserializeAws_json1_1CreateRuleGroupCommandError = async (output, context
|
|
|
1155
1162
|
body: await parseBody(output.body, context),
|
|
1156
1163
|
};
|
|
1157
1164
|
let response;
|
|
1158
|
-
|
|
1159
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1165
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1160
1166
|
switch (errorCode) {
|
|
1161
1167
|
case "WAFBadRequestException":
|
|
1162
1168
|
case "com.amazonaws.waf#WAFBadRequestException":
|
|
@@ -1181,10 +1187,12 @@ const deserializeAws_json1_1CreateRuleGroupCommandError = async (output, context
|
|
|
1181
1187
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
1182
1188
|
default:
|
|
1183
1189
|
const parsedBody = parsedOutput.body;
|
|
1190
|
+
const $metadata = deserializeMetadata(output);
|
|
1191
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1184
1192
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1185
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1193
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1186
1194
|
$fault: "client",
|
|
1187
|
-
$metadata
|
|
1195
|
+
$metadata,
|
|
1188
1196
|
});
|
|
1189
1197
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1190
1198
|
}
|
|
@@ -1209,8 +1217,7 @@ const deserializeAws_json1_1CreateSizeConstraintSetCommandError = async (output,
|
|
|
1209
1217
|
body: await parseBody(output.body, context),
|
|
1210
1218
|
};
|
|
1211
1219
|
let response;
|
|
1212
|
-
|
|
1213
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1220
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1214
1221
|
switch (errorCode) {
|
|
1215
1222
|
case "WAFDisallowedNameException":
|
|
1216
1223
|
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
@@ -1232,10 +1239,12 @@ const deserializeAws_json1_1CreateSizeConstraintSetCommandError = async (output,
|
|
|
1232
1239
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1233
1240
|
default:
|
|
1234
1241
|
const parsedBody = parsedOutput.body;
|
|
1242
|
+
const $metadata = deserializeMetadata(output);
|
|
1243
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1235
1244
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1236
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1245
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1237
1246
|
$fault: "client",
|
|
1238
|
-
$metadata
|
|
1247
|
+
$metadata,
|
|
1239
1248
|
});
|
|
1240
1249
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1241
1250
|
}
|
|
@@ -1260,8 +1269,7 @@ const deserializeAws_json1_1CreateSqlInjectionMatchSetCommandError = async (outp
|
|
|
1260
1269
|
body: await parseBody(output.body, context),
|
|
1261
1270
|
};
|
|
1262
1271
|
let response;
|
|
1263
|
-
|
|
1264
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1272
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1265
1273
|
switch (errorCode) {
|
|
1266
1274
|
case "WAFDisallowedNameException":
|
|
1267
1275
|
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
@@ -1283,10 +1291,12 @@ const deserializeAws_json1_1CreateSqlInjectionMatchSetCommandError = async (outp
|
|
|
1283
1291
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1284
1292
|
default:
|
|
1285
1293
|
const parsedBody = parsedOutput.body;
|
|
1294
|
+
const $metadata = deserializeMetadata(output);
|
|
1295
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1286
1296
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1287
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1297
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1288
1298
|
$fault: "client",
|
|
1289
|
-
$metadata
|
|
1299
|
+
$metadata,
|
|
1290
1300
|
});
|
|
1291
1301
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1292
1302
|
}
|
|
@@ -1311,8 +1321,7 @@ const deserializeAws_json1_1CreateWebACLCommandError = async (output, context) =
|
|
|
1311
1321
|
body: await parseBody(output.body, context),
|
|
1312
1322
|
};
|
|
1313
1323
|
let response;
|
|
1314
|
-
|
|
1315
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1324
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
1325
|
switch (errorCode) {
|
|
1317
1326
|
case "WAFBadRequestException":
|
|
1318
1327
|
case "com.amazonaws.waf#WAFBadRequestException":
|
|
@@ -1343,10 +1352,12 @@ const deserializeAws_json1_1CreateWebACLCommandError = async (output, context) =
|
|
|
1343
1352
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
1344
1353
|
default:
|
|
1345
1354
|
const parsedBody = parsedOutput.body;
|
|
1355
|
+
const $metadata = deserializeMetadata(output);
|
|
1356
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1346
1357
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1347
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1358
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1348
1359
|
$fault: "client",
|
|
1349
|
-
$metadata
|
|
1360
|
+
$metadata,
|
|
1350
1361
|
});
|
|
1351
1362
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1352
1363
|
}
|
|
@@ -1371,8 +1382,7 @@ const deserializeAws_json1_1CreateWebACLMigrationStackCommandError = async (outp
|
|
|
1371
1382
|
body: await parseBody(output.body, context),
|
|
1372
1383
|
};
|
|
1373
1384
|
let response;
|
|
1374
|
-
|
|
1375
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1385
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1376
1386
|
switch (errorCode) {
|
|
1377
1387
|
case "WAFEntityMigrationException":
|
|
1378
1388
|
case "com.amazonaws.waf#WAFEntityMigrationException":
|
|
@@ -1391,10 +1401,12 @@ const deserializeAws_json1_1CreateWebACLMigrationStackCommandError = async (outp
|
|
|
1391
1401
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1392
1402
|
default:
|
|
1393
1403
|
const parsedBody = parsedOutput.body;
|
|
1404
|
+
const $metadata = deserializeMetadata(output);
|
|
1405
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1394
1406
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1395
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1407
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1396
1408
|
$fault: "client",
|
|
1397
|
-
$metadata
|
|
1409
|
+
$metadata,
|
|
1398
1410
|
});
|
|
1399
1411
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1400
1412
|
}
|
|
@@ -1419,8 +1431,7 @@ const deserializeAws_json1_1CreateXssMatchSetCommandError = async (output, conte
|
|
|
1419
1431
|
body: await parseBody(output.body, context),
|
|
1420
1432
|
};
|
|
1421
1433
|
let response;
|
|
1422
|
-
|
|
1423
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1424
1435
|
switch (errorCode) {
|
|
1425
1436
|
case "WAFDisallowedNameException":
|
|
1426
1437
|
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
@@ -1442,10 +1453,12 @@ const deserializeAws_json1_1CreateXssMatchSetCommandError = async (output, conte
|
|
|
1442
1453
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1443
1454
|
default:
|
|
1444
1455
|
const parsedBody = parsedOutput.body;
|
|
1456
|
+
const $metadata = deserializeMetadata(output);
|
|
1457
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1445
1458
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1446
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1459
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1447
1460
|
$fault: "client",
|
|
1448
|
-
$metadata
|
|
1461
|
+
$metadata,
|
|
1449
1462
|
});
|
|
1450
1463
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1451
1464
|
}
|
|
@@ -1470,8 +1483,7 @@ const deserializeAws_json1_1DeleteByteMatchSetCommandError = async (output, cont
|
|
|
1470
1483
|
body: await parseBody(output.body, context),
|
|
1471
1484
|
};
|
|
1472
1485
|
let response;
|
|
1473
|
-
|
|
1474
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1486
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1475
1487
|
switch (errorCode) {
|
|
1476
1488
|
case "WAFInternalErrorException":
|
|
1477
1489
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -1493,10 +1505,12 @@ const deserializeAws_json1_1DeleteByteMatchSetCommandError = async (output, cont
|
|
|
1493
1505
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1494
1506
|
default:
|
|
1495
1507
|
const parsedBody = parsedOutput.body;
|
|
1508
|
+
const $metadata = deserializeMetadata(output);
|
|
1509
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1496
1510
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1497
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1511
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1498
1512
|
$fault: "client",
|
|
1499
|
-
$metadata
|
|
1513
|
+
$metadata,
|
|
1500
1514
|
});
|
|
1501
1515
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1502
1516
|
}
|
|
@@ -1521,8 +1535,7 @@ const deserializeAws_json1_1DeleteGeoMatchSetCommandError = async (output, conte
|
|
|
1521
1535
|
body: await parseBody(output.body, context),
|
|
1522
1536
|
};
|
|
1523
1537
|
let response;
|
|
1524
|
-
|
|
1525
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1538
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1526
1539
|
switch (errorCode) {
|
|
1527
1540
|
case "WAFInternalErrorException":
|
|
1528
1541
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -1544,10 +1557,12 @@ const deserializeAws_json1_1DeleteGeoMatchSetCommandError = async (output, conte
|
|
|
1544
1557
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1545
1558
|
default:
|
|
1546
1559
|
const parsedBody = parsedOutput.body;
|
|
1560
|
+
const $metadata = deserializeMetadata(output);
|
|
1561
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1547
1562
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1548
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1563
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1549
1564
|
$fault: "client",
|
|
1550
|
-
$metadata
|
|
1565
|
+
$metadata,
|
|
1551
1566
|
});
|
|
1552
1567
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1553
1568
|
}
|
|
@@ -1572,8 +1587,7 @@ const deserializeAws_json1_1DeleteIPSetCommandError = async (output, context) =>
|
|
|
1572
1587
|
body: await parseBody(output.body, context),
|
|
1573
1588
|
};
|
|
1574
1589
|
let response;
|
|
1575
|
-
|
|
1576
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1590
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1577
1591
|
switch (errorCode) {
|
|
1578
1592
|
case "WAFInternalErrorException":
|
|
1579
1593
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -1595,10 +1609,12 @@ const deserializeAws_json1_1DeleteIPSetCommandError = async (output, context) =>
|
|
|
1595
1609
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1596
1610
|
default:
|
|
1597
1611
|
const parsedBody = parsedOutput.body;
|
|
1612
|
+
const $metadata = deserializeMetadata(output);
|
|
1613
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1598
1614
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1599
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1615
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1600
1616
|
$fault: "client",
|
|
1601
|
-
$metadata
|
|
1617
|
+
$metadata,
|
|
1602
1618
|
});
|
|
1603
1619
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1604
1620
|
}
|
|
@@ -1623,8 +1639,7 @@ const deserializeAws_json1_1DeleteLoggingConfigurationCommandError = async (outp
|
|
|
1623
1639
|
body: await parseBody(output.body, context),
|
|
1624
1640
|
};
|
|
1625
1641
|
let response;
|
|
1626
|
-
|
|
1627
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1642
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1628
1643
|
switch (errorCode) {
|
|
1629
1644
|
case "WAFInternalErrorException":
|
|
1630
1645
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -1637,10 +1652,12 @@ const deserializeAws_json1_1DeleteLoggingConfigurationCommandError = async (outp
|
|
|
1637
1652
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1638
1653
|
default:
|
|
1639
1654
|
const parsedBody = parsedOutput.body;
|
|
1655
|
+
const $metadata = deserializeMetadata(output);
|
|
1656
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1640
1657
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1641
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1658
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1642
1659
|
$fault: "client",
|
|
1643
|
-
$metadata
|
|
1660
|
+
$metadata,
|
|
1644
1661
|
});
|
|
1645
1662
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1646
1663
|
}
|
|
@@ -1665,8 +1682,7 @@ const deserializeAws_json1_1DeletePermissionPolicyCommandError = async (output,
|
|
|
1665
1682
|
body: await parseBody(output.body, context),
|
|
1666
1683
|
};
|
|
1667
1684
|
let response;
|
|
1668
|
-
|
|
1669
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1685
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1670
1686
|
switch (errorCode) {
|
|
1671
1687
|
case "WAFInternalErrorException":
|
|
1672
1688
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -1679,10 +1695,12 @@ const deserializeAws_json1_1DeletePermissionPolicyCommandError = async (output,
|
|
|
1679
1695
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1680
1696
|
default:
|
|
1681
1697
|
const parsedBody = parsedOutput.body;
|
|
1698
|
+
const $metadata = deserializeMetadata(output);
|
|
1699
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1682
1700
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1683
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1701
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1684
1702
|
$fault: "client",
|
|
1685
|
-
$metadata
|
|
1703
|
+
$metadata,
|
|
1686
1704
|
});
|
|
1687
1705
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1688
1706
|
}
|
|
@@ -1707,8 +1725,7 @@ const deserializeAws_json1_1DeleteRateBasedRuleCommandError = async (output, con
|
|
|
1707
1725
|
body: await parseBody(output.body, context),
|
|
1708
1726
|
};
|
|
1709
1727
|
let response;
|
|
1710
|
-
|
|
1711
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1728
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1712
1729
|
switch (errorCode) {
|
|
1713
1730
|
case "WAFInternalErrorException":
|
|
1714
1731
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -1736,10 +1753,12 @@ const deserializeAws_json1_1DeleteRateBasedRuleCommandError = async (output, con
|
|
|
1736
1753
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
1737
1754
|
default:
|
|
1738
1755
|
const parsedBody = parsedOutput.body;
|
|
1756
|
+
const $metadata = deserializeMetadata(output);
|
|
1757
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1739
1758
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1740
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1759
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1741
1760
|
$fault: "client",
|
|
1742
|
-
$metadata
|
|
1761
|
+
$metadata,
|
|
1743
1762
|
});
|
|
1744
1763
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1745
1764
|
}
|
|
@@ -1764,8 +1783,7 @@ const deserializeAws_json1_1DeleteRegexMatchSetCommandError = async (output, con
|
|
|
1764
1783
|
body: await parseBody(output.body, context),
|
|
1765
1784
|
};
|
|
1766
1785
|
let response;
|
|
1767
|
-
|
|
1768
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1786
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1769
1787
|
switch (errorCode) {
|
|
1770
1788
|
case "WAFInternalErrorException":
|
|
1771
1789
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -1787,10 +1805,12 @@ const deserializeAws_json1_1DeleteRegexMatchSetCommandError = async (output, con
|
|
|
1787
1805
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1788
1806
|
default:
|
|
1789
1807
|
const parsedBody = parsedOutput.body;
|
|
1808
|
+
const $metadata = deserializeMetadata(output);
|
|
1809
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1790
1810
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1791
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1811
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1792
1812
|
$fault: "client",
|
|
1793
|
-
$metadata
|
|
1813
|
+
$metadata,
|
|
1794
1814
|
});
|
|
1795
1815
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1796
1816
|
}
|
|
@@ -1815,8 +1835,7 @@ const deserializeAws_json1_1DeleteRegexPatternSetCommandError = async (output, c
|
|
|
1815
1835
|
body: await parseBody(output.body, context),
|
|
1816
1836
|
};
|
|
1817
1837
|
let response;
|
|
1818
|
-
|
|
1819
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1838
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1820
1839
|
switch (errorCode) {
|
|
1821
1840
|
case "WAFInternalErrorException":
|
|
1822
1841
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -1838,10 +1857,12 @@ const deserializeAws_json1_1DeleteRegexPatternSetCommandError = async (output, c
|
|
|
1838
1857
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
1839
1858
|
default:
|
|
1840
1859
|
const parsedBody = parsedOutput.body;
|
|
1860
|
+
const $metadata = deserializeMetadata(output);
|
|
1861
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1841
1862
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1842
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1863
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1843
1864
|
$fault: "client",
|
|
1844
|
-
$metadata
|
|
1865
|
+
$metadata,
|
|
1845
1866
|
});
|
|
1846
1867
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1847
1868
|
}
|
|
@@ -1866,8 +1887,7 @@ const deserializeAws_json1_1DeleteRuleCommandError = async (output, context) =>
|
|
|
1866
1887
|
body: await parseBody(output.body, context),
|
|
1867
1888
|
};
|
|
1868
1889
|
let response;
|
|
1869
|
-
|
|
1870
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1890
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
1891
|
switch (errorCode) {
|
|
1872
1892
|
case "WAFInternalErrorException":
|
|
1873
1893
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -1895,10 +1915,12 @@ const deserializeAws_json1_1DeleteRuleCommandError = async (output, context) =>
|
|
|
1895
1915
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
1896
1916
|
default:
|
|
1897
1917
|
const parsedBody = parsedOutput.body;
|
|
1918
|
+
const $metadata = deserializeMetadata(output);
|
|
1919
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1898
1920
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1899
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1921
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1900
1922
|
$fault: "client",
|
|
1901
|
-
$metadata
|
|
1923
|
+
$metadata,
|
|
1902
1924
|
});
|
|
1903
1925
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1904
1926
|
}
|
|
@@ -1923,8 +1945,7 @@ const deserializeAws_json1_1DeleteRuleGroupCommandError = async (output, context
|
|
|
1923
1945
|
body: await parseBody(output.body, context),
|
|
1924
1946
|
};
|
|
1925
1947
|
let response;
|
|
1926
|
-
|
|
1927
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1948
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1928
1949
|
switch (errorCode) {
|
|
1929
1950
|
case "WAFInternalErrorException":
|
|
1930
1951
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -1952,10 +1973,12 @@ const deserializeAws_json1_1DeleteRuleGroupCommandError = async (output, context
|
|
|
1952
1973
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
1953
1974
|
default:
|
|
1954
1975
|
const parsedBody = parsedOutput.body;
|
|
1976
|
+
const $metadata = deserializeMetadata(output);
|
|
1977
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1955
1978
|
response = new WAFServiceException_1.WAFServiceException({
|
|
1956
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1979
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1957
1980
|
$fault: "client",
|
|
1958
|
-
$metadata
|
|
1981
|
+
$metadata,
|
|
1959
1982
|
});
|
|
1960
1983
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1961
1984
|
}
|
|
@@ -1980,8 +2003,7 @@ const deserializeAws_json1_1DeleteSizeConstraintSetCommandError = async (output,
|
|
|
1980
2003
|
body: await parseBody(output.body, context),
|
|
1981
2004
|
};
|
|
1982
2005
|
let response;
|
|
1983
|
-
|
|
1984
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2006
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1985
2007
|
switch (errorCode) {
|
|
1986
2008
|
case "WAFInternalErrorException":
|
|
1987
2009
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2003,10 +2025,12 @@ const deserializeAws_json1_1DeleteSizeConstraintSetCommandError = async (output,
|
|
|
2003
2025
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
2004
2026
|
default:
|
|
2005
2027
|
const parsedBody = parsedOutput.body;
|
|
2028
|
+
const $metadata = deserializeMetadata(output);
|
|
2029
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2006
2030
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2007
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2031
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2008
2032
|
$fault: "client",
|
|
2009
|
-
$metadata
|
|
2033
|
+
$metadata,
|
|
2010
2034
|
});
|
|
2011
2035
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2012
2036
|
}
|
|
@@ -2031,8 +2055,7 @@ const deserializeAws_json1_1DeleteSqlInjectionMatchSetCommandError = async (outp
|
|
|
2031
2055
|
body: await parseBody(output.body, context),
|
|
2032
2056
|
};
|
|
2033
2057
|
let response;
|
|
2034
|
-
|
|
2035
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2058
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2036
2059
|
switch (errorCode) {
|
|
2037
2060
|
case "WAFInternalErrorException":
|
|
2038
2061
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2054,10 +2077,12 @@ const deserializeAws_json1_1DeleteSqlInjectionMatchSetCommandError = async (outp
|
|
|
2054
2077
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
2055
2078
|
default:
|
|
2056
2079
|
const parsedBody = parsedOutput.body;
|
|
2080
|
+
const $metadata = deserializeMetadata(output);
|
|
2081
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2057
2082
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2058
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2083
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2059
2084
|
$fault: "client",
|
|
2060
|
-
$metadata
|
|
2085
|
+
$metadata,
|
|
2061
2086
|
});
|
|
2062
2087
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2063
2088
|
}
|
|
@@ -2082,8 +2107,7 @@ const deserializeAws_json1_1DeleteWebACLCommandError = async (output, context) =
|
|
|
2082
2107
|
body: await parseBody(output.body, context),
|
|
2083
2108
|
};
|
|
2084
2109
|
let response;
|
|
2085
|
-
|
|
2086
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2110
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2087
2111
|
switch (errorCode) {
|
|
2088
2112
|
case "WAFInternalErrorException":
|
|
2089
2113
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2111,10 +2135,12 @@ const deserializeAws_json1_1DeleteWebACLCommandError = async (output, context) =
|
|
|
2111
2135
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
2112
2136
|
default:
|
|
2113
2137
|
const parsedBody = parsedOutput.body;
|
|
2138
|
+
const $metadata = deserializeMetadata(output);
|
|
2139
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2114
2140
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2115
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2141
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2116
2142
|
$fault: "client",
|
|
2117
|
-
$metadata
|
|
2143
|
+
$metadata,
|
|
2118
2144
|
});
|
|
2119
2145
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2120
2146
|
}
|
|
@@ -2139,8 +2165,7 @@ const deserializeAws_json1_1DeleteXssMatchSetCommandError = async (output, conte
|
|
|
2139
2165
|
body: await parseBody(output.body, context),
|
|
2140
2166
|
};
|
|
2141
2167
|
let response;
|
|
2142
|
-
|
|
2143
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2168
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2144
2169
|
switch (errorCode) {
|
|
2145
2170
|
case "WAFInternalErrorException":
|
|
2146
2171
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2162,10 +2187,12 @@ const deserializeAws_json1_1DeleteXssMatchSetCommandError = async (output, conte
|
|
|
2162
2187
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
2163
2188
|
default:
|
|
2164
2189
|
const parsedBody = parsedOutput.body;
|
|
2190
|
+
const $metadata = deserializeMetadata(output);
|
|
2191
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2165
2192
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2166
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2193
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2167
2194
|
$fault: "client",
|
|
2168
|
-
$metadata
|
|
2195
|
+
$metadata,
|
|
2169
2196
|
});
|
|
2170
2197
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2171
2198
|
}
|
|
@@ -2190,8 +2217,7 @@ const deserializeAws_json1_1GetByteMatchSetCommandError = async (output, context
|
|
|
2190
2217
|
body: await parseBody(output.body, context),
|
|
2191
2218
|
};
|
|
2192
2219
|
let response;
|
|
2193
|
-
|
|
2194
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2220
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2195
2221
|
switch (errorCode) {
|
|
2196
2222
|
case "WAFInternalErrorException":
|
|
2197
2223
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2204,10 +2230,12 @@ const deserializeAws_json1_1GetByteMatchSetCommandError = async (output, context
|
|
|
2204
2230
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2205
2231
|
default:
|
|
2206
2232
|
const parsedBody = parsedOutput.body;
|
|
2233
|
+
const $metadata = deserializeMetadata(output);
|
|
2234
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2207
2235
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2208
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2236
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2209
2237
|
$fault: "client",
|
|
2210
|
-
$metadata
|
|
2238
|
+
$metadata,
|
|
2211
2239
|
});
|
|
2212
2240
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2213
2241
|
}
|
|
@@ -2232,18 +2260,19 @@ const deserializeAws_json1_1GetChangeTokenCommandError = async (output, context)
|
|
|
2232
2260
|
body: await parseBody(output.body, context),
|
|
2233
2261
|
};
|
|
2234
2262
|
let response;
|
|
2235
|
-
|
|
2236
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2263
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2237
2264
|
switch (errorCode) {
|
|
2238
2265
|
case "WAFInternalErrorException":
|
|
2239
2266
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
2240
2267
|
throw await deserializeAws_json1_1WAFInternalErrorExceptionResponse(parsedOutput, context);
|
|
2241
2268
|
default:
|
|
2242
2269
|
const parsedBody = parsedOutput.body;
|
|
2270
|
+
const $metadata = deserializeMetadata(output);
|
|
2271
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2243
2272
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2244
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2273
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2245
2274
|
$fault: "client",
|
|
2246
|
-
$metadata
|
|
2275
|
+
$metadata,
|
|
2247
2276
|
});
|
|
2248
2277
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2249
2278
|
}
|
|
@@ -2268,8 +2297,7 @@ const deserializeAws_json1_1GetChangeTokenStatusCommandError = async (output, co
|
|
|
2268
2297
|
body: await parseBody(output.body, context),
|
|
2269
2298
|
};
|
|
2270
2299
|
let response;
|
|
2271
|
-
|
|
2272
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2300
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2273
2301
|
switch (errorCode) {
|
|
2274
2302
|
case "WAFInternalErrorException":
|
|
2275
2303
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2279,10 +2307,12 @@ const deserializeAws_json1_1GetChangeTokenStatusCommandError = async (output, co
|
|
|
2279
2307
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2280
2308
|
default:
|
|
2281
2309
|
const parsedBody = parsedOutput.body;
|
|
2310
|
+
const $metadata = deserializeMetadata(output);
|
|
2311
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2282
2312
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2283
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2313
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2284
2314
|
$fault: "client",
|
|
2285
|
-
$metadata
|
|
2315
|
+
$metadata,
|
|
2286
2316
|
});
|
|
2287
2317
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2288
2318
|
}
|
|
@@ -2307,8 +2337,7 @@ const deserializeAws_json1_1GetGeoMatchSetCommandError = async (output, context)
|
|
|
2307
2337
|
body: await parseBody(output.body, context),
|
|
2308
2338
|
};
|
|
2309
2339
|
let response;
|
|
2310
|
-
|
|
2311
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2340
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2312
2341
|
switch (errorCode) {
|
|
2313
2342
|
case "WAFInternalErrorException":
|
|
2314
2343
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2321,10 +2350,12 @@ const deserializeAws_json1_1GetGeoMatchSetCommandError = async (output, context)
|
|
|
2321
2350
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2322
2351
|
default:
|
|
2323
2352
|
const parsedBody = parsedOutput.body;
|
|
2353
|
+
const $metadata = deserializeMetadata(output);
|
|
2354
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2324
2355
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2325
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2356
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2326
2357
|
$fault: "client",
|
|
2327
|
-
$metadata
|
|
2358
|
+
$metadata,
|
|
2328
2359
|
});
|
|
2329
2360
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2330
2361
|
}
|
|
@@ -2349,8 +2380,7 @@ const deserializeAws_json1_1GetIPSetCommandError = async (output, context) => {
|
|
|
2349
2380
|
body: await parseBody(output.body, context),
|
|
2350
2381
|
};
|
|
2351
2382
|
let response;
|
|
2352
|
-
|
|
2353
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2383
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2354
2384
|
switch (errorCode) {
|
|
2355
2385
|
case "WAFInternalErrorException":
|
|
2356
2386
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2363,10 +2393,12 @@ const deserializeAws_json1_1GetIPSetCommandError = async (output, context) => {
|
|
|
2363
2393
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2364
2394
|
default:
|
|
2365
2395
|
const parsedBody = parsedOutput.body;
|
|
2396
|
+
const $metadata = deserializeMetadata(output);
|
|
2397
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2366
2398
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2367
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2399
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2368
2400
|
$fault: "client",
|
|
2369
|
-
$metadata
|
|
2401
|
+
$metadata,
|
|
2370
2402
|
});
|
|
2371
2403
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2372
2404
|
}
|
|
@@ -2391,8 +2423,7 @@ const deserializeAws_json1_1GetLoggingConfigurationCommandError = async (output,
|
|
|
2391
2423
|
body: await parseBody(output.body, context),
|
|
2392
2424
|
};
|
|
2393
2425
|
let response;
|
|
2394
|
-
|
|
2395
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2426
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2396
2427
|
switch (errorCode) {
|
|
2397
2428
|
case "WAFInternalErrorException":
|
|
2398
2429
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2402,10 +2433,12 @@ const deserializeAws_json1_1GetLoggingConfigurationCommandError = async (output,
|
|
|
2402
2433
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2403
2434
|
default:
|
|
2404
2435
|
const parsedBody = parsedOutput.body;
|
|
2436
|
+
const $metadata = deserializeMetadata(output);
|
|
2437
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2405
2438
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2406
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2439
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2407
2440
|
$fault: "client",
|
|
2408
|
-
$metadata
|
|
2441
|
+
$metadata,
|
|
2409
2442
|
});
|
|
2410
2443
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2411
2444
|
}
|
|
@@ -2430,8 +2463,7 @@ const deserializeAws_json1_1GetPermissionPolicyCommandError = async (output, con
|
|
|
2430
2463
|
body: await parseBody(output.body, context),
|
|
2431
2464
|
};
|
|
2432
2465
|
let response;
|
|
2433
|
-
|
|
2434
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2466
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2435
2467
|
switch (errorCode) {
|
|
2436
2468
|
case "WAFInternalErrorException":
|
|
2437
2469
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2441,10 +2473,12 @@ const deserializeAws_json1_1GetPermissionPolicyCommandError = async (output, con
|
|
|
2441
2473
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2442
2474
|
default:
|
|
2443
2475
|
const parsedBody = parsedOutput.body;
|
|
2476
|
+
const $metadata = deserializeMetadata(output);
|
|
2477
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2444
2478
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2445
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2479
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2446
2480
|
$fault: "client",
|
|
2447
|
-
$metadata
|
|
2481
|
+
$metadata,
|
|
2448
2482
|
});
|
|
2449
2483
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2450
2484
|
}
|
|
@@ -2469,8 +2503,7 @@ const deserializeAws_json1_1GetRateBasedRuleCommandError = async (output, contex
|
|
|
2469
2503
|
body: await parseBody(output.body, context),
|
|
2470
2504
|
};
|
|
2471
2505
|
let response;
|
|
2472
|
-
|
|
2473
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2506
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2474
2507
|
switch (errorCode) {
|
|
2475
2508
|
case "WAFInternalErrorException":
|
|
2476
2509
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2483,10 +2516,12 @@ const deserializeAws_json1_1GetRateBasedRuleCommandError = async (output, contex
|
|
|
2483
2516
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2484
2517
|
default:
|
|
2485
2518
|
const parsedBody = parsedOutput.body;
|
|
2519
|
+
const $metadata = deserializeMetadata(output);
|
|
2520
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2486
2521
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2487
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2522
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2488
2523
|
$fault: "client",
|
|
2489
|
-
$metadata
|
|
2524
|
+
$metadata,
|
|
2490
2525
|
});
|
|
2491
2526
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2492
2527
|
}
|
|
@@ -2511,8 +2546,7 @@ const deserializeAws_json1_1GetRateBasedRuleManagedKeysCommandError = async (out
|
|
|
2511
2546
|
body: await parseBody(output.body, context),
|
|
2512
2547
|
};
|
|
2513
2548
|
let response;
|
|
2514
|
-
|
|
2515
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2549
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2516
2550
|
switch (errorCode) {
|
|
2517
2551
|
case "WAFInternalErrorException":
|
|
2518
2552
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2528,10 +2562,12 @@ const deserializeAws_json1_1GetRateBasedRuleManagedKeysCommandError = async (out
|
|
|
2528
2562
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2529
2563
|
default:
|
|
2530
2564
|
const parsedBody = parsedOutput.body;
|
|
2565
|
+
const $metadata = deserializeMetadata(output);
|
|
2566
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2531
2567
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2532
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2568
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2533
2569
|
$fault: "client",
|
|
2534
|
-
$metadata
|
|
2570
|
+
$metadata,
|
|
2535
2571
|
});
|
|
2536
2572
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2537
2573
|
}
|
|
@@ -2556,8 +2592,7 @@ const deserializeAws_json1_1GetRegexMatchSetCommandError = async (output, contex
|
|
|
2556
2592
|
body: await parseBody(output.body, context),
|
|
2557
2593
|
};
|
|
2558
2594
|
let response;
|
|
2559
|
-
|
|
2560
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2595
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2561
2596
|
switch (errorCode) {
|
|
2562
2597
|
case "WAFInternalErrorException":
|
|
2563
2598
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2570,10 +2605,12 @@ const deserializeAws_json1_1GetRegexMatchSetCommandError = async (output, contex
|
|
|
2570
2605
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2571
2606
|
default:
|
|
2572
2607
|
const parsedBody = parsedOutput.body;
|
|
2608
|
+
const $metadata = deserializeMetadata(output);
|
|
2609
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2573
2610
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2574
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2611
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2575
2612
|
$fault: "client",
|
|
2576
|
-
$metadata
|
|
2613
|
+
$metadata,
|
|
2577
2614
|
});
|
|
2578
2615
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2579
2616
|
}
|
|
@@ -2598,8 +2635,7 @@ const deserializeAws_json1_1GetRegexPatternSetCommandError = async (output, cont
|
|
|
2598
2635
|
body: await parseBody(output.body, context),
|
|
2599
2636
|
};
|
|
2600
2637
|
let response;
|
|
2601
|
-
|
|
2602
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2638
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2603
2639
|
switch (errorCode) {
|
|
2604
2640
|
case "WAFInternalErrorException":
|
|
2605
2641
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2612,10 +2648,12 @@ const deserializeAws_json1_1GetRegexPatternSetCommandError = async (output, cont
|
|
|
2612
2648
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2613
2649
|
default:
|
|
2614
2650
|
const parsedBody = parsedOutput.body;
|
|
2651
|
+
const $metadata = deserializeMetadata(output);
|
|
2652
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2615
2653
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2616
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2654
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2617
2655
|
$fault: "client",
|
|
2618
|
-
$metadata
|
|
2656
|
+
$metadata,
|
|
2619
2657
|
});
|
|
2620
2658
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2621
2659
|
}
|
|
@@ -2640,8 +2678,7 @@ const deserializeAws_json1_1GetRuleCommandError = async (output, context) => {
|
|
|
2640
2678
|
body: await parseBody(output.body, context),
|
|
2641
2679
|
};
|
|
2642
2680
|
let response;
|
|
2643
|
-
|
|
2644
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2681
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2645
2682
|
switch (errorCode) {
|
|
2646
2683
|
case "WAFInternalErrorException":
|
|
2647
2684
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2654,10 +2691,12 @@ const deserializeAws_json1_1GetRuleCommandError = async (output, context) => {
|
|
|
2654
2691
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2655
2692
|
default:
|
|
2656
2693
|
const parsedBody = parsedOutput.body;
|
|
2694
|
+
const $metadata = deserializeMetadata(output);
|
|
2695
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2657
2696
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2658
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2697
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2659
2698
|
$fault: "client",
|
|
2660
|
-
$metadata
|
|
2699
|
+
$metadata,
|
|
2661
2700
|
});
|
|
2662
2701
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2663
2702
|
}
|
|
@@ -2682,8 +2721,7 @@ const deserializeAws_json1_1GetRuleGroupCommandError = async (output, context) =
|
|
|
2682
2721
|
body: await parseBody(output.body, context),
|
|
2683
2722
|
};
|
|
2684
2723
|
let response;
|
|
2685
|
-
|
|
2686
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2724
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2687
2725
|
switch (errorCode) {
|
|
2688
2726
|
case "WAFInternalErrorException":
|
|
2689
2727
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2693,10 +2731,12 @@ const deserializeAws_json1_1GetRuleGroupCommandError = async (output, context) =
|
|
|
2693
2731
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2694
2732
|
default:
|
|
2695
2733
|
const parsedBody = parsedOutput.body;
|
|
2734
|
+
const $metadata = deserializeMetadata(output);
|
|
2735
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2696
2736
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2697
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2737
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2698
2738
|
$fault: "client",
|
|
2699
|
-
$metadata
|
|
2739
|
+
$metadata,
|
|
2700
2740
|
});
|
|
2701
2741
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2702
2742
|
}
|
|
@@ -2721,8 +2761,7 @@ const deserializeAws_json1_1GetSampledRequestsCommandError = async (output, cont
|
|
|
2721
2761
|
body: await parseBody(output.body, context),
|
|
2722
2762
|
};
|
|
2723
2763
|
let response;
|
|
2724
|
-
|
|
2725
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2764
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2726
2765
|
switch (errorCode) {
|
|
2727
2766
|
case "WAFInternalErrorException":
|
|
2728
2767
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2732,10 +2771,12 @@ const deserializeAws_json1_1GetSampledRequestsCommandError = async (output, cont
|
|
|
2732
2771
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2733
2772
|
default:
|
|
2734
2773
|
const parsedBody = parsedOutput.body;
|
|
2774
|
+
const $metadata = deserializeMetadata(output);
|
|
2775
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2735
2776
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2736
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2777
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2737
2778
|
$fault: "client",
|
|
2738
|
-
$metadata
|
|
2779
|
+
$metadata,
|
|
2739
2780
|
});
|
|
2740
2781
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2741
2782
|
}
|
|
@@ -2760,8 +2801,7 @@ const deserializeAws_json1_1GetSizeConstraintSetCommandError = async (output, co
|
|
|
2760
2801
|
body: await parseBody(output.body, context),
|
|
2761
2802
|
};
|
|
2762
2803
|
let response;
|
|
2763
|
-
|
|
2764
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2804
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2765
2805
|
switch (errorCode) {
|
|
2766
2806
|
case "WAFInternalErrorException":
|
|
2767
2807
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2774,10 +2814,12 @@ const deserializeAws_json1_1GetSizeConstraintSetCommandError = async (output, co
|
|
|
2774
2814
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2775
2815
|
default:
|
|
2776
2816
|
const parsedBody = parsedOutput.body;
|
|
2817
|
+
const $metadata = deserializeMetadata(output);
|
|
2818
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2777
2819
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2778
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2820
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2779
2821
|
$fault: "client",
|
|
2780
|
-
$metadata
|
|
2822
|
+
$metadata,
|
|
2781
2823
|
});
|
|
2782
2824
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2783
2825
|
}
|
|
@@ -2802,8 +2844,7 @@ const deserializeAws_json1_1GetSqlInjectionMatchSetCommandError = async (output,
|
|
|
2802
2844
|
body: await parseBody(output.body, context),
|
|
2803
2845
|
};
|
|
2804
2846
|
let response;
|
|
2805
|
-
|
|
2806
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2847
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2807
2848
|
switch (errorCode) {
|
|
2808
2849
|
case "WAFInternalErrorException":
|
|
2809
2850
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2816,10 +2857,12 @@ const deserializeAws_json1_1GetSqlInjectionMatchSetCommandError = async (output,
|
|
|
2816
2857
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2817
2858
|
default:
|
|
2818
2859
|
const parsedBody = parsedOutput.body;
|
|
2860
|
+
const $metadata = deserializeMetadata(output);
|
|
2861
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2819
2862
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2820
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2863
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2821
2864
|
$fault: "client",
|
|
2822
|
-
$metadata
|
|
2865
|
+
$metadata,
|
|
2823
2866
|
});
|
|
2824
2867
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2825
2868
|
}
|
|
@@ -2844,8 +2887,7 @@ const deserializeAws_json1_1GetWebACLCommandError = async (output, context) => {
|
|
|
2844
2887
|
body: await parseBody(output.body, context),
|
|
2845
2888
|
};
|
|
2846
2889
|
let response;
|
|
2847
|
-
|
|
2848
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2890
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2849
2891
|
switch (errorCode) {
|
|
2850
2892
|
case "WAFInternalErrorException":
|
|
2851
2893
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2858,10 +2900,12 @@ const deserializeAws_json1_1GetWebACLCommandError = async (output, context) => {
|
|
|
2858
2900
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2859
2901
|
default:
|
|
2860
2902
|
const parsedBody = parsedOutput.body;
|
|
2903
|
+
const $metadata = deserializeMetadata(output);
|
|
2904
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2861
2905
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2862
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2906
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2863
2907
|
$fault: "client",
|
|
2864
|
-
$metadata
|
|
2908
|
+
$metadata,
|
|
2865
2909
|
});
|
|
2866
2910
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2867
2911
|
}
|
|
@@ -2886,8 +2930,7 @@ const deserializeAws_json1_1GetXssMatchSetCommandError = async (output, context)
|
|
|
2886
2930
|
body: await parseBody(output.body, context),
|
|
2887
2931
|
};
|
|
2888
2932
|
let response;
|
|
2889
|
-
|
|
2890
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2933
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2891
2934
|
switch (errorCode) {
|
|
2892
2935
|
case "WAFInternalErrorException":
|
|
2893
2936
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2900,10 +2943,12 @@ const deserializeAws_json1_1GetXssMatchSetCommandError = async (output, context)
|
|
|
2900
2943
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2901
2944
|
default:
|
|
2902
2945
|
const parsedBody = parsedOutput.body;
|
|
2946
|
+
const $metadata = deserializeMetadata(output);
|
|
2947
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2903
2948
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2904
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2949
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2905
2950
|
$fault: "client",
|
|
2906
|
-
$metadata
|
|
2951
|
+
$metadata,
|
|
2907
2952
|
});
|
|
2908
2953
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2909
2954
|
}
|
|
@@ -2928,8 +2973,7 @@ const deserializeAws_json1_1ListActivatedRulesInRuleGroupCommandError = async (o
|
|
|
2928
2973
|
body: await parseBody(output.body, context),
|
|
2929
2974
|
};
|
|
2930
2975
|
let response;
|
|
2931
|
-
|
|
2932
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2976
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2933
2977
|
switch (errorCode) {
|
|
2934
2978
|
case "WAFInternalErrorException":
|
|
2935
2979
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2942,10 +2986,12 @@ const deserializeAws_json1_1ListActivatedRulesInRuleGroupCommandError = async (o
|
|
|
2942
2986
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2943
2987
|
default:
|
|
2944
2988
|
const parsedBody = parsedOutput.body;
|
|
2989
|
+
const $metadata = deserializeMetadata(output);
|
|
2990
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2945
2991
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2946
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2992
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2947
2993
|
$fault: "client",
|
|
2948
|
-
$metadata
|
|
2994
|
+
$metadata,
|
|
2949
2995
|
});
|
|
2950
2996
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2951
2997
|
}
|
|
@@ -2970,8 +3016,7 @@ const deserializeAws_json1_1ListByteMatchSetsCommandError = async (output, conte
|
|
|
2970
3016
|
body: await parseBody(output.body, context),
|
|
2971
3017
|
};
|
|
2972
3018
|
let response;
|
|
2973
|
-
|
|
2974
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3019
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2975
3020
|
switch (errorCode) {
|
|
2976
3021
|
case "WAFInternalErrorException":
|
|
2977
3022
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -2981,10 +3026,12 @@ const deserializeAws_json1_1ListByteMatchSetsCommandError = async (output, conte
|
|
|
2981
3026
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
2982
3027
|
default:
|
|
2983
3028
|
const parsedBody = parsedOutput.body;
|
|
3029
|
+
const $metadata = deserializeMetadata(output);
|
|
3030
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2984
3031
|
response = new WAFServiceException_1.WAFServiceException({
|
|
2985
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3032
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2986
3033
|
$fault: "client",
|
|
2987
|
-
$metadata
|
|
3034
|
+
$metadata,
|
|
2988
3035
|
});
|
|
2989
3036
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2990
3037
|
}
|
|
@@ -3009,8 +3056,7 @@ const deserializeAws_json1_1ListGeoMatchSetsCommandError = async (output, contex
|
|
|
3009
3056
|
body: await parseBody(output.body, context),
|
|
3010
3057
|
};
|
|
3011
3058
|
let response;
|
|
3012
|
-
|
|
3013
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3059
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3014
3060
|
switch (errorCode) {
|
|
3015
3061
|
case "WAFInternalErrorException":
|
|
3016
3062
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3020,10 +3066,12 @@ const deserializeAws_json1_1ListGeoMatchSetsCommandError = async (output, contex
|
|
|
3020
3066
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3021
3067
|
default:
|
|
3022
3068
|
const parsedBody = parsedOutput.body;
|
|
3069
|
+
const $metadata = deserializeMetadata(output);
|
|
3070
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3023
3071
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3024
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3072
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3025
3073
|
$fault: "client",
|
|
3026
|
-
$metadata
|
|
3074
|
+
$metadata,
|
|
3027
3075
|
});
|
|
3028
3076
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3029
3077
|
}
|
|
@@ -3048,8 +3096,7 @@ const deserializeAws_json1_1ListIPSetsCommandError = async (output, context) =>
|
|
|
3048
3096
|
body: await parseBody(output.body, context),
|
|
3049
3097
|
};
|
|
3050
3098
|
let response;
|
|
3051
|
-
|
|
3052
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3099
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3053
3100
|
switch (errorCode) {
|
|
3054
3101
|
case "WAFInternalErrorException":
|
|
3055
3102
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3059,10 +3106,12 @@ const deserializeAws_json1_1ListIPSetsCommandError = async (output, context) =>
|
|
|
3059
3106
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3060
3107
|
default:
|
|
3061
3108
|
const parsedBody = parsedOutput.body;
|
|
3109
|
+
const $metadata = deserializeMetadata(output);
|
|
3110
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3062
3111
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3063
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3112
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3064
3113
|
$fault: "client",
|
|
3065
|
-
$metadata
|
|
3114
|
+
$metadata,
|
|
3066
3115
|
});
|
|
3067
3116
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3068
3117
|
}
|
|
@@ -3087,8 +3136,7 @@ const deserializeAws_json1_1ListLoggingConfigurationsCommandError = async (outpu
|
|
|
3087
3136
|
body: await parseBody(output.body, context),
|
|
3088
3137
|
};
|
|
3089
3138
|
let response;
|
|
3090
|
-
|
|
3091
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3139
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3092
3140
|
switch (errorCode) {
|
|
3093
3141
|
case "WAFInternalErrorException":
|
|
3094
3142
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3101,10 +3149,12 @@ const deserializeAws_json1_1ListLoggingConfigurationsCommandError = async (outpu
|
|
|
3101
3149
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
3102
3150
|
default:
|
|
3103
3151
|
const parsedBody = parsedOutput.body;
|
|
3152
|
+
const $metadata = deserializeMetadata(output);
|
|
3153
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3104
3154
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3105
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3155
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3106
3156
|
$fault: "client",
|
|
3107
|
-
$metadata
|
|
3157
|
+
$metadata,
|
|
3108
3158
|
});
|
|
3109
3159
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3110
3160
|
}
|
|
@@ -3129,8 +3179,7 @@ const deserializeAws_json1_1ListRateBasedRulesCommandError = async (output, cont
|
|
|
3129
3179
|
body: await parseBody(output.body, context),
|
|
3130
3180
|
};
|
|
3131
3181
|
let response;
|
|
3132
|
-
|
|
3133
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3182
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3134
3183
|
switch (errorCode) {
|
|
3135
3184
|
case "WAFInternalErrorException":
|
|
3136
3185
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3140,10 +3189,12 @@ const deserializeAws_json1_1ListRateBasedRulesCommandError = async (output, cont
|
|
|
3140
3189
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3141
3190
|
default:
|
|
3142
3191
|
const parsedBody = parsedOutput.body;
|
|
3192
|
+
const $metadata = deserializeMetadata(output);
|
|
3193
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3143
3194
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3144
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3195
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3145
3196
|
$fault: "client",
|
|
3146
|
-
$metadata
|
|
3197
|
+
$metadata,
|
|
3147
3198
|
});
|
|
3148
3199
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3149
3200
|
}
|
|
@@ -3168,8 +3219,7 @@ const deserializeAws_json1_1ListRegexMatchSetsCommandError = async (output, cont
|
|
|
3168
3219
|
body: await parseBody(output.body, context),
|
|
3169
3220
|
};
|
|
3170
3221
|
let response;
|
|
3171
|
-
|
|
3172
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3222
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3173
3223
|
switch (errorCode) {
|
|
3174
3224
|
case "WAFInternalErrorException":
|
|
3175
3225
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3179,10 +3229,12 @@ const deserializeAws_json1_1ListRegexMatchSetsCommandError = async (output, cont
|
|
|
3179
3229
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3180
3230
|
default:
|
|
3181
3231
|
const parsedBody = parsedOutput.body;
|
|
3232
|
+
const $metadata = deserializeMetadata(output);
|
|
3233
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3182
3234
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3183
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3235
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3184
3236
|
$fault: "client",
|
|
3185
|
-
$metadata
|
|
3237
|
+
$metadata,
|
|
3186
3238
|
});
|
|
3187
3239
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3188
3240
|
}
|
|
@@ -3207,8 +3259,7 @@ const deserializeAws_json1_1ListRegexPatternSetsCommandError = async (output, co
|
|
|
3207
3259
|
body: await parseBody(output.body, context),
|
|
3208
3260
|
};
|
|
3209
3261
|
let response;
|
|
3210
|
-
|
|
3211
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3262
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3212
3263
|
switch (errorCode) {
|
|
3213
3264
|
case "WAFInternalErrorException":
|
|
3214
3265
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3218,10 +3269,12 @@ const deserializeAws_json1_1ListRegexPatternSetsCommandError = async (output, co
|
|
|
3218
3269
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3219
3270
|
default:
|
|
3220
3271
|
const parsedBody = parsedOutput.body;
|
|
3272
|
+
const $metadata = deserializeMetadata(output);
|
|
3273
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3221
3274
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3222
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3275
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3223
3276
|
$fault: "client",
|
|
3224
|
-
$metadata
|
|
3277
|
+
$metadata,
|
|
3225
3278
|
});
|
|
3226
3279
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3227
3280
|
}
|
|
@@ -3246,18 +3299,19 @@ const deserializeAws_json1_1ListRuleGroupsCommandError = async (output, context)
|
|
|
3246
3299
|
body: await parseBody(output.body, context),
|
|
3247
3300
|
};
|
|
3248
3301
|
let response;
|
|
3249
|
-
|
|
3250
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3302
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3251
3303
|
switch (errorCode) {
|
|
3252
3304
|
case "WAFInternalErrorException":
|
|
3253
3305
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
3254
3306
|
throw await deserializeAws_json1_1WAFInternalErrorExceptionResponse(parsedOutput, context);
|
|
3255
3307
|
default:
|
|
3256
3308
|
const parsedBody = parsedOutput.body;
|
|
3309
|
+
const $metadata = deserializeMetadata(output);
|
|
3310
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3257
3311
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3258
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3312
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3259
3313
|
$fault: "client",
|
|
3260
|
-
$metadata
|
|
3314
|
+
$metadata,
|
|
3261
3315
|
});
|
|
3262
3316
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3263
3317
|
}
|
|
@@ -3282,8 +3336,7 @@ const deserializeAws_json1_1ListRulesCommandError = async (output, context) => {
|
|
|
3282
3336
|
body: await parseBody(output.body, context),
|
|
3283
3337
|
};
|
|
3284
3338
|
let response;
|
|
3285
|
-
|
|
3286
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3339
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3287
3340
|
switch (errorCode) {
|
|
3288
3341
|
case "WAFInternalErrorException":
|
|
3289
3342
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3293,10 +3346,12 @@ const deserializeAws_json1_1ListRulesCommandError = async (output, context) => {
|
|
|
3293
3346
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3294
3347
|
default:
|
|
3295
3348
|
const parsedBody = parsedOutput.body;
|
|
3349
|
+
const $metadata = deserializeMetadata(output);
|
|
3350
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3296
3351
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3297
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3352
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3298
3353
|
$fault: "client",
|
|
3299
|
-
$metadata
|
|
3354
|
+
$metadata,
|
|
3300
3355
|
});
|
|
3301
3356
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3302
3357
|
}
|
|
@@ -3321,8 +3376,7 @@ const deserializeAws_json1_1ListSizeConstraintSetsCommandError = async (output,
|
|
|
3321
3376
|
body: await parseBody(output.body, context),
|
|
3322
3377
|
};
|
|
3323
3378
|
let response;
|
|
3324
|
-
|
|
3325
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3379
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3326
3380
|
switch (errorCode) {
|
|
3327
3381
|
case "WAFInternalErrorException":
|
|
3328
3382
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3332,10 +3386,12 @@ const deserializeAws_json1_1ListSizeConstraintSetsCommandError = async (output,
|
|
|
3332
3386
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3333
3387
|
default:
|
|
3334
3388
|
const parsedBody = parsedOutput.body;
|
|
3389
|
+
const $metadata = deserializeMetadata(output);
|
|
3390
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3335
3391
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3336
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3392
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3337
3393
|
$fault: "client",
|
|
3338
|
-
$metadata
|
|
3394
|
+
$metadata,
|
|
3339
3395
|
});
|
|
3340
3396
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3341
3397
|
}
|
|
@@ -3360,8 +3416,7 @@ const deserializeAws_json1_1ListSqlInjectionMatchSetsCommandError = async (outpu
|
|
|
3360
3416
|
body: await parseBody(output.body, context),
|
|
3361
3417
|
};
|
|
3362
3418
|
let response;
|
|
3363
|
-
|
|
3364
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3419
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3365
3420
|
switch (errorCode) {
|
|
3366
3421
|
case "WAFInternalErrorException":
|
|
3367
3422
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3371,10 +3426,12 @@ const deserializeAws_json1_1ListSqlInjectionMatchSetsCommandError = async (outpu
|
|
|
3371
3426
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3372
3427
|
default:
|
|
3373
3428
|
const parsedBody = parsedOutput.body;
|
|
3429
|
+
const $metadata = deserializeMetadata(output);
|
|
3430
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3374
3431
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3375
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3432
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3376
3433
|
$fault: "client",
|
|
3377
|
-
$metadata
|
|
3434
|
+
$metadata,
|
|
3378
3435
|
});
|
|
3379
3436
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3380
3437
|
}
|
|
@@ -3399,8 +3456,7 @@ const deserializeAws_json1_1ListSubscribedRuleGroupsCommandError = async (output
|
|
|
3399
3456
|
body: await parseBody(output.body, context),
|
|
3400
3457
|
};
|
|
3401
3458
|
let response;
|
|
3402
|
-
|
|
3403
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3459
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3404
3460
|
switch (errorCode) {
|
|
3405
3461
|
case "WAFInternalErrorException":
|
|
3406
3462
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3410,10 +3466,12 @@ const deserializeAws_json1_1ListSubscribedRuleGroupsCommandError = async (output
|
|
|
3410
3466
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
3411
3467
|
default:
|
|
3412
3468
|
const parsedBody = parsedOutput.body;
|
|
3469
|
+
const $metadata = deserializeMetadata(output);
|
|
3470
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3413
3471
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3414
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3472
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3415
3473
|
$fault: "client",
|
|
3416
|
-
$metadata
|
|
3474
|
+
$metadata,
|
|
3417
3475
|
});
|
|
3418
3476
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3419
3477
|
}
|
|
@@ -3438,8 +3496,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
3438
3496
|
body: await parseBody(output.body, context),
|
|
3439
3497
|
};
|
|
3440
3498
|
let response;
|
|
3441
|
-
|
|
3442
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3499
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3443
3500
|
switch (errorCode) {
|
|
3444
3501
|
case "WAFBadRequestException":
|
|
3445
3502
|
case "com.amazonaws.waf#WAFBadRequestException":
|
|
@@ -3461,10 +3518,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
3461
3518
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
3462
3519
|
default:
|
|
3463
3520
|
const parsedBody = parsedOutput.body;
|
|
3521
|
+
const $metadata = deserializeMetadata(output);
|
|
3522
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3464
3523
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3465
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3524
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3466
3525
|
$fault: "client",
|
|
3467
|
-
$metadata
|
|
3526
|
+
$metadata,
|
|
3468
3527
|
});
|
|
3469
3528
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3470
3529
|
}
|
|
@@ -3489,8 +3548,7 @@ const deserializeAws_json1_1ListWebACLsCommandError = async (output, context) =>
|
|
|
3489
3548
|
body: await parseBody(output.body, context),
|
|
3490
3549
|
};
|
|
3491
3550
|
let response;
|
|
3492
|
-
|
|
3493
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3551
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3494
3552
|
switch (errorCode) {
|
|
3495
3553
|
case "WAFInternalErrorException":
|
|
3496
3554
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3500,10 +3558,12 @@ const deserializeAws_json1_1ListWebACLsCommandError = async (output, context) =>
|
|
|
3500
3558
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3501
3559
|
default:
|
|
3502
3560
|
const parsedBody = parsedOutput.body;
|
|
3561
|
+
const $metadata = deserializeMetadata(output);
|
|
3562
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3503
3563
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3504
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3564
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3505
3565
|
$fault: "client",
|
|
3506
|
-
$metadata
|
|
3566
|
+
$metadata,
|
|
3507
3567
|
});
|
|
3508
3568
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3509
3569
|
}
|
|
@@ -3528,8 +3588,7 @@ const deserializeAws_json1_1ListXssMatchSetsCommandError = async (output, contex
|
|
|
3528
3588
|
body: await parseBody(output.body, context),
|
|
3529
3589
|
};
|
|
3530
3590
|
let response;
|
|
3531
|
-
|
|
3532
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3591
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3533
3592
|
switch (errorCode) {
|
|
3534
3593
|
case "WAFInternalErrorException":
|
|
3535
3594
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3539,10 +3598,12 @@ const deserializeAws_json1_1ListXssMatchSetsCommandError = async (output, contex
|
|
|
3539
3598
|
throw await deserializeAws_json1_1WAFInvalidAccountExceptionResponse(parsedOutput, context);
|
|
3540
3599
|
default:
|
|
3541
3600
|
const parsedBody = parsedOutput.body;
|
|
3601
|
+
const $metadata = deserializeMetadata(output);
|
|
3602
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3542
3603
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3543
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3604
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3544
3605
|
$fault: "client",
|
|
3545
|
-
$metadata
|
|
3606
|
+
$metadata,
|
|
3546
3607
|
});
|
|
3547
3608
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3548
3609
|
}
|
|
@@ -3567,8 +3628,7 @@ const deserializeAws_json1_1PutLoggingConfigurationCommandError = async (output,
|
|
|
3567
3628
|
body: await parseBody(output.body, context),
|
|
3568
3629
|
};
|
|
3569
3630
|
let response;
|
|
3570
|
-
|
|
3571
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3631
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3572
3632
|
switch (errorCode) {
|
|
3573
3633
|
case "WAFInternalErrorException":
|
|
3574
3634
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3584,10 +3644,12 @@ const deserializeAws_json1_1PutLoggingConfigurationCommandError = async (output,
|
|
|
3584
3644
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
3585
3645
|
default:
|
|
3586
3646
|
const parsedBody = parsedOutput.body;
|
|
3647
|
+
const $metadata = deserializeMetadata(output);
|
|
3648
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3587
3649
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3588
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3650
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3589
3651
|
$fault: "client",
|
|
3590
|
-
$metadata
|
|
3652
|
+
$metadata,
|
|
3591
3653
|
});
|
|
3592
3654
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3593
3655
|
}
|
|
@@ -3612,8 +3674,7 @@ const deserializeAws_json1_1PutPermissionPolicyCommandError = async (output, con
|
|
|
3612
3674
|
body: await parseBody(output.body, context),
|
|
3613
3675
|
};
|
|
3614
3676
|
let response;
|
|
3615
|
-
|
|
3616
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3677
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3617
3678
|
switch (errorCode) {
|
|
3618
3679
|
case "WAFInternalErrorException":
|
|
3619
3680
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3629,10 +3690,12 @@ const deserializeAws_json1_1PutPermissionPolicyCommandError = async (output, con
|
|
|
3629
3690
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
3630
3691
|
default:
|
|
3631
3692
|
const parsedBody = parsedOutput.body;
|
|
3693
|
+
const $metadata = deserializeMetadata(output);
|
|
3694
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3632
3695
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3633
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3696
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3634
3697
|
$fault: "client",
|
|
3635
|
-
$metadata
|
|
3698
|
+
$metadata,
|
|
3636
3699
|
});
|
|
3637
3700
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3638
3701
|
}
|
|
@@ -3657,8 +3720,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3657
3720
|
body: await parseBody(output.body, context),
|
|
3658
3721
|
};
|
|
3659
3722
|
let response;
|
|
3660
|
-
|
|
3661
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3723
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3662
3724
|
switch (errorCode) {
|
|
3663
3725
|
case "WAFBadRequestException":
|
|
3664
3726
|
case "com.amazonaws.waf#WAFBadRequestException":
|
|
@@ -3683,10 +3745,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3683
3745
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
3684
3746
|
default:
|
|
3685
3747
|
const parsedBody = parsedOutput.body;
|
|
3748
|
+
const $metadata = deserializeMetadata(output);
|
|
3749
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3686
3750
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3687
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3751
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3688
3752
|
$fault: "client",
|
|
3689
|
-
$metadata
|
|
3753
|
+
$metadata,
|
|
3690
3754
|
});
|
|
3691
3755
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3692
3756
|
}
|
|
@@ -3711,8 +3775,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3711
3775
|
body: await parseBody(output.body, context),
|
|
3712
3776
|
};
|
|
3713
3777
|
let response;
|
|
3714
|
-
|
|
3715
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3778
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3716
3779
|
switch (errorCode) {
|
|
3717
3780
|
case "WAFBadRequestException":
|
|
3718
3781
|
case "com.amazonaws.waf#WAFBadRequestException":
|
|
@@ -3734,10 +3797,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3734
3797
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
3735
3798
|
default:
|
|
3736
3799
|
const parsedBody = parsedOutput.body;
|
|
3800
|
+
const $metadata = deserializeMetadata(output);
|
|
3801
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3737
3802
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3738
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3803
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3739
3804
|
$fault: "client",
|
|
3740
|
-
$metadata
|
|
3805
|
+
$metadata,
|
|
3741
3806
|
});
|
|
3742
3807
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3743
3808
|
}
|
|
@@ -3762,8 +3827,7 @@ const deserializeAws_json1_1UpdateByteMatchSetCommandError = async (output, cont
|
|
|
3762
3827
|
body: await parseBody(output.body, context),
|
|
3763
3828
|
};
|
|
3764
3829
|
let response;
|
|
3765
|
-
|
|
3766
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3830
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3767
3831
|
switch (errorCode) {
|
|
3768
3832
|
case "WAFInternalErrorException":
|
|
3769
3833
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3791,10 +3855,12 @@ const deserializeAws_json1_1UpdateByteMatchSetCommandError = async (output, cont
|
|
|
3791
3855
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
3792
3856
|
default:
|
|
3793
3857
|
const parsedBody = parsedOutput.body;
|
|
3858
|
+
const $metadata = deserializeMetadata(output);
|
|
3859
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3794
3860
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3795
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3861
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3796
3862
|
$fault: "client",
|
|
3797
|
-
$metadata
|
|
3863
|
+
$metadata,
|
|
3798
3864
|
});
|
|
3799
3865
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3800
3866
|
}
|
|
@@ -3819,8 +3885,7 @@ const deserializeAws_json1_1UpdateGeoMatchSetCommandError = async (output, conte
|
|
|
3819
3885
|
body: await parseBody(output.body, context),
|
|
3820
3886
|
};
|
|
3821
3887
|
let response;
|
|
3822
|
-
|
|
3823
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3888
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3824
3889
|
switch (errorCode) {
|
|
3825
3890
|
case "WAFInternalErrorException":
|
|
3826
3891
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3851,10 +3916,12 @@ const deserializeAws_json1_1UpdateGeoMatchSetCommandError = async (output, conte
|
|
|
3851
3916
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
3852
3917
|
default:
|
|
3853
3918
|
const parsedBody = parsedOutput.body;
|
|
3919
|
+
const $metadata = deserializeMetadata(output);
|
|
3920
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3854
3921
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3855
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3922
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3856
3923
|
$fault: "client",
|
|
3857
|
-
$metadata
|
|
3924
|
+
$metadata,
|
|
3858
3925
|
});
|
|
3859
3926
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3860
3927
|
}
|
|
@@ -3879,8 +3946,7 @@ const deserializeAws_json1_1UpdateIPSetCommandError = async (output, context) =>
|
|
|
3879
3946
|
body: await parseBody(output.body, context),
|
|
3880
3947
|
};
|
|
3881
3948
|
let response;
|
|
3882
|
-
|
|
3883
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3949
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3884
3950
|
switch (errorCode) {
|
|
3885
3951
|
case "WAFInternalErrorException":
|
|
3886
3952
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3911,10 +3977,12 @@ const deserializeAws_json1_1UpdateIPSetCommandError = async (output, context) =>
|
|
|
3911
3977
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
3912
3978
|
default:
|
|
3913
3979
|
const parsedBody = parsedOutput.body;
|
|
3980
|
+
const $metadata = deserializeMetadata(output);
|
|
3981
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3914
3982
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3915
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3983
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3916
3984
|
$fault: "client",
|
|
3917
|
-
$metadata
|
|
3985
|
+
$metadata,
|
|
3918
3986
|
});
|
|
3919
3987
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3920
3988
|
}
|
|
@@ -3939,8 +4007,7 @@ const deserializeAws_json1_1UpdateRateBasedRuleCommandError = async (output, con
|
|
|
3939
4007
|
body: await parseBody(output.body, context),
|
|
3940
4008
|
};
|
|
3941
4009
|
let response;
|
|
3942
|
-
|
|
3943
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4010
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3944
4011
|
switch (errorCode) {
|
|
3945
4012
|
case "WAFInternalErrorException":
|
|
3946
4013
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -3971,10 +4038,12 @@ const deserializeAws_json1_1UpdateRateBasedRuleCommandError = async (output, con
|
|
|
3971
4038
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
3972
4039
|
default:
|
|
3973
4040
|
const parsedBody = parsedOutput.body;
|
|
4041
|
+
const $metadata = deserializeMetadata(output);
|
|
4042
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3974
4043
|
response = new WAFServiceException_1.WAFServiceException({
|
|
3975
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4044
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3976
4045
|
$fault: "client",
|
|
3977
|
-
$metadata
|
|
4046
|
+
$metadata,
|
|
3978
4047
|
});
|
|
3979
4048
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3980
4049
|
}
|
|
@@ -3999,8 +4068,7 @@ const deserializeAws_json1_1UpdateRegexMatchSetCommandError = async (output, con
|
|
|
3999
4068
|
body: await parseBody(output.body, context),
|
|
4000
4069
|
};
|
|
4001
4070
|
let response;
|
|
4002
|
-
|
|
4003
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4071
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4004
4072
|
switch (errorCode) {
|
|
4005
4073
|
case "WAFDisallowedNameException":
|
|
4006
4074
|
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
@@ -4028,10 +4096,12 @@ const deserializeAws_json1_1UpdateRegexMatchSetCommandError = async (output, con
|
|
|
4028
4096
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
4029
4097
|
default:
|
|
4030
4098
|
const parsedBody = parsedOutput.body;
|
|
4099
|
+
const $metadata = deserializeMetadata(output);
|
|
4100
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4031
4101
|
response = new WAFServiceException_1.WAFServiceException({
|
|
4032
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4102
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4033
4103
|
$fault: "client",
|
|
4034
|
-
$metadata
|
|
4104
|
+
$metadata,
|
|
4035
4105
|
});
|
|
4036
4106
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4037
4107
|
}
|
|
@@ -4056,8 +4126,7 @@ const deserializeAws_json1_1UpdateRegexPatternSetCommandError = async (output, c
|
|
|
4056
4126
|
body: await parseBody(output.body, context),
|
|
4057
4127
|
};
|
|
4058
4128
|
let response;
|
|
4059
|
-
|
|
4060
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4129
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4061
4130
|
switch (errorCode) {
|
|
4062
4131
|
case "WAFInternalErrorException":
|
|
4063
4132
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -4085,10 +4154,12 @@ const deserializeAws_json1_1UpdateRegexPatternSetCommandError = async (output, c
|
|
|
4085
4154
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
4086
4155
|
default:
|
|
4087
4156
|
const parsedBody = parsedOutput.body;
|
|
4157
|
+
const $metadata = deserializeMetadata(output);
|
|
4158
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4088
4159
|
response = new WAFServiceException_1.WAFServiceException({
|
|
4089
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4160
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4090
4161
|
$fault: "client",
|
|
4091
|
-
$metadata
|
|
4162
|
+
$metadata,
|
|
4092
4163
|
});
|
|
4093
4164
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4094
4165
|
}
|
|
@@ -4113,8 +4184,7 @@ const deserializeAws_json1_1UpdateRuleCommandError = async (output, context) =>
|
|
|
4113
4184
|
body: await parseBody(output.body, context),
|
|
4114
4185
|
};
|
|
4115
4186
|
let response;
|
|
4116
|
-
|
|
4117
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4187
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4118
4188
|
switch (errorCode) {
|
|
4119
4189
|
case "WAFInternalErrorException":
|
|
4120
4190
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -4145,10 +4215,12 @@ const deserializeAws_json1_1UpdateRuleCommandError = async (output, context) =>
|
|
|
4145
4215
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
4146
4216
|
default:
|
|
4147
4217
|
const parsedBody = parsedOutput.body;
|
|
4218
|
+
const $metadata = deserializeMetadata(output);
|
|
4219
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4148
4220
|
response = new WAFServiceException_1.WAFServiceException({
|
|
4149
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4221
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4150
4222
|
$fault: "client",
|
|
4151
|
-
$metadata
|
|
4223
|
+
$metadata,
|
|
4152
4224
|
});
|
|
4153
4225
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4154
4226
|
}
|
|
@@ -4173,8 +4245,7 @@ const deserializeAws_json1_1UpdateRuleGroupCommandError = async (output, context
|
|
|
4173
4245
|
body: await parseBody(output.body, context),
|
|
4174
4246
|
};
|
|
4175
4247
|
let response;
|
|
4176
|
-
|
|
4177
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4248
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4178
4249
|
switch (errorCode) {
|
|
4179
4250
|
case "WAFInternalErrorException":
|
|
4180
4251
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -4199,10 +4270,12 @@ const deserializeAws_json1_1UpdateRuleGroupCommandError = async (output, context
|
|
|
4199
4270
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
4200
4271
|
default:
|
|
4201
4272
|
const parsedBody = parsedOutput.body;
|
|
4273
|
+
const $metadata = deserializeMetadata(output);
|
|
4274
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4202
4275
|
response = new WAFServiceException_1.WAFServiceException({
|
|
4203
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4276
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4204
4277
|
$fault: "client",
|
|
4205
|
-
$metadata
|
|
4278
|
+
$metadata,
|
|
4206
4279
|
});
|
|
4207
4280
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4208
4281
|
}
|
|
@@ -4227,8 +4300,7 @@ const deserializeAws_json1_1UpdateSizeConstraintSetCommandError = async (output,
|
|
|
4227
4300
|
body: await parseBody(output.body, context),
|
|
4228
4301
|
};
|
|
4229
4302
|
let response;
|
|
4230
|
-
|
|
4231
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4303
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4232
4304
|
switch (errorCode) {
|
|
4233
4305
|
case "WAFInternalErrorException":
|
|
4234
4306
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -4259,10 +4331,12 @@ const deserializeAws_json1_1UpdateSizeConstraintSetCommandError = async (output,
|
|
|
4259
4331
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
4260
4332
|
default:
|
|
4261
4333
|
const parsedBody = parsedOutput.body;
|
|
4334
|
+
const $metadata = deserializeMetadata(output);
|
|
4335
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4262
4336
|
response = new WAFServiceException_1.WAFServiceException({
|
|
4263
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4337
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4264
4338
|
$fault: "client",
|
|
4265
|
-
$metadata
|
|
4339
|
+
$metadata,
|
|
4266
4340
|
});
|
|
4267
4341
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4268
4342
|
}
|
|
@@ -4287,8 +4361,7 @@ const deserializeAws_json1_1UpdateSqlInjectionMatchSetCommandError = async (outp
|
|
|
4287
4361
|
body: await parseBody(output.body, context),
|
|
4288
4362
|
};
|
|
4289
4363
|
let response;
|
|
4290
|
-
|
|
4291
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4364
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4292
4365
|
switch (errorCode) {
|
|
4293
4366
|
case "WAFInternalErrorException":
|
|
4294
4367
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -4316,10 +4389,12 @@ const deserializeAws_json1_1UpdateSqlInjectionMatchSetCommandError = async (outp
|
|
|
4316
4389
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
4317
4390
|
default:
|
|
4318
4391
|
const parsedBody = parsedOutput.body;
|
|
4392
|
+
const $metadata = deserializeMetadata(output);
|
|
4393
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4319
4394
|
response = new WAFServiceException_1.WAFServiceException({
|
|
4320
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4395
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4321
4396
|
$fault: "client",
|
|
4322
|
-
$metadata
|
|
4397
|
+
$metadata,
|
|
4323
4398
|
});
|
|
4324
4399
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4325
4400
|
}
|
|
@@ -4344,8 +4419,7 @@ const deserializeAws_json1_1UpdateWebACLCommandError = async (output, context) =
|
|
|
4344
4419
|
body: await parseBody(output.body, context),
|
|
4345
4420
|
};
|
|
4346
4421
|
let response;
|
|
4347
|
-
|
|
4348
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4422
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4349
4423
|
switch (errorCode) {
|
|
4350
4424
|
case "WAFInternalErrorException":
|
|
4351
4425
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -4379,10 +4453,12 @@ const deserializeAws_json1_1UpdateWebACLCommandError = async (output, context) =
|
|
|
4379
4453
|
throw await deserializeAws_json1_1WAFSubscriptionNotFoundExceptionResponse(parsedOutput, context);
|
|
4380
4454
|
default:
|
|
4381
4455
|
const parsedBody = parsedOutput.body;
|
|
4456
|
+
const $metadata = deserializeMetadata(output);
|
|
4457
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4382
4458
|
response = new WAFServiceException_1.WAFServiceException({
|
|
4383
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4459
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4384
4460
|
$fault: "client",
|
|
4385
|
-
$metadata
|
|
4461
|
+
$metadata,
|
|
4386
4462
|
});
|
|
4387
4463
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4388
4464
|
}
|
|
@@ -4407,8 +4483,7 @@ const deserializeAws_json1_1UpdateXssMatchSetCommandError = async (output, conte
|
|
|
4407
4483
|
body: await parseBody(output.body, context),
|
|
4408
4484
|
};
|
|
4409
4485
|
let response;
|
|
4410
|
-
|
|
4411
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4486
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4412
4487
|
switch (errorCode) {
|
|
4413
4488
|
case "WAFInternalErrorException":
|
|
4414
4489
|
case "com.amazonaws.waf#WAFInternalErrorException":
|
|
@@ -4436,10 +4511,12 @@ const deserializeAws_json1_1UpdateXssMatchSetCommandError = async (output, conte
|
|
|
4436
4511
|
throw await deserializeAws_json1_1WAFStaleDataExceptionResponse(parsedOutput, context);
|
|
4437
4512
|
default:
|
|
4438
4513
|
const parsedBody = parsedOutput.body;
|
|
4514
|
+
const $metadata = deserializeMetadata(output);
|
|
4515
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4439
4516
|
response = new WAFServiceException_1.WAFServiceException({
|
|
4440
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4517
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4441
4518
|
$fault: "client",
|
|
4442
|
-
$metadata
|
|
4519
|
+
$metadata,
|
|
4443
4520
|
});
|
|
4444
4521
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4445
4522
|
}
|
|
@@ -4617,26 +4694,22 @@ const deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse = asyn
|
|
|
4617
4694
|
};
|
|
4618
4695
|
const serializeAws_json1_1ActivatedRule = (input, context) => {
|
|
4619
4696
|
return {
|
|
4620
|
-
...(input.Action
|
|
4621
|
-
|
|
4622
|
-
...(input.ExcludedRules !== undefined &&
|
|
4623
|
-
input.ExcludedRules !== null && {
|
|
4697
|
+
...(input.Action != null && { Action: serializeAws_json1_1WafAction(input.Action, context) }),
|
|
4698
|
+
...(input.ExcludedRules != null && {
|
|
4624
4699
|
ExcludedRules: serializeAws_json1_1ExcludedRules(input.ExcludedRules, context),
|
|
4625
4700
|
}),
|
|
4626
|
-
...(input.OverrideAction
|
|
4627
|
-
input.OverrideAction !== null && {
|
|
4701
|
+
...(input.OverrideAction != null && {
|
|
4628
4702
|
OverrideAction: serializeAws_json1_1WafOverrideAction(input.OverrideAction, context),
|
|
4629
4703
|
}),
|
|
4630
|
-
...(input.Priority
|
|
4631
|
-
...(input.RuleId
|
|
4632
|
-
...(input.Type
|
|
4704
|
+
...(input.Priority != null && { Priority: input.Priority }),
|
|
4705
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
4706
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4633
4707
|
};
|
|
4634
4708
|
};
|
|
4635
4709
|
const serializeAws_json1_1ByteMatchSetUpdate = (input, context) => {
|
|
4636
4710
|
return {
|
|
4637
|
-
...(input.Action
|
|
4638
|
-
...(input.ByteMatchTuple
|
|
4639
|
-
input.ByteMatchTuple !== null && {
|
|
4711
|
+
...(input.Action != null && { Action: input.Action }),
|
|
4712
|
+
...(input.ByteMatchTuple != null && {
|
|
4640
4713
|
ByteMatchTuple: serializeAws_json1_1ByteMatchTuple(input.ByteMatchTuple, context),
|
|
4641
4714
|
}),
|
|
4642
4715
|
};
|
|
@@ -4653,198 +4726,187 @@ const serializeAws_json1_1ByteMatchSetUpdates = (input, context) => {
|
|
|
4653
4726
|
};
|
|
4654
4727
|
const serializeAws_json1_1ByteMatchTuple = (input, context) => {
|
|
4655
4728
|
return {
|
|
4656
|
-
...(input.FieldToMatch
|
|
4657
|
-
|
|
4658
|
-
...(input.
|
|
4659
|
-
|
|
4660
|
-
...(input.TargetString !== undefined &&
|
|
4661
|
-
input.TargetString !== null && { TargetString: context.base64Encoder(input.TargetString) }),
|
|
4662
|
-
...(input.TextTransformation !== undefined &&
|
|
4663
|
-
input.TextTransformation !== null && { TextTransformation: input.TextTransformation }),
|
|
4729
|
+
...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
|
|
4730
|
+
...(input.PositionalConstraint != null && { PositionalConstraint: input.PositionalConstraint }),
|
|
4731
|
+
...(input.TargetString != null && { TargetString: context.base64Encoder(input.TargetString) }),
|
|
4732
|
+
...(input.TextTransformation != null && { TextTransformation: input.TextTransformation }),
|
|
4664
4733
|
};
|
|
4665
4734
|
};
|
|
4666
4735
|
const serializeAws_json1_1CreateByteMatchSetRequest = (input, context) => {
|
|
4667
4736
|
return {
|
|
4668
|
-
...(input.ChangeToken
|
|
4669
|
-
...(input.Name
|
|
4737
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4738
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4670
4739
|
};
|
|
4671
4740
|
};
|
|
4672
4741
|
const serializeAws_json1_1CreateGeoMatchSetRequest = (input, context) => {
|
|
4673
4742
|
return {
|
|
4674
|
-
...(input.ChangeToken
|
|
4675
|
-
...(input.Name
|
|
4743
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4744
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4676
4745
|
};
|
|
4677
4746
|
};
|
|
4678
4747
|
const serializeAws_json1_1CreateIPSetRequest = (input, context) => {
|
|
4679
4748
|
return {
|
|
4680
|
-
...(input.ChangeToken
|
|
4681
|
-
...(input.Name
|
|
4749
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4750
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4682
4751
|
};
|
|
4683
4752
|
};
|
|
4684
4753
|
const serializeAws_json1_1CreateRateBasedRuleRequest = (input, context) => {
|
|
4685
4754
|
return {
|
|
4686
|
-
...(input.ChangeToken
|
|
4687
|
-
...(input.MetricName
|
|
4688
|
-
...(input.Name
|
|
4689
|
-
...(input.RateKey
|
|
4690
|
-
...(input.RateLimit
|
|
4691
|
-
...(input.Tags
|
|
4755
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4756
|
+
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
4757
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4758
|
+
...(input.RateKey != null && { RateKey: input.RateKey }),
|
|
4759
|
+
...(input.RateLimit != null && { RateLimit: input.RateLimit }),
|
|
4760
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4692
4761
|
};
|
|
4693
4762
|
};
|
|
4694
4763
|
const serializeAws_json1_1CreateRegexMatchSetRequest = (input, context) => {
|
|
4695
4764
|
return {
|
|
4696
|
-
...(input.ChangeToken
|
|
4697
|
-
...(input.Name
|
|
4765
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4766
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4698
4767
|
};
|
|
4699
4768
|
};
|
|
4700
4769
|
const serializeAws_json1_1CreateRegexPatternSetRequest = (input, context) => {
|
|
4701
4770
|
return {
|
|
4702
|
-
...(input.ChangeToken
|
|
4703
|
-
...(input.Name
|
|
4771
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4772
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4704
4773
|
};
|
|
4705
4774
|
};
|
|
4706
4775
|
const serializeAws_json1_1CreateRuleGroupRequest = (input, context) => {
|
|
4707
4776
|
return {
|
|
4708
|
-
...(input.ChangeToken
|
|
4709
|
-
...(input.MetricName
|
|
4710
|
-
...(input.Name
|
|
4711
|
-
...(input.Tags
|
|
4777
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4778
|
+
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
4779
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4780
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4712
4781
|
};
|
|
4713
4782
|
};
|
|
4714
4783
|
const serializeAws_json1_1CreateRuleRequest = (input, context) => {
|
|
4715
4784
|
return {
|
|
4716
|
-
...(input.ChangeToken
|
|
4717
|
-
...(input.MetricName
|
|
4718
|
-
...(input.Name
|
|
4719
|
-
...(input.Tags
|
|
4785
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4786
|
+
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
4787
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4788
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4720
4789
|
};
|
|
4721
4790
|
};
|
|
4722
4791
|
const serializeAws_json1_1CreateSizeConstraintSetRequest = (input, context) => {
|
|
4723
4792
|
return {
|
|
4724
|
-
...(input.ChangeToken
|
|
4725
|
-
...(input.Name
|
|
4793
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4794
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4726
4795
|
};
|
|
4727
4796
|
};
|
|
4728
4797
|
const serializeAws_json1_1CreateSqlInjectionMatchSetRequest = (input, context) => {
|
|
4729
4798
|
return {
|
|
4730
|
-
...(input.ChangeToken
|
|
4731
|
-
...(input.Name
|
|
4799
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4800
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4732
4801
|
};
|
|
4733
4802
|
};
|
|
4734
4803
|
const serializeAws_json1_1CreateWebACLMigrationStackRequest = (input, context) => {
|
|
4735
4804
|
return {
|
|
4736
|
-
...(input.IgnoreUnsupportedType
|
|
4737
|
-
|
|
4738
|
-
...(input.
|
|
4739
|
-
...(input.WebACLId !== undefined && input.WebACLId !== null && { WebACLId: input.WebACLId }),
|
|
4805
|
+
...(input.IgnoreUnsupportedType != null && { IgnoreUnsupportedType: input.IgnoreUnsupportedType }),
|
|
4806
|
+
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
4807
|
+
...(input.WebACLId != null && { WebACLId: input.WebACLId }),
|
|
4740
4808
|
};
|
|
4741
4809
|
};
|
|
4742
4810
|
const serializeAws_json1_1CreateWebACLRequest = (input, context) => {
|
|
4743
4811
|
return {
|
|
4744
|
-
...(input.ChangeToken
|
|
4745
|
-
...(input.DefaultAction
|
|
4746
|
-
|
|
4747
|
-
...(input.
|
|
4748
|
-
...(input.
|
|
4749
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4812
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4813
|
+
...(input.DefaultAction != null && { DefaultAction: serializeAws_json1_1WafAction(input.DefaultAction, context) }),
|
|
4814
|
+
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
4815
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4816
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
4750
4817
|
};
|
|
4751
4818
|
};
|
|
4752
4819
|
const serializeAws_json1_1CreateXssMatchSetRequest = (input, context) => {
|
|
4753
4820
|
return {
|
|
4754
|
-
...(input.ChangeToken
|
|
4755
|
-
...(input.Name
|
|
4821
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4822
|
+
...(input.Name != null && { Name: input.Name }),
|
|
4756
4823
|
};
|
|
4757
4824
|
};
|
|
4758
4825
|
const serializeAws_json1_1DeleteByteMatchSetRequest = (input, context) => {
|
|
4759
4826
|
return {
|
|
4760
|
-
...(input.ByteMatchSetId
|
|
4761
|
-
|
|
4762
|
-
...(input.ChangeToken !== undefined && input.ChangeToken !== null && { ChangeToken: input.ChangeToken }),
|
|
4827
|
+
...(input.ByteMatchSetId != null && { ByteMatchSetId: input.ByteMatchSetId }),
|
|
4828
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4763
4829
|
};
|
|
4764
4830
|
};
|
|
4765
4831
|
const serializeAws_json1_1DeleteGeoMatchSetRequest = (input, context) => {
|
|
4766
4832
|
return {
|
|
4767
|
-
...(input.ChangeToken
|
|
4768
|
-
...(input.GeoMatchSetId
|
|
4833
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4834
|
+
...(input.GeoMatchSetId != null && { GeoMatchSetId: input.GeoMatchSetId }),
|
|
4769
4835
|
};
|
|
4770
4836
|
};
|
|
4771
4837
|
const serializeAws_json1_1DeleteIPSetRequest = (input, context) => {
|
|
4772
4838
|
return {
|
|
4773
|
-
...(input.ChangeToken
|
|
4774
|
-
...(input.IPSetId
|
|
4839
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4840
|
+
...(input.IPSetId != null && { IPSetId: input.IPSetId }),
|
|
4775
4841
|
};
|
|
4776
4842
|
};
|
|
4777
4843
|
const serializeAws_json1_1DeleteLoggingConfigurationRequest = (input, context) => {
|
|
4778
4844
|
return {
|
|
4779
|
-
...(input.ResourceArn
|
|
4845
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4780
4846
|
};
|
|
4781
4847
|
};
|
|
4782
4848
|
const serializeAws_json1_1DeletePermissionPolicyRequest = (input, context) => {
|
|
4783
4849
|
return {
|
|
4784
|
-
...(input.ResourceArn
|
|
4850
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4785
4851
|
};
|
|
4786
4852
|
};
|
|
4787
4853
|
const serializeAws_json1_1DeleteRateBasedRuleRequest = (input, context) => {
|
|
4788
4854
|
return {
|
|
4789
|
-
...(input.ChangeToken
|
|
4790
|
-
...(input.RuleId
|
|
4855
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4856
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
4791
4857
|
};
|
|
4792
4858
|
};
|
|
4793
4859
|
const serializeAws_json1_1DeleteRegexMatchSetRequest = (input, context) => {
|
|
4794
4860
|
return {
|
|
4795
|
-
...(input.ChangeToken
|
|
4796
|
-
...(input.RegexMatchSetId
|
|
4797
|
-
input.RegexMatchSetId !== null && { RegexMatchSetId: input.RegexMatchSetId }),
|
|
4861
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4862
|
+
...(input.RegexMatchSetId != null && { RegexMatchSetId: input.RegexMatchSetId }),
|
|
4798
4863
|
};
|
|
4799
4864
|
};
|
|
4800
4865
|
const serializeAws_json1_1DeleteRegexPatternSetRequest = (input, context) => {
|
|
4801
4866
|
return {
|
|
4802
|
-
...(input.ChangeToken
|
|
4803
|
-
...(input.RegexPatternSetId
|
|
4804
|
-
input.RegexPatternSetId !== null && { RegexPatternSetId: input.RegexPatternSetId }),
|
|
4867
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4868
|
+
...(input.RegexPatternSetId != null && { RegexPatternSetId: input.RegexPatternSetId }),
|
|
4805
4869
|
};
|
|
4806
4870
|
};
|
|
4807
4871
|
const serializeAws_json1_1DeleteRuleGroupRequest = (input, context) => {
|
|
4808
4872
|
return {
|
|
4809
|
-
...(input.ChangeToken
|
|
4810
|
-
...(input.RuleGroupId
|
|
4873
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4874
|
+
...(input.RuleGroupId != null && { RuleGroupId: input.RuleGroupId }),
|
|
4811
4875
|
};
|
|
4812
4876
|
};
|
|
4813
4877
|
const serializeAws_json1_1DeleteRuleRequest = (input, context) => {
|
|
4814
4878
|
return {
|
|
4815
|
-
...(input.ChangeToken
|
|
4816
|
-
...(input.RuleId
|
|
4879
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4880
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
4817
4881
|
};
|
|
4818
4882
|
};
|
|
4819
4883
|
const serializeAws_json1_1DeleteSizeConstraintSetRequest = (input, context) => {
|
|
4820
4884
|
return {
|
|
4821
|
-
...(input.ChangeToken
|
|
4822
|
-
...(input.SizeConstraintSetId
|
|
4823
|
-
input.SizeConstraintSetId !== null && { SizeConstraintSetId: input.SizeConstraintSetId }),
|
|
4885
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4886
|
+
...(input.SizeConstraintSetId != null && { SizeConstraintSetId: input.SizeConstraintSetId }),
|
|
4824
4887
|
};
|
|
4825
4888
|
};
|
|
4826
4889
|
const serializeAws_json1_1DeleteSqlInjectionMatchSetRequest = (input, context) => {
|
|
4827
4890
|
return {
|
|
4828
|
-
...(input.ChangeToken
|
|
4829
|
-
...(input.SqlInjectionMatchSetId
|
|
4830
|
-
input.SqlInjectionMatchSetId !== null && { SqlInjectionMatchSetId: input.SqlInjectionMatchSetId }),
|
|
4891
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4892
|
+
...(input.SqlInjectionMatchSetId != null && { SqlInjectionMatchSetId: input.SqlInjectionMatchSetId }),
|
|
4831
4893
|
};
|
|
4832
4894
|
};
|
|
4833
4895
|
const serializeAws_json1_1DeleteWebACLRequest = (input, context) => {
|
|
4834
4896
|
return {
|
|
4835
|
-
...(input.ChangeToken
|
|
4836
|
-
...(input.WebACLId
|
|
4897
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4898
|
+
...(input.WebACLId != null && { WebACLId: input.WebACLId }),
|
|
4837
4899
|
};
|
|
4838
4900
|
};
|
|
4839
4901
|
const serializeAws_json1_1DeleteXssMatchSetRequest = (input, context) => {
|
|
4840
4902
|
return {
|
|
4841
|
-
...(input.ChangeToken
|
|
4842
|
-
...(input.XssMatchSetId
|
|
4903
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4904
|
+
...(input.XssMatchSetId != null && { XssMatchSetId: input.XssMatchSetId }),
|
|
4843
4905
|
};
|
|
4844
4906
|
};
|
|
4845
4907
|
const serializeAws_json1_1ExcludedRule = (input, context) => {
|
|
4846
4908
|
return {
|
|
4847
|
-
...(input.RuleId
|
|
4909
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
4848
4910
|
};
|
|
4849
4911
|
};
|
|
4850
4912
|
const serializeAws_json1_1ExcludedRules = (input, context) => {
|
|
@@ -4859,21 +4921,20 @@ const serializeAws_json1_1ExcludedRules = (input, context) => {
|
|
|
4859
4921
|
};
|
|
4860
4922
|
const serializeAws_json1_1FieldToMatch = (input, context) => {
|
|
4861
4923
|
return {
|
|
4862
|
-
...(input.Data
|
|
4863
|
-
...(input.Type
|
|
4924
|
+
...(input.Data != null && { Data: input.Data }),
|
|
4925
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4864
4926
|
};
|
|
4865
4927
|
};
|
|
4866
4928
|
const serializeAws_json1_1GeoMatchConstraint = (input, context) => {
|
|
4867
4929
|
return {
|
|
4868
|
-
...(input.Type
|
|
4869
|
-
...(input.Value
|
|
4930
|
+
...(input.Type != null && { Type: input.Type }),
|
|
4931
|
+
...(input.Value != null && { Value: input.Value }),
|
|
4870
4932
|
};
|
|
4871
4933
|
};
|
|
4872
4934
|
const serializeAws_json1_1GeoMatchSetUpdate = (input, context) => {
|
|
4873
4935
|
return {
|
|
4874
|
-
...(input.Action
|
|
4875
|
-
...(input.GeoMatchConstraint
|
|
4876
|
-
input.GeoMatchConstraint !== null && {
|
|
4936
|
+
...(input.Action != null && { Action: input.Action }),
|
|
4937
|
+
...(input.GeoMatchConstraint != null && {
|
|
4877
4938
|
GeoMatchConstraint: serializeAws_json1_1GeoMatchConstraint(input.GeoMatchConstraint, context),
|
|
4878
4939
|
}),
|
|
4879
4940
|
};
|
|
@@ -4890,8 +4951,7 @@ const serializeAws_json1_1GeoMatchSetUpdates = (input, context) => {
|
|
|
4890
4951
|
};
|
|
4891
4952
|
const serializeAws_json1_1GetByteMatchSetRequest = (input, context) => {
|
|
4892
4953
|
return {
|
|
4893
|
-
...(input.ByteMatchSetId
|
|
4894
|
-
input.ByteMatchSetId !== null && { ByteMatchSetId: input.ByteMatchSetId }),
|
|
4954
|
+
...(input.ByteMatchSetId != null && { ByteMatchSetId: input.ByteMatchSetId }),
|
|
4895
4955
|
};
|
|
4896
4956
|
};
|
|
4897
4957
|
const serializeAws_json1_1GetChangeTokenRequest = (input, context) => {
|
|
@@ -4899,104 +4959,98 @@ const serializeAws_json1_1GetChangeTokenRequest = (input, context) => {
|
|
|
4899
4959
|
};
|
|
4900
4960
|
const serializeAws_json1_1GetChangeTokenStatusRequest = (input, context) => {
|
|
4901
4961
|
return {
|
|
4902
|
-
...(input.ChangeToken
|
|
4962
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
4903
4963
|
};
|
|
4904
4964
|
};
|
|
4905
4965
|
const serializeAws_json1_1GetGeoMatchSetRequest = (input, context) => {
|
|
4906
4966
|
return {
|
|
4907
|
-
...(input.GeoMatchSetId
|
|
4967
|
+
...(input.GeoMatchSetId != null && { GeoMatchSetId: input.GeoMatchSetId }),
|
|
4908
4968
|
};
|
|
4909
4969
|
};
|
|
4910
4970
|
const serializeAws_json1_1GetIPSetRequest = (input, context) => {
|
|
4911
4971
|
return {
|
|
4912
|
-
...(input.IPSetId
|
|
4972
|
+
...(input.IPSetId != null && { IPSetId: input.IPSetId }),
|
|
4913
4973
|
};
|
|
4914
4974
|
};
|
|
4915
4975
|
const serializeAws_json1_1GetLoggingConfigurationRequest = (input, context) => {
|
|
4916
4976
|
return {
|
|
4917
|
-
...(input.ResourceArn
|
|
4977
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4918
4978
|
};
|
|
4919
4979
|
};
|
|
4920
4980
|
const serializeAws_json1_1GetPermissionPolicyRequest = (input, context) => {
|
|
4921
4981
|
return {
|
|
4922
|
-
...(input.ResourceArn
|
|
4982
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
4923
4983
|
};
|
|
4924
4984
|
};
|
|
4925
4985
|
const serializeAws_json1_1GetRateBasedRuleManagedKeysRequest = (input, context) => {
|
|
4926
4986
|
return {
|
|
4927
|
-
...(input.NextMarker
|
|
4928
|
-
...(input.RuleId
|
|
4987
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
4988
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
4929
4989
|
};
|
|
4930
4990
|
};
|
|
4931
4991
|
const serializeAws_json1_1GetRateBasedRuleRequest = (input, context) => {
|
|
4932
4992
|
return {
|
|
4933
|
-
...(input.RuleId
|
|
4993
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
4934
4994
|
};
|
|
4935
4995
|
};
|
|
4936
4996
|
const serializeAws_json1_1GetRegexMatchSetRequest = (input, context) => {
|
|
4937
4997
|
return {
|
|
4938
|
-
...(input.RegexMatchSetId
|
|
4939
|
-
input.RegexMatchSetId !== null && { RegexMatchSetId: input.RegexMatchSetId }),
|
|
4998
|
+
...(input.RegexMatchSetId != null && { RegexMatchSetId: input.RegexMatchSetId }),
|
|
4940
4999
|
};
|
|
4941
5000
|
};
|
|
4942
5001
|
const serializeAws_json1_1GetRegexPatternSetRequest = (input, context) => {
|
|
4943
5002
|
return {
|
|
4944
|
-
...(input.RegexPatternSetId
|
|
4945
|
-
input.RegexPatternSetId !== null && { RegexPatternSetId: input.RegexPatternSetId }),
|
|
5003
|
+
...(input.RegexPatternSetId != null && { RegexPatternSetId: input.RegexPatternSetId }),
|
|
4946
5004
|
};
|
|
4947
5005
|
};
|
|
4948
5006
|
const serializeAws_json1_1GetRuleGroupRequest = (input, context) => {
|
|
4949
5007
|
return {
|
|
4950
|
-
...(input.RuleGroupId
|
|
5008
|
+
...(input.RuleGroupId != null && { RuleGroupId: input.RuleGroupId }),
|
|
4951
5009
|
};
|
|
4952
5010
|
};
|
|
4953
5011
|
const serializeAws_json1_1GetRuleRequest = (input, context) => {
|
|
4954
5012
|
return {
|
|
4955
|
-
...(input.RuleId
|
|
5013
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
4956
5014
|
};
|
|
4957
5015
|
};
|
|
4958
5016
|
const serializeAws_json1_1GetSampledRequestsRequest = (input, context) => {
|
|
4959
5017
|
return {
|
|
4960
|
-
...(input.MaxItems
|
|
4961
|
-
...(input.RuleId
|
|
4962
|
-
...(input.TimeWindow
|
|
4963
|
-
|
|
4964
|
-
...(input.WebAclId !== undefined && input.WebAclId !== null && { WebAclId: input.WebAclId }),
|
|
5018
|
+
...(input.MaxItems != null && { MaxItems: input.MaxItems }),
|
|
5019
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
5020
|
+
...(input.TimeWindow != null && { TimeWindow: serializeAws_json1_1TimeWindow(input.TimeWindow, context) }),
|
|
5021
|
+
...(input.WebAclId != null && { WebAclId: input.WebAclId }),
|
|
4965
5022
|
};
|
|
4966
5023
|
};
|
|
4967
5024
|
const serializeAws_json1_1GetSizeConstraintSetRequest = (input, context) => {
|
|
4968
5025
|
return {
|
|
4969
|
-
...(input.SizeConstraintSetId
|
|
4970
|
-
input.SizeConstraintSetId !== null && { SizeConstraintSetId: input.SizeConstraintSetId }),
|
|
5026
|
+
...(input.SizeConstraintSetId != null && { SizeConstraintSetId: input.SizeConstraintSetId }),
|
|
4971
5027
|
};
|
|
4972
5028
|
};
|
|
4973
5029
|
const serializeAws_json1_1GetSqlInjectionMatchSetRequest = (input, context) => {
|
|
4974
5030
|
return {
|
|
4975
|
-
...(input.SqlInjectionMatchSetId
|
|
4976
|
-
input.SqlInjectionMatchSetId !== null && { SqlInjectionMatchSetId: input.SqlInjectionMatchSetId }),
|
|
5031
|
+
...(input.SqlInjectionMatchSetId != null && { SqlInjectionMatchSetId: input.SqlInjectionMatchSetId }),
|
|
4977
5032
|
};
|
|
4978
5033
|
};
|
|
4979
5034
|
const serializeAws_json1_1GetWebACLRequest = (input, context) => {
|
|
4980
5035
|
return {
|
|
4981
|
-
...(input.WebACLId
|
|
5036
|
+
...(input.WebACLId != null && { WebACLId: input.WebACLId }),
|
|
4982
5037
|
};
|
|
4983
5038
|
};
|
|
4984
5039
|
const serializeAws_json1_1GetXssMatchSetRequest = (input, context) => {
|
|
4985
5040
|
return {
|
|
4986
|
-
...(input.XssMatchSetId
|
|
5041
|
+
...(input.XssMatchSetId != null && { XssMatchSetId: input.XssMatchSetId }),
|
|
4987
5042
|
};
|
|
4988
5043
|
};
|
|
4989
5044
|
const serializeAws_json1_1IPSetDescriptor = (input, context) => {
|
|
4990
5045
|
return {
|
|
4991
|
-
...(input.Type
|
|
4992
|
-
...(input.Value
|
|
5046
|
+
...(input.Type != null && { Type: input.Type }),
|
|
5047
|
+
...(input.Value != null && { Value: input.Value }),
|
|
4993
5048
|
};
|
|
4994
5049
|
};
|
|
4995
5050
|
const serializeAws_json1_1IPSetUpdate = (input, context) => {
|
|
4996
5051
|
return {
|
|
4997
|
-
...(input.Action
|
|
4998
|
-
...(input.IPSetDescriptor
|
|
4999
|
-
input.IPSetDescriptor !== null && {
|
|
5052
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5053
|
+
...(input.IPSetDescriptor != null && {
|
|
5000
5054
|
IPSetDescriptor: serializeAws_json1_1IPSetDescriptor(input.IPSetDescriptor, context),
|
|
5001
5055
|
}),
|
|
5002
5056
|
};
|
|
@@ -5013,100 +5067,100 @@ const serializeAws_json1_1IPSetUpdates = (input, context) => {
|
|
|
5013
5067
|
};
|
|
5014
5068
|
const serializeAws_json1_1ListActivatedRulesInRuleGroupRequest = (input, context) => {
|
|
5015
5069
|
return {
|
|
5016
|
-
...(input.Limit
|
|
5017
|
-
...(input.NextMarker
|
|
5018
|
-
...(input.RuleGroupId
|
|
5070
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5071
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5072
|
+
...(input.RuleGroupId != null && { RuleGroupId: input.RuleGroupId }),
|
|
5019
5073
|
};
|
|
5020
5074
|
};
|
|
5021
5075
|
const serializeAws_json1_1ListByteMatchSetsRequest = (input, context) => {
|
|
5022
5076
|
return {
|
|
5023
|
-
...(input.Limit
|
|
5024
|
-
...(input.NextMarker
|
|
5077
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5078
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5025
5079
|
};
|
|
5026
5080
|
};
|
|
5027
5081
|
const serializeAws_json1_1ListGeoMatchSetsRequest = (input, context) => {
|
|
5028
5082
|
return {
|
|
5029
|
-
...(input.Limit
|
|
5030
|
-
...(input.NextMarker
|
|
5083
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5084
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5031
5085
|
};
|
|
5032
5086
|
};
|
|
5033
5087
|
const serializeAws_json1_1ListIPSetsRequest = (input, context) => {
|
|
5034
5088
|
return {
|
|
5035
|
-
...(input.Limit
|
|
5036
|
-
...(input.NextMarker
|
|
5089
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5090
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5037
5091
|
};
|
|
5038
5092
|
};
|
|
5039
5093
|
const serializeAws_json1_1ListLoggingConfigurationsRequest = (input, context) => {
|
|
5040
5094
|
return {
|
|
5041
|
-
...(input.Limit
|
|
5042
|
-
...(input.NextMarker
|
|
5095
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5096
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5043
5097
|
};
|
|
5044
5098
|
};
|
|
5045
5099
|
const serializeAws_json1_1ListRateBasedRulesRequest = (input, context) => {
|
|
5046
5100
|
return {
|
|
5047
|
-
...(input.Limit
|
|
5048
|
-
...(input.NextMarker
|
|
5101
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5102
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5049
5103
|
};
|
|
5050
5104
|
};
|
|
5051
5105
|
const serializeAws_json1_1ListRegexMatchSetsRequest = (input, context) => {
|
|
5052
5106
|
return {
|
|
5053
|
-
...(input.Limit
|
|
5054
|
-
...(input.NextMarker
|
|
5107
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5108
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5055
5109
|
};
|
|
5056
5110
|
};
|
|
5057
5111
|
const serializeAws_json1_1ListRegexPatternSetsRequest = (input, context) => {
|
|
5058
5112
|
return {
|
|
5059
|
-
...(input.Limit
|
|
5060
|
-
...(input.NextMarker
|
|
5113
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5114
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5061
5115
|
};
|
|
5062
5116
|
};
|
|
5063
5117
|
const serializeAws_json1_1ListRuleGroupsRequest = (input, context) => {
|
|
5064
5118
|
return {
|
|
5065
|
-
...(input.Limit
|
|
5066
|
-
...(input.NextMarker
|
|
5119
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5120
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5067
5121
|
};
|
|
5068
5122
|
};
|
|
5069
5123
|
const serializeAws_json1_1ListRulesRequest = (input, context) => {
|
|
5070
5124
|
return {
|
|
5071
|
-
...(input.Limit
|
|
5072
|
-
...(input.NextMarker
|
|
5125
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5126
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5073
5127
|
};
|
|
5074
5128
|
};
|
|
5075
5129
|
const serializeAws_json1_1ListSizeConstraintSetsRequest = (input, context) => {
|
|
5076
5130
|
return {
|
|
5077
|
-
...(input.Limit
|
|
5078
|
-
...(input.NextMarker
|
|
5131
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5132
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5079
5133
|
};
|
|
5080
5134
|
};
|
|
5081
5135
|
const serializeAws_json1_1ListSqlInjectionMatchSetsRequest = (input, context) => {
|
|
5082
5136
|
return {
|
|
5083
|
-
...(input.Limit
|
|
5084
|
-
...(input.NextMarker
|
|
5137
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5138
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5085
5139
|
};
|
|
5086
5140
|
};
|
|
5087
5141
|
const serializeAws_json1_1ListSubscribedRuleGroupsRequest = (input, context) => {
|
|
5088
5142
|
return {
|
|
5089
|
-
...(input.Limit
|
|
5090
|
-
...(input.NextMarker
|
|
5143
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5144
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5091
5145
|
};
|
|
5092
5146
|
};
|
|
5093
5147
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
5094
5148
|
return {
|
|
5095
|
-
...(input.Limit
|
|
5096
|
-
...(input.NextMarker
|
|
5097
|
-
...(input.ResourceARN
|
|
5149
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5150
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5151
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
5098
5152
|
};
|
|
5099
5153
|
};
|
|
5100
5154
|
const serializeAws_json1_1ListWebACLsRequest = (input, context) => {
|
|
5101
5155
|
return {
|
|
5102
|
-
...(input.Limit
|
|
5103
|
-
...(input.NextMarker
|
|
5156
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5157
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5104
5158
|
};
|
|
5105
5159
|
};
|
|
5106
5160
|
const serializeAws_json1_1ListXssMatchSetsRequest = (input, context) => {
|
|
5107
5161
|
return {
|
|
5108
|
-
...(input.Limit
|
|
5109
|
-
...(input.NextMarker
|
|
5162
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
5163
|
+
...(input.NextMarker != null && { NextMarker: input.NextMarker }),
|
|
5110
5164
|
};
|
|
5111
5165
|
};
|
|
5112
5166
|
const serializeAws_json1_1LogDestinationConfigs = (input, context) => {
|
|
@@ -5121,36 +5175,33 @@ const serializeAws_json1_1LogDestinationConfigs = (input, context) => {
|
|
|
5121
5175
|
};
|
|
5122
5176
|
const serializeAws_json1_1LoggingConfiguration = (input, context) => {
|
|
5123
5177
|
return {
|
|
5124
|
-
...(input.LogDestinationConfigs
|
|
5125
|
-
input.LogDestinationConfigs !== null && {
|
|
5178
|
+
...(input.LogDestinationConfigs != null && {
|
|
5126
5179
|
LogDestinationConfigs: serializeAws_json1_1LogDestinationConfigs(input.LogDestinationConfigs, context),
|
|
5127
5180
|
}),
|
|
5128
|
-
...(input.RedactedFields
|
|
5129
|
-
input.RedactedFields !== null && {
|
|
5181
|
+
...(input.RedactedFields != null && {
|
|
5130
5182
|
RedactedFields: serializeAws_json1_1RedactedFields(input.RedactedFields, context),
|
|
5131
5183
|
}),
|
|
5132
|
-
...(input.ResourceArn
|
|
5184
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
5133
5185
|
};
|
|
5134
5186
|
};
|
|
5135
5187
|
const serializeAws_json1_1Predicate = (input, context) => {
|
|
5136
5188
|
return {
|
|
5137
|
-
...(input.DataId
|
|
5138
|
-
...(input.Negated
|
|
5139
|
-
...(input.Type
|
|
5189
|
+
...(input.DataId != null && { DataId: input.DataId }),
|
|
5190
|
+
...(input.Negated != null && { Negated: input.Negated }),
|
|
5191
|
+
...(input.Type != null && { Type: input.Type }),
|
|
5140
5192
|
};
|
|
5141
5193
|
};
|
|
5142
5194
|
const serializeAws_json1_1PutLoggingConfigurationRequest = (input, context) => {
|
|
5143
5195
|
return {
|
|
5144
|
-
...(input.LoggingConfiguration
|
|
5145
|
-
input.LoggingConfiguration !== null && {
|
|
5196
|
+
...(input.LoggingConfiguration != null && {
|
|
5146
5197
|
LoggingConfiguration: serializeAws_json1_1LoggingConfiguration(input.LoggingConfiguration, context),
|
|
5147
5198
|
}),
|
|
5148
5199
|
};
|
|
5149
5200
|
};
|
|
5150
5201
|
const serializeAws_json1_1PutPermissionPolicyRequest = (input, context) => {
|
|
5151
5202
|
return {
|
|
5152
|
-
...(input.Policy
|
|
5153
|
-
...(input.ResourceArn
|
|
5203
|
+
...(input.Policy != null && { Policy: input.Policy }),
|
|
5204
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
5154
5205
|
};
|
|
5155
5206
|
};
|
|
5156
5207
|
const serializeAws_json1_1RedactedFields = (input, context) => {
|
|
@@ -5165,9 +5216,8 @@ const serializeAws_json1_1RedactedFields = (input, context) => {
|
|
|
5165
5216
|
};
|
|
5166
5217
|
const serializeAws_json1_1RegexMatchSetUpdate = (input, context) => {
|
|
5167
5218
|
return {
|
|
5168
|
-
...(input.Action
|
|
5169
|
-
...(input.RegexMatchTuple
|
|
5170
|
-
input.RegexMatchTuple !== null && {
|
|
5219
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5220
|
+
...(input.RegexMatchTuple != null && {
|
|
5171
5221
|
RegexMatchTuple: serializeAws_json1_1RegexMatchTuple(input.RegexMatchTuple, context),
|
|
5172
5222
|
}),
|
|
5173
5223
|
};
|
|
@@ -5184,19 +5234,15 @@ const serializeAws_json1_1RegexMatchSetUpdates = (input, context) => {
|
|
|
5184
5234
|
};
|
|
5185
5235
|
const serializeAws_json1_1RegexMatchTuple = (input, context) => {
|
|
5186
5236
|
return {
|
|
5187
|
-
...(input.FieldToMatch
|
|
5188
|
-
|
|
5189
|
-
...(input.
|
|
5190
|
-
input.RegexPatternSetId !== null && { RegexPatternSetId: input.RegexPatternSetId }),
|
|
5191
|
-
...(input.TextTransformation !== undefined &&
|
|
5192
|
-
input.TextTransformation !== null && { TextTransformation: input.TextTransformation }),
|
|
5237
|
+
...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
|
|
5238
|
+
...(input.RegexPatternSetId != null && { RegexPatternSetId: input.RegexPatternSetId }),
|
|
5239
|
+
...(input.TextTransformation != null && { TextTransformation: input.TextTransformation }),
|
|
5193
5240
|
};
|
|
5194
5241
|
};
|
|
5195
5242
|
const serializeAws_json1_1RegexPatternSetUpdate = (input, context) => {
|
|
5196
5243
|
return {
|
|
5197
|
-
...(input.Action
|
|
5198
|
-
...(input.RegexPatternString
|
|
5199
|
-
input.RegexPatternString !== null && { RegexPatternString: input.RegexPatternString }),
|
|
5244
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5245
|
+
...(input.RegexPatternString != null && { RegexPatternString: input.RegexPatternString }),
|
|
5200
5246
|
};
|
|
5201
5247
|
};
|
|
5202
5248
|
const serializeAws_json1_1RegexPatternSetUpdates = (input, context) => {
|
|
@@ -5211,9 +5257,8 @@ const serializeAws_json1_1RegexPatternSetUpdates = (input, context) => {
|
|
|
5211
5257
|
};
|
|
5212
5258
|
const serializeAws_json1_1RuleGroupUpdate = (input, context) => {
|
|
5213
5259
|
return {
|
|
5214
|
-
...(input.Action
|
|
5215
|
-
...(input.ActivatedRule
|
|
5216
|
-
input.ActivatedRule !== null && {
|
|
5260
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5261
|
+
...(input.ActivatedRule != null && {
|
|
5217
5262
|
ActivatedRule: serializeAws_json1_1ActivatedRule(input.ActivatedRule, context),
|
|
5218
5263
|
}),
|
|
5219
5264
|
};
|
|
@@ -5230,9 +5275,8 @@ const serializeAws_json1_1RuleGroupUpdates = (input, context) => {
|
|
|
5230
5275
|
};
|
|
5231
5276
|
const serializeAws_json1_1RuleUpdate = (input, context) => {
|
|
5232
5277
|
return {
|
|
5233
|
-
...(input.Action
|
|
5234
|
-
...(input.Predicate
|
|
5235
|
-
input.Predicate !== null && { Predicate: serializeAws_json1_1Predicate(input.Predicate, context) }),
|
|
5278
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5279
|
+
...(input.Predicate != null && { Predicate: serializeAws_json1_1Predicate(input.Predicate, context) }),
|
|
5236
5280
|
};
|
|
5237
5281
|
};
|
|
5238
5282
|
const serializeAws_json1_1RuleUpdates = (input, context) => {
|
|
@@ -5247,20 +5291,16 @@ const serializeAws_json1_1RuleUpdates = (input, context) => {
|
|
|
5247
5291
|
};
|
|
5248
5292
|
const serializeAws_json1_1SizeConstraint = (input, context) => {
|
|
5249
5293
|
return {
|
|
5250
|
-
...(input.ComparisonOperator
|
|
5251
|
-
|
|
5252
|
-
...(input.
|
|
5253
|
-
|
|
5254
|
-
...(input.Size !== undefined && input.Size !== null && { Size: input.Size }),
|
|
5255
|
-
...(input.TextTransformation !== undefined &&
|
|
5256
|
-
input.TextTransformation !== null && { TextTransformation: input.TextTransformation }),
|
|
5294
|
+
...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
|
|
5295
|
+
...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
|
|
5296
|
+
...(input.Size != null && { Size: input.Size }),
|
|
5297
|
+
...(input.TextTransformation != null && { TextTransformation: input.TextTransformation }),
|
|
5257
5298
|
};
|
|
5258
5299
|
};
|
|
5259
5300
|
const serializeAws_json1_1SizeConstraintSetUpdate = (input, context) => {
|
|
5260
5301
|
return {
|
|
5261
|
-
...(input.Action
|
|
5262
|
-
...(input.SizeConstraint
|
|
5263
|
-
input.SizeConstraint !== null && {
|
|
5302
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5303
|
+
...(input.SizeConstraint != null && {
|
|
5264
5304
|
SizeConstraint: serializeAws_json1_1SizeConstraint(input.SizeConstraint, context),
|
|
5265
5305
|
}),
|
|
5266
5306
|
};
|
|
@@ -5277,9 +5317,8 @@ const serializeAws_json1_1SizeConstraintSetUpdates = (input, context) => {
|
|
|
5277
5317
|
};
|
|
5278
5318
|
const serializeAws_json1_1SqlInjectionMatchSetUpdate = (input, context) => {
|
|
5279
5319
|
return {
|
|
5280
|
-
...(input.Action
|
|
5281
|
-
...(input.SqlInjectionMatchTuple
|
|
5282
|
-
input.SqlInjectionMatchTuple !== null && {
|
|
5320
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5321
|
+
...(input.SqlInjectionMatchTuple != null && {
|
|
5283
5322
|
SqlInjectionMatchTuple: serializeAws_json1_1SqlInjectionMatchTuple(input.SqlInjectionMatchTuple, context),
|
|
5284
5323
|
}),
|
|
5285
5324
|
};
|
|
@@ -5296,16 +5335,14 @@ const serializeAws_json1_1SqlInjectionMatchSetUpdates = (input, context) => {
|
|
|
5296
5335
|
};
|
|
5297
5336
|
const serializeAws_json1_1SqlInjectionMatchTuple = (input, context) => {
|
|
5298
5337
|
return {
|
|
5299
|
-
...(input.FieldToMatch
|
|
5300
|
-
|
|
5301
|
-
...(input.TextTransformation !== undefined &&
|
|
5302
|
-
input.TextTransformation !== null && { TextTransformation: input.TextTransformation }),
|
|
5338
|
+
...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
|
|
5339
|
+
...(input.TextTransformation != null && { TextTransformation: input.TextTransformation }),
|
|
5303
5340
|
};
|
|
5304
5341
|
};
|
|
5305
5342
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
5306
5343
|
return {
|
|
5307
|
-
...(input.Key
|
|
5308
|
-
...(input.Value
|
|
5344
|
+
...(input.Key != null && { Key: input.Key }),
|
|
5345
|
+
...(input.Value != null && { Value: input.Value }),
|
|
5309
5346
|
};
|
|
5310
5347
|
};
|
|
5311
5348
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -5330,144 +5367,122 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
5330
5367
|
};
|
|
5331
5368
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
5332
5369
|
return {
|
|
5333
|
-
...(input.ResourceARN
|
|
5334
|
-
...(input.Tags
|
|
5370
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
5371
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
5335
5372
|
};
|
|
5336
5373
|
};
|
|
5337
5374
|
const serializeAws_json1_1TimeWindow = (input, context) => {
|
|
5338
5375
|
return {
|
|
5339
|
-
...(input.EndTime
|
|
5340
|
-
|
|
5341
|
-
...(input.StartTime !== undefined &&
|
|
5342
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
5376
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
5377
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
5343
5378
|
};
|
|
5344
5379
|
};
|
|
5345
5380
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
5346
5381
|
return {
|
|
5347
|
-
...(input.ResourceARN
|
|
5348
|
-
...(input.TagKeys
|
|
5349
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
5382
|
+
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
5383
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
|
|
5350
5384
|
};
|
|
5351
5385
|
};
|
|
5352
5386
|
const serializeAws_json1_1UpdateByteMatchSetRequest = (input, context) => {
|
|
5353
5387
|
return {
|
|
5354
|
-
...(input.ByteMatchSetId
|
|
5355
|
-
|
|
5356
|
-
...(input.
|
|
5357
|
-
...(input.Updates !== undefined &&
|
|
5358
|
-
input.Updates !== null && { Updates: serializeAws_json1_1ByteMatchSetUpdates(input.Updates, context) }),
|
|
5388
|
+
...(input.ByteMatchSetId != null && { ByteMatchSetId: input.ByteMatchSetId }),
|
|
5389
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5390
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1ByteMatchSetUpdates(input.Updates, context) }),
|
|
5359
5391
|
};
|
|
5360
5392
|
};
|
|
5361
5393
|
const serializeAws_json1_1UpdateGeoMatchSetRequest = (input, context) => {
|
|
5362
5394
|
return {
|
|
5363
|
-
...(input.ChangeToken
|
|
5364
|
-
...(input.GeoMatchSetId
|
|
5365
|
-
...(input.Updates
|
|
5366
|
-
input.Updates !== null && { Updates: serializeAws_json1_1GeoMatchSetUpdates(input.Updates, context) }),
|
|
5395
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5396
|
+
...(input.GeoMatchSetId != null && { GeoMatchSetId: input.GeoMatchSetId }),
|
|
5397
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1GeoMatchSetUpdates(input.Updates, context) }),
|
|
5367
5398
|
};
|
|
5368
5399
|
};
|
|
5369
5400
|
const serializeAws_json1_1UpdateIPSetRequest = (input, context) => {
|
|
5370
5401
|
return {
|
|
5371
|
-
...(input.ChangeToken
|
|
5372
|
-
...(input.IPSetId
|
|
5373
|
-
...(input.Updates
|
|
5374
|
-
input.Updates !== null && { Updates: serializeAws_json1_1IPSetUpdates(input.Updates, context) }),
|
|
5402
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5403
|
+
...(input.IPSetId != null && { IPSetId: input.IPSetId }),
|
|
5404
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1IPSetUpdates(input.Updates, context) }),
|
|
5375
5405
|
};
|
|
5376
5406
|
};
|
|
5377
5407
|
const serializeAws_json1_1UpdateRateBasedRuleRequest = (input, context) => {
|
|
5378
5408
|
return {
|
|
5379
|
-
...(input.ChangeToken
|
|
5380
|
-
...(input.RateLimit
|
|
5381
|
-
...(input.RuleId
|
|
5382
|
-
...(input.Updates
|
|
5383
|
-
input.Updates !== null && { Updates: serializeAws_json1_1RuleUpdates(input.Updates, context) }),
|
|
5409
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5410
|
+
...(input.RateLimit != null && { RateLimit: input.RateLimit }),
|
|
5411
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
5412
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1RuleUpdates(input.Updates, context) }),
|
|
5384
5413
|
};
|
|
5385
5414
|
};
|
|
5386
5415
|
const serializeAws_json1_1UpdateRegexMatchSetRequest = (input, context) => {
|
|
5387
5416
|
return {
|
|
5388
|
-
...(input.ChangeToken
|
|
5389
|
-
...(input.RegexMatchSetId
|
|
5390
|
-
|
|
5391
|
-
...(input.Updates !== undefined &&
|
|
5392
|
-
input.Updates !== null && { Updates: serializeAws_json1_1RegexMatchSetUpdates(input.Updates, context) }),
|
|
5417
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5418
|
+
...(input.RegexMatchSetId != null && { RegexMatchSetId: input.RegexMatchSetId }),
|
|
5419
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1RegexMatchSetUpdates(input.Updates, context) }),
|
|
5393
5420
|
};
|
|
5394
5421
|
};
|
|
5395
5422
|
const serializeAws_json1_1UpdateRegexPatternSetRequest = (input, context) => {
|
|
5396
5423
|
return {
|
|
5397
|
-
...(input.ChangeToken
|
|
5398
|
-
...(input.RegexPatternSetId
|
|
5399
|
-
|
|
5400
|
-
...(input.Updates !== undefined &&
|
|
5401
|
-
input.Updates !== null && { Updates: serializeAws_json1_1RegexPatternSetUpdates(input.Updates, context) }),
|
|
5424
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5425
|
+
...(input.RegexPatternSetId != null && { RegexPatternSetId: input.RegexPatternSetId }),
|
|
5426
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1RegexPatternSetUpdates(input.Updates, context) }),
|
|
5402
5427
|
};
|
|
5403
5428
|
};
|
|
5404
5429
|
const serializeAws_json1_1UpdateRuleGroupRequest = (input, context) => {
|
|
5405
5430
|
return {
|
|
5406
|
-
...(input.ChangeToken
|
|
5407
|
-
...(input.RuleGroupId
|
|
5408
|
-
...(input.Updates
|
|
5409
|
-
input.Updates !== null && { Updates: serializeAws_json1_1RuleGroupUpdates(input.Updates, context) }),
|
|
5431
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5432
|
+
...(input.RuleGroupId != null && { RuleGroupId: input.RuleGroupId }),
|
|
5433
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1RuleGroupUpdates(input.Updates, context) }),
|
|
5410
5434
|
};
|
|
5411
5435
|
};
|
|
5412
5436
|
const serializeAws_json1_1UpdateRuleRequest = (input, context) => {
|
|
5413
5437
|
return {
|
|
5414
|
-
...(input.ChangeToken
|
|
5415
|
-
...(input.RuleId
|
|
5416
|
-
...(input.Updates
|
|
5417
|
-
input.Updates !== null && { Updates: serializeAws_json1_1RuleUpdates(input.Updates, context) }),
|
|
5438
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5439
|
+
...(input.RuleId != null && { RuleId: input.RuleId }),
|
|
5440
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1RuleUpdates(input.Updates, context) }),
|
|
5418
5441
|
};
|
|
5419
5442
|
};
|
|
5420
5443
|
const serializeAws_json1_1UpdateSizeConstraintSetRequest = (input, context) => {
|
|
5421
5444
|
return {
|
|
5422
|
-
...(input.ChangeToken
|
|
5423
|
-
...(input.SizeConstraintSetId
|
|
5424
|
-
|
|
5425
|
-
...(input.Updates !== undefined &&
|
|
5426
|
-
input.Updates !== null && { Updates: serializeAws_json1_1SizeConstraintSetUpdates(input.Updates, context) }),
|
|
5445
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5446
|
+
...(input.SizeConstraintSetId != null && { SizeConstraintSetId: input.SizeConstraintSetId }),
|
|
5447
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1SizeConstraintSetUpdates(input.Updates, context) }),
|
|
5427
5448
|
};
|
|
5428
5449
|
};
|
|
5429
5450
|
const serializeAws_json1_1UpdateSqlInjectionMatchSetRequest = (input, context) => {
|
|
5430
5451
|
return {
|
|
5431
|
-
...(input.ChangeToken
|
|
5432
|
-
...(input.SqlInjectionMatchSetId
|
|
5433
|
-
|
|
5434
|
-
...(input.Updates !== undefined &&
|
|
5435
|
-
input.Updates !== null && { Updates: serializeAws_json1_1SqlInjectionMatchSetUpdates(input.Updates, context) }),
|
|
5452
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5453
|
+
...(input.SqlInjectionMatchSetId != null && { SqlInjectionMatchSetId: input.SqlInjectionMatchSetId }),
|
|
5454
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1SqlInjectionMatchSetUpdates(input.Updates, context) }),
|
|
5436
5455
|
};
|
|
5437
5456
|
};
|
|
5438
5457
|
const serializeAws_json1_1UpdateWebACLRequest = (input, context) => {
|
|
5439
5458
|
return {
|
|
5440
|
-
...(input.ChangeToken
|
|
5441
|
-
...(input.DefaultAction
|
|
5442
|
-
|
|
5443
|
-
...(input.
|
|
5444
|
-
input.Updates !== null && { Updates: serializeAws_json1_1WebACLUpdates(input.Updates, context) }),
|
|
5445
|
-
...(input.WebACLId !== undefined && input.WebACLId !== null && { WebACLId: input.WebACLId }),
|
|
5459
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5460
|
+
...(input.DefaultAction != null && { DefaultAction: serializeAws_json1_1WafAction(input.DefaultAction, context) }),
|
|
5461
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1WebACLUpdates(input.Updates, context) }),
|
|
5462
|
+
...(input.WebACLId != null && { WebACLId: input.WebACLId }),
|
|
5446
5463
|
};
|
|
5447
5464
|
};
|
|
5448
5465
|
const serializeAws_json1_1UpdateXssMatchSetRequest = (input, context) => {
|
|
5449
5466
|
return {
|
|
5450
|
-
...(input.ChangeToken
|
|
5451
|
-
...(input.Updates
|
|
5452
|
-
|
|
5453
|
-
...(input.XssMatchSetId !== undefined && input.XssMatchSetId !== null && { XssMatchSetId: input.XssMatchSetId }),
|
|
5467
|
+
...(input.ChangeToken != null && { ChangeToken: input.ChangeToken }),
|
|
5468
|
+
...(input.Updates != null && { Updates: serializeAws_json1_1XssMatchSetUpdates(input.Updates, context) }),
|
|
5469
|
+
...(input.XssMatchSetId != null && { XssMatchSetId: input.XssMatchSetId }),
|
|
5454
5470
|
};
|
|
5455
5471
|
};
|
|
5456
5472
|
const serializeAws_json1_1WafAction = (input, context) => {
|
|
5457
5473
|
return {
|
|
5458
|
-
...(input.Type
|
|
5474
|
+
...(input.Type != null && { Type: input.Type }),
|
|
5459
5475
|
};
|
|
5460
5476
|
};
|
|
5461
5477
|
const serializeAws_json1_1WafOverrideAction = (input, context) => {
|
|
5462
5478
|
return {
|
|
5463
|
-
...(input.Type
|
|
5479
|
+
...(input.Type != null && { Type: input.Type }),
|
|
5464
5480
|
};
|
|
5465
5481
|
};
|
|
5466
5482
|
const serializeAws_json1_1WebACLUpdate = (input, context) => {
|
|
5467
5483
|
return {
|
|
5468
|
-
...(input.Action
|
|
5469
|
-
...(input.ActivatedRule
|
|
5470
|
-
input.ActivatedRule !== null && {
|
|
5484
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5485
|
+
...(input.ActivatedRule != null && {
|
|
5471
5486
|
ActivatedRule: serializeAws_json1_1ActivatedRule(input.ActivatedRule, context),
|
|
5472
5487
|
}),
|
|
5473
5488
|
};
|
|
@@ -5484,9 +5499,8 @@ const serializeAws_json1_1WebACLUpdates = (input, context) => {
|
|
|
5484
5499
|
};
|
|
5485
5500
|
const serializeAws_json1_1XssMatchSetUpdate = (input, context) => {
|
|
5486
5501
|
return {
|
|
5487
|
-
...(input.Action
|
|
5488
|
-
...(input.XssMatchTuple
|
|
5489
|
-
input.XssMatchTuple !== null && {
|
|
5502
|
+
...(input.Action != null && { Action: input.Action }),
|
|
5503
|
+
...(input.XssMatchTuple != null && {
|
|
5490
5504
|
XssMatchTuple: serializeAws_json1_1XssMatchTuple(input.XssMatchTuple, context),
|
|
5491
5505
|
}),
|
|
5492
5506
|
};
|
|
@@ -5503,21 +5517,15 @@ const serializeAws_json1_1XssMatchSetUpdates = (input, context) => {
|
|
|
5503
5517
|
};
|
|
5504
5518
|
const serializeAws_json1_1XssMatchTuple = (input, context) => {
|
|
5505
5519
|
return {
|
|
5506
|
-
...(input.FieldToMatch
|
|
5507
|
-
|
|
5508
|
-
...(input.TextTransformation !== undefined &&
|
|
5509
|
-
input.TextTransformation !== null && { TextTransformation: input.TextTransformation }),
|
|
5520
|
+
...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
|
|
5521
|
+
...(input.TextTransformation != null && { TextTransformation: input.TextTransformation }),
|
|
5510
5522
|
};
|
|
5511
5523
|
};
|
|
5512
5524
|
const deserializeAws_json1_1ActivatedRule = (output, context) => {
|
|
5513
5525
|
return {
|
|
5514
|
-
Action: output.Action
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
ExcludedRules: output.ExcludedRules !== undefined && output.ExcludedRules !== null
|
|
5518
|
-
? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context)
|
|
5519
|
-
: undefined,
|
|
5520
|
-
OverrideAction: output.OverrideAction !== undefined && output.OverrideAction !== null
|
|
5526
|
+
Action: output.Action != null ? deserializeAws_json1_1WafAction(output.Action, context) : undefined,
|
|
5527
|
+
ExcludedRules: output.ExcludedRules != null ? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context) : undefined,
|
|
5528
|
+
OverrideAction: output.OverrideAction != null
|
|
5521
5529
|
? deserializeAws_json1_1WafOverrideAction(output.OverrideAction, context)
|
|
5522
5530
|
: undefined,
|
|
5523
5531
|
Priority: (0, smithy_client_1.expectInt32)(output.Priority),
|
|
@@ -5539,7 +5547,7 @@ const deserializeAws_json1_1ActivatedRules = (output, context) => {
|
|
|
5539
5547
|
const deserializeAws_json1_1ByteMatchSet = (output, context) => {
|
|
5540
5548
|
return {
|
|
5541
5549
|
ByteMatchSetId: (0, smithy_client_1.expectString)(output.ByteMatchSetId),
|
|
5542
|
-
ByteMatchTuples: output.ByteMatchTuples
|
|
5550
|
+
ByteMatchTuples: output.ByteMatchTuples != null
|
|
5543
5551
|
? deserializeAws_json1_1ByteMatchTuples(output.ByteMatchTuples, context)
|
|
5544
5552
|
: undefined,
|
|
5545
5553
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -5564,13 +5572,9 @@ const deserializeAws_json1_1ByteMatchSetSummary = (output, context) => {
|
|
|
5564
5572
|
};
|
|
5565
5573
|
const deserializeAws_json1_1ByteMatchTuple = (output, context) => {
|
|
5566
5574
|
return {
|
|
5567
|
-
FieldToMatch: output.FieldToMatch
|
|
5568
|
-
? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
|
|
5569
|
-
: undefined,
|
|
5575
|
+
FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
|
|
5570
5576
|
PositionalConstraint: (0, smithy_client_1.expectString)(output.PositionalConstraint),
|
|
5571
|
-
TargetString: output.TargetString
|
|
5572
|
-
? context.base64Decoder(output.TargetString)
|
|
5573
|
-
: undefined,
|
|
5577
|
+
TargetString: output.TargetString != null ? context.base64Decoder(output.TargetString) : undefined,
|
|
5574
5578
|
TextTransformation: (0, smithy_client_1.expectString)(output.TextTransformation),
|
|
5575
5579
|
};
|
|
5576
5580
|
};
|
|
@@ -5587,48 +5591,38 @@ const deserializeAws_json1_1ByteMatchTuples = (output, context) => {
|
|
|
5587
5591
|
};
|
|
5588
5592
|
const deserializeAws_json1_1CreateByteMatchSetResponse = (output, context) => {
|
|
5589
5593
|
return {
|
|
5590
|
-
ByteMatchSet: output.ByteMatchSet
|
|
5591
|
-
? deserializeAws_json1_1ByteMatchSet(output.ByteMatchSet, context)
|
|
5592
|
-
: undefined,
|
|
5594
|
+
ByteMatchSet: output.ByteMatchSet != null ? deserializeAws_json1_1ByteMatchSet(output.ByteMatchSet, context) : undefined,
|
|
5593
5595
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5594
5596
|
};
|
|
5595
5597
|
};
|
|
5596
5598
|
const deserializeAws_json1_1CreateGeoMatchSetResponse = (output, context) => {
|
|
5597
5599
|
return {
|
|
5598
5600
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5599
|
-
GeoMatchSet: output.GeoMatchSet
|
|
5600
|
-
? deserializeAws_json1_1GeoMatchSet(output.GeoMatchSet, context)
|
|
5601
|
-
: undefined,
|
|
5601
|
+
GeoMatchSet: output.GeoMatchSet != null ? deserializeAws_json1_1GeoMatchSet(output.GeoMatchSet, context) : undefined,
|
|
5602
5602
|
};
|
|
5603
5603
|
};
|
|
5604
5604
|
const deserializeAws_json1_1CreateIPSetResponse = (output, context) => {
|
|
5605
5605
|
return {
|
|
5606
5606
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5607
|
-
IPSet: output.IPSet
|
|
5608
|
-
? deserializeAws_json1_1IPSet(output.IPSet, context)
|
|
5609
|
-
: undefined,
|
|
5607
|
+
IPSet: output.IPSet != null ? deserializeAws_json1_1IPSet(output.IPSet, context) : undefined,
|
|
5610
5608
|
};
|
|
5611
5609
|
};
|
|
5612
5610
|
const deserializeAws_json1_1CreateRateBasedRuleResponse = (output, context) => {
|
|
5613
5611
|
return {
|
|
5614
5612
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5615
|
-
Rule: output.Rule
|
|
5616
|
-
? deserializeAws_json1_1RateBasedRule(output.Rule, context)
|
|
5617
|
-
: undefined,
|
|
5613
|
+
Rule: output.Rule != null ? deserializeAws_json1_1RateBasedRule(output.Rule, context) : undefined,
|
|
5618
5614
|
};
|
|
5619
5615
|
};
|
|
5620
5616
|
const deserializeAws_json1_1CreateRegexMatchSetResponse = (output, context) => {
|
|
5621
5617
|
return {
|
|
5622
5618
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5623
|
-
RegexMatchSet: output.RegexMatchSet
|
|
5624
|
-
? deserializeAws_json1_1RegexMatchSet(output.RegexMatchSet, context)
|
|
5625
|
-
: undefined,
|
|
5619
|
+
RegexMatchSet: output.RegexMatchSet != null ? deserializeAws_json1_1RegexMatchSet(output.RegexMatchSet, context) : undefined,
|
|
5626
5620
|
};
|
|
5627
5621
|
};
|
|
5628
5622
|
const deserializeAws_json1_1CreateRegexPatternSetResponse = (output, context) => {
|
|
5629
5623
|
return {
|
|
5630
5624
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5631
|
-
RegexPatternSet: output.RegexPatternSet
|
|
5625
|
+
RegexPatternSet: output.RegexPatternSet != null
|
|
5632
5626
|
? deserializeAws_json1_1RegexPatternSet(output.RegexPatternSet, context)
|
|
5633
5627
|
: undefined,
|
|
5634
5628
|
};
|
|
@@ -5636,21 +5630,19 @@ const deserializeAws_json1_1CreateRegexPatternSetResponse = (output, context) =>
|
|
|
5636
5630
|
const deserializeAws_json1_1CreateRuleGroupResponse = (output, context) => {
|
|
5637
5631
|
return {
|
|
5638
5632
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5639
|
-
RuleGroup: output.RuleGroup
|
|
5640
|
-
? deserializeAws_json1_1RuleGroup(output.RuleGroup, context)
|
|
5641
|
-
: undefined,
|
|
5633
|
+
RuleGroup: output.RuleGroup != null ? deserializeAws_json1_1RuleGroup(output.RuleGroup, context) : undefined,
|
|
5642
5634
|
};
|
|
5643
5635
|
};
|
|
5644
5636
|
const deserializeAws_json1_1CreateRuleResponse = (output, context) => {
|
|
5645
5637
|
return {
|
|
5646
5638
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5647
|
-
Rule: output.Rule
|
|
5639
|
+
Rule: output.Rule != null ? deserializeAws_json1_1Rule(output.Rule, context) : undefined,
|
|
5648
5640
|
};
|
|
5649
5641
|
};
|
|
5650
5642
|
const deserializeAws_json1_1CreateSizeConstraintSetResponse = (output, context) => {
|
|
5651
5643
|
return {
|
|
5652
5644
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5653
|
-
SizeConstraintSet: output.SizeConstraintSet
|
|
5645
|
+
SizeConstraintSet: output.SizeConstraintSet != null
|
|
5654
5646
|
? deserializeAws_json1_1SizeConstraintSet(output.SizeConstraintSet, context)
|
|
5655
5647
|
: undefined,
|
|
5656
5648
|
};
|
|
@@ -5658,7 +5650,7 @@ const deserializeAws_json1_1CreateSizeConstraintSetResponse = (output, context)
|
|
|
5658
5650
|
const deserializeAws_json1_1CreateSqlInjectionMatchSetResponse = (output, context) => {
|
|
5659
5651
|
return {
|
|
5660
5652
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5661
|
-
SqlInjectionMatchSet: output.SqlInjectionMatchSet
|
|
5653
|
+
SqlInjectionMatchSet: output.SqlInjectionMatchSet != null
|
|
5662
5654
|
? deserializeAws_json1_1SqlInjectionMatchSet(output.SqlInjectionMatchSet, context)
|
|
5663
5655
|
: undefined,
|
|
5664
5656
|
};
|
|
@@ -5671,17 +5663,13 @@ const deserializeAws_json1_1CreateWebACLMigrationStackResponse = (output, contex
|
|
|
5671
5663
|
const deserializeAws_json1_1CreateWebACLResponse = (output, context) => {
|
|
5672
5664
|
return {
|
|
5673
5665
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5674
|
-
WebACL: output.WebACL
|
|
5675
|
-
? deserializeAws_json1_1WebACL(output.WebACL, context)
|
|
5676
|
-
: undefined,
|
|
5666
|
+
WebACL: output.WebACL != null ? deserializeAws_json1_1WebACL(output.WebACL, context) : undefined,
|
|
5677
5667
|
};
|
|
5678
5668
|
};
|
|
5679
5669
|
const deserializeAws_json1_1CreateXssMatchSetResponse = (output, context) => {
|
|
5680
5670
|
return {
|
|
5681
5671
|
ChangeToken: (0, smithy_client_1.expectString)(output.ChangeToken),
|
|
5682
|
-
XssMatchSet: output.XssMatchSet
|
|
5683
|
-
? deserializeAws_json1_1XssMatchSet(output.XssMatchSet, context)
|
|
5684
|
-
: undefined,
|
|
5672
|
+
XssMatchSet: output.XssMatchSet != null ? deserializeAws_json1_1XssMatchSet(output.XssMatchSet, context) : undefined,
|
|
5685
5673
|
};
|
|
5686
5674
|
};
|
|
5687
5675
|
const deserializeAws_json1_1DeleteByteMatchSetResponse = (output, context) => {
|
|
@@ -5791,7 +5779,7 @@ const deserializeAws_json1_1GeoMatchConstraints = (output, context) => {
|
|
|
5791
5779
|
};
|
|
5792
5780
|
const deserializeAws_json1_1GeoMatchSet = (output, context) => {
|
|
5793
5781
|
return {
|
|
5794
|
-
GeoMatchConstraints: output.GeoMatchConstraints
|
|
5782
|
+
GeoMatchConstraints: output.GeoMatchConstraints != null
|
|
5795
5783
|
? deserializeAws_json1_1GeoMatchConstraints(output.GeoMatchConstraints, context)
|
|
5796
5784
|
: undefined,
|
|
5797
5785
|
GeoMatchSetId: (0, smithy_client_1.expectString)(output.GeoMatchSetId),
|
|
@@ -5817,9 +5805,7 @@ const deserializeAws_json1_1GeoMatchSetSummary = (output, context) => {
|
|
|
5817
5805
|
};
|
|
5818
5806
|
const deserializeAws_json1_1GetByteMatchSetResponse = (output, context) => {
|
|
5819
5807
|
return {
|
|
5820
|
-
ByteMatchSet: output.ByteMatchSet
|
|
5821
|
-
? deserializeAws_json1_1ByteMatchSet(output.ByteMatchSet, context)
|
|
5822
|
-
: undefined,
|
|
5808
|
+
ByteMatchSet: output.ByteMatchSet != null ? deserializeAws_json1_1ByteMatchSet(output.ByteMatchSet, context) : undefined,
|
|
5823
5809
|
};
|
|
5824
5810
|
};
|
|
5825
5811
|
const deserializeAws_json1_1GetChangeTokenResponse = (output, context) => {
|
|
@@ -5834,21 +5820,17 @@ const deserializeAws_json1_1GetChangeTokenStatusResponse = (output, context) =>
|
|
|
5834
5820
|
};
|
|
5835
5821
|
const deserializeAws_json1_1GetGeoMatchSetResponse = (output, context) => {
|
|
5836
5822
|
return {
|
|
5837
|
-
GeoMatchSet: output.GeoMatchSet
|
|
5838
|
-
? deserializeAws_json1_1GeoMatchSet(output.GeoMatchSet, context)
|
|
5839
|
-
: undefined,
|
|
5823
|
+
GeoMatchSet: output.GeoMatchSet != null ? deserializeAws_json1_1GeoMatchSet(output.GeoMatchSet, context) : undefined,
|
|
5840
5824
|
};
|
|
5841
5825
|
};
|
|
5842
5826
|
const deserializeAws_json1_1GetIPSetResponse = (output, context) => {
|
|
5843
5827
|
return {
|
|
5844
|
-
IPSet: output.IPSet
|
|
5845
|
-
? deserializeAws_json1_1IPSet(output.IPSet, context)
|
|
5846
|
-
: undefined,
|
|
5828
|
+
IPSet: output.IPSet != null ? deserializeAws_json1_1IPSet(output.IPSet, context) : undefined,
|
|
5847
5829
|
};
|
|
5848
5830
|
};
|
|
5849
5831
|
const deserializeAws_json1_1GetLoggingConfigurationResponse = (output, context) => {
|
|
5850
5832
|
return {
|
|
5851
|
-
LoggingConfiguration: output.LoggingConfiguration
|
|
5833
|
+
LoggingConfiguration: output.LoggingConfiguration != null
|
|
5852
5834
|
? deserializeAws_json1_1LoggingConfiguration(output.LoggingConfiguration, context)
|
|
5853
5835
|
: undefined,
|
|
5854
5836
|
};
|
|
@@ -5860,82 +5842,68 @@ const deserializeAws_json1_1GetPermissionPolicyResponse = (output, context) => {
|
|
|
5860
5842
|
};
|
|
5861
5843
|
const deserializeAws_json1_1GetRateBasedRuleManagedKeysResponse = (output, context) => {
|
|
5862
5844
|
return {
|
|
5863
|
-
ManagedKeys: output.ManagedKeys
|
|
5864
|
-
? deserializeAws_json1_1ManagedKeys(output.ManagedKeys, context)
|
|
5865
|
-
: undefined,
|
|
5845
|
+
ManagedKeys: output.ManagedKeys != null ? deserializeAws_json1_1ManagedKeys(output.ManagedKeys, context) : undefined,
|
|
5866
5846
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
5867
5847
|
};
|
|
5868
5848
|
};
|
|
5869
5849
|
const deserializeAws_json1_1GetRateBasedRuleResponse = (output, context) => {
|
|
5870
5850
|
return {
|
|
5871
|
-
Rule: output.Rule
|
|
5872
|
-
? deserializeAws_json1_1RateBasedRule(output.Rule, context)
|
|
5873
|
-
: undefined,
|
|
5851
|
+
Rule: output.Rule != null ? deserializeAws_json1_1RateBasedRule(output.Rule, context) : undefined,
|
|
5874
5852
|
};
|
|
5875
5853
|
};
|
|
5876
5854
|
const deserializeAws_json1_1GetRegexMatchSetResponse = (output, context) => {
|
|
5877
5855
|
return {
|
|
5878
|
-
RegexMatchSet: output.RegexMatchSet
|
|
5879
|
-
? deserializeAws_json1_1RegexMatchSet(output.RegexMatchSet, context)
|
|
5880
|
-
: undefined,
|
|
5856
|
+
RegexMatchSet: output.RegexMatchSet != null ? deserializeAws_json1_1RegexMatchSet(output.RegexMatchSet, context) : undefined,
|
|
5881
5857
|
};
|
|
5882
5858
|
};
|
|
5883
5859
|
const deserializeAws_json1_1GetRegexPatternSetResponse = (output, context) => {
|
|
5884
5860
|
return {
|
|
5885
|
-
RegexPatternSet: output.RegexPatternSet
|
|
5861
|
+
RegexPatternSet: output.RegexPatternSet != null
|
|
5886
5862
|
? deserializeAws_json1_1RegexPatternSet(output.RegexPatternSet, context)
|
|
5887
5863
|
: undefined,
|
|
5888
5864
|
};
|
|
5889
5865
|
};
|
|
5890
5866
|
const deserializeAws_json1_1GetRuleGroupResponse = (output, context) => {
|
|
5891
5867
|
return {
|
|
5892
|
-
RuleGroup: output.RuleGroup
|
|
5893
|
-
? deserializeAws_json1_1RuleGroup(output.RuleGroup, context)
|
|
5894
|
-
: undefined,
|
|
5868
|
+
RuleGroup: output.RuleGroup != null ? deserializeAws_json1_1RuleGroup(output.RuleGroup, context) : undefined,
|
|
5895
5869
|
};
|
|
5896
5870
|
};
|
|
5897
5871
|
const deserializeAws_json1_1GetRuleResponse = (output, context) => {
|
|
5898
5872
|
return {
|
|
5899
|
-
Rule: output.Rule
|
|
5873
|
+
Rule: output.Rule != null ? deserializeAws_json1_1Rule(output.Rule, context) : undefined,
|
|
5900
5874
|
};
|
|
5901
5875
|
};
|
|
5902
5876
|
const deserializeAws_json1_1GetSampledRequestsResponse = (output, context) => {
|
|
5903
5877
|
return {
|
|
5904
5878
|
PopulationSize: (0, smithy_client_1.expectLong)(output.PopulationSize),
|
|
5905
|
-
SampledRequests: output.SampledRequests
|
|
5879
|
+
SampledRequests: output.SampledRequests != null
|
|
5906
5880
|
? deserializeAws_json1_1SampledHTTPRequests(output.SampledRequests, context)
|
|
5907
5881
|
: undefined,
|
|
5908
|
-
TimeWindow: output.TimeWindow
|
|
5909
|
-
? deserializeAws_json1_1TimeWindow(output.TimeWindow, context)
|
|
5910
|
-
: undefined,
|
|
5882
|
+
TimeWindow: output.TimeWindow != null ? deserializeAws_json1_1TimeWindow(output.TimeWindow, context) : undefined,
|
|
5911
5883
|
};
|
|
5912
5884
|
};
|
|
5913
5885
|
const deserializeAws_json1_1GetSizeConstraintSetResponse = (output, context) => {
|
|
5914
5886
|
return {
|
|
5915
|
-
SizeConstraintSet: output.SizeConstraintSet
|
|
5887
|
+
SizeConstraintSet: output.SizeConstraintSet != null
|
|
5916
5888
|
? deserializeAws_json1_1SizeConstraintSet(output.SizeConstraintSet, context)
|
|
5917
5889
|
: undefined,
|
|
5918
5890
|
};
|
|
5919
5891
|
};
|
|
5920
5892
|
const deserializeAws_json1_1GetSqlInjectionMatchSetResponse = (output, context) => {
|
|
5921
5893
|
return {
|
|
5922
|
-
SqlInjectionMatchSet: output.SqlInjectionMatchSet
|
|
5894
|
+
SqlInjectionMatchSet: output.SqlInjectionMatchSet != null
|
|
5923
5895
|
? deserializeAws_json1_1SqlInjectionMatchSet(output.SqlInjectionMatchSet, context)
|
|
5924
5896
|
: undefined,
|
|
5925
5897
|
};
|
|
5926
5898
|
};
|
|
5927
5899
|
const deserializeAws_json1_1GetWebACLResponse = (output, context) => {
|
|
5928
5900
|
return {
|
|
5929
|
-
WebACL: output.WebACL
|
|
5930
|
-
? deserializeAws_json1_1WebACL(output.WebACL, context)
|
|
5931
|
-
: undefined,
|
|
5901
|
+
WebACL: output.WebACL != null ? deserializeAws_json1_1WebACL(output.WebACL, context) : undefined,
|
|
5932
5902
|
};
|
|
5933
5903
|
};
|
|
5934
5904
|
const deserializeAws_json1_1GetXssMatchSetResponse = (output, context) => {
|
|
5935
5905
|
return {
|
|
5936
|
-
XssMatchSet: output.XssMatchSet
|
|
5937
|
-
? deserializeAws_json1_1XssMatchSet(output.XssMatchSet, context)
|
|
5938
|
-
: undefined,
|
|
5906
|
+
XssMatchSet: output.XssMatchSet != null ? deserializeAws_json1_1XssMatchSet(output.XssMatchSet, context) : undefined,
|
|
5939
5907
|
};
|
|
5940
5908
|
};
|
|
5941
5909
|
const deserializeAws_json1_1HTTPHeader = (output, context) => {
|
|
@@ -5960,16 +5928,14 @@ const deserializeAws_json1_1HTTPRequest = (output, context) => {
|
|
|
5960
5928
|
ClientIP: (0, smithy_client_1.expectString)(output.ClientIP),
|
|
5961
5929
|
Country: (0, smithy_client_1.expectString)(output.Country),
|
|
5962
5930
|
HTTPVersion: (0, smithy_client_1.expectString)(output.HTTPVersion),
|
|
5963
|
-
Headers: output.Headers
|
|
5964
|
-
? deserializeAws_json1_1HTTPHeaders(output.Headers, context)
|
|
5965
|
-
: undefined,
|
|
5931
|
+
Headers: output.Headers != null ? deserializeAws_json1_1HTTPHeaders(output.Headers, context) : undefined,
|
|
5966
5932
|
Method: (0, smithy_client_1.expectString)(output.Method),
|
|
5967
5933
|
URI: (0, smithy_client_1.expectString)(output.URI),
|
|
5968
5934
|
};
|
|
5969
5935
|
};
|
|
5970
5936
|
const deserializeAws_json1_1IPSet = (output, context) => {
|
|
5971
5937
|
return {
|
|
5972
|
-
IPSetDescriptors: output.IPSetDescriptors
|
|
5938
|
+
IPSetDescriptors: output.IPSetDescriptors != null
|
|
5973
5939
|
? deserializeAws_json1_1IPSetDescriptors(output.IPSetDescriptors, context)
|
|
5974
5940
|
: undefined,
|
|
5975
5941
|
IPSetId: (0, smithy_client_1.expectString)(output.IPSetId),
|
|
@@ -6012,15 +5978,13 @@ const deserializeAws_json1_1IPSetSummary = (output, context) => {
|
|
|
6012
5978
|
};
|
|
6013
5979
|
const deserializeAws_json1_1ListActivatedRulesInRuleGroupResponse = (output, context) => {
|
|
6014
5980
|
return {
|
|
6015
|
-
ActivatedRules: output.ActivatedRules
|
|
6016
|
-
? deserializeAws_json1_1ActivatedRules(output.ActivatedRules, context)
|
|
6017
|
-
: undefined,
|
|
5981
|
+
ActivatedRules: output.ActivatedRules != null ? deserializeAws_json1_1ActivatedRules(output.ActivatedRules, context) : undefined,
|
|
6018
5982
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6019
5983
|
};
|
|
6020
5984
|
};
|
|
6021
5985
|
const deserializeAws_json1_1ListByteMatchSetsResponse = (output, context) => {
|
|
6022
5986
|
return {
|
|
6023
|
-
ByteMatchSets: output.ByteMatchSets
|
|
5987
|
+
ByteMatchSets: output.ByteMatchSets != null
|
|
6024
5988
|
? deserializeAws_json1_1ByteMatchSetSummaries(output.ByteMatchSets, context)
|
|
6025
5989
|
: undefined,
|
|
6026
5990
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
@@ -6028,7 +5992,7 @@ const deserializeAws_json1_1ListByteMatchSetsResponse = (output, context) => {
|
|
|
6028
5992
|
};
|
|
6029
5993
|
const deserializeAws_json1_1ListGeoMatchSetsResponse = (output, context) => {
|
|
6030
5994
|
return {
|
|
6031
|
-
GeoMatchSets: output.GeoMatchSets
|
|
5995
|
+
GeoMatchSets: output.GeoMatchSets != null
|
|
6032
5996
|
? deserializeAws_json1_1GeoMatchSetSummaries(output.GeoMatchSets, context)
|
|
6033
5997
|
: undefined,
|
|
6034
5998
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
@@ -6036,15 +6000,13 @@ const deserializeAws_json1_1ListGeoMatchSetsResponse = (output, context) => {
|
|
|
6036
6000
|
};
|
|
6037
6001
|
const deserializeAws_json1_1ListIPSetsResponse = (output, context) => {
|
|
6038
6002
|
return {
|
|
6039
|
-
IPSets: output.IPSets
|
|
6040
|
-
? deserializeAws_json1_1IPSetSummaries(output.IPSets, context)
|
|
6041
|
-
: undefined,
|
|
6003
|
+
IPSets: output.IPSets != null ? deserializeAws_json1_1IPSetSummaries(output.IPSets, context) : undefined,
|
|
6042
6004
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6043
6005
|
};
|
|
6044
6006
|
};
|
|
6045
6007
|
const deserializeAws_json1_1ListLoggingConfigurationsResponse = (output, context) => {
|
|
6046
6008
|
return {
|
|
6047
|
-
LoggingConfigurations: output.LoggingConfigurations
|
|
6009
|
+
LoggingConfigurations: output.LoggingConfigurations != null
|
|
6048
6010
|
? deserializeAws_json1_1LoggingConfigurations(output.LoggingConfigurations, context)
|
|
6049
6011
|
: undefined,
|
|
6050
6012
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
@@ -6053,15 +6015,13 @@ const deserializeAws_json1_1ListLoggingConfigurationsResponse = (output, context
|
|
|
6053
6015
|
const deserializeAws_json1_1ListRateBasedRulesResponse = (output, context) => {
|
|
6054
6016
|
return {
|
|
6055
6017
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6056
|
-
Rules: output.Rules
|
|
6057
|
-
? deserializeAws_json1_1RuleSummaries(output.Rules, context)
|
|
6058
|
-
: undefined,
|
|
6018
|
+
Rules: output.Rules != null ? deserializeAws_json1_1RuleSummaries(output.Rules, context) : undefined,
|
|
6059
6019
|
};
|
|
6060
6020
|
};
|
|
6061
6021
|
const deserializeAws_json1_1ListRegexMatchSetsResponse = (output, context) => {
|
|
6062
6022
|
return {
|
|
6063
6023
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6064
|
-
RegexMatchSets: output.RegexMatchSets
|
|
6024
|
+
RegexMatchSets: output.RegexMatchSets != null
|
|
6065
6025
|
? deserializeAws_json1_1RegexMatchSetSummaries(output.RegexMatchSets, context)
|
|
6066
6026
|
: undefined,
|
|
6067
6027
|
};
|
|
@@ -6069,7 +6029,7 @@ const deserializeAws_json1_1ListRegexMatchSetsResponse = (output, context) => {
|
|
|
6069
6029
|
const deserializeAws_json1_1ListRegexPatternSetsResponse = (output, context) => {
|
|
6070
6030
|
return {
|
|
6071
6031
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6072
|
-
RegexPatternSets: output.RegexPatternSets
|
|
6032
|
+
RegexPatternSets: output.RegexPatternSets != null
|
|
6073
6033
|
? deserializeAws_json1_1RegexPatternSetSummaries(output.RegexPatternSets, context)
|
|
6074
6034
|
: undefined,
|
|
6075
6035
|
};
|
|
@@ -6077,23 +6037,19 @@ const deserializeAws_json1_1ListRegexPatternSetsResponse = (output, context) =>
|
|
|
6077
6037
|
const deserializeAws_json1_1ListRuleGroupsResponse = (output, context) => {
|
|
6078
6038
|
return {
|
|
6079
6039
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6080
|
-
RuleGroups: output.RuleGroups
|
|
6081
|
-
? deserializeAws_json1_1RuleGroupSummaries(output.RuleGroups, context)
|
|
6082
|
-
: undefined,
|
|
6040
|
+
RuleGroups: output.RuleGroups != null ? deserializeAws_json1_1RuleGroupSummaries(output.RuleGroups, context) : undefined,
|
|
6083
6041
|
};
|
|
6084
6042
|
};
|
|
6085
6043
|
const deserializeAws_json1_1ListRulesResponse = (output, context) => {
|
|
6086
6044
|
return {
|
|
6087
6045
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6088
|
-
Rules: output.Rules
|
|
6089
|
-
? deserializeAws_json1_1RuleSummaries(output.Rules, context)
|
|
6090
|
-
: undefined,
|
|
6046
|
+
Rules: output.Rules != null ? deserializeAws_json1_1RuleSummaries(output.Rules, context) : undefined,
|
|
6091
6047
|
};
|
|
6092
6048
|
};
|
|
6093
6049
|
const deserializeAws_json1_1ListSizeConstraintSetsResponse = (output, context) => {
|
|
6094
6050
|
return {
|
|
6095
6051
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6096
|
-
SizeConstraintSets: output.SizeConstraintSets
|
|
6052
|
+
SizeConstraintSets: output.SizeConstraintSets != null
|
|
6097
6053
|
? deserializeAws_json1_1SizeConstraintSetSummaries(output.SizeConstraintSets, context)
|
|
6098
6054
|
: undefined,
|
|
6099
6055
|
};
|
|
@@ -6101,7 +6057,7 @@ const deserializeAws_json1_1ListSizeConstraintSetsResponse = (output, context) =
|
|
|
6101
6057
|
const deserializeAws_json1_1ListSqlInjectionMatchSetsResponse = (output, context) => {
|
|
6102
6058
|
return {
|
|
6103
6059
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6104
|
-
SqlInjectionMatchSets: output.SqlInjectionMatchSets
|
|
6060
|
+
SqlInjectionMatchSets: output.SqlInjectionMatchSets != null
|
|
6105
6061
|
? deserializeAws_json1_1SqlInjectionMatchSetSummaries(output.SqlInjectionMatchSets, context)
|
|
6106
6062
|
: undefined,
|
|
6107
6063
|
};
|
|
@@ -6109,7 +6065,7 @@ const deserializeAws_json1_1ListSqlInjectionMatchSetsResponse = (output, context
|
|
|
6109
6065
|
const deserializeAws_json1_1ListSubscribedRuleGroupsResponse = (output, context) => {
|
|
6110
6066
|
return {
|
|
6111
6067
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6112
|
-
RuleGroups: output.RuleGroups
|
|
6068
|
+
RuleGroups: output.RuleGroups != null
|
|
6113
6069
|
? deserializeAws_json1_1SubscribedRuleGroupSummaries(output.RuleGroups, context)
|
|
6114
6070
|
: undefined,
|
|
6115
6071
|
};
|
|
@@ -6117,7 +6073,7 @@ const deserializeAws_json1_1ListSubscribedRuleGroupsResponse = (output, context)
|
|
|
6117
6073
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
6118
6074
|
return {
|
|
6119
6075
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6120
|
-
TagInfoForResource: output.TagInfoForResource
|
|
6076
|
+
TagInfoForResource: output.TagInfoForResource != null
|
|
6121
6077
|
? deserializeAws_json1_1TagInfoForResource(output.TagInfoForResource, context)
|
|
6122
6078
|
: undefined,
|
|
6123
6079
|
};
|
|
@@ -6125,15 +6081,13 @@ const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
|
6125
6081
|
const deserializeAws_json1_1ListWebACLsResponse = (output, context) => {
|
|
6126
6082
|
return {
|
|
6127
6083
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6128
|
-
WebACLs: output.WebACLs
|
|
6129
|
-
? deserializeAws_json1_1WebACLSummaries(output.WebACLs, context)
|
|
6130
|
-
: undefined,
|
|
6084
|
+
WebACLs: output.WebACLs != null ? deserializeAws_json1_1WebACLSummaries(output.WebACLs, context) : undefined,
|
|
6131
6085
|
};
|
|
6132
6086
|
};
|
|
6133
6087
|
const deserializeAws_json1_1ListXssMatchSetsResponse = (output, context) => {
|
|
6134
6088
|
return {
|
|
6135
6089
|
NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
|
|
6136
|
-
XssMatchSets: output.XssMatchSets
|
|
6090
|
+
XssMatchSets: output.XssMatchSets != null
|
|
6137
6091
|
? deserializeAws_json1_1XssMatchSetSummaries(output.XssMatchSets, context)
|
|
6138
6092
|
: undefined,
|
|
6139
6093
|
};
|
|
@@ -6151,12 +6105,10 @@ const deserializeAws_json1_1LogDestinationConfigs = (output, context) => {
|
|
|
6151
6105
|
};
|
|
6152
6106
|
const deserializeAws_json1_1LoggingConfiguration = (output, context) => {
|
|
6153
6107
|
return {
|
|
6154
|
-
LogDestinationConfigs: output.LogDestinationConfigs
|
|
6108
|
+
LogDestinationConfigs: output.LogDestinationConfigs != null
|
|
6155
6109
|
? deserializeAws_json1_1LogDestinationConfigs(output.LogDestinationConfigs, context)
|
|
6156
6110
|
: undefined,
|
|
6157
|
-
RedactedFields: output.RedactedFields
|
|
6158
|
-
? deserializeAws_json1_1RedactedFields(output.RedactedFields, context)
|
|
6159
|
-
: undefined,
|
|
6111
|
+
RedactedFields: output.RedactedFields != null ? deserializeAws_json1_1RedactedFields(output.RedactedFields, context) : undefined,
|
|
6160
6112
|
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
6161
6113
|
};
|
|
6162
6114
|
};
|
|
@@ -6202,7 +6154,7 @@ const deserializeAws_json1_1Predicates = (output, context) => {
|
|
|
6202
6154
|
};
|
|
6203
6155
|
const deserializeAws_json1_1PutLoggingConfigurationResponse = (output, context) => {
|
|
6204
6156
|
return {
|
|
6205
|
-
LoggingConfiguration: output.LoggingConfiguration
|
|
6157
|
+
LoggingConfiguration: output.LoggingConfiguration != null
|
|
6206
6158
|
? deserializeAws_json1_1LoggingConfiguration(output.LoggingConfiguration, context)
|
|
6207
6159
|
: undefined,
|
|
6208
6160
|
};
|
|
@@ -6212,9 +6164,7 @@ const deserializeAws_json1_1PutPermissionPolicyResponse = (output, context) => {
|
|
|
6212
6164
|
};
|
|
6213
6165
|
const deserializeAws_json1_1RateBasedRule = (output, context) => {
|
|
6214
6166
|
return {
|
|
6215
|
-
MatchPredicates: output.MatchPredicates
|
|
6216
|
-
? deserializeAws_json1_1Predicates(output.MatchPredicates, context)
|
|
6217
|
-
: undefined,
|
|
6167
|
+
MatchPredicates: output.MatchPredicates != null ? deserializeAws_json1_1Predicates(output.MatchPredicates, context) : undefined,
|
|
6218
6168
|
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
6219
6169
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6220
6170
|
RateKey: (0, smithy_client_1.expectString)(output.RateKey),
|
|
@@ -6237,7 +6187,7 @@ const deserializeAws_json1_1RegexMatchSet = (output, context) => {
|
|
|
6237
6187
|
return {
|
|
6238
6188
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6239
6189
|
RegexMatchSetId: (0, smithy_client_1.expectString)(output.RegexMatchSetId),
|
|
6240
|
-
RegexMatchTuples: output.RegexMatchTuples
|
|
6190
|
+
RegexMatchTuples: output.RegexMatchTuples != null
|
|
6241
6191
|
? deserializeAws_json1_1RegexMatchTuples(output.RegexMatchTuples, context)
|
|
6242
6192
|
: undefined,
|
|
6243
6193
|
};
|
|
@@ -6261,9 +6211,7 @@ const deserializeAws_json1_1RegexMatchSetSummary = (output, context) => {
|
|
|
6261
6211
|
};
|
|
6262
6212
|
const deserializeAws_json1_1RegexMatchTuple = (output, context) => {
|
|
6263
6213
|
return {
|
|
6264
|
-
FieldToMatch: output.FieldToMatch
|
|
6265
|
-
? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
|
|
6266
|
-
: undefined,
|
|
6214
|
+
FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
|
|
6267
6215
|
RegexPatternSetId: (0, smithy_client_1.expectString)(output.RegexPatternSetId),
|
|
6268
6216
|
TextTransformation: (0, smithy_client_1.expectString)(output.TextTransformation),
|
|
6269
6217
|
};
|
|
@@ -6283,7 +6231,7 @@ const deserializeAws_json1_1RegexPatternSet = (output, context) => {
|
|
|
6283
6231
|
return {
|
|
6284
6232
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6285
6233
|
RegexPatternSetId: (0, smithy_client_1.expectString)(output.RegexPatternSetId),
|
|
6286
|
-
RegexPatternStrings: output.RegexPatternStrings
|
|
6234
|
+
RegexPatternStrings: output.RegexPatternStrings != null
|
|
6287
6235
|
? deserializeAws_json1_1RegexPatternStrings(output.RegexPatternStrings, context)
|
|
6288
6236
|
: undefined,
|
|
6289
6237
|
};
|
|
@@ -6320,9 +6268,7 @@ const deserializeAws_json1_1Rule = (output, context) => {
|
|
|
6320
6268
|
return {
|
|
6321
6269
|
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
6322
6270
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6323
|
-
Predicates: output.Predicates
|
|
6324
|
-
? deserializeAws_json1_1Predicates(output.Predicates, context)
|
|
6325
|
-
: undefined,
|
|
6271
|
+
Predicates: output.Predicates != null ? deserializeAws_json1_1Predicates(output.Predicates, context) : undefined,
|
|
6326
6272
|
RuleId: (0, smithy_client_1.expectString)(output.RuleId),
|
|
6327
6273
|
};
|
|
6328
6274
|
};
|
|
@@ -6370,13 +6316,9 @@ const deserializeAws_json1_1RuleSummary = (output, context) => {
|
|
|
6370
6316
|
const deserializeAws_json1_1SampledHTTPRequest = (output, context) => {
|
|
6371
6317
|
return {
|
|
6372
6318
|
Action: (0, smithy_client_1.expectString)(output.Action),
|
|
6373
|
-
Request: output.Request
|
|
6374
|
-
? deserializeAws_json1_1HTTPRequest(output.Request, context)
|
|
6375
|
-
: undefined,
|
|
6319
|
+
Request: output.Request != null ? deserializeAws_json1_1HTTPRequest(output.Request, context) : undefined,
|
|
6376
6320
|
RuleWithinRuleGroup: (0, smithy_client_1.expectString)(output.RuleWithinRuleGroup),
|
|
6377
|
-
Timestamp: output.Timestamp
|
|
6378
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
|
|
6379
|
-
: undefined,
|
|
6321
|
+
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
|
|
6380
6322
|
Weight: (0, smithy_client_1.expectLong)(output.Weight),
|
|
6381
6323
|
};
|
|
6382
6324
|
};
|
|
@@ -6394,9 +6336,7 @@ const deserializeAws_json1_1SampledHTTPRequests = (output, context) => {
|
|
|
6394
6336
|
const deserializeAws_json1_1SizeConstraint = (output, context) => {
|
|
6395
6337
|
return {
|
|
6396
6338
|
ComparisonOperator: (0, smithy_client_1.expectString)(output.ComparisonOperator),
|
|
6397
|
-
FieldToMatch: output.FieldToMatch
|
|
6398
|
-
? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
|
|
6399
|
-
: undefined,
|
|
6339
|
+
FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
|
|
6400
6340
|
Size: (0, smithy_client_1.expectLong)(output.Size),
|
|
6401
6341
|
TextTransformation: (0, smithy_client_1.expectString)(output.TextTransformation),
|
|
6402
6342
|
};
|
|
@@ -6416,7 +6356,7 @@ const deserializeAws_json1_1SizeConstraintSet = (output, context) => {
|
|
|
6416
6356
|
return {
|
|
6417
6357
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6418
6358
|
SizeConstraintSetId: (0, smithy_client_1.expectString)(output.SizeConstraintSetId),
|
|
6419
|
-
SizeConstraints: output.SizeConstraints
|
|
6359
|
+
SizeConstraints: output.SizeConstraints != null
|
|
6420
6360
|
? deserializeAws_json1_1SizeConstraints(output.SizeConstraints, context)
|
|
6421
6361
|
: undefined,
|
|
6422
6362
|
};
|
|
@@ -6442,7 +6382,7 @@ const deserializeAws_json1_1SqlInjectionMatchSet = (output, context) => {
|
|
|
6442
6382
|
return {
|
|
6443
6383
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6444
6384
|
SqlInjectionMatchSetId: (0, smithy_client_1.expectString)(output.SqlInjectionMatchSetId),
|
|
6445
|
-
SqlInjectionMatchTuples: output.SqlInjectionMatchTuples
|
|
6385
|
+
SqlInjectionMatchTuples: output.SqlInjectionMatchTuples != null
|
|
6446
6386
|
? deserializeAws_json1_1SqlInjectionMatchTuples(output.SqlInjectionMatchTuples, context)
|
|
6447
6387
|
: undefined,
|
|
6448
6388
|
};
|
|
@@ -6466,9 +6406,7 @@ const deserializeAws_json1_1SqlInjectionMatchSetSummary = (output, context) => {
|
|
|
6466
6406
|
};
|
|
6467
6407
|
const deserializeAws_json1_1SqlInjectionMatchTuple = (output, context) => {
|
|
6468
6408
|
return {
|
|
6469
|
-
FieldToMatch: output.FieldToMatch
|
|
6470
|
-
? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
|
|
6471
|
-
: undefined,
|
|
6409
|
+
FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
|
|
6472
6410
|
TextTransformation: (0, smithy_client_1.expectString)(output.TextTransformation),
|
|
6473
6411
|
};
|
|
6474
6412
|
};
|
|
@@ -6510,9 +6448,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
|
|
|
6510
6448
|
const deserializeAws_json1_1TagInfoForResource = (output, context) => {
|
|
6511
6449
|
return {
|
|
6512
6450
|
ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
|
|
6513
|
-
TagList: output.TagList
|
|
6514
|
-
? deserializeAws_json1_1TagList(output.TagList, context)
|
|
6515
|
-
: undefined,
|
|
6451
|
+
TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
|
|
6516
6452
|
};
|
|
6517
6453
|
};
|
|
6518
6454
|
const deserializeAws_json1_1TagList = (output, context) => {
|
|
@@ -6531,12 +6467,8 @@ const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
|
6531
6467
|
};
|
|
6532
6468
|
const deserializeAws_json1_1TimeWindow = (output, context) => {
|
|
6533
6469
|
return {
|
|
6534
|
-
EndTime: output.EndTime
|
|
6535
|
-
|
|
6536
|
-
: undefined,
|
|
6537
|
-
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
6538
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
6539
|
-
: undefined,
|
|
6470
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
6471
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
6540
6472
|
};
|
|
6541
6473
|
};
|
|
6542
6474
|
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
@@ -6711,14 +6643,10 @@ const deserializeAws_json1_1WAFTagOperationInternalErrorException = (output, con
|
|
|
6711
6643
|
};
|
|
6712
6644
|
const deserializeAws_json1_1WebACL = (output, context) => {
|
|
6713
6645
|
return {
|
|
6714
|
-
DefaultAction: output.DefaultAction
|
|
6715
|
-
? deserializeAws_json1_1WafAction(output.DefaultAction, context)
|
|
6716
|
-
: undefined,
|
|
6646
|
+
DefaultAction: output.DefaultAction != null ? deserializeAws_json1_1WafAction(output.DefaultAction, context) : undefined,
|
|
6717
6647
|
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
6718
6648
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6719
|
-
Rules: output.Rules
|
|
6720
|
-
? deserializeAws_json1_1ActivatedRules(output.Rules, context)
|
|
6721
|
-
: undefined,
|
|
6649
|
+
Rules: output.Rules != null ? deserializeAws_json1_1ActivatedRules(output.Rules, context) : undefined,
|
|
6722
6650
|
WebACLArn: (0, smithy_client_1.expectString)(output.WebACLArn),
|
|
6723
6651
|
WebACLId: (0, smithy_client_1.expectString)(output.WebACLId),
|
|
6724
6652
|
};
|
|
@@ -6744,9 +6672,7 @@ const deserializeAws_json1_1XssMatchSet = (output, context) => {
|
|
|
6744
6672
|
return {
|
|
6745
6673
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
6746
6674
|
XssMatchSetId: (0, smithy_client_1.expectString)(output.XssMatchSetId),
|
|
6747
|
-
XssMatchTuples: output.XssMatchTuples
|
|
6748
|
-
? deserializeAws_json1_1XssMatchTuples(output.XssMatchTuples, context)
|
|
6749
|
-
: undefined,
|
|
6675
|
+
XssMatchTuples: output.XssMatchTuples != null ? deserializeAws_json1_1XssMatchTuples(output.XssMatchTuples, context) : undefined,
|
|
6750
6676
|
};
|
|
6751
6677
|
};
|
|
6752
6678
|
const deserializeAws_json1_1XssMatchSetSummaries = (output, context) => {
|
|
@@ -6768,9 +6694,7 @@ const deserializeAws_json1_1XssMatchSetSummary = (output, context) => {
|
|
|
6768
6694
|
};
|
|
6769
6695
|
const deserializeAws_json1_1XssMatchTuple = (output, context) => {
|
|
6770
6696
|
return {
|
|
6771
|
-
FieldToMatch: output.FieldToMatch
|
|
6772
|
-
? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
|
|
6773
|
-
: undefined,
|
|
6697
|
+
FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
|
|
6774
6698
|
TextTransformation: (0, smithy_client_1.expectString)(output.TextTransformation),
|
|
6775
6699
|
};
|
|
6776
6700
|
};
|
|
@@ -6847,5 +6771,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
6847
6771
|
if (data["__type"] !== undefined) {
|
|
6848
6772
|
return sanitizeErrorCode(data["__type"]);
|
|
6849
6773
|
}
|
|
6850
|
-
return "";
|
|
6851
6774
|
};
|