@aws-sdk/client-wafv2 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.
@@ -550,7 +550,7 @@ export var deserializeAws_json1_1AssociateWebACLCommand = function (output, cont
550
550
  });
551
551
  }); };
552
552
  var deserializeAws_json1_1AssociateWebACLCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
553
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
553
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
554
554
  var _c;
555
555
  return __generator(this, function (_d) {
556
556
  switch (_d.label) {
@@ -560,7 +560,6 @@ var deserializeAws_json1_1AssociateWebACLCommandError = function (output, contex
560
560
  return [4, parseBody(output.body, context)];
561
561
  case 1:
562
562
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
563
- errorCode = "UnknownError";
564
563
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
565
564
  _b = errorCode;
566
565
  switch (_b) {
@@ -588,10 +587,12 @@ var deserializeAws_json1_1AssociateWebACLCommandError = function (output, contex
588
587
  case 11: throw _d.sent();
589
588
  case 12:
590
589
  parsedBody = parsedOutput.body;
590
+ $metadata = deserializeMetadata(output);
591
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
591
592
  response = new __BaseException({
592
- name: parsedBody.code || parsedBody.Code || errorCode,
593
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
593
594
  $fault: "client",
594
- $metadata: deserializeMetadata(output),
595
+ $metadata: $metadata,
595
596
  });
596
597
  throw __decorateServiceException(response, parsedBody);
597
598
  }
@@ -616,7 +617,7 @@ export var deserializeAws_json1_1CheckCapacityCommand = function (output, contex
616
617
  });
617
618
  }); };
618
619
  var deserializeAws_json1_1CheckCapacityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
619
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
620
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
620
621
  var _c;
621
622
  return __generator(this, function (_d) {
622
623
  switch (_d.label) {
@@ -626,7 +627,6 @@ var deserializeAws_json1_1CheckCapacityCommandError = function (output, context)
626
627
  return [4, parseBody(output.body, context)];
627
628
  case 1:
628
629
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
629
- errorCode = "UnknownError";
630
630
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
631
631
  _b = errorCode;
632
632
  switch (_b) {
@@ -666,10 +666,12 @@ var deserializeAws_json1_1CheckCapacityCommandError = function (output, context)
666
666
  case 17: throw _d.sent();
667
667
  case 18:
668
668
  parsedBody = parsedOutput.body;
669
+ $metadata = deserializeMetadata(output);
670
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
669
671
  response = new __BaseException({
670
- name: parsedBody.code || parsedBody.Code || errorCode,
672
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
671
673
  $fault: "client",
672
- $metadata: deserializeMetadata(output),
674
+ $metadata: $metadata,
673
675
  });
674
676
  throw __decorateServiceException(response, parsedBody);
675
677
  }
@@ -694,7 +696,7 @@ export var deserializeAws_json1_1CreateIPSetCommand = function (output, context)
694
696
  });
695
697
  }); };
696
698
  var deserializeAws_json1_1CreateIPSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
697
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
699
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
698
700
  var _c;
699
701
  return __generator(this, function (_d) {
700
702
  switch (_d.label) {
@@ -704,7 +706,6 @@ var deserializeAws_json1_1CreateIPSetCommandError = function (output, context) {
704
706
  return [4, parseBody(output.body, context)];
705
707
  case 1:
706
708
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
707
- errorCode = "UnknownError";
708
709
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
709
710
  _b = errorCode;
710
711
  switch (_b) {
@@ -744,10 +745,12 @@ var deserializeAws_json1_1CreateIPSetCommandError = function (output, context) {
744
745
  case 17: throw _d.sent();
745
746
  case 18:
746
747
  parsedBody = parsedOutput.body;
748
+ $metadata = deserializeMetadata(output);
749
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
747
750
  response = new __BaseException({
748
- name: parsedBody.code || parsedBody.Code || errorCode,
751
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
749
752
  $fault: "client",
750
- $metadata: deserializeMetadata(output),
753
+ $metadata: $metadata,
751
754
  });
752
755
  throw __decorateServiceException(response, parsedBody);
753
756
  }
@@ -772,7 +775,7 @@ export var deserializeAws_json1_1CreateRegexPatternSetCommand = function (output
772
775
  });
773
776
  }); };
774
777
  var deserializeAws_json1_1CreateRegexPatternSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
775
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
778
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
776
779
  var _c;
777
780
  return __generator(this, function (_d) {
778
781
  switch (_d.label) {
@@ -782,7 +785,6 @@ var deserializeAws_json1_1CreateRegexPatternSetCommandError = function (output,
782
785
  return [4, parseBody(output.body, context)];
783
786
  case 1:
784
787
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
785
- errorCode = "UnknownError";
786
788
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
787
789
  _b = errorCode;
788
790
  switch (_b) {
@@ -822,10 +824,12 @@ var deserializeAws_json1_1CreateRegexPatternSetCommandError = function (output,
822
824
  case 17: throw _d.sent();
823
825
  case 18:
824
826
  parsedBody = parsedOutput.body;
827
+ $metadata = deserializeMetadata(output);
828
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
825
829
  response = new __BaseException({
826
- name: parsedBody.code || parsedBody.Code || errorCode,
830
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
827
831
  $fault: "client",
828
- $metadata: deserializeMetadata(output),
832
+ $metadata: $metadata,
829
833
  });
830
834
  throw __decorateServiceException(response, parsedBody);
831
835
  }
@@ -850,7 +854,7 @@ export var deserializeAws_json1_1CreateRuleGroupCommand = function (output, cont
850
854
  });
851
855
  }); };
852
856
  var deserializeAws_json1_1CreateRuleGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
853
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
857
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
854
858
  var _c;
855
859
  return __generator(this, function (_d) {
856
860
  switch (_d.label) {
@@ -860,7 +864,6 @@ var deserializeAws_json1_1CreateRuleGroupCommandError = function (output, contex
860
864
  return [4, parseBody(output.body, context)];
861
865
  case 1:
862
866
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
863
- errorCode = "UnknownError";
864
867
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
865
868
  _b = errorCode;
866
869
  switch (_b) {
@@ -912,10 +915,12 @@ var deserializeAws_json1_1CreateRuleGroupCommandError = function (output, contex
912
915
  case 23: throw _d.sent();
913
916
  case 24:
914
917
  parsedBody = parsedOutput.body;
918
+ $metadata = deserializeMetadata(output);
919
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
915
920
  response = new __BaseException({
916
- name: parsedBody.code || parsedBody.Code || errorCode,
921
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
917
922
  $fault: "client",
918
- $metadata: deserializeMetadata(output),
923
+ $metadata: $metadata,
919
924
  });
920
925
  throw __decorateServiceException(response, parsedBody);
921
926
  }
@@ -940,7 +945,7 @@ export var deserializeAws_json1_1CreateWebACLCommand = function (output, context
940
945
  });
941
946
  }); };
942
947
  var deserializeAws_json1_1CreateWebACLCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
943
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
948
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
944
949
  var _c;
945
950
  return __generator(this, function (_d) {
946
951
  switch (_d.label) {
@@ -950,7 +955,6 @@ var deserializeAws_json1_1CreateWebACLCommandError = function (output, context)
950
955
  return [4, parseBody(output.body, context)];
951
956
  case 1:
952
957
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
953
- errorCode = "UnknownError";
954
958
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
955
959
  _b = errorCode;
956
960
  switch (_b) {
@@ -1010,10 +1014,12 @@ var deserializeAws_json1_1CreateWebACLCommandError = function (output, context)
1010
1014
  case 27: throw _d.sent();
1011
1015
  case 28:
1012
1016
  parsedBody = parsedOutput.body;
1017
+ $metadata = deserializeMetadata(output);
1018
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1013
1019
  response = new __BaseException({
1014
- name: parsedBody.code || parsedBody.Code || errorCode,
1020
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1015
1021
  $fault: "client",
1016
- $metadata: deserializeMetadata(output),
1022
+ $metadata: $metadata,
1017
1023
  });
1018
1024
  throw __decorateServiceException(response, parsedBody);
1019
1025
  }
@@ -1038,7 +1044,7 @@ export var deserializeAws_json1_1DeleteFirewallManagerRuleGroupsCommand = functi
1038
1044
  });
1039
1045
  }); };
1040
1046
  var deserializeAws_json1_1DeleteFirewallManagerRuleGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1041
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1047
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1042
1048
  var _c;
1043
1049
  return __generator(this, function (_d) {
1044
1050
  switch (_d.label) {
@@ -1048,7 +1054,6 @@ var deserializeAws_json1_1DeleteFirewallManagerRuleGroupsCommandError = function
1048
1054
  return [4, parseBody(output.body, context)];
1049
1055
  case 1:
1050
1056
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1051
- errorCode = "UnknownError";
1052
1057
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1053
1058
  _b = errorCode;
1054
1059
  switch (_b) {
@@ -1076,10 +1081,12 @@ var deserializeAws_json1_1DeleteFirewallManagerRuleGroupsCommandError = function
1076
1081
  case 11: throw _d.sent();
1077
1082
  case 12:
1078
1083
  parsedBody = parsedOutput.body;
1084
+ $metadata = deserializeMetadata(output);
1085
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1079
1086
  response = new __BaseException({
1080
- name: parsedBody.code || parsedBody.Code || errorCode,
1087
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1081
1088
  $fault: "client",
1082
- $metadata: deserializeMetadata(output),
1089
+ $metadata: $metadata,
1083
1090
  });
1084
1091
  throw __decorateServiceException(response, parsedBody);
1085
1092
  }
@@ -1104,7 +1111,7 @@ export var deserializeAws_json1_1DeleteIPSetCommand = function (output, context)
1104
1111
  });
1105
1112
  }); };
1106
1113
  var deserializeAws_json1_1DeleteIPSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1107
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1114
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1108
1115
  var _c;
1109
1116
  return __generator(this, function (_d) {
1110
1117
  switch (_d.label) {
@@ -1114,7 +1121,6 @@ var deserializeAws_json1_1DeleteIPSetCommandError = function (output, context) {
1114
1121
  return [4, parseBody(output.body, context)];
1115
1122
  case 1:
1116
1123
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1117
- errorCode = "UnknownError";
1118
1124
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1119
1125
  _b = errorCode;
1120
1126
  switch (_b) {
@@ -1154,10 +1160,12 @@ var deserializeAws_json1_1DeleteIPSetCommandError = function (output, context) {
1154
1160
  case 17: throw _d.sent();
1155
1161
  case 18:
1156
1162
  parsedBody = parsedOutput.body;
1163
+ $metadata = deserializeMetadata(output);
1164
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1157
1165
  response = new __BaseException({
1158
- name: parsedBody.code || parsedBody.Code || errorCode,
1166
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1159
1167
  $fault: "client",
1160
- $metadata: deserializeMetadata(output),
1168
+ $metadata: $metadata,
1161
1169
  });
1162
1170
  throw __decorateServiceException(response, parsedBody);
1163
1171
  }
@@ -1182,7 +1190,7 @@ export var deserializeAws_json1_1DeleteLoggingConfigurationCommand = function (o
1182
1190
  });
1183
1191
  }); };
1184
1192
  var deserializeAws_json1_1DeleteLoggingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1185
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1193
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1186
1194
  var _c;
1187
1195
  return __generator(this, function (_d) {
1188
1196
  switch (_d.label) {
@@ -1192,7 +1200,6 @@ var deserializeAws_json1_1DeleteLoggingConfigurationCommandError = function (out
1192
1200
  return [4, parseBody(output.body, context)];
1193
1201
  case 1:
1194
1202
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1195
- errorCode = "UnknownError";
1196
1203
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1197
1204
  _b = errorCode;
1198
1205
  switch (_b) {
@@ -1220,10 +1227,12 @@ var deserializeAws_json1_1DeleteLoggingConfigurationCommandError = function (out
1220
1227
  case 11: throw _d.sent();
1221
1228
  case 12:
1222
1229
  parsedBody = parsedOutput.body;
1230
+ $metadata = deserializeMetadata(output);
1231
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1223
1232
  response = new __BaseException({
1224
- name: parsedBody.code || parsedBody.Code || errorCode,
1233
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1225
1234
  $fault: "client",
1226
- $metadata: deserializeMetadata(output),
1235
+ $metadata: $metadata,
1227
1236
  });
1228
1237
  throw __decorateServiceException(response, parsedBody);
1229
1238
  }
@@ -1248,7 +1257,7 @@ export var deserializeAws_json1_1DeletePermissionPolicyCommand = function (outpu
1248
1257
  });
1249
1258
  }); };
1250
1259
  var deserializeAws_json1_1DeletePermissionPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1251
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1260
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1252
1261
  var _c;
1253
1262
  return __generator(this, function (_d) {
1254
1263
  switch (_d.label) {
@@ -1258,7 +1267,6 @@ var deserializeAws_json1_1DeletePermissionPolicyCommandError = function (output,
1258
1267
  return [4, parseBody(output.body, context)];
1259
1268
  case 1:
1260
1269
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1261
- errorCode = "UnknownError";
1262
1270
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1263
1271
  _b = errorCode;
1264
1272
  switch (_b) {
@@ -1278,10 +1286,12 @@ var deserializeAws_json1_1DeletePermissionPolicyCommandError = function (output,
1278
1286
  case 7: throw _d.sent();
1279
1287
  case 8:
1280
1288
  parsedBody = parsedOutput.body;
1289
+ $metadata = deserializeMetadata(output);
1290
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1281
1291
  response = new __BaseException({
1282
- name: parsedBody.code || parsedBody.Code || errorCode,
1292
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1283
1293
  $fault: "client",
1284
- $metadata: deserializeMetadata(output),
1294
+ $metadata: $metadata,
1285
1295
  });
1286
1296
  throw __decorateServiceException(response, parsedBody);
1287
1297
  }
@@ -1306,7 +1316,7 @@ export var deserializeAws_json1_1DeleteRegexPatternSetCommand = function (output
1306
1316
  });
1307
1317
  }); };
1308
1318
  var deserializeAws_json1_1DeleteRegexPatternSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1309
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1319
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1310
1320
  var _c;
1311
1321
  return __generator(this, function (_d) {
1312
1322
  switch (_d.label) {
@@ -1316,7 +1326,6 @@ var deserializeAws_json1_1DeleteRegexPatternSetCommandError = function (output,
1316
1326
  return [4, parseBody(output.body, context)];
1317
1327
  case 1:
1318
1328
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1319
- errorCode = "UnknownError";
1320
1329
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1321
1330
  _b = errorCode;
1322
1331
  switch (_b) {
@@ -1356,10 +1365,12 @@ var deserializeAws_json1_1DeleteRegexPatternSetCommandError = function (output,
1356
1365
  case 17: throw _d.sent();
1357
1366
  case 18:
1358
1367
  parsedBody = parsedOutput.body;
1368
+ $metadata = deserializeMetadata(output);
1369
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1359
1370
  response = new __BaseException({
1360
- name: parsedBody.code || parsedBody.Code || errorCode,
1371
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1361
1372
  $fault: "client",
1362
- $metadata: deserializeMetadata(output),
1373
+ $metadata: $metadata,
1363
1374
  });
1364
1375
  throw __decorateServiceException(response, parsedBody);
1365
1376
  }
@@ -1384,7 +1395,7 @@ export var deserializeAws_json1_1DeleteRuleGroupCommand = function (output, cont
1384
1395
  });
1385
1396
  }); };
1386
1397
  var deserializeAws_json1_1DeleteRuleGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1387
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1398
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1388
1399
  var _c;
1389
1400
  return __generator(this, function (_d) {
1390
1401
  switch (_d.label) {
@@ -1394,7 +1405,6 @@ var deserializeAws_json1_1DeleteRuleGroupCommandError = function (output, contex
1394
1405
  return [4, parseBody(output.body, context)];
1395
1406
  case 1:
1396
1407
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1397
- errorCode = "UnknownError";
1398
1408
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1399
1409
  _b = errorCode;
1400
1410
  switch (_b) {
@@ -1434,10 +1444,12 @@ var deserializeAws_json1_1DeleteRuleGroupCommandError = function (output, contex
1434
1444
  case 17: throw _d.sent();
1435
1445
  case 18:
1436
1446
  parsedBody = parsedOutput.body;
1447
+ $metadata = deserializeMetadata(output);
1448
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1437
1449
  response = new __BaseException({
1438
- name: parsedBody.code || parsedBody.Code || errorCode,
1450
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1439
1451
  $fault: "client",
1440
- $metadata: deserializeMetadata(output),
1452
+ $metadata: $metadata,
1441
1453
  });
1442
1454
  throw __decorateServiceException(response, parsedBody);
1443
1455
  }
@@ -1462,7 +1474,7 @@ export var deserializeAws_json1_1DeleteWebACLCommand = function (output, context
1462
1474
  });
1463
1475
  }); };
1464
1476
  var deserializeAws_json1_1DeleteWebACLCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1465
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1477
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1466
1478
  var _c;
1467
1479
  return __generator(this, function (_d) {
1468
1480
  switch (_d.label) {
@@ -1472,7 +1484,6 @@ var deserializeAws_json1_1DeleteWebACLCommandError = function (output, context)
1472
1484
  return [4, parseBody(output.body, context)];
1473
1485
  case 1:
1474
1486
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1475
- errorCode = "UnknownError";
1476
1487
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1477
1488
  _b = errorCode;
1478
1489
  switch (_b) {
@@ -1512,10 +1523,12 @@ var deserializeAws_json1_1DeleteWebACLCommandError = function (output, context)
1512
1523
  case 17: throw _d.sent();
1513
1524
  case 18:
1514
1525
  parsedBody = parsedOutput.body;
1526
+ $metadata = deserializeMetadata(output);
1527
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1515
1528
  response = new __BaseException({
1516
- name: parsedBody.code || parsedBody.Code || errorCode,
1529
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1517
1530
  $fault: "client",
1518
- $metadata: deserializeMetadata(output),
1531
+ $metadata: $metadata,
1519
1532
  });
1520
1533
  throw __decorateServiceException(response, parsedBody);
1521
1534
  }
@@ -1540,7 +1553,7 @@ export var deserializeAws_json1_1DescribeManagedRuleGroupCommand = function (out
1540
1553
  });
1541
1554
  }); };
1542
1555
  var deserializeAws_json1_1DescribeManagedRuleGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1543
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1556
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1544
1557
  var _c;
1545
1558
  return __generator(this, function (_d) {
1546
1559
  switch (_d.label) {
@@ -1550,7 +1563,6 @@ var deserializeAws_json1_1DescribeManagedRuleGroupCommandError = function (outpu
1550
1563
  return [4, parseBody(output.body, context)];
1551
1564
  case 1:
1552
1565
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1553
- errorCode = "UnknownError";
1554
1566
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1555
1567
  _b = errorCode;
1556
1568
  switch (_b) {
@@ -1582,10 +1594,12 @@ var deserializeAws_json1_1DescribeManagedRuleGroupCommandError = function (outpu
1582
1594
  case 13: throw _d.sent();
1583
1595
  case 14:
1584
1596
  parsedBody = parsedOutput.body;
1597
+ $metadata = deserializeMetadata(output);
1598
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1585
1599
  response = new __BaseException({
1586
- name: parsedBody.code || parsedBody.Code || errorCode,
1600
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1587
1601
  $fault: "client",
1588
- $metadata: deserializeMetadata(output),
1602
+ $metadata: $metadata,
1589
1603
  });
1590
1604
  throw __decorateServiceException(response, parsedBody);
1591
1605
  }
@@ -1610,7 +1624,7 @@ export var deserializeAws_json1_1DisassociateWebACLCommand = function (output, c
1610
1624
  });
1611
1625
  }); };
1612
1626
  var deserializeAws_json1_1DisassociateWebACLCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1613
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1627
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1614
1628
  var _c;
1615
1629
  return __generator(this, function (_d) {
1616
1630
  switch (_d.label) {
@@ -1620,7 +1634,6 @@ var deserializeAws_json1_1DisassociateWebACLCommandError = function (output, con
1620
1634
  return [4, parseBody(output.body, context)];
1621
1635
  case 1:
1622
1636
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1623
- errorCode = "UnknownError";
1624
1637
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1625
1638
  _b = errorCode;
1626
1639
  switch (_b) {
@@ -1644,10 +1657,12 @@ var deserializeAws_json1_1DisassociateWebACLCommandError = function (output, con
1644
1657
  case 9: throw _d.sent();
1645
1658
  case 10:
1646
1659
  parsedBody = parsedOutput.body;
1660
+ $metadata = deserializeMetadata(output);
1661
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1647
1662
  response = new __BaseException({
1648
- name: parsedBody.code || parsedBody.Code || errorCode,
1663
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1649
1664
  $fault: "client",
1650
- $metadata: deserializeMetadata(output),
1665
+ $metadata: $metadata,
1651
1666
  });
1652
1667
  throw __decorateServiceException(response, parsedBody);
1653
1668
  }
@@ -1672,7 +1687,7 @@ export var deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommand = function (
1672
1687
  });
1673
1688
  }); };
1674
1689
  var deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1675
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1690
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1676
1691
  var _c;
1677
1692
  return __generator(this, function (_d) {
1678
1693
  switch (_d.label) {
@@ -1682,7 +1697,6 @@ var deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommandError = function (ou
1682
1697
  return [4, parseBody(output.body, context)];
1683
1698
  case 1:
1684
1699
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1685
- errorCode = "UnknownError";
1686
1700
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1687
1701
  _b = errorCode;
1688
1702
  switch (_b) {
@@ -1706,10 +1720,12 @@ var deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommandError = function (ou
1706
1720
  case 9: throw _d.sent();
1707
1721
  case 10:
1708
1722
  parsedBody = parsedOutput.body;
1723
+ $metadata = deserializeMetadata(output);
1724
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1709
1725
  response = new __BaseException({
1710
- name: parsedBody.code || parsedBody.Code || errorCode,
1726
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1711
1727
  $fault: "client",
1712
- $metadata: deserializeMetadata(output),
1728
+ $metadata: $metadata,
1713
1729
  });
1714
1730
  throw __decorateServiceException(response, parsedBody);
1715
1731
  }
@@ -1734,7 +1750,7 @@ export var deserializeAws_json1_1GetIPSetCommand = function (output, context) {
1734
1750
  });
1735
1751
  }); };
1736
1752
  var deserializeAws_json1_1GetIPSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1737
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1753
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1738
1754
  var _c;
1739
1755
  return __generator(this, function (_d) {
1740
1756
  switch (_d.label) {
@@ -1744,7 +1760,6 @@ var deserializeAws_json1_1GetIPSetCommandError = function (output, context) { re
1744
1760
  return [4, parseBody(output.body, context)];
1745
1761
  case 1:
1746
1762
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1747
- errorCode = "UnknownError";
1748
1763
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1749
1764
  _b = errorCode;
1750
1765
  switch (_b) {
@@ -1768,10 +1783,12 @@ var deserializeAws_json1_1GetIPSetCommandError = function (output, context) { re
1768
1783
  case 9: throw _d.sent();
1769
1784
  case 10:
1770
1785
  parsedBody = parsedOutput.body;
1786
+ $metadata = deserializeMetadata(output);
1787
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1771
1788
  response = new __BaseException({
1772
- name: parsedBody.code || parsedBody.Code || errorCode,
1789
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1773
1790
  $fault: "client",
1774
- $metadata: deserializeMetadata(output),
1791
+ $metadata: $metadata,
1775
1792
  });
1776
1793
  throw __decorateServiceException(response, parsedBody);
1777
1794
  }
@@ -1796,7 +1813,7 @@ export var deserializeAws_json1_1GetLoggingConfigurationCommand = function (outp
1796
1813
  });
1797
1814
  }); };
1798
1815
  var deserializeAws_json1_1GetLoggingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1799
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1816
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1800
1817
  var _c;
1801
1818
  return __generator(this, function (_d) {
1802
1819
  switch (_d.label) {
@@ -1806,7 +1823,6 @@ var deserializeAws_json1_1GetLoggingConfigurationCommandError = function (output
1806
1823
  return [4, parseBody(output.body, context)];
1807
1824
  case 1:
1808
1825
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1809
- errorCode = "UnknownError";
1810
1826
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1811
1827
  _b = errorCode;
1812
1828
  switch (_b) {
@@ -1830,10 +1846,12 @@ var deserializeAws_json1_1GetLoggingConfigurationCommandError = function (output
1830
1846
  case 9: throw _d.sent();
1831
1847
  case 10:
1832
1848
  parsedBody = parsedOutput.body;
1849
+ $metadata = deserializeMetadata(output);
1850
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1833
1851
  response = new __BaseException({
1834
- name: parsedBody.code || parsedBody.Code || errorCode,
1852
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1835
1853
  $fault: "client",
1836
- $metadata: deserializeMetadata(output),
1854
+ $metadata: $metadata,
1837
1855
  });
1838
1856
  throw __decorateServiceException(response, parsedBody);
1839
1857
  }
@@ -1858,7 +1876,7 @@ export var deserializeAws_json1_1GetManagedRuleSetCommand = function (output, co
1858
1876
  });
1859
1877
  }); };
1860
1878
  var deserializeAws_json1_1GetManagedRuleSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1861
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1879
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1862
1880
  var _c;
1863
1881
  return __generator(this, function (_d) {
1864
1882
  switch (_d.label) {
@@ -1868,7 +1886,6 @@ var deserializeAws_json1_1GetManagedRuleSetCommandError = function (output, cont
1868
1886
  return [4, parseBody(output.body, context)];
1869
1887
  case 1:
1870
1888
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1871
- errorCode = "UnknownError";
1872
1889
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1873
1890
  _b = errorCode;
1874
1891
  switch (_b) {
@@ -1892,10 +1909,12 @@ var deserializeAws_json1_1GetManagedRuleSetCommandError = function (output, cont
1892
1909
  case 9: throw _d.sent();
1893
1910
  case 10:
1894
1911
  parsedBody = parsedOutput.body;
1912
+ $metadata = deserializeMetadata(output);
1913
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1895
1914
  response = new __BaseException({
1896
- name: parsedBody.code || parsedBody.Code || errorCode,
1915
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1897
1916
  $fault: "client",
1898
- $metadata: deserializeMetadata(output),
1917
+ $metadata: $metadata,
1899
1918
  });
1900
1919
  throw __decorateServiceException(response, parsedBody);
1901
1920
  }
@@ -1920,7 +1939,7 @@ export var deserializeAws_json1_1GetMobileSdkReleaseCommand = function (output,
1920
1939
  });
1921
1940
  }); };
1922
1941
  var deserializeAws_json1_1GetMobileSdkReleaseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1923
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1942
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1924
1943
  var _c;
1925
1944
  return __generator(this, function (_d) {
1926
1945
  switch (_d.label) {
@@ -1930,7 +1949,6 @@ var deserializeAws_json1_1GetMobileSdkReleaseCommandError = function (output, co
1930
1949
  return [4, parseBody(output.body, context)];
1931
1950
  case 1:
1932
1951
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1933
- errorCode = "UnknownError";
1934
1952
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1935
1953
  _b = errorCode;
1936
1954
  switch (_b) {
@@ -1954,10 +1972,12 @@ var deserializeAws_json1_1GetMobileSdkReleaseCommandError = function (output, co
1954
1972
  case 9: throw _d.sent();
1955
1973
  case 10:
1956
1974
  parsedBody = parsedOutput.body;
1975
+ $metadata = deserializeMetadata(output);
1976
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1957
1977
  response = new __BaseException({
1958
- name: parsedBody.code || parsedBody.Code || errorCode,
1978
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1959
1979
  $fault: "client",
1960
- $metadata: deserializeMetadata(output),
1980
+ $metadata: $metadata,
1961
1981
  });
1962
1982
  throw __decorateServiceException(response, parsedBody);
1963
1983
  }
@@ -1982,7 +2002,7 @@ export var deserializeAws_json1_1GetPermissionPolicyCommand = function (output,
1982
2002
  });
1983
2003
  }); };
1984
2004
  var deserializeAws_json1_1GetPermissionPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1985
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2005
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1986
2006
  var _c;
1987
2007
  return __generator(this, function (_d) {
1988
2008
  switch (_d.label) {
@@ -1992,7 +2012,6 @@ var deserializeAws_json1_1GetPermissionPolicyCommandError = function (output, co
1992
2012
  return [4, parseBody(output.body, context)];
1993
2013
  case 1:
1994
2014
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1995
- errorCode = "UnknownError";
1996
2015
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1997
2016
  _b = errorCode;
1998
2017
  switch (_b) {
@@ -2012,10 +2031,12 @@ var deserializeAws_json1_1GetPermissionPolicyCommandError = function (output, co
2012
2031
  case 7: throw _d.sent();
2013
2032
  case 8:
2014
2033
  parsedBody = parsedOutput.body;
2034
+ $metadata = deserializeMetadata(output);
2035
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2015
2036
  response = new __BaseException({
2016
- name: parsedBody.code || parsedBody.Code || errorCode,
2037
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2017
2038
  $fault: "client",
2018
- $metadata: deserializeMetadata(output),
2039
+ $metadata: $metadata,
2019
2040
  });
2020
2041
  throw __decorateServiceException(response, parsedBody);
2021
2042
  }
@@ -2040,7 +2061,7 @@ export var deserializeAws_json1_1GetRateBasedStatementManagedKeysCommand = funct
2040
2061
  });
2041
2062
  }); };
2042
2063
  var deserializeAws_json1_1GetRateBasedStatementManagedKeysCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2043
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2064
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2044
2065
  var _c;
2045
2066
  return __generator(this, function (_d) {
2046
2067
  switch (_d.label) {
@@ -2050,7 +2071,6 @@ var deserializeAws_json1_1GetRateBasedStatementManagedKeysCommandError = functio
2050
2071
  return [4, parseBody(output.body, context)];
2051
2072
  case 1:
2052
2073
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2053
- errorCode = "UnknownError";
2054
2074
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2055
2075
  _b = errorCode;
2056
2076
  switch (_b) {
@@ -2074,10 +2094,12 @@ var deserializeAws_json1_1GetRateBasedStatementManagedKeysCommandError = functio
2074
2094
  case 9: throw _d.sent();
2075
2095
  case 10:
2076
2096
  parsedBody = parsedOutput.body;
2097
+ $metadata = deserializeMetadata(output);
2098
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2077
2099
  response = new __BaseException({
2078
- name: parsedBody.code || parsedBody.Code || errorCode,
2100
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2079
2101
  $fault: "client",
2080
- $metadata: deserializeMetadata(output),
2102
+ $metadata: $metadata,
2081
2103
  });
2082
2104
  throw __decorateServiceException(response, parsedBody);
2083
2105
  }
@@ -2102,7 +2124,7 @@ export var deserializeAws_json1_1GetRegexPatternSetCommand = function (output, c
2102
2124
  });
2103
2125
  }); };
2104
2126
  var deserializeAws_json1_1GetRegexPatternSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2105
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2127
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2106
2128
  var _c;
2107
2129
  return __generator(this, function (_d) {
2108
2130
  switch (_d.label) {
@@ -2112,7 +2134,6 @@ var deserializeAws_json1_1GetRegexPatternSetCommandError = function (output, con
2112
2134
  return [4, parseBody(output.body, context)];
2113
2135
  case 1:
2114
2136
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2115
- errorCode = "UnknownError";
2116
2137
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2117
2138
  _b = errorCode;
2118
2139
  switch (_b) {
@@ -2136,10 +2157,12 @@ var deserializeAws_json1_1GetRegexPatternSetCommandError = function (output, con
2136
2157
  case 9: throw _d.sent();
2137
2158
  case 10:
2138
2159
  parsedBody = parsedOutput.body;
2160
+ $metadata = deserializeMetadata(output);
2161
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2139
2162
  response = new __BaseException({
2140
- name: parsedBody.code || parsedBody.Code || errorCode,
2163
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2141
2164
  $fault: "client",
2142
- $metadata: deserializeMetadata(output),
2165
+ $metadata: $metadata,
2143
2166
  });
2144
2167
  throw __decorateServiceException(response, parsedBody);
2145
2168
  }
@@ -2164,7 +2187,7 @@ export var deserializeAws_json1_1GetRuleGroupCommand = function (output, context
2164
2187
  });
2165
2188
  }); };
2166
2189
  var deserializeAws_json1_1GetRuleGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2167
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2190
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2168
2191
  var _c;
2169
2192
  return __generator(this, function (_d) {
2170
2193
  switch (_d.label) {
@@ -2174,7 +2197,6 @@ var deserializeAws_json1_1GetRuleGroupCommandError = function (output, context)
2174
2197
  return [4, parseBody(output.body, context)];
2175
2198
  case 1:
2176
2199
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2177
- errorCode = "UnknownError";
2178
2200
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2179
2201
  _b = errorCode;
2180
2202
  switch (_b) {
@@ -2198,10 +2220,12 @@ var deserializeAws_json1_1GetRuleGroupCommandError = function (output, context)
2198
2220
  case 9: throw _d.sent();
2199
2221
  case 10:
2200
2222
  parsedBody = parsedOutput.body;
2223
+ $metadata = deserializeMetadata(output);
2224
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2201
2225
  response = new __BaseException({
2202
- name: parsedBody.code || parsedBody.Code || errorCode,
2226
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2203
2227
  $fault: "client",
2204
- $metadata: deserializeMetadata(output),
2228
+ $metadata: $metadata,
2205
2229
  });
2206
2230
  throw __decorateServiceException(response, parsedBody);
2207
2231
  }
@@ -2226,7 +2250,7 @@ export var deserializeAws_json1_1GetSampledRequestsCommand = function (output, c
2226
2250
  });
2227
2251
  }); };
2228
2252
  var deserializeAws_json1_1GetSampledRequestsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2229
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2253
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2230
2254
  var _c;
2231
2255
  return __generator(this, function (_d) {
2232
2256
  switch (_d.label) {
@@ -2236,7 +2260,6 @@ var deserializeAws_json1_1GetSampledRequestsCommandError = function (output, con
2236
2260
  return [4, parseBody(output.body, context)];
2237
2261
  case 1:
2238
2262
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2239
- errorCode = "UnknownError";
2240
2263
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2241
2264
  _b = errorCode;
2242
2265
  switch (_b) {
@@ -2256,10 +2279,12 @@ var deserializeAws_json1_1GetSampledRequestsCommandError = function (output, con
2256
2279
  case 7: throw _d.sent();
2257
2280
  case 8:
2258
2281
  parsedBody = parsedOutput.body;
2282
+ $metadata = deserializeMetadata(output);
2283
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2259
2284
  response = new __BaseException({
2260
- name: parsedBody.code || parsedBody.Code || errorCode,
2285
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2261
2286
  $fault: "client",
2262
- $metadata: deserializeMetadata(output),
2287
+ $metadata: $metadata,
2263
2288
  });
2264
2289
  throw __decorateServiceException(response, parsedBody);
2265
2290
  }
@@ -2284,7 +2309,7 @@ export var deserializeAws_json1_1GetWebACLCommand = function (output, context) {
2284
2309
  });
2285
2310
  }); };
2286
2311
  var deserializeAws_json1_1GetWebACLCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2287
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2312
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2288
2313
  var _c;
2289
2314
  return __generator(this, function (_d) {
2290
2315
  switch (_d.label) {
@@ -2294,7 +2319,6 @@ var deserializeAws_json1_1GetWebACLCommandError = function (output, context) { r
2294
2319
  return [4, parseBody(output.body, context)];
2295
2320
  case 1:
2296
2321
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2297
- errorCode = "UnknownError";
2298
2322
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2299
2323
  _b = errorCode;
2300
2324
  switch (_b) {
@@ -2318,10 +2342,12 @@ var deserializeAws_json1_1GetWebACLCommandError = function (output, context) { r
2318
2342
  case 9: throw _d.sent();
2319
2343
  case 10:
2320
2344
  parsedBody = parsedOutput.body;
2345
+ $metadata = deserializeMetadata(output);
2346
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2321
2347
  response = new __BaseException({
2322
- name: parsedBody.code || parsedBody.Code || errorCode,
2348
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2323
2349
  $fault: "client",
2324
- $metadata: deserializeMetadata(output),
2350
+ $metadata: $metadata,
2325
2351
  });
2326
2352
  throw __decorateServiceException(response, parsedBody);
2327
2353
  }
@@ -2346,7 +2372,7 @@ export var deserializeAws_json1_1GetWebACLForResourceCommand = function (output,
2346
2372
  });
2347
2373
  }); };
2348
2374
  var deserializeAws_json1_1GetWebACLForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2349
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2375
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2350
2376
  var _c;
2351
2377
  return __generator(this, function (_d) {
2352
2378
  switch (_d.label) {
@@ -2356,7 +2382,6 @@ var deserializeAws_json1_1GetWebACLForResourceCommandError = function (output, c
2356
2382
  return [4, parseBody(output.body, context)];
2357
2383
  case 1:
2358
2384
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2359
- errorCode = "UnknownError";
2360
2385
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2361
2386
  _b = errorCode;
2362
2387
  switch (_b) {
@@ -2384,10 +2409,12 @@ var deserializeAws_json1_1GetWebACLForResourceCommandError = function (output, c
2384
2409
  case 11: throw _d.sent();
2385
2410
  case 12:
2386
2411
  parsedBody = parsedOutput.body;
2412
+ $metadata = deserializeMetadata(output);
2413
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2387
2414
  response = new __BaseException({
2388
- name: parsedBody.code || parsedBody.Code || errorCode,
2415
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2389
2416
  $fault: "client",
2390
- $metadata: deserializeMetadata(output),
2417
+ $metadata: $metadata,
2391
2418
  });
2392
2419
  throw __decorateServiceException(response, parsedBody);
2393
2420
  }
@@ -2412,7 +2439,7 @@ export var deserializeAws_json1_1ListAvailableManagedRuleGroupsCommand = functio
2412
2439
  });
2413
2440
  }); };
2414
2441
  var deserializeAws_json1_1ListAvailableManagedRuleGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2415
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2442
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2416
2443
  var _c;
2417
2444
  return __generator(this, function (_d) {
2418
2445
  switch (_d.label) {
@@ -2422,7 +2449,6 @@ var deserializeAws_json1_1ListAvailableManagedRuleGroupsCommandError = function
2422
2449
  return [4, parseBody(output.body, context)];
2423
2450
  case 1:
2424
2451
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2425
- errorCode = "UnknownError";
2426
2452
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2427
2453
  _b = errorCode;
2428
2454
  switch (_b) {
@@ -2442,10 +2468,12 @@ var deserializeAws_json1_1ListAvailableManagedRuleGroupsCommandError = function
2442
2468
  case 7: throw _d.sent();
2443
2469
  case 8:
2444
2470
  parsedBody = parsedOutput.body;
2471
+ $metadata = deserializeMetadata(output);
2472
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2445
2473
  response = new __BaseException({
2446
- name: parsedBody.code || parsedBody.Code || errorCode,
2474
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2447
2475
  $fault: "client",
2448
- $metadata: deserializeMetadata(output),
2476
+ $metadata: $metadata,
2449
2477
  });
2450
2478
  throw __decorateServiceException(response, parsedBody);
2451
2479
  }
@@ -2470,7 +2498,7 @@ export var deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommand =
2470
2498
  });
2471
2499
  }); };
2472
2500
  var deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2473
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2501
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2474
2502
  var _c;
2475
2503
  return __generator(this, function (_d) {
2476
2504
  switch (_d.label) {
@@ -2480,7 +2508,6 @@ var deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommandError = fu
2480
2508
  return [4, parseBody(output.body, context)];
2481
2509
  case 1:
2482
2510
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2483
- errorCode = "UnknownError";
2484
2511
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2485
2512
  _b = errorCode;
2486
2513
  switch (_b) {
@@ -2504,10 +2531,12 @@ var deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommandError = fu
2504
2531
  case 9: throw _d.sent();
2505
2532
  case 10:
2506
2533
  parsedBody = parsedOutput.body;
2534
+ $metadata = deserializeMetadata(output);
2535
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2507
2536
  response = new __BaseException({
2508
- name: parsedBody.code || parsedBody.Code || errorCode,
2537
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2509
2538
  $fault: "client",
2510
- $metadata: deserializeMetadata(output),
2539
+ $metadata: $metadata,
2511
2540
  });
2512
2541
  throw __decorateServiceException(response, parsedBody);
2513
2542
  }
@@ -2532,7 +2561,7 @@ export var deserializeAws_json1_1ListIPSetsCommand = function (output, context)
2532
2561
  });
2533
2562
  }); };
2534
2563
  var deserializeAws_json1_1ListIPSetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2535
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2564
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2536
2565
  var _c;
2537
2566
  return __generator(this, function (_d) {
2538
2567
  switch (_d.label) {
@@ -2542,7 +2571,6 @@ var deserializeAws_json1_1ListIPSetsCommandError = function (output, context) {
2542
2571
  return [4, parseBody(output.body, context)];
2543
2572
  case 1:
2544
2573
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2545
- errorCode = "UnknownError";
2546
2574
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2547
2575
  _b = errorCode;
2548
2576
  switch (_b) {
@@ -2562,10 +2590,12 @@ var deserializeAws_json1_1ListIPSetsCommandError = function (output, context) {
2562
2590
  case 7: throw _d.sent();
2563
2591
  case 8:
2564
2592
  parsedBody = parsedOutput.body;
2593
+ $metadata = deserializeMetadata(output);
2594
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2565
2595
  response = new __BaseException({
2566
- name: parsedBody.code || parsedBody.Code || errorCode,
2596
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2567
2597
  $fault: "client",
2568
- $metadata: deserializeMetadata(output),
2598
+ $metadata: $metadata,
2569
2599
  });
2570
2600
  throw __decorateServiceException(response, parsedBody);
2571
2601
  }
@@ -2590,7 +2620,7 @@ export var deserializeAws_json1_1ListLoggingConfigurationsCommand = function (ou
2590
2620
  });
2591
2621
  }); };
2592
2622
  var deserializeAws_json1_1ListLoggingConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2593
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2623
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2594
2624
  var _c;
2595
2625
  return __generator(this, function (_d) {
2596
2626
  switch (_d.label) {
@@ -2600,7 +2630,6 @@ var deserializeAws_json1_1ListLoggingConfigurationsCommandError = function (outp
2600
2630
  return [4, parseBody(output.body, context)];
2601
2631
  case 1:
2602
2632
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2603
- errorCode = "UnknownError";
2604
2633
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2605
2634
  _b = errorCode;
2606
2635
  switch (_b) {
@@ -2620,10 +2649,12 @@ var deserializeAws_json1_1ListLoggingConfigurationsCommandError = function (outp
2620
2649
  case 7: throw _d.sent();
2621
2650
  case 8:
2622
2651
  parsedBody = parsedOutput.body;
2652
+ $metadata = deserializeMetadata(output);
2653
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2623
2654
  response = new __BaseException({
2624
- name: parsedBody.code || parsedBody.Code || errorCode,
2655
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2625
2656
  $fault: "client",
2626
- $metadata: deserializeMetadata(output),
2657
+ $metadata: $metadata,
2627
2658
  });
2628
2659
  throw __decorateServiceException(response, parsedBody);
2629
2660
  }
@@ -2648,7 +2679,7 @@ export var deserializeAws_json1_1ListManagedRuleSetsCommand = function (output,
2648
2679
  });
2649
2680
  }); };
2650
2681
  var deserializeAws_json1_1ListManagedRuleSetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2651
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2682
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2652
2683
  var _c;
2653
2684
  return __generator(this, function (_d) {
2654
2685
  switch (_d.label) {
@@ -2658,7 +2689,6 @@ var deserializeAws_json1_1ListManagedRuleSetsCommandError = function (output, co
2658
2689
  return [4, parseBody(output.body, context)];
2659
2690
  case 1:
2660
2691
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2661
- errorCode = "UnknownError";
2662
2692
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2663
2693
  _b = errorCode;
2664
2694
  switch (_b) {
@@ -2678,10 +2708,12 @@ var deserializeAws_json1_1ListManagedRuleSetsCommandError = function (output, co
2678
2708
  case 7: throw _d.sent();
2679
2709
  case 8:
2680
2710
  parsedBody = parsedOutput.body;
2711
+ $metadata = deserializeMetadata(output);
2712
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2681
2713
  response = new __BaseException({
2682
- name: parsedBody.code || parsedBody.Code || errorCode,
2714
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2683
2715
  $fault: "client",
2684
- $metadata: deserializeMetadata(output),
2716
+ $metadata: $metadata,
2685
2717
  });
2686
2718
  throw __decorateServiceException(response, parsedBody);
2687
2719
  }
@@ -2706,7 +2738,7 @@ export var deserializeAws_json1_1ListMobileSdkReleasesCommand = function (output
2706
2738
  });
2707
2739
  }); };
2708
2740
  var deserializeAws_json1_1ListMobileSdkReleasesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2709
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2741
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2710
2742
  var _c;
2711
2743
  return __generator(this, function (_d) {
2712
2744
  switch (_d.label) {
@@ -2716,7 +2748,6 @@ var deserializeAws_json1_1ListMobileSdkReleasesCommandError = function (output,
2716
2748
  return [4, parseBody(output.body, context)];
2717
2749
  case 1:
2718
2750
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2719
- errorCode = "UnknownError";
2720
2751
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2721
2752
  _b = errorCode;
2722
2753
  switch (_b) {
@@ -2736,10 +2767,12 @@ var deserializeAws_json1_1ListMobileSdkReleasesCommandError = function (output,
2736
2767
  case 7: throw _d.sent();
2737
2768
  case 8:
2738
2769
  parsedBody = parsedOutput.body;
2770
+ $metadata = deserializeMetadata(output);
2771
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2739
2772
  response = new __BaseException({
2740
- name: parsedBody.code || parsedBody.Code || errorCode,
2773
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2741
2774
  $fault: "client",
2742
- $metadata: deserializeMetadata(output),
2775
+ $metadata: $metadata,
2743
2776
  });
2744
2777
  throw __decorateServiceException(response, parsedBody);
2745
2778
  }
@@ -2764,7 +2797,7 @@ export var deserializeAws_json1_1ListRegexPatternSetsCommand = function (output,
2764
2797
  });
2765
2798
  }); };
2766
2799
  var deserializeAws_json1_1ListRegexPatternSetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2767
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2800
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2768
2801
  var _c;
2769
2802
  return __generator(this, function (_d) {
2770
2803
  switch (_d.label) {
@@ -2774,7 +2807,6 @@ var deserializeAws_json1_1ListRegexPatternSetsCommandError = function (output, c
2774
2807
  return [4, parseBody(output.body, context)];
2775
2808
  case 1:
2776
2809
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2777
- errorCode = "UnknownError";
2778
2810
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2779
2811
  _b = errorCode;
2780
2812
  switch (_b) {
@@ -2794,10 +2826,12 @@ var deserializeAws_json1_1ListRegexPatternSetsCommandError = function (output, c
2794
2826
  case 7: throw _d.sent();
2795
2827
  case 8:
2796
2828
  parsedBody = parsedOutput.body;
2829
+ $metadata = deserializeMetadata(output);
2830
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2797
2831
  response = new __BaseException({
2798
- name: parsedBody.code || parsedBody.Code || errorCode,
2832
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2799
2833
  $fault: "client",
2800
- $metadata: deserializeMetadata(output),
2834
+ $metadata: $metadata,
2801
2835
  });
2802
2836
  throw __decorateServiceException(response, parsedBody);
2803
2837
  }
@@ -2822,7 +2856,7 @@ export var deserializeAws_json1_1ListResourcesForWebACLCommand = function (outpu
2822
2856
  });
2823
2857
  }); };
2824
2858
  var deserializeAws_json1_1ListResourcesForWebACLCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2825
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2859
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2826
2860
  var _c;
2827
2861
  return __generator(this, function (_d) {
2828
2862
  switch (_d.label) {
@@ -2832,7 +2866,6 @@ var deserializeAws_json1_1ListResourcesForWebACLCommandError = function (output,
2832
2866
  return [4, parseBody(output.body, context)];
2833
2867
  case 1:
2834
2868
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2835
- errorCode = "UnknownError";
2836
2869
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2837
2870
  _b = errorCode;
2838
2871
  switch (_b) {
@@ -2856,10 +2889,12 @@ var deserializeAws_json1_1ListResourcesForWebACLCommandError = function (output,
2856
2889
  case 9: throw _d.sent();
2857
2890
  case 10:
2858
2891
  parsedBody = parsedOutput.body;
2892
+ $metadata = deserializeMetadata(output);
2893
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2859
2894
  response = new __BaseException({
2860
- name: parsedBody.code || parsedBody.Code || errorCode,
2895
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2861
2896
  $fault: "client",
2862
- $metadata: deserializeMetadata(output),
2897
+ $metadata: $metadata,
2863
2898
  });
2864
2899
  throw __decorateServiceException(response, parsedBody);
2865
2900
  }
@@ -2884,7 +2919,7 @@ export var deserializeAws_json1_1ListRuleGroupsCommand = function (output, conte
2884
2919
  });
2885
2920
  }); };
2886
2921
  var deserializeAws_json1_1ListRuleGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2887
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2922
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2888
2923
  var _c;
2889
2924
  return __generator(this, function (_d) {
2890
2925
  switch (_d.label) {
@@ -2894,7 +2929,6 @@ var deserializeAws_json1_1ListRuleGroupsCommandError = function (output, context
2894
2929
  return [4, parseBody(output.body, context)];
2895
2930
  case 1:
2896
2931
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2897
- errorCode = "UnknownError";
2898
2932
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2899
2933
  _b = errorCode;
2900
2934
  switch (_b) {
@@ -2914,10 +2948,12 @@ var deserializeAws_json1_1ListRuleGroupsCommandError = function (output, context
2914
2948
  case 7: throw _d.sent();
2915
2949
  case 8:
2916
2950
  parsedBody = parsedOutput.body;
2951
+ $metadata = deserializeMetadata(output);
2952
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2917
2953
  response = new __BaseException({
2918
- name: parsedBody.code || parsedBody.Code || errorCode,
2954
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2919
2955
  $fault: "client",
2920
- $metadata: deserializeMetadata(output),
2956
+ $metadata: $metadata,
2921
2957
  });
2922
2958
  throw __decorateServiceException(response, parsedBody);
2923
2959
  }
@@ -2942,7 +2978,7 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
2942
2978
  });
2943
2979
  }); };
2944
2980
  var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2945
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
2981
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
2946
2982
  var _c;
2947
2983
  return __generator(this, function (_d) {
2948
2984
  switch (_d.label) {
@@ -2952,7 +2988,6 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
2952
2988
  return [4, parseBody(output.body, context)];
2953
2989
  case 1:
2954
2990
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2955
- errorCode = "UnknownError";
2956
2991
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2957
2992
  _b = errorCode;
2958
2993
  switch (_b) {
@@ -2984,10 +3019,12 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
2984
3019
  case 13: throw _d.sent();
2985
3020
  case 14:
2986
3021
  parsedBody = parsedOutput.body;
3022
+ $metadata = deserializeMetadata(output);
3023
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2987
3024
  response = new __BaseException({
2988
- name: parsedBody.code || parsedBody.Code || errorCode,
3025
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2989
3026
  $fault: "client",
2990
- $metadata: deserializeMetadata(output),
3027
+ $metadata: $metadata,
2991
3028
  });
2992
3029
  throw __decorateServiceException(response, parsedBody);
2993
3030
  }
@@ -3012,7 +3049,7 @@ export var deserializeAws_json1_1ListWebACLsCommand = function (output, context)
3012
3049
  });
3013
3050
  }); };
3014
3051
  var deserializeAws_json1_1ListWebACLsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3015
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3052
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3016
3053
  var _c;
3017
3054
  return __generator(this, function (_d) {
3018
3055
  switch (_d.label) {
@@ -3022,7 +3059,6 @@ var deserializeAws_json1_1ListWebACLsCommandError = function (output, context) {
3022
3059
  return [4, parseBody(output.body, context)];
3023
3060
  case 1:
3024
3061
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3025
- errorCode = "UnknownError";
3026
3062
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3027
3063
  _b = errorCode;
3028
3064
  switch (_b) {
@@ -3042,10 +3078,12 @@ var deserializeAws_json1_1ListWebACLsCommandError = function (output, context) {
3042
3078
  case 7: throw _d.sent();
3043
3079
  case 8:
3044
3080
  parsedBody = parsedOutput.body;
3081
+ $metadata = deserializeMetadata(output);
3082
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3045
3083
  response = new __BaseException({
3046
- name: parsedBody.code || parsedBody.Code || errorCode,
3084
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3047
3085
  $fault: "client",
3048
- $metadata: deserializeMetadata(output),
3086
+ $metadata: $metadata,
3049
3087
  });
3050
3088
  throw __decorateServiceException(response, parsedBody);
3051
3089
  }
@@ -3070,7 +3108,7 @@ export var deserializeAws_json1_1PutLoggingConfigurationCommand = function (outp
3070
3108
  });
3071
3109
  }); };
3072
3110
  var deserializeAws_json1_1PutLoggingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3073
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3111
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3074
3112
  var _c;
3075
3113
  return __generator(this, function (_d) {
3076
3114
  switch (_d.label) {
@@ -3080,7 +3118,6 @@ var deserializeAws_json1_1PutLoggingConfigurationCommandError = function (output
3080
3118
  return [4, parseBody(output.body, context)];
3081
3119
  case 1:
3082
3120
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3083
- errorCode = "UnknownError";
3084
3121
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3085
3122
  _b = errorCode;
3086
3123
  switch (_b) {
@@ -3120,10 +3157,12 @@ var deserializeAws_json1_1PutLoggingConfigurationCommandError = function (output
3120
3157
  case 17: throw _d.sent();
3121
3158
  case 18:
3122
3159
  parsedBody = parsedOutput.body;
3160
+ $metadata = deserializeMetadata(output);
3161
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3123
3162
  response = new __BaseException({
3124
- name: parsedBody.code || parsedBody.Code || errorCode,
3163
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3125
3164
  $fault: "client",
3126
- $metadata: deserializeMetadata(output),
3165
+ $metadata: $metadata,
3127
3166
  });
3128
3167
  throw __decorateServiceException(response, parsedBody);
3129
3168
  }
@@ -3148,7 +3187,7 @@ export var deserializeAws_json1_1PutManagedRuleSetVersionsCommand = function (ou
3148
3187
  });
3149
3188
  }); };
3150
3189
  var deserializeAws_json1_1PutManagedRuleSetVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3151
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3190
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3152
3191
  var _c;
3153
3192
  return __generator(this, function (_d) {
3154
3193
  switch (_d.label) {
@@ -3158,7 +3197,6 @@ var deserializeAws_json1_1PutManagedRuleSetVersionsCommandError = function (outp
3158
3197
  return [4, parseBody(output.body, context)];
3159
3198
  case 1:
3160
3199
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3161
- errorCode = "UnknownError";
3162
3200
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3163
3201
  _b = errorCode;
3164
3202
  switch (_b) {
@@ -3186,10 +3224,12 @@ var deserializeAws_json1_1PutManagedRuleSetVersionsCommandError = function (outp
3186
3224
  case 11: throw _d.sent();
3187
3225
  case 12:
3188
3226
  parsedBody = parsedOutput.body;
3227
+ $metadata = deserializeMetadata(output);
3228
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3189
3229
  response = new __BaseException({
3190
- name: parsedBody.code || parsedBody.Code || errorCode,
3230
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3191
3231
  $fault: "client",
3192
- $metadata: deserializeMetadata(output),
3232
+ $metadata: $metadata,
3193
3233
  });
3194
3234
  throw __decorateServiceException(response, parsedBody);
3195
3235
  }
@@ -3214,7 +3254,7 @@ export var deserializeAws_json1_1PutPermissionPolicyCommand = function (output,
3214
3254
  });
3215
3255
  }); };
3216
3256
  var deserializeAws_json1_1PutPermissionPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3217
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3257
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3218
3258
  var _c;
3219
3259
  return __generator(this, function (_d) {
3220
3260
  switch (_d.label) {
@@ -3224,7 +3264,6 @@ var deserializeAws_json1_1PutPermissionPolicyCommandError = function (output, co
3224
3264
  return [4, parseBody(output.body, context)];
3225
3265
  case 1:
3226
3266
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3227
- errorCode = "UnknownError";
3228
3267
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3229
3268
  _b = errorCode;
3230
3269
  switch (_b) {
@@ -3248,10 +3287,12 @@ var deserializeAws_json1_1PutPermissionPolicyCommandError = function (output, co
3248
3287
  case 9: throw _d.sent();
3249
3288
  case 10:
3250
3289
  parsedBody = parsedOutput.body;
3290
+ $metadata = deserializeMetadata(output);
3291
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3251
3292
  response = new __BaseException({
3252
- name: parsedBody.code || parsedBody.Code || errorCode,
3293
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3253
3294
  $fault: "client",
3254
- $metadata: deserializeMetadata(output),
3295
+ $metadata: $metadata,
3255
3296
  });
3256
3297
  throw __decorateServiceException(response, parsedBody);
3257
3298
  }
@@ -3276,7 +3317,7 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
3276
3317
  });
3277
3318
  }); };
3278
3319
  var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3279
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3320
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3280
3321
  var _c;
3281
3322
  return __generator(this, function (_d) {
3282
3323
  switch (_d.label) {
@@ -3286,7 +3327,6 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
3286
3327
  return [4, parseBody(output.body, context)];
3287
3328
  case 1:
3288
3329
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3289
- errorCode = "UnknownError";
3290
3330
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3291
3331
  _b = errorCode;
3292
3332
  switch (_b) {
@@ -3322,10 +3362,12 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
3322
3362
  case 15: throw _d.sent();
3323
3363
  case 16:
3324
3364
  parsedBody = parsedOutput.body;
3365
+ $metadata = deserializeMetadata(output);
3366
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3325
3367
  response = new __BaseException({
3326
- name: parsedBody.code || parsedBody.Code || errorCode,
3368
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3327
3369
  $fault: "client",
3328
- $metadata: deserializeMetadata(output),
3370
+ $metadata: $metadata,
3329
3371
  });
3330
3372
  throw __decorateServiceException(response, parsedBody);
3331
3373
  }
@@ -3350,7 +3392,7 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
3350
3392
  });
3351
3393
  }); };
3352
3394
  var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3353
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3395
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3354
3396
  var _c;
3355
3397
  return __generator(this, function (_d) {
3356
3398
  switch (_d.label) {
@@ -3360,7 +3402,6 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
3360
3402
  return [4, parseBody(output.body, context)];
3361
3403
  case 1:
3362
3404
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3363
- errorCode = "UnknownError";
3364
3405
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3365
3406
  _b = errorCode;
3366
3407
  switch (_b) {
@@ -3392,10 +3433,12 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
3392
3433
  case 13: throw _d.sent();
3393
3434
  case 14:
3394
3435
  parsedBody = parsedOutput.body;
3436
+ $metadata = deserializeMetadata(output);
3437
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3395
3438
  response = new __BaseException({
3396
- name: parsedBody.code || parsedBody.Code || errorCode,
3439
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3397
3440
  $fault: "client",
3398
- $metadata: deserializeMetadata(output),
3441
+ $metadata: $metadata,
3399
3442
  });
3400
3443
  throw __decorateServiceException(response, parsedBody);
3401
3444
  }
@@ -3420,7 +3463,7 @@ export var deserializeAws_json1_1UpdateIPSetCommand = function (output, context)
3420
3463
  });
3421
3464
  }); };
3422
3465
  var deserializeAws_json1_1UpdateIPSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3423
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3466
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3424
3467
  var _c;
3425
3468
  return __generator(this, function (_d) {
3426
3469
  switch (_d.label) {
@@ -3430,7 +3473,6 @@ var deserializeAws_json1_1UpdateIPSetCommandError = function (output, context) {
3430
3473
  return [4, parseBody(output.body, context)];
3431
3474
  case 1:
3432
3475
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3433
- errorCode = "UnknownError";
3434
3476
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3435
3477
  _b = errorCode;
3436
3478
  switch (_b) {
@@ -3466,10 +3508,12 @@ var deserializeAws_json1_1UpdateIPSetCommandError = function (output, context) {
3466
3508
  case 15: throw _d.sent();
3467
3509
  case 16:
3468
3510
  parsedBody = parsedOutput.body;
3511
+ $metadata = deserializeMetadata(output);
3512
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3469
3513
  response = new __BaseException({
3470
- name: parsedBody.code || parsedBody.Code || errorCode,
3514
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3471
3515
  $fault: "client",
3472
- $metadata: deserializeMetadata(output),
3516
+ $metadata: $metadata,
3473
3517
  });
3474
3518
  throw __decorateServiceException(response, parsedBody);
3475
3519
  }
@@ -3494,7 +3538,7 @@ export var deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateCommand =
3494
3538
  });
3495
3539
  }); };
3496
3540
  var deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3497
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3541
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3498
3542
  var _c;
3499
3543
  return __generator(this, function (_d) {
3500
3544
  switch (_d.label) {
@@ -3504,7 +3548,6 @@ var deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateCommandError = fu
3504
3548
  return [4, parseBody(output.body, context)];
3505
3549
  case 1:
3506
3550
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3507
- errorCode = "UnknownError";
3508
3551
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3509
3552
  _b = errorCode;
3510
3553
  switch (_b) {
@@ -3532,10 +3575,12 @@ var deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateCommandError = fu
3532
3575
  case 11: throw _d.sent();
3533
3576
  case 12:
3534
3577
  parsedBody = parsedOutput.body;
3578
+ $metadata = deserializeMetadata(output);
3579
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3535
3580
  response = new __BaseException({
3536
- name: parsedBody.code || parsedBody.Code || errorCode,
3581
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3537
3582
  $fault: "client",
3538
- $metadata: deserializeMetadata(output),
3583
+ $metadata: $metadata,
3539
3584
  });
3540
3585
  throw __decorateServiceException(response, parsedBody);
3541
3586
  }
@@ -3560,7 +3605,7 @@ export var deserializeAws_json1_1UpdateRegexPatternSetCommand = function (output
3560
3605
  });
3561
3606
  }); };
3562
3607
  var deserializeAws_json1_1UpdateRegexPatternSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3563
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3608
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3564
3609
  var _c;
3565
3610
  return __generator(this, function (_d) {
3566
3611
  switch (_d.label) {
@@ -3570,7 +3615,6 @@ var deserializeAws_json1_1UpdateRegexPatternSetCommandError = function (output,
3570
3615
  return [4, parseBody(output.body, context)];
3571
3616
  case 1:
3572
3617
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3573
- errorCode = "UnknownError";
3574
3618
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3575
3619
  _b = errorCode;
3576
3620
  switch (_b) {
@@ -3606,10 +3650,12 @@ var deserializeAws_json1_1UpdateRegexPatternSetCommandError = function (output,
3606
3650
  case 15: throw _d.sent();
3607
3651
  case 16:
3608
3652
  parsedBody = parsedOutput.body;
3653
+ $metadata = deserializeMetadata(output);
3654
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3609
3655
  response = new __BaseException({
3610
- name: parsedBody.code || parsedBody.Code || errorCode,
3656
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3611
3657
  $fault: "client",
3612
- $metadata: deserializeMetadata(output),
3658
+ $metadata: $metadata,
3613
3659
  });
3614
3660
  throw __decorateServiceException(response, parsedBody);
3615
3661
  }
@@ -3634,7 +3680,7 @@ export var deserializeAws_json1_1UpdateRuleGroupCommand = function (output, cont
3634
3680
  });
3635
3681
  }); };
3636
3682
  var deserializeAws_json1_1UpdateRuleGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3637
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3683
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3638
3684
  var _c;
3639
3685
  return __generator(this, function (_d) {
3640
3686
  switch (_d.label) {
@@ -3644,7 +3690,6 @@ var deserializeAws_json1_1UpdateRuleGroupCommandError = function (output, contex
3644
3690
  return [4, parseBody(output.body, context)];
3645
3691
  case 1:
3646
3692
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3647
- errorCode = "UnknownError";
3648
3693
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3649
3694
  _b = errorCode;
3650
3695
  switch (_b) {
@@ -3692,10 +3737,12 @@ var deserializeAws_json1_1UpdateRuleGroupCommandError = function (output, contex
3692
3737
  case 21: throw _d.sent();
3693
3738
  case 22:
3694
3739
  parsedBody = parsedOutput.body;
3740
+ $metadata = deserializeMetadata(output);
3741
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3695
3742
  response = new __BaseException({
3696
- name: parsedBody.code || parsedBody.Code || errorCode,
3743
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3697
3744
  $fault: "client",
3698
- $metadata: deserializeMetadata(output),
3745
+ $metadata: $metadata,
3699
3746
  });
3700
3747
  throw __decorateServiceException(response, parsedBody);
3701
3748
  }
@@ -3720,7 +3767,7 @@ export var deserializeAws_json1_1UpdateWebACLCommand = function (output, context
3720
3767
  });
3721
3768
  }); };
3722
3769
  var deserializeAws_json1_1UpdateWebACLCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3723
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
3770
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
3724
3771
  var _c;
3725
3772
  return __generator(this, function (_d) {
3726
3773
  switch (_d.label) {
@@ -3730,7 +3777,6 @@ var deserializeAws_json1_1UpdateWebACLCommandError = function (output, context)
3730
3777
  return [4, parseBody(output.body, context)];
3731
3778
  case 1:
3732
3779
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3733
- errorCode = "UnknownError";
3734
3780
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3735
3781
  _b = errorCode;
3736
3782
  switch (_b) {
@@ -3786,10 +3832,12 @@ var deserializeAws_json1_1UpdateWebACLCommandError = function (output, context)
3786
3832
  case 25: throw _d.sent();
3787
3833
  case 26:
3788
3834
  parsedBody = parsedOutput.body;
3835
+ $metadata = deserializeMetadata(output);
3836
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3789
3837
  response = new __BaseException({
3790
- name: parsedBody.code || parsedBody.Code || errorCode,
3838
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3791
3839
  $fault: "client",
3792
- $metadata: deserializeMetadata(output),
3840
+ $metadata: $metadata,
3793
3841
  });
3794
3842
  throw __decorateServiceException(response, parsedBody);
3795
3843
  }
@@ -3958,14 +4006,13 @@ var deserializeAws_json1_1WAFUnavailableEntityExceptionResponse = function (pars
3958
4006
  });
3959
4007
  }); };
3960
4008
  var serializeAws_json1_1ActionCondition = function (input, context) {
3961
- return __assign({}, (input.Action !== undefined && input.Action !== null && { Action: input.Action }));
4009
+ return __assign({}, (input.Action != null && { Action: input.Action }));
3962
4010
  };
3963
4011
  var serializeAws_json1_1All = function (input, context) {
3964
4012
  return {};
3965
4013
  };
3966
4014
  var serializeAws_json1_1AllowAction = function (input, context) {
3967
- return __assign({}, (input.CustomRequestHandling !== undefined &&
3968
- input.CustomRequestHandling !== null && {
4015
+ return __assign({}, (input.CustomRequestHandling != null && {
3969
4016
  CustomRequestHandling: serializeAws_json1_1CustomRequestHandling(input.CustomRequestHandling, context),
3970
4017
  }));
3971
4018
  };
@@ -3973,53 +4020,41 @@ var serializeAws_json1_1AllQueryArguments = function (input, context) {
3973
4020
  return {};
3974
4021
  };
3975
4022
  var serializeAws_json1_1AndStatement = function (input, context) {
3976
- return __assign({}, (input.Statements !== undefined &&
3977
- input.Statements !== null && { Statements: serializeAws_json1_1Statements(input.Statements, context) }));
4023
+ return __assign({}, (input.Statements != null && { Statements: serializeAws_json1_1Statements(input.Statements, context) }));
3978
4024
  };
3979
4025
  var serializeAws_json1_1AssociateWebACLRequest = function (input, context) {
3980
- return __assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.WebACLArn !== undefined && input.WebACLArn !== null && { WebACLArn: input.WebACLArn }));
4026
+ return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.WebACLArn != null && { WebACLArn: input.WebACLArn }));
3981
4027
  };
3982
4028
  var serializeAws_json1_1BlockAction = function (input, context) {
3983
- return __assign({}, (input.CustomResponse !== undefined &&
3984
- input.CustomResponse !== null && {
4029
+ return __assign({}, (input.CustomResponse != null && {
3985
4030
  CustomResponse: serializeAws_json1_1CustomResponse(input.CustomResponse, context),
3986
4031
  }));
3987
4032
  };
3988
4033
  var serializeAws_json1_1Body = function (input, context) {
3989
- return __assign({}, (input.OversizeHandling !== undefined &&
3990
- input.OversizeHandling !== null && { OversizeHandling: input.OversizeHandling }));
4034
+ return __assign({}, (input.OversizeHandling != null && { OversizeHandling: input.OversizeHandling }));
3991
4035
  };
3992
4036
  var serializeAws_json1_1ByteMatchStatement = function (input, context) {
3993
- return __assign(__assign(__assign(__assign({}, (input.FieldToMatch !== undefined &&
3994
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.PositionalConstraint !== undefined &&
3995
- input.PositionalConstraint !== null && { PositionalConstraint: input.PositionalConstraint })), (input.SearchString !== undefined &&
3996
- input.SearchString !== null && { SearchString: context.base64Encoder(input.SearchString) })), (input.TextTransformations !== undefined &&
3997
- input.TextTransformations !== null && {
4037
+ return __assign(__assign(__assign(__assign({}, (input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.PositionalConstraint != null && { PositionalConstraint: input.PositionalConstraint })), (input.SearchString != null && { SearchString: context.base64Encoder(input.SearchString) })), (input.TextTransformations != null && {
3998
4038
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
3999
4039
  }));
4000
4040
  };
4001
4041
  var serializeAws_json1_1CaptchaAction = function (input, context) {
4002
- return __assign({}, (input.CustomRequestHandling !== undefined &&
4003
- input.CustomRequestHandling !== null && {
4042
+ return __assign({}, (input.CustomRequestHandling != null && {
4004
4043
  CustomRequestHandling: serializeAws_json1_1CustomRequestHandling(input.CustomRequestHandling, context),
4005
4044
  }));
4006
4045
  };
4007
4046
  var serializeAws_json1_1CaptchaConfig = function (input, context) {
4008
- return __assign({}, (input.ImmunityTimeProperty !== undefined &&
4009
- input.ImmunityTimeProperty !== null && {
4047
+ return __assign({}, (input.ImmunityTimeProperty != null && {
4010
4048
  ImmunityTimeProperty: serializeAws_json1_1ImmunityTimeProperty(input.ImmunityTimeProperty, context),
4011
4049
  }));
4012
4050
  };
4013
4051
  var serializeAws_json1_1CheckCapacityRequest = function (input, context) {
4014
- return __assign(__assign({}, (input.Rules !== undefined &&
4015
- input.Rules !== null && { Rules: serializeAws_json1_1Rules(input.Rules, context) })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4052
+ return __assign(__assign({}, (input.Rules != null && { Rules: serializeAws_json1_1Rules(input.Rules, context) })), (input.Scope != null && { Scope: input.Scope }));
4016
4053
  };
4017
4054
  var serializeAws_json1_1Condition = function (input, context) {
4018
- return __assign(__assign({}, (input.ActionCondition !== undefined &&
4019
- input.ActionCondition !== null && {
4055
+ return __assign(__assign({}, (input.ActionCondition != null && {
4020
4056
  ActionCondition: serializeAws_json1_1ActionCondition(input.ActionCondition, context),
4021
- })), (input.LabelNameCondition !== undefined &&
4022
- input.LabelNameCondition !== null && {
4057
+ })), (input.LabelNameCondition != null && {
4023
4058
  LabelNameCondition: serializeAws_json1_1LabelNameCondition(input.LabelNameCondition, context),
4024
4059
  }));
4025
4060
  };
@@ -4034,11 +4069,9 @@ var serializeAws_json1_1Conditions = function (input, context) {
4034
4069
  });
4035
4070
  };
4036
4071
  var serializeAws_json1_1CookieMatchPattern = function (input, context) {
4037
- return __assign(__assign(__assign({}, (input.All !== undefined && input.All !== null && { All: serializeAws_json1_1All(input.All, context) })), (input.ExcludedCookies !== undefined &&
4038
- input.ExcludedCookies !== null && {
4072
+ return __assign(__assign(__assign({}, (input.All != null && { All: serializeAws_json1_1All(input.All, context) })), (input.ExcludedCookies != null && {
4039
4073
  ExcludedCookies: serializeAws_json1_1CookieNames(input.ExcludedCookies, context),
4040
- })), (input.IncludedCookies !== undefined &&
4041
- input.IncludedCookies !== null && {
4074
+ })), (input.IncludedCookies != null && {
4042
4075
  IncludedCookies: serializeAws_json1_1CookieNames(input.IncludedCookies, context),
4043
4076
  }));
4044
4077
  };
@@ -4053,15 +4086,12 @@ var serializeAws_json1_1CookieNames = function (input, context) {
4053
4086
  });
4054
4087
  };
4055
4088
  var serializeAws_json1_1Cookies = function (input, context) {
4056
- return __assign(__assign(__assign({}, (input.MatchPattern !== undefined &&
4057
- input.MatchPattern !== null && {
4089
+ return __assign(__assign(__assign({}, (input.MatchPattern != null && {
4058
4090
  MatchPattern: serializeAws_json1_1CookieMatchPattern(input.MatchPattern, context),
4059
- })), (input.MatchScope !== undefined && input.MatchScope !== null && { MatchScope: input.MatchScope })), (input.OversizeHandling !== undefined &&
4060
- input.OversizeHandling !== null && { OversizeHandling: input.OversizeHandling }));
4091
+ })), (input.MatchScope != null && { MatchScope: input.MatchScope })), (input.OversizeHandling != null && { OversizeHandling: input.OversizeHandling }));
4061
4092
  };
4062
4093
  var serializeAws_json1_1CountAction = function (input, context) {
4063
- return __assign({}, (input.CustomRequestHandling !== undefined &&
4064
- input.CustomRequestHandling !== null && {
4094
+ return __assign({}, (input.CustomRequestHandling != null && {
4065
4095
  CustomRequestHandling: serializeAws_json1_1CustomRequestHandling(input.CustomRequestHandling, context),
4066
4096
  }));
4067
4097
  };
@@ -4076,44 +4106,33 @@ var serializeAws_json1_1CountryCodes = function (input, context) {
4076
4106
  });
4077
4107
  };
4078
4108
  var serializeAws_json1_1CreateIPSetRequest = function (input, context) {
4079
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Addresses !== undefined &&
4080
- input.Addresses !== null && { Addresses: serializeAws_json1_1IPAddresses(input.Addresses, context) })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.IPAddressVersion !== undefined &&
4081
- input.IPAddressVersion !== null && { IPAddressVersion: input.IPAddressVersion })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
4109
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Addresses != null && { Addresses: serializeAws_json1_1IPAddresses(input.Addresses, context) })), (input.Description != null && { Description: input.Description })), (input.IPAddressVersion != null && { IPAddressVersion: input.IPAddressVersion })), (input.Name != null && { Name: input.Name })), (input.Scope != null && { Scope: input.Scope })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
4082
4110
  };
4083
4111
  var serializeAws_json1_1CreateRegexPatternSetRequest = function (input, context) {
4084
- return __assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RegularExpressionList !== undefined &&
4085
- input.RegularExpressionList !== null && {
4112
+ return __assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.RegularExpressionList != null && {
4086
4113
  RegularExpressionList: serializeAws_json1_1RegularExpressionList(input.RegularExpressionList, context),
4087
- })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
4114
+ })), (input.Scope != null && { Scope: input.Scope })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
4088
4115
  };
4089
4116
  var serializeAws_json1_1CreateRuleGroupRequest = function (input, context) {
4090
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Capacity !== undefined && input.Capacity !== null && { Capacity: input.Capacity })), (input.CustomResponseBodies !== undefined &&
4091
- input.CustomResponseBodies !== null && {
4117
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Capacity != null && { Capacity: input.Capacity })), (input.CustomResponseBodies != null && {
4092
4118
  CustomResponseBodies: serializeAws_json1_1CustomResponseBodies(input.CustomResponseBodies, context),
4093
- })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Rules !== undefined &&
4094
- input.Rules !== null && { Rules: serializeAws_json1_1Rules(input.Rules, context) })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VisibilityConfig !== undefined &&
4095
- input.VisibilityConfig !== null && {
4119
+ })), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Rules != null && { Rules: serializeAws_json1_1Rules(input.Rules, context) })), (input.Scope != null && { Scope: input.Scope })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VisibilityConfig != null && {
4096
4120
  VisibilityConfig: serializeAws_json1_1VisibilityConfig(input.VisibilityConfig, context),
4097
4121
  }));
4098
4122
  };
4099
4123
  var serializeAws_json1_1CreateWebACLRequest = function (input, context) {
4100
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CaptchaConfig !== undefined &&
4101
- input.CaptchaConfig !== null && {
4124
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CaptchaConfig != null && {
4102
4125
  CaptchaConfig: serializeAws_json1_1CaptchaConfig(input.CaptchaConfig, context),
4103
- })), (input.CustomResponseBodies !== undefined &&
4104
- input.CustomResponseBodies !== null && {
4126
+ })), (input.CustomResponseBodies != null && {
4105
4127
  CustomResponseBodies: serializeAws_json1_1CustomResponseBodies(input.CustomResponseBodies, context),
4106
- })), (input.DefaultAction !== undefined &&
4107
- input.DefaultAction !== null && {
4128
+ })), (input.DefaultAction != null && {
4108
4129
  DefaultAction: serializeAws_json1_1DefaultAction(input.DefaultAction, context),
4109
- })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Rules !== undefined &&
4110
- input.Rules !== null && { Rules: serializeAws_json1_1Rules(input.Rules, context) })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VisibilityConfig !== undefined &&
4111
- input.VisibilityConfig !== null && {
4130
+ })), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Rules != null && { Rules: serializeAws_json1_1Rules(input.Rules, context) })), (input.Scope != null && { Scope: input.Scope })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.VisibilityConfig != null && {
4112
4131
  VisibilityConfig: serializeAws_json1_1VisibilityConfig(input.VisibilityConfig, context),
4113
4132
  }));
4114
4133
  };
4115
4134
  var serializeAws_json1_1CustomHTTPHeader = function (input, context) {
4116
- return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
4135
+ return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Value != null && { Value: input.Value }));
4117
4136
  };
4118
4137
  var serializeAws_json1_1CustomHTTPHeaders = function (input, context) {
4119
4138
  return input
@@ -4126,15 +4145,12 @@ var serializeAws_json1_1CustomHTTPHeaders = function (input, context) {
4126
4145
  });
4127
4146
  };
4128
4147
  var serializeAws_json1_1CustomRequestHandling = function (input, context) {
4129
- return __assign({}, (input.InsertHeaders !== undefined &&
4130
- input.InsertHeaders !== null && {
4148
+ return __assign({}, (input.InsertHeaders != null && {
4131
4149
  InsertHeaders: serializeAws_json1_1CustomHTTPHeaders(input.InsertHeaders, context),
4132
4150
  }));
4133
4151
  };
4134
4152
  var serializeAws_json1_1CustomResponse = function (input, context) {
4135
- return __assign(__assign(__assign({}, (input.CustomResponseBodyKey !== undefined &&
4136
- input.CustomResponseBodyKey !== null && { CustomResponseBodyKey: input.CustomResponseBodyKey })), (input.ResponseCode !== undefined && input.ResponseCode !== null && { ResponseCode: input.ResponseCode })), (input.ResponseHeaders !== undefined &&
4137
- input.ResponseHeaders !== null && {
4153
+ return __assign(__assign(__assign({}, (input.CustomResponseBodyKey != null && { CustomResponseBodyKey: input.CustomResponseBodyKey })), (input.ResponseCode != null && { ResponseCode: input.ResponseCode })), (input.ResponseHeaders != null && {
4138
4154
  ResponseHeaders: serializeAws_json1_1CustomHTTPHeaders(input.ResponseHeaders, context),
4139
4155
  }));
4140
4156
  };
@@ -4149,43 +4165,40 @@ var serializeAws_json1_1CustomResponseBodies = function (input, context) {
4149
4165
  }, {});
4150
4166
  };
4151
4167
  var serializeAws_json1_1CustomResponseBody = function (input, context) {
4152
- return __assign(__assign({}, (input.Content !== undefined && input.Content !== null && { Content: input.Content })), (input.ContentType !== undefined && input.ContentType !== null && { ContentType: input.ContentType }));
4168
+ return __assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.ContentType != null && { ContentType: input.ContentType }));
4153
4169
  };
4154
4170
  var serializeAws_json1_1DefaultAction = function (input, context) {
4155
- return __assign(__assign({}, (input.Allow !== undefined &&
4156
- input.Allow !== null && { Allow: serializeAws_json1_1AllowAction(input.Allow, context) })), (input.Block !== undefined &&
4157
- input.Block !== null && { Block: serializeAws_json1_1BlockAction(input.Block, context) }));
4171
+ return __assign(__assign({}, (input.Allow != null && { Allow: serializeAws_json1_1AllowAction(input.Allow, context) })), (input.Block != null && { Block: serializeAws_json1_1BlockAction(input.Block, context) }));
4158
4172
  };
4159
4173
  var serializeAws_json1_1DeleteFirewallManagerRuleGroupsRequest = function (input, context) {
4160
- return __assign(__assign({}, (input.WebACLArn !== undefined && input.WebACLArn !== null && { WebACLArn: input.WebACLArn })), (input.WebACLLockToken !== undefined &&
4161
- input.WebACLLockToken !== null && { WebACLLockToken: input.WebACLLockToken }));
4174
+ return __assign(__assign({}, (input.WebACLArn != null && { WebACLArn: input.WebACLArn })), (input.WebACLLockToken != null && { WebACLLockToken: input.WebACLLockToken }));
4162
4175
  };
4163
4176
  var serializeAws_json1_1DeleteIPSetRequest = function (input, context) {
4164
- return __assign(__assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4177
+ return __assign(__assign(__assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.LockToken != null && { LockToken: input.LockToken })), (input.Name != null && { Name: input.Name })), (input.Scope != null && { Scope: input.Scope }));
4165
4178
  };
4166
4179
  var serializeAws_json1_1DeleteLoggingConfigurationRequest = function (input, context) {
4167
- return __assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
4180
+ return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
4168
4181
  };
4169
4182
  var serializeAws_json1_1DeletePermissionPolicyRequest = function (input, context) {
4170
- return __assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
4183
+ return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
4171
4184
  };
4172
4185
  var serializeAws_json1_1DeleteRegexPatternSetRequest = function (input, context) {
4173
- return __assign(__assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4186
+ return __assign(__assign(__assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.LockToken != null && { LockToken: input.LockToken })), (input.Name != null && { Name: input.Name })), (input.Scope != null && { Scope: input.Scope }));
4174
4187
  };
4175
4188
  var serializeAws_json1_1DeleteRuleGroupRequest = function (input, context) {
4176
- return __assign(__assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4189
+ return __assign(__assign(__assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.LockToken != null && { LockToken: input.LockToken })), (input.Name != null && { Name: input.Name })), (input.Scope != null && { Scope: input.Scope }));
4177
4190
  };
4178
4191
  var serializeAws_json1_1DeleteWebACLRequest = function (input, context) {
4179
- return __assign(__assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4192
+ return __assign(__assign(__assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.LockToken != null && { LockToken: input.LockToken })), (input.Name != null && { Name: input.Name })), (input.Scope != null && { Scope: input.Scope }));
4180
4193
  };
4181
4194
  var serializeAws_json1_1DescribeManagedRuleGroupRequest = function (input, context) {
4182
- return __assign(__assign(__assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope })), (input.VendorName !== undefined && input.VendorName !== null && { VendorName: input.VendorName })), (input.VersionName !== undefined && input.VersionName !== null && { VersionName: input.VersionName }));
4195
+ return __assign(__assign(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Scope != null && { Scope: input.Scope })), (input.VendorName != null && { VendorName: input.VendorName })), (input.VersionName != null && { VersionName: input.VersionName }));
4183
4196
  };
4184
4197
  var serializeAws_json1_1DisassociateWebACLRequest = function (input, context) {
4185
- return __assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
4198
+ return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
4186
4199
  };
4187
4200
  var serializeAws_json1_1ExcludedRule = function (input, context) {
4188
- return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
4201
+ return __assign({}, (input.Name != null && { Name: input.Name }));
4189
4202
  };
4190
4203
  var serializeAws_json1_1ExcludedRules = function (input, context) {
4191
4204
  return input
@@ -4198,24 +4211,14 @@ var serializeAws_json1_1ExcludedRules = function (input, context) {
4198
4211
  });
4199
4212
  };
4200
4213
  var serializeAws_json1_1FieldToMatch = function (input, context) {
4201
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllQueryArguments !== undefined &&
4202
- input.AllQueryArguments !== null && {
4214
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllQueryArguments != null && {
4203
4215
  AllQueryArguments: serializeAws_json1_1AllQueryArguments(input.AllQueryArguments, context),
4204
- })), (input.Body !== undefined && input.Body !== null && { Body: serializeAws_json1_1Body(input.Body, context) })), (input.Cookies !== undefined &&
4205
- input.Cookies !== null && { Cookies: serializeAws_json1_1Cookies(input.Cookies, context) })), (input.Headers !== undefined &&
4206
- input.Headers !== null && { Headers: serializeAws_json1_1Headers(input.Headers, context) })), (input.JsonBody !== undefined &&
4207
- input.JsonBody !== null && { JsonBody: serializeAws_json1_1JsonBody(input.JsonBody, context) })), (input.Method !== undefined &&
4208
- input.Method !== null && { Method: serializeAws_json1_1Method(input.Method, context) })), (input.QueryString !== undefined &&
4209
- input.QueryString !== null && { QueryString: serializeAws_json1_1QueryString(input.QueryString, context) })), (input.SingleHeader !== undefined &&
4210
- input.SingleHeader !== null && { SingleHeader: serializeAws_json1_1SingleHeader(input.SingleHeader, context) })), (input.SingleQueryArgument !== undefined &&
4211
- input.SingleQueryArgument !== null && {
4216
+ })), (input.Body != null && { Body: serializeAws_json1_1Body(input.Body, context) })), (input.Cookies != null && { Cookies: serializeAws_json1_1Cookies(input.Cookies, context) })), (input.Headers != null && { Headers: serializeAws_json1_1Headers(input.Headers, context) })), (input.JsonBody != null && { JsonBody: serializeAws_json1_1JsonBody(input.JsonBody, context) })), (input.Method != null && { Method: serializeAws_json1_1Method(input.Method, context) })), (input.QueryString != null && { QueryString: serializeAws_json1_1QueryString(input.QueryString, context) })), (input.SingleHeader != null && { SingleHeader: serializeAws_json1_1SingleHeader(input.SingleHeader, context) })), (input.SingleQueryArgument != null && {
4212
4217
  SingleQueryArgument: serializeAws_json1_1SingleQueryArgument(input.SingleQueryArgument, context),
4213
- })), (input.UriPath !== undefined &&
4214
- input.UriPath !== null && { UriPath: serializeAws_json1_1UriPath(input.UriPath, context) }));
4218
+ })), (input.UriPath != null && { UriPath: serializeAws_json1_1UriPath(input.UriPath, context) }));
4215
4219
  };
4216
4220
  var serializeAws_json1_1Filter = function (input, context) {
4217
- return __assign(__assign(__assign({}, (input.Behavior !== undefined && input.Behavior !== null && { Behavior: input.Behavior })), (input.Conditions !== undefined &&
4218
- input.Conditions !== null && { Conditions: serializeAws_json1_1Conditions(input.Conditions, context) })), (input.Requirement !== undefined && input.Requirement !== null && { Requirement: input.Requirement }));
4221
+ return __assign(__assign(__assign({}, (input.Behavior != null && { Behavior: input.Behavior })), (input.Conditions != null && { Conditions: serializeAws_json1_1Conditions(input.Conditions, context) })), (input.Requirement != null && { Requirement: input.Requirement }));
4219
4222
  };
4220
4223
  var serializeAws_json1_1Filters = function (input, context) {
4221
4224
  return input
@@ -4228,63 +4231,53 @@ var serializeAws_json1_1Filters = function (input, context) {
4228
4231
  });
4229
4232
  };
4230
4233
  var serializeAws_json1_1ForwardedIPConfig = function (input, context) {
4231
- return __assign(__assign({}, (input.FallbackBehavior !== undefined &&
4232
- input.FallbackBehavior !== null && { FallbackBehavior: input.FallbackBehavior })), (input.HeaderName !== undefined && input.HeaderName !== null && { HeaderName: input.HeaderName }));
4234
+ return __assign(__assign({}, (input.FallbackBehavior != null && { FallbackBehavior: input.FallbackBehavior })), (input.HeaderName != null && { HeaderName: input.HeaderName }));
4233
4235
  };
4234
4236
  var serializeAws_json1_1GenerateMobileSdkReleaseUrlRequest = function (input, context) {
4235
- return __assign(__assign({}, (input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform })), (input.ReleaseVersion !== undefined &&
4236
- input.ReleaseVersion !== null && { ReleaseVersion: input.ReleaseVersion }));
4237
+ return __assign(__assign({}, (input.Platform != null && { Platform: input.Platform })), (input.ReleaseVersion != null && { ReleaseVersion: input.ReleaseVersion }));
4237
4238
  };
4238
4239
  var serializeAws_json1_1GeoMatchStatement = function (input, context) {
4239
- return __assign(__assign({}, (input.CountryCodes !== undefined &&
4240
- input.CountryCodes !== null && { CountryCodes: serializeAws_json1_1CountryCodes(input.CountryCodes, context) })), (input.ForwardedIPConfig !== undefined &&
4241
- input.ForwardedIPConfig !== null && {
4240
+ return __assign(__assign({}, (input.CountryCodes != null && { CountryCodes: serializeAws_json1_1CountryCodes(input.CountryCodes, context) })), (input.ForwardedIPConfig != null && {
4242
4241
  ForwardedIPConfig: serializeAws_json1_1ForwardedIPConfig(input.ForwardedIPConfig, context),
4243
4242
  }));
4244
4243
  };
4245
4244
  var serializeAws_json1_1GetIPSetRequest = function (input, context) {
4246
- return __assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4245
+ return __assign(__assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.Name != null && { Name: input.Name })), (input.Scope != null && { Scope: input.Scope }));
4247
4246
  };
4248
4247
  var serializeAws_json1_1GetLoggingConfigurationRequest = function (input, context) {
4249
- return __assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
4248
+ return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
4250
4249
  };
4251
4250
  var serializeAws_json1_1GetManagedRuleSetRequest = function (input, context) {
4252
- return __assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4251
+ return __assign(__assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.Name != null && { Name: input.Name })), (input.Scope != null && { Scope: input.Scope }));
4253
4252
  };
4254
4253
  var serializeAws_json1_1GetMobileSdkReleaseRequest = function (input, context) {
4255
- return __assign(__assign({}, (input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform })), (input.ReleaseVersion !== undefined &&
4256
- input.ReleaseVersion !== null && { ReleaseVersion: input.ReleaseVersion }));
4254
+ return __assign(__assign({}, (input.Platform != null && { Platform: input.Platform })), (input.ReleaseVersion != null && { ReleaseVersion: input.ReleaseVersion }));
4257
4255
  };
4258
4256
  var serializeAws_json1_1GetPermissionPolicyRequest = function (input, context) {
4259
- return __assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
4257
+ return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
4260
4258
  };
4261
4259
  var serializeAws_json1_1GetRateBasedStatementManagedKeysRequest = function (input, context) {
4262
- return __assign(__assign(__assign(__assign(__assign({}, (input.RuleGroupRuleName !== undefined &&
4263
- input.RuleGroupRuleName !== null && { RuleGroupRuleName: input.RuleGroupRuleName })), (input.RuleName !== undefined && input.RuleName !== null && { RuleName: input.RuleName })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope })), (input.WebACLId !== undefined && input.WebACLId !== null && { WebACLId: input.WebACLId })), (input.WebACLName !== undefined && input.WebACLName !== null && { WebACLName: input.WebACLName }));
4260
+ return __assign(__assign(__assign(__assign(__assign({}, (input.RuleGroupRuleName != null && { RuleGroupRuleName: input.RuleGroupRuleName })), (input.RuleName != null && { RuleName: input.RuleName })), (input.Scope != null && { Scope: input.Scope })), (input.WebACLId != null && { WebACLId: input.WebACLId })), (input.WebACLName != null && { WebACLName: input.WebACLName }));
4264
4261
  };
4265
4262
  var serializeAws_json1_1GetRegexPatternSetRequest = function (input, context) {
4266
- return __assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4263
+ return __assign(__assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.Name != null && { Name: input.Name })), (input.Scope != null && { Scope: input.Scope }));
4267
4264
  };
4268
4265
  var serializeAws_json1_1GetRuleGroupRequest = function (input, context) {
4269
- return __assign(__assign(__assign(__assign({}, (input.ARN !== undefined && input.ARN !== null && { ARN: input.ARN })), (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4266
+ return __assign(__assign(__assign(__assign({}, (input.ARN != null && { ARN: input.ARN })), (input.Id != null && { Id: input.Id })), (input.Name != null && { Name: input.Name })), (input.Scope != null && { Scope: input.Scope }));
4270
4267
  };
4271
4268
  var serializeAws_json1_1GetSampledRequestsRequest = function (input, context) {
4272
- return __assign(__assign(__assign(__assign(__assign({}, (input.MaxItems !== undefined && input.MaxItems !== null && { MaxItems: input.MaxItems })), (input.RuleMetricName !== undefined &&
4273
- input.RuleMetricName !== null && { RuleMetricName: input.RuleMetricName })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope })), (input.TimeWindow !== undefined &&
4274
- input.TimeWindow !== null && { TimeWindow: serializeAws_json1_1TimeWindow(input.TimeWindow, context) })), (input.WebAclArn !== undefined && input.WebAclArn !== null && { WebAclArn: input.WebAclArn }));
4269
+ return __assign(__assign(__assign(__assign(__assign({}, (input.MaxItems != null && { MaxItems: input.MaxItems })), (input.RuleMetricName != null && { RuleMetricName: input.RuleMetricName })), (input.Scope != null && { Scope: input.Scope })), (input.TimeWindow != null && { TimeWindow: serializeAws_json1_1TimeWindow(input.TimeWindow, context) })), (input.WebAclArn != null && { WebAclArn: input.WebAclArn }));
4275
4270
  };
4276
4271
  var serializeAws_json1_1GetWebACLForResourceRequest = function (input, context) {
4277
- return __assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
4272
+ return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
4278
4273
  };
4279
4274
  var serializeAws_json1_1GetWebACLRequest = function (input, context) {
4280
- return __assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4275
+ return __assign(__assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.Name != null && { Name: input.Name })), (input.Scope != null && { Scope: input.Scope }));
4281
4276
  };
4282
4277
  var serializeAws_json1_1HeaderMatchPattern = function (input, context) {
4283
- return __assign(__assign(__assign({}, (input.All !== undefined && input.All !== null && { All: serializeAws_json1_1All(input.All, context) })), (input.ExcludedHeaders !== undefined &&
4284
- input.ExcludedHeaders !== null && {
4278
+ return __assign(__assign(__assign({}, (input.All != null && { All: serializeAws_json1_1All(input.All, context) })), (input.ExcludedHeaders != null && {
4285
4279
  ExcludedHeaders: serializeAws_json1_1HeaderNames(input.ExcludedHeaders, context),
4286
- })), (input.IncludedHeaders !== undefined &&
4287
- input.IncludedHeaders !== null && {
4280
+ })), (input.IncludedHeaders != null && {
4288
4281
  IncludedHeaders: serializeAws_json1_1HeaderNames(input.IncludedHeaders, context),
4289
4282
  }));
4290
4283
  };
@@ -4299,14 +4292,12 @@ var serializeAws_json1_1HeaderNames = function (input, context) {
4299
4292
  });
4300
4293
  };
4301
4294
  var serializeAws_json1_1Headers = function (input, context) {
4302
- return __assign(__assign(__assign({}, (input.MatchPattern !== undefined &&
4303
- input.MatchPattern !== null && {
4295
+ return __assign(__assign(__assign({}, (input.MatchPattern != null && {
4304
4296
  MatchPattern: serializeAws_json1_1HeaderMatchPattern(input.MatchPattern, context),
4305
- })), (input.MatchScope !== undefined && input.MatchScope !== null && { MatchScope: input.MatchScope })), (input.OversizeHandling !== undefined &&
4306
- input.OversizeHandling !== null && { OversizeHandling: input.OversizeHandling }));
4297
+ })), (input.MatchScope != null && { MatchScope: input.MatchScope })), (input.OversizeHandling != null && { OversizeHandling: input.OversizeHandling }));
4307
4298
  };
4308
4299
  var serializeAws_json1_1ImmunityTimeProperty = function (input, context) {
4309
- return __assign({}, (input.ImmunityTime !== undefined && input.ImmunityTime !== null && { ImmunityTime: input.ImmunityTime }));
4300
+ return __assign({}, (input.ImmunityTime != null && { ImmunityTime: input.ImmunityTime }));
4310
4301
  };
4311
4302
  var serializeAws_json1_1IPAddresses = function (input, context) {
4312
4303
  return input
@@ -4319,26 +4310,20 @@ var serializeAws_json1_1IPAddresses = function (input, context) {
4319
4310
  });
4320
4311
  };
4321
4312
  var serializeAws_json1_1IPSetForwardedIPConfig = function (input, context) {
4322
- return __assign(__assign(__assign({}, (input.FallbackBehavior !== undefined &&
4323
- input.FallbackBehavior !== null && { FallbackBehavior: input.FallbackBehavior })), (input.HeaderName !== undefined && input.HeaderName !== null && { HeaderName: input.HeaderName })), (input.Position !== undefined && input.Position !== null && { Position: input.Position }));
4313
+ return __assign(__assign(__assign({}, (input.FallbackBehavior != null && { FallbackBehavior: input.FallbackBehavior })), (input.HeaderName != null && { HeaderName: input.HeaderName })), (input.Position != null && { Position: input.Position }));
4324
4314
  };
4325
4315
  var serializeAws_json1_1IPSetReferenceStatement = function (input, context) {
4326
- return __assign(__assign({}, (input.ARN !== undefined && input.ARN !== null && { ARN: input.ARN })), (input.IPSetForwardedIPConfig !== undefined &&
4327
- input.IPSetForwardedIPConfig !== null && {
4316
+ return __assign(__assign({}, (input.ARN != null && { ARN: input.ARN })), (input.IPSetForwardedIPConfig != null && {
4328
4317
  IPSetForwardedIPConfig: serializeAws_json1_1IPSetForwardedIPConfig(input.IPSetForwardedIPConfig, context),
4329
4318
  }));
4330
4319
  };
4331
4320
  var serializeAws_json1_1JsonBody = function (input, context) {
4332
- return __assign(__assign(__assign(__assign({}, (input.InvalidFallbackBehavior !== undefined &&
4333
- input.InvalidFallbackBehavior !== null && { InvalidFallbackBehavior: input.InvalidFallbackBehavior })), (input.MatchPattern !== undefined &&
4334
- input.MatchPattern !== null && {
4321
+ return __assign(__assign(__assign(__assign({}, (input.InvalidFallbackBehavior != null && { InvalidFallbackBehavior: input.InvalidFallbackBehavior })), (input.MatchPattern != null && {
4335
4322
  MatchPattern: serializeAws_json1_1JsonMatchPattern(input.MatchPattern, context),
4336
- })), (input.MatchScope !== undefined && input.MatchScope !== null && { MatchScope: input.MatchScope })), (input.OversizeHandling !== undefined &&
4337
- input.OversizeHandling !== null && { OversizeHandling: input.OversizeHandling }));
4323
+ })), (input.MatchScope != null && { MatchScope: input.MatchScope })), (input.OversizeHandling != null && { OversizeHandling: input.OversizeHandling }));
4338
4324
  };
4339
4325
  var serializeAws_json1_1JsonMatchPattern = function (input, context) {
4340
- return __assign(__assign({}, (input.All !== undefined && input.All !== null && { All: serializeAws_json1_1All(input.All, context) })), (input.IncludedPaths !== undefined &&
4341
- input.IncludedPaths !== null && {
4326
+ return __assign(__assign({}, (input.All != null && { All: serializeAws_json1_1All(input.All, context) })), (input.IncludedPaths != null && {
4342
4327
  IncludedPaths: serializeAws_json1_1JsonPointerPaths(input.IncludedPaths, context),
4343
4328
  }));
4344
4329
  };
@@ -4353,13 +4338,13 @@ var serializeAws_json1_1JsonPointerPaths = function (input, context) {
4353
4338
  });
4354
4339
  };
4355
4340
  var serializeAws_json1_1Label = function (input, context) {
4356
- return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
4341
+ return __assign({}, (input.Name != null && { Name: input.Name }));
4357
4342
  };
4358
4343
  var serializeAws_json1_1LabelMatchStatement = function (input, context) {
4359
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4344
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Scope != null && { Scope: input.Scope }));
4360
4345
  };
4361
4346
  var serializeAws_json1_1LabelNameCondition = function (input, context) {
4362
- return __assign({}, (input.LabelName !== undefined && input.LabelName !== null && { LabelName: input.LabelName }));
4347
+ return __assign({}, (input.LabelName != null && { LabelName: input.LabelName }));
4363
4348
  };
4364
4349
  var serializeAws_json1_1Labels = function (input, context) {
4365
4350
  return input
@@ -4372,37 +4357,37 @@ var serializeAws_json1_1Labels = function (input, context) {
4372
4357
  });
4373
4358
  };
4374
4359
  var serializeAws_json1_1ListAvailableManagedRuleGroupsRequest = function (input, context) {
4375
- return __assign(__assign(__assign({}, (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4360
+ return __assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker })), (input.Scope != null && { Scope: input.Scope }));
4376
4361
  };
4377
4362
  var serializeAws_json1_1ListAvailableManagedRuleGroupVersionsRequest = function (input, context) {
4378
- return __assign(__assign(__assign(__assign(__assign({}, (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope })), (input.VendorName !== undefined && input.VendorName !== null && { VendorName: input.VendorName }));
4363
+ return __assign(__assign(__assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.Name != null && { Name: input.Name })), (input.NextMarker != null && { NextMarker: input.NextMarker })), (input.Scope != null && { Scope: input.Scope })), (input.VendorName != null && { VendorName: input.VendorName }));
4379
4364
  };
4380
4365
  var serializeAws_json1_1ListIPSetsRequest = function (input, context) {
4381
- return __assign(__assign(__assign({}, (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4366
+ return __assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker })), (input.Scope != null && { Scope: input.Scope }));
4382
4367
  };
4383
4368
  var serializeAws_json1_1ListLoggingConfigurationsRequest = function (input, context) {
4384
- return __assign(__assign(__assign({}, (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4369
+ return __assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker })), (input.Scope != null && { Scope: input.Scope }));
4385
4370
  };
4386
4371
  var serializeAws_json1_1ListManagedRuleSetsRequest = function (input, context) {
4387
- return __assign(__assign(__assign({}, (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4372
+ return __assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker })), (input.Scope != null && { Scope: input.Scope }));
4388
4373
  };
4389
4374
  var serializeAws_json1_1ListMobileSdkReleasesRequest = function (input, context) {
4390
- return __assign(__assign(__assign({}, (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker })), (input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }));
4375
+ return __assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker })), (input.Platform != null && { Platform: input.Platform }));
4391
4376
  };
4392
4377
  var serializeAws_json1_1ListRegexPatternSetsRequest = function (input, context) {
4393
- return __assign(__assign(__assign({}, (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4378
+ return __assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker })), (input.Scope != null && { Scope: input.Scope }));
4394
4379
  };
4395
4380
  var serializeAws_json1_1ListResourcesForWebACLRequest = function (input, context) {
4396
- return __assign(__assign({}, (input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType })), (input.WebACLArn !== undefined && input.WebACLArn !== null && { WebACLArn: input.WebACLArn }));
4381
+ return __assign(__assign({}, (input.ResourceType != null && { ResourceType: input.ResourceType })), (input.WebACLArn != null && { WebACLArn: input.WebACLArn }));
4397
4382
  };
4398
4383
  var serializeAws_json1_1ListRuleGroupsRequest = function (input, context) {
4399
- return __assign(__assign(__assign({}, (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4384
+ return __assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker })), (input.Scope != null && { Scope: input.Scope }));
4400
4385
  };
4401
4386
  var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
4402
- return __assign(__assign(__assign({}, (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker })), (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }));
4387
+ return __assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker })), (input.ResourceARN != null && { ResourceARN: input.ResourceARN }));
4403
4388
  };
4404
4389
  var serializeAws_json1_1ListWebACLsRequest = function (input, context) {
4405
- return __assign(__assign(__assign({}, (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4390
+ return __assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextMarker != null && { NextMarker: input.NextMarker })), (input.Scope != null && { Scope: input.Scope }));
4406
4391
  };
4407
4392
  var serializeAws_json1_1LogDestinationConfigs = function (input, context) {
4408
4393
  return input
@@ -4415,29 +4400,21 @@ var serializeAws_json1_1LogDestinationConfigs = function (input, context) {
4415
4400
  });
4416
4401
  };
4417
4402
  var serializeAws_json1_1LoggingConfiguration = function (input, context) {
4418
- return __assign(__assign(__assign(__assign(__assign({}, (input.LogDestinationConfigs !== undefined &&
4419
- input.LogDestinationConfigs !== null && {
4403
+ return __assign(__assign(__assign(__assign(__assign({}, (input.LogDestinationConfigs != null && {
4420
4404
  LogDestinationConfigs: serializeAws_json1_1LogDestinationConfigs(input.LogDestinationConfigs, context),
4421
- })), (input.LoggingFilter !== undefined &&
4422
- input.LoggingFilter !== null && {
4405
+ })), (input.LoggingFilter != null && {
4423
4406
  LoggingFilter: serializeAws_json1_1LoggingFilter(input.LoggingFilter, context),
4424
- })), (input.ManagedByFirewallManager !== undefined &&
4425
- input.ManagedByFirewallManager !== null && { ManagedByFirewallManager: input.ManagedByFirewallManager })), (input.RedactedFields !== undefined &&
4426
- input.RedactedFields !== null && {
4407
+ })), (input.ManagedByFirewallManager != null && { ManagedByFirewallManager: input.ManagedByFirewallManager })), (input.RedactedFields != null && {
4427
4408
  RedactedFields: serializeAws_json1_1RedactedFields(input.RedactedFields, context),
4428
- })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
4409
+ })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
4429
4410
  };
4430
4411
  var serializeAws_json1_1LoggingFilter = function (input, context) {
4431
- return __assign(__assign({}, (input.DefaultBehavior !== undefined &&
4432
- input.DefaultBehavior !== null && { DefaultBehavior: input.DefaultBehavior })), (input.Filters !== undefined &&
4433
- input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }));
4412
+ return __assign(__assign({}, (input.DefaultBehavior != null && { DefaultBehavior: input.DefaultBehavior })), (input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }));
4434
4413
  };
4435
4414
  var serializeAws_json1_1ManagedRuleGroupConfig = function (input, context) {
4436
- return __assign(__assign(__assign(__assign({}, (input.LoginPath !== undefined && input.LoginPath !== null && { LoginPath: input.LoginPath })), (input.PasswordField !== undefined &&
4437
- input.PasswordField !== null && {
4415
+ return __assign(__assign(__assign(__assign({}, (input.LoginPath != null && { LoginPath: input.LoginPath })), (input.PasswordField != null && {
4438
4416
  PasswordField: serializeAws_json1_1PasswordField(input.PasswordField, context),
4439
- })), (input.PayloadType !== undefined && input.PayloadType !== null && { PayloadType: input.PayloadType })), (input.UsernameField !== undefined &&
4440
- input.UsernameField !== null && {
4417
+ })), (input.PayloadType != null && { PayloadType: input.PayloadType })), (input.UsernameField != null && {
4441
4418
  UsernameField: serializeAws_json1_1UsernameField(input.UsernameField, context),
4442
4419
  }));
4443
4420
  };
@@ -4452,16 +4429,13 @@ var serializeAws_json1_1ManagedRuleGroupConfigs = function (input, context) {
4452
4429
  });
4453
4430
  };
4454
4431
  var serializeAws_json1_1ManagedRuleGroupStatement = function (input, context) {
4455
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ExcludedRules !== undefined &&
4456
- input.ExcludedRules !== null && {
4432
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ExcludedRules != null && {
4457
4433
  ExcludedRules: serializeAws_json1_1ExcludedRules(input.ExcludedRules, context),
4458
- })), (input.ManagedRuleGroupConfigs !== undefined &&
4459
- input.ManagedRuleGroupConfigs !== null && {
4434
+ })), (input.ManagedRuleGroupConfigs != null && {
4460
4435
  ManagedRuleGroupConfigs: serializeAws_json1_1ManagedRuleGroupConfigs(input.ManagedRuleGroupConfigs, context),
4461
- })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.ScopeDownStatement !== undefined &&
4462
- input.ScopeDownStatement !== null && {
4436
+ })), (input.Name != null && { Name: input.Name })), (input.ScopeDownStatement != null && {
4463
4437
  ScopeDownStatement: serializeAws_json1_1Statement(input.ScopeDownStatement, context),
4464
- })), (input.VendorName !== undefined && input.VendorName !== null && { VendorName: input.VendorName })), (input.Version !== undefined && input.Version !== null && { Version: input.Version }));
4438
+ })), (input.VendorName != null && { VendorName: input.VendorName })), (input.Version != null && { Version: input.Version }));
4465
4439
  };
4466
4440
  var serializeAws_json1_1Method = function (input, context) {
4467
4441
  return {};
@@ -4470,47 +4444,37 @@ var serializeAws_json1_1NoneAction = function (input, context) {
4470
4444
  return {};
4471
4445
  };
4472
4446
  var serializeAws_json1_1NotStatement = function (input, context) {
4473
- return __assign({}, (input.Statement !== undefined &&
4474
- input.Statement !== null && { Statement: serializeAws_json1_1Statement(input.Statement, context) }));
4447
+ return __assign({}, (input.Statement != null && { Statement: serializeAws_json1_1Statement(input.Statement, context) }));
4475
4448
  };
4476
4449
  var serializeAws_json1_1OrStatement = function (input, context) {
4477
- return __assign({}, (input.Statements !== undefined &&
4478
- input.Statements !== null && { Statements: serializeAws_json1_1Statements(input.Statements, context) }));
4450
+ return __assign({}, (input.Statements != null && { Statements: serializeAws_json1_1Statements(input.Statements, context) }));
4479
4451
  };
4480
4452
  var serializeAws_json1_1OverrideAction = function (input, context) {
4481
- return __assign(__assign({}, (input.Count !== undefined &&
4482
- input.Count !== null && { Count: serializeAws_json1_1CountAction(input.Count, context) })), (input.None !== undefined &&
4483
- input.None !== null && { None: serializeAws_json1_1NoneAction(input.None, context) }));
4453
+ return __assign(__assign({}, (input.Count != null && { Count: serializeAws_json1_1CountAction(input.Count, context) })), (input.None != null && { None: serializeAws_json1_1NoneAction(input.None, context) }));
4484
4454
  };
4485
4455
  var serializeAws_json1_1PasswordField = function (input, context) {
4486
- return __assign({}, (input.Identifier !== undefined && input.Identifier !== null && { Identifier: input.Identifier }));
4456
+ return __assign({}, (input.Identifier != null && { Identifier: input.Identifier }));
4487
4457
  };
4488
4458
  var serializeAws_json1_1PutLoggingConfigurationRequest = function (input, context) {
4489
- return __assign({}, (input.LoggingConfiguration !== undefined &&
4490
- input.LoggingConfiguration !== null && {
4459
+ return __assign({}, (input.LoggingConfiguration != null && {
4491
4460
  LoggingConfiguration: serializeAws_json1_1LoggingConfiguration(input.LoggingConfiguration, context),
4492
4461
  }));
4493
4462
  };
4494
4463
  var serializeAws_json1_1PutManagedRuleSetVersionsRequest = function (input, context) {
4495
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RecommendedVersion !== undefined &&
4496
- input.RecommendedVersion !== null && { RecommendedVersion: input.RecommendedVersion })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope })), (input.VersionsToPublish !== undefined &&
4497
- input.VersionsToPublish !== null && {
4464
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Id != null && { Id: input.Id })), (input.LockToken != null && { LockToken: input.LockToken })), (input.Name != null && { Name: input.Name })), (input.RecommendedVersion != null && { RecommendedVersion: input.RecommendedVersion })), (input.Scope != null && { Scope: input.Scope })), (input.VersionsToPublish != null && {
4498
4465
  VersionsToPublish: serializeAws_json1_1VersionsToPublish(input.VersionsToPublish, context),
4499
4466
  }));
4500
4467
  };
4501
4468
  var serializeAws_json1_1PutPermissionPolicyRequest = function (input, context) {
4502
- return __assign(__assign({}, (input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
4469
+ return __assign(__assign({}, (input.Policy != null && { Policy: input.Policy })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
4503
4470
  };
4504
4471
  var serializeAws_json1_1QueryString = function (input, context) {
4505
4472
  return {};
4506
4473
  };
4507
4474
  var serializeAws_json1_1RateBasedStatement = function (input, context) {
4508
- return __assign(__assign(__assign(__assign({}, (input.AggregateKeyType !== undefined &&
4509
- input.AggregateKeyType !== null && { AggregateKeyType: input.AggregateKeyType })), (input.ForwardedIPConfig !== undefined &&
4510
- input.ForwardedIPConfig !== null && {
4475
+ return __assign(__assign(__assign(__assign({}, (input.AggregateKeyType != null && { AggregateKeyType: input.AggregateKeyType })), (input.ForwardedIPConfig != null && {
4511
4476
  ForwardedIPConfig: serializeAws_json1_1ForwardedIPConfig(input.ForwardedIPConfig, context),
4512
- })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.ScopeDownStatement !== undefined &&
4513
- input.ScopeDownStatement !== null && {
4477
+ })), (input.Limit != null && { Limit: input.Limit })), (input.ScopeDownStatement != null && {
4514
4478
  ScopeDownStatement: serializeAws_json1_1Statement(input.ScopeDownStatement, context),
4515
4479
  }));
4516
4480
  };
@@ -4525,19 +4489,15 @@ var serializeAws_json1_1RedactedFields = function (input, context) {
4525
4489
  });
4526
4490
  };
4527
4491
  var serializeAws_json1_1Regex = function (input, context) {
4528
- return __assign({}, (input.RegexString !== undefined && input.RegexString !== null && { RegexString: input.RegexString }));
4492
+ return __assign({}, (input.RegexString != null && { RegexString: input.RegexString }));
4529
4493
  };
4530
4494
  var serializeAws_json1_1RegexMatchStatement = function (input, context) {
4531
- return __assign(__assign(__assign({}, (input.FieldToMatch !== undefined &&
4532
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.RegexString !== undefined && input.RegexString !== null && { RegexString: input.RegexString })), (input.TextTransformations !== undefined &&
4533
- input.TextTransformations !== null && {
4495
+ return __assign(__assign(__assign({}, (input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.RegexString != null && { RegexString: input.RegexString })), (input.TextTransformations != null && {
4534
4496
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
4535
4497
  }));
4536
4498
  };
4537
4499
  var serializeAws_json1_1RegexPatternSetReferenceStatement = function (input, context) {
4538
- return __assign(__assign(__assign({}, (input.ARN !== undefined && input.ARN !== null && { ARN: input.ARN })), (input.FieldToMatch !== undefined &&
4539
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.TextTransformations !== undefined &&
4540
- input.TextTransformations !== null && {
4500
+ return __assign(__assign(__assign({}, (input.ARN != null && { ARN: input.ARN })), (input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.TextTransformations != null && {
4541
4501
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
4542
4502
  }));
4543
4503
  };
@@ -4552,30 +4512,19 @@ var serializeAws_json1_1RegularExpressionList = function (input, context) {
4552
4512
  });
4553
4513
  };
4554
4514
  var serializeAws_json1_1Rule = function (input, context) {
4555
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Action !== undefined &&
4556
- input.Action !== null && { Action: serializeAws_json1_1RuleAction(input.Action, context) })), (input.CaptchaConfig !== undefined &&
4557
- input.CaptchaConfig !== null && {
4515
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Action != null && { Action: serializeAws_json1_1RuleAction(input.Action, context) })), (input.CaptchaConfig != null && {
4558
4516
  CaptchaConfig: serializeAws_json1_1CaptchaConfig(input.CaptchaConfig, context),
4559
- })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.OverrideAction !== undefined &&
4560
- input.OverrideAction !== null && {
4517
+ })), (input.Name != null && { Name: input.Name })), (input.OverrideAction != null && {
4561
4518
  OverrideAction: serializeAws_json1_1OverrideAction(input.OverrideAction, context),
4562
- })), (input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority })), (input.RuleLabels !== undefined &&
4563
- input.RuleLabels !== null && { RuleLabels: serializeAws_json1_1Labels(input.RuleLabels, context) })), (input.Statement !== undefined &&
4564
- input.Statement !== null && { Statement: serializeAws_json1_1Statement(input.Statement, context) })), (input.VisibilityConfig !== undefined &&
4565
- input.VisibilityConfig !== null && {
4519
+ })), (input.Priority != null && { Priority: input.Priority })), (input.RuleLabels != null && { RuleLabels: serializeAws_json1_1Labels(input.RuleLabels, context) })), (input.Statement != null && { Statement: serializeAws_json1_1Statement(input.Statement, context) })), (input.VisibilityConfig != null && {
4566
4520
  VisibilityConfig: serializeAws_json1_1VisibilityConfig(input.VisibilityConfig, context),
4567
4521
  }));
4568
4522
  };
4569
4523
  var serializeAws_json1_1RuleAction = function (input, context) {
4570
- return __assign(__assign(__assign(__assign({}, (input.Allow !== undefined &&
4571
- input.Allow !== null && { Allow: serializeAws_json1_1AllowAction(input.Allow, context) })), (input.Block !== undefined &&
4572
- input.Block !== null && { Block: serializeAws_json1_1BlockAction(input.Block, context) })), (input.Captcha !== undefined &&
4573
- input.Captcha !== null && { Captcha: serializeAws_json1_1CaptchaAction(input.Captcha, context) })), (input.Count !== undefined &&
4574
- input.Count !== null && { Count: serializeAws_json1_1CountAction(input.Count, context) }));
4524
+ return __assign(__assign(__assign(__assign({}, (input.Allow != null && { Allow: serializeAws_json1_1AllowAction(input.Allow, context) })), (input.Block != null && { Block: serializeAws_json1_1BlockAction(input.Block, context) })), (input.Captcha != null && { Captcha: serializeAws_json1_1CaptchaAction(input.Captcha, context) })), (input.Count != null && { Count: serializeAws_json1_1CountAction(input.Count, context) }));
4575
4525
  };
4576
4526
  var serializeAws_json1_1RuleGroupReferenceStatement = function (input, context) {
4577
- return __assign(__assign({}, (input.ARN !== undefined && input.ARN !== null && { ARN: input.ARN })), (input.ExcludedRules !== undefined &&
4578
- input.ExcludedRules !== null && {
4527
+ return __assign(__assign({}, (input.ARN != null && { ARN: input.ARN })), (input.ExcludedRules != null && {
4579
4528
  ExcludedRules: serializeAws_json1_1ExcludedRules(input.ExcludedRules, context),
4580
4529
  }));
4581
4530
  };
@@ -4590,65 +4539,45 @@ var serializeAws_json1_1Rules = function (input, context) {
4590
4539
  });
4591
4540
  };
4592
4541
  var serializeAws_json1_1SingleHeader = function (input, context) {
4593
- return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
4542
+ return __assign({}, (input.Name != null && { Name: input.Name }));
4594
4543
  };
4595
4544
  var serializeAws_json1_1SingleQueryArgument = function (input, context) {
4596
- return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
4545
+ return __assign({}, (input.Name != null && { Name: input.Name }));
4597
4546
  };
4598
4547
  var serializeAws_json1_1SizeConstraintStatement = function (input, context) {
4599
- return __assign(__assign(__assign(__assign({}, (input.ComparisonOperator !== undefined &&
4600
- input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator })), (input.FieldToMatch !== undefined &&
4601
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.Size !== undefined && input.Size !== null && { Size: input.Size })), (input.TextTransformations !== undefined &&
4602
- input.TextTransformations !== null && {
4548
+ return __assign(__assign(__assign(__assign({}, (input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator })), (input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.Size != null && { Size: input.Size })), (input.TextTransformations != null && {
4603
4549
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
4604
4550
  }));
4605
4551
  };
4606
4552
  var serializeAws_json1_1SqliMatchStatement = function (input, context) {
4607
- return __assign(__assign({}, (input.FieldToMatch !== undefined &&
4608
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.TextTransformations !== undefined &&
4609
- input.TextTransformations !== null && {
4553
+ return __assign(__assign({}, (input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.TextTransformations != null && {
4610
4554
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
4611
4555
  }));
4612
4556
  };
4613
4557
  var serializeAws_json1_1Statement = function (input, context) {
4614
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AndStatement !== undefined &&
4615
- input.AndStatement !== null && { AndStatement: serializeAws_json1_1AndStatement(input.AndStatement, context) })), (input.ByteMatchStatement !== undefined &&
4616
- input.ByteMatchStatement !== null && {
4558
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AndStatement != null && { AndStatement: serializeAws_json1_1AndStatement(input.AndStatement, context) })), (input.ByteMatchStatement != null && {
4617
4559
  ByteMatchStatement: serializeAws_json1_1ByteMatchStatement(input.ByteMatchStatement, context),
4618
- })), (input.GeoMatchStatement !== undefined &&
4619
- input.GeoMatchStatement !== null && {
4560
+ })), (input.GeoMatchStatement != null && {
4620
4561
  GeoMatchStatement: serializeAws_json1_1GeoMatchStatement(input.GeoMatchStatement, context),
4621
- })), (input.IPSetReferenceStatement !== undefined &&
4622
- input.IPSetReferenceStatement !== null && {
4562
+ })), (input.IPSetReferenceStatement != null && {
4623
4563
  IPSetReferenceStatement: serializeAws_json1_1IPSetReferenceStatement(input.IPSetReferenceStatement, context),
4624
- })), (input.LabelMatchStatement !== undefined &&
4625
- input.LabelMatchStatement !== null && {
4564
+ })), (input.LabelMatchStatement != null && {
4626
4565
  LabelMatchStatement: serializeAws_json1_1LabelMatchStatement(input.LabelMatchStatement, context),
4627
- })), (input.ManagedRuleGroupStatement !== undefined &&
4628
- input.ManagedRuleGroupStatement !== null && {
4566
+ })), (input.ManagedRuleGroupStatement != null && {
4629
4567
  ManagedRuleGroupStatement: serializeAws_json1_1ManagedRuleGroupStatement(input.ManagedRuleGroupStatement, context),
4630
- })), (input.NotStatement !== undefined &&
4631
- input.NotStatement !== null && { NotStatement: serializeAws_json1_1NotStatement(input.NotStatement, context) })), (input.OrStatement !== undefined &&
4632
- input.OrStatement !== null && { OrStatement: serializeAws_json1_1OrStatement(input.OrStatement, context) })), (input.RateBasedStatement !== undefined &&
4633
- input.RateBasedStatement !== null && {
4568
+ })), (input.NotStatement != null && { NotStatement: serializeAws_json1_1NotStatement(input.NotStatement, context) })), (input.OrStatement != null && { OrStatement: serializeAws_json1_1OrStatement(input.OrStatement, context) })), (input.RateBasedStatement != null && {
4634
4569
  RateBasedStatement: serializeAws_json1_1RateBasedStatement(input.RateBasedStatement, context),
4635
- })), (input.RegexMatchStatement !== undefined &&
4636
- input.RegexMatchStatement !== null && {
4570
+ })), (input.RegexMatchStatement != null && {
4637
4571
  RegexMatchStatement: serializeAws_json1_1RegexMatchStatement(input.RegexMatchStatement, context),
4638
- })), (input.RegexPatternSetReferenceStatement !== undefined &&
4639
- input.RegexPatternSetReferenceStatement !== null && {
4572
+ })), (input.RegexPatternSetReferenceStatement != null && {
4640
4573
  RegexPatternSetReferenceStatement: serializeAws_json1_1RegexPatternSetReferenceStatement(input.RegexPatternSetReferenceStatement, context),
4641
- })), (input.RuleGroupReferenceStatement !== undefined &&
4642
- input.RuleGroupReferenceStatement !== null && {
4574
+ })), (input.RuleGroupReferenceStatement != null && {
4643
4575
  RuleGroupReferenceStatement: serializeAws_json1_1RuleGroupReferenceStatement(input.RuleGroupReferenceStatement, context),
4644
- })), (input.SizeConstraintStatement !== undefined &&
4645
- input.SizeConstraintStatement !== null && {
4576
+ })), (input.SizeConstraintStatement != null && {
4646
4577
  SizeConstraintStatement: serializeAws_json1_1SizeConstraintStatement(input.SizeConstraintStatement, context),
4647
- })), (input.SqliMatchStatement !== undefined &&
4648
- input.SqliMatchStatement !== null && {
4578
+ })), (input.SqliMatchStatement != null && {
4649
4579
  SqliMatchStatement: serializeAws_json1_1SqliMatchStatement(input.SqliMatchStatement, context),
4650
- })), (input.XssMatchStatement !== undefined &&
4651
- input.XssMatchStatement !== null && {
4580
+ })), (input.XssMatchStatement != null && {
4652
4581
  XssMatchStatement: serializeAws_json1_1XssMatchStatement(input.XssMatchStatement, context),
4653
4582
  }));
4654
4583
  };
@@ -4663,7 +4592,7 @@ var serializeAws_json1_1Statements = function (input, context) {
4663
4592
  });
4664
4593
  };
4665
4594
  var serializeAws_json1_1Tag = function (input, context) {
4666
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
4595
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
4667
4596
  };
4668
4597
  var serializeAws_json1_1TagKeyList = function (input, context) {
4669
4598
  return input
@@ -4686,10 +4615,10 @@ var serializeAws_json1_1TagList = function (input, context) {
4686
4615
  });
4687
4616
  };
4688
4617
  var serializeAws_json1_1TagResourceRequest = function (input, context) {
4689
- return __assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
4618
+ return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
4690
4619
  };
4691
4620
  var serializeAws_json1_1TextTransformation = function (input, context) {
4692
- return __assign(__assign({}, (input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
4621
+ return __assign(__assign({}, (input.Priority != null && { Priority: input.Priority })), (input.Type != null && { Type: input.Type }));
4693
4622
  };
4694
4623
  var serializeAws_json1_1TextTransformations = function (input, context) {
4695
4624
  return input
@@ -4702,52 +4631,37 @@ var serializeAws_json1_1TextTransformations = function (input, context) {
4702
4631
  });
4703
4632
  };
4704
4633
  var serializeAws_json1_1TimeWindow = function (input, context) {
4705
- return __assign(__assign({}, (input.EndTime !== undefined &&
4706
- input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.StartTime !== undefined &&
4707
- input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
4634
+ return __assign(__assign({}, (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
4708
4635
  };
4709
4636
  var serializeAws_json1_1UntagResourceRequest = function (input, context) {
4710
- return __assign(__assign({}, (input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN })), (input.TagKeys !== undefined &&
4711
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
4637
+ return __assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }));
4712
4638
  };
4713
4639
  var serializeAws_json1_1UpdateIPSetRequest = function (input, context) {
4714
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Addresses !== undefined &&
4715
- input.Addresses !== null && { Addresses: serializeAws_json1_1IPAddresses(input.Addresses, context) })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4640
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Addresses != null && { Addresses: serializeAws_json1_1IPAddresses(input.Addresses, context) })), (input.Description != null && { Description: input.Description })), (input.Id != null && { Id: input.Id })), (input.LockToken != null && { LockToken: input.LockToken })), (input.Name != null && { Name: input.Name })), (input.Scope != null && { Scope: input.Scope }));
4716
4641
  };
4717
4642
  var serializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateRequest = function (input, context) {
4718
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ExpiryTimestamp !== undefined &&
4719
- input.ExpiryTimestamp !== null && { ExpiryTimestamp: Math.round(input.ExpiryTimestamp.getTime() / 1000) })), (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope })), (input.VersionToExpire !== undefined &&
4720
- input.VersionToExpire !== null && { VersionToExpire: input.VersionToExpire }));
4643
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ExpiryTimestamp != null && { ExpiryTimestamp: Math.round(input.ExpiryTimestamp.getTime() / 1000) })), (input.Id != null && { Id: input.Id })), (input.LockToken != null && { LockToken: input.LockToken })), (input.Name != null && { Name: input.Name })), (input.Scope != null && { Scope: input.Scope })), (input.VersionToExpire != null && { VersionToExpire: input.VersionToExpire }));
4721
4644
  };
4722
4645
  var serializeAws_json1_1UpdateRegexPatternSetRequest = function (input, context) {
4723
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.RegularExpressionList !== undefined &&
4724
- input.RegularExpressionList !== null && {
4646
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Id != null && { Id: input.Id })), (input.LockToken != null && { LockToken: input.LockToken })), (input.Name != null && { Name: input.Name })), (input.RegularExpressionList != null && {
4725
4647
  RegularExpressionList: serializeAws_json1_1RegularExpressionList(input.RegularExpressionList, context),
4726
- })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
4648
+ })), (input.Scope != null && { Scope: input.Scope }));
4727
4649
  };
4728
4650
  var serializeAws_json1_1UpdateRuleGroupRequest = function (input, context) {
4729
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CustomResponseBodies !== undefined &&
4730
- input.CustomResponseBodies !== null && {
4651
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CustomResponseBodies != null && {
4731
4652
  CustomResponseBodies: serializeAws_json1_1CustomResponseBodies(input.CustomResponseBodies, context),
4732
- })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Rules !== undefined &&
4733
- input.Rules !== null && { Rules: serializeAws_json1_1Rules(input.Rules, context) })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope })), (input.VisibilityConfig !== undefined &&
4734
- input.VisibilityConfig !== null && {
4653
+ })), (input.Description != null && { Description: input.Description })), (input.Id != null && { Id: input.Id })), (input.LockToken != null && { LockToken: input.LockToken })), (input.Name != null && { Name: input.Name })), (input.Rules != null && { Rules: serializeAws_json1_1Rules(input.Rules, context) })), (input.Scope != null && { Scope: input.Scope })), (input.VisibilityConfig != null && {
4735
4654
  VisibilityConfig: serializeAws_json1_1VisibilityConfig(input.VisibilityConfig, context),
4736
4655
  }));
4737
4656
  };
4738
4657
  var serializeAws_json1_1UpdateWebACLRequest = function (input, context) {
4739
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CaptchaConfig !== undefined &&
4740
- input.CaptchaConfig !== null && {
4658
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CaptchaConfig != null && {
4741
4659
  CaptchaConfig: serializeAws_json1_1CaptchaConfig(input.CaptchaConfig, context),
4742
- })), (input.CustomResponseBodies !== undefined &&
4743
- input.CustomResponseBodies !== null && {
4660
+ })), (input.CustomResponseBodies != null && {
4744
4661
  CustomResponseBodies: serializeAws_json1_1CustomResponseBodies(input.CustomResponseBodies, context),
4745
- })), (input.DefaultAction !== undefined &&
4746
- input.DefaultAction !== null && {
4662
+ })), (input.DefaultAction != null && {
4747
4663
  DefaultAction: serializeAws_json1_1DefaultAction(input.DefaultAction, context),
4748
- })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Rules !== undefined &&
4749
- input.Rules !== null && { Rules: serializeAws_json1_1Rules(input.Rules, context) })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope })), (input.VisibilityConfig !== undefined &&
4750
- input.VisibilityConfig !== null && {
4664
+ })), (input.Description != null && { Description: input.Description })), (input.Id != null && { Id: input.Id })), (input.LockToken != null && { LockToken: input.LockToken })), (input.Name != null && { Name: input.Name })), (input.Rules != null && { Rules: serializeAws_json1_1Rules(input.Rules, context) })), (input.Scope != null && { Scope: input.Scope })), (input.VisibilityConfig != null && {
4751
4665
  VisibilityConfig: serializeAws_json1_1VisibilityConfig(input.VisibilityConfig, context),
4752
4666
  }));
4753
4667
  };
@@ -4755,7 +4669,7 @@ var serializeAws_json1_1UriPath = function (input, context) {
4755
4669
  return {};
4756
4670
  };
4757
4671
  var serializeAws_json1_1UsernameField = function (input, context) {
4758
- return __assign({}, (input.Identifier !== undefined && input.Identifier !== null && { Identifier: input.Identifier }));
4672
+ return __assign({}, (input.Identifier != null && { Identifier: input.Identifier }));
4759
4673
  };
4760
4674
  var serializeAws_json1_1VersionsToPublish = function (input, context) {
4761
4675
  return Object.entries(input).reduce(function (acc, _a) {
@@ -4768,19 +4682,13 @@ var serializeAws_json1_1VersionsToPublish = function (input, context) {
4768
4682
  }, {});
4769
4683
  };
4770
4684
  var serializeAws_json1_1VersionToPublish = function (input, context) {
4771
- return __assign(__assign({}, (input.AssociatedRuleGroupArn !== undefined &&
4772
- input.AssociatedRuleGroupArn !== null && { AssociatedRuleGroupArn: input.AssociatedRuleGroupArn })), (input.ForecastedLifetime !== undefined &&
4773
- input.ForecastedLifetime !== null && { ForecastedLifetime: input.ForecastedLifetime }));
4685
+ return __assign(__assign({}, (input.AssociatedRuleGroupArn != null && { AssociatedRuleGroupArn: input.AssociatedRuleGroupArn })), (input.ForecastedLifetime != null && { ForecastedLifetime: input.ForecastedLifetime }));
4774
4686
  };
4775
4687
  var serializeAws_json1_1VisibilityConfig = function (input, context) {
4776
- return __assign(__assign(__assign({}, (input.CloudWatchMetricsEnabled !== undefined &&
4777
- input.CloudWatchMetricsEnabled !== null && { CloudWatchMetricsEnabled: input.CloudWatchMetricsEnabled })), (input.MetricName !== undefined && input.MetricName !== null && { MetricName: input.MetricName })), (input.SampledRequestsEnabled !== undefined &&
4778
- input.SampledRequestsEnabled !== null && { SampledRequestsEnabled: input.SampledRequestsEnabled }));
4688
+ return __assign(__assign(__assign({}, (input.CloudWatchMetricsEnabled != null && { CloudWatchMetricsEnabled: input.CloudWatchMetricsEnabled })), (input.MetricName != null && { MetricName: input.MetricName })), (input.SampledRequestsEnabled != null && { SampledRequestsEnabled: input.SampledRequestsEnabled }));
4779
4689
  };
4780
4690
  var serializeAws_json1_1XssMatchStatement = function (input, context) {
4781
- return __assign(__assign({}, (input.FieldToMatch !== undefined &&
4782
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.TextTransformations !== undefined &&
4783
- input.TextTransformations !== null && {
4691
+ return __assign(__assign({}, (input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) })), (input.TextTransformations != null && {
4784
4692
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
4785
4693
  }));
4786
4694
  };
@@ -4794,7 +4702,7 @@ var deserializeAws_json1_1All = function (output, context) {
4794
4702
  };
4795
4703
  var deserializeAws_json1_1AllowAction = function (output, context) {
4796
4704
  return {
4797
- CustomRequestHandling: output.CustomRequestHandling !== undefined && output.CustomRequestHandling !== null
4705
+ CustomRequestHandling: output.CustomRequestHandling != null
4798
4706
  ? deserializeAws_json1_1CustomRequestHandling(output.CustomRequestHandling, context)
4799
4707
  : undefined,
4800
4708
  };
@@ -4804,9 +4712,7 @@ var deserializeAws_json1_1AllQueryArguments = function (output, context) {
4804
4712
  };
4805
4713
  var deserializeAws_json1_1AndStatement = function (output, context) {
4806
4714
  return {
4807
- Statements: output.Statements !== undefined && output.Statements !== null
4808
- ? deserializeAws_json1_1Statements(output.Statements, context)
4809
- : undefined,
4715
+ Statements: output.Statements != null ? deserializeAws_json1_1Statements(output.Statements, context) : undefined,
4810
4716
  };
4811
4717
  };
4812
4718
  var deserializeAws_json1_1AssociateWebACLResponse = function (output, context) {
@@ -4814,9 +4720,7 @@ var deserializeAws_json1_1AssociateWebACLResponse = function (output, context) {
4814
4720
  };
4815
4721
  var deserializeAws_json1_1BlockAction = function (output, context) {
4816
4722
  return {
4817
- CustomResponse: output.CustomResponse !== undefined && output.CustomResponse !== null
4818
- ? deserializeAws_json1_1CustomResponse(output.CustomResponse, context)
4819
- : undefined,
4723
+ CustomResponse: output.CustomResponse != null ? deserializeAws_json1_1CustomResponse(output.CustomResponse, context) : undefined,
4820
4724
  };
4821
4725
  };
4822
4726
  var deserializeAws_json1_1Body = function (output, context) {
@@ -4826,28 +4730,24 @@ var deserializeAws_json1_1Body = function (output, context) {
4826
4730
  };
4827
4731
  var deserializeAws_json1_1ByteMatchStatement = function (output, context) {
4828
4732
  return {
4829
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
4830
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
4831
- : undefined,
4733
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
4832
4734
  PositionalConstraint: __expectString(output.PositionalConstraint),
4833
- SearchString: output.SearchString !== undefined && output.SearchString !== null
4834
- ? context.base64Decoder(output.SearchString)
4835
- : undefined,
4836
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
4735
+ SearchString: output.SearchString != null ? context.base64Decoder(output.SearchString) : undefined,
4736
+ TextTransformations: output.TextTransformations != null
4837
4737
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
4838
4738
  : undefined,
4839
4739
  };
4840
4740
  };
4841
4741
  var deserializeAws_json1_1CaptchaAction = function (output, context) {
4842
4742
  return {
4843
- CustomRequestHandling: output.CustomRequestHandling !== undefined && output.CustomRequestHandling !== null
4743
+ CustomRequestHandling: output.CustomRequestHandling != null
4844
4744
  ? deserializeAws_json1_1CustomRequestHandling(output.CustomRequestHandling, context)
4845
4745
  : undefined,
4846
4746
  };
4847
4747
  };
4848
4748
  var deserializeAws_json1_1CaptchaConfig = function (output, context) {
4849
4749
  return {
4850
- ImmunityTimeProperty: output.ImmunityTimeProperty !== undefined && output.ImmunityTimeProperty !== null
4750
+ ImmunityTimeProperty: output.ImmunityTimeProperty != null
4851
4751
  ? deserializeAws_json1_1ImmunityTimeProperty(output.ImmunityTimeProperty, context)
4852
4752
  : undefined,
4853
4753
  };
@@ -4866,10 +4766,10 @@ var deserializeAws_json1_1CheckCapacityResponse = function (output, context) {
4866
4766
  };
4867
4767
  var deserializeAws_json1_1Condition = function (output, context) {
4868
4768
  return {
4869
- ActionCondition: output.ActionCondition !== undefined && output.ActionCondition !== null
4769
+ ActionCondition: output.ActionCondition != null
4870
4770
  ? deserializeAws_json1_1ActionCondition(output.ActionCondition, context)
4871
4771
  : undefined,
4872
- LabelNameCondition: output.LabelNameCondition !== undefined && output.LabelNameCondition !== null
4772
+ LabelNameCondition: output.LabelNameCondition != null
4873
4773
  ? deserializeAws_json1_1LabelNameCondition(output.LabelNameCondition, context)
4874
4774
  : undefined,
4875
4775
  };
@@ -4887,13 +4787,9 @@ var deserializeAws_json1_1Conditions = function (output, context) {
4887
4787
  };
4888
4788
  var deserializeAws_json1_1CookieMatchPattern = function (output, context) {
4889
4789
  return {
4890
- All: output.All !== undefined && output.All !== null ? deserializeAws_json1_1All(output.All, context) : undefined,
4891
- ExcludedCookies: output.ExcludedCookies !== undefined && output.ExcludedCookies !== null
4892
- ? deserializeAws_json1_1CookieNames(output.ExcludedCookies, context)
4893
- : undefined,
4894
- IncludedCookies: output.IncludedCookies !== undefined && output.IncludedCookies !== null
4895
- ? deserializeAws_json1_1CookieNames(output.IncludedCookies, context)
4896
- : undefined,
4790
+ All: output.All != null ? deserializeAws_json1_1All(output.All, context) : undefined,
4791
+ ExcludedCookies: output.ExcludedCookies != null ? deserializeAws_json1_1CookieNames(output.ExcludedCookies, context) : undefined,
4792
+ IncludedCookies: output.IncludedCookies != null ? deserializeAws_json1_1CookieNames(output.IncludedCookies, context) : undefined,
4897
4793
  };
4898
4794
  };
4899
4795
  var deserializeAws_json1_1CookieNames = function (output, context) {
@@ -4909,16 +4805,14 @@ var deserializeAws_json1_1CookieNames = function (output, context) {
4909
4805
  };
4910
4806
  var deserializeAws_json1_1Cookies = function (output, context) {
4911
4807
  return {
4912
- MatchPattern: output.MatchPattern !== undefined && output.MatchPattern !== null
4913
- ? deserializeAws_json1_1CookieMatchPattern(output.MatchPattern, context)
4914
- : undefined,
4808
+ MatchPattern: output.MatchPattern != null ? deserializeAws_json1_1CookieMatchPattern(output.MatchPattern, context) : undefined,
4915
4809
  MatchScope: __expectString(output.MatchScope),
4916
4810
  OversizeHandling: __expectString(output.OversizeHandling),
4917
4811
  };
4918
4812
  };
4919
4813
  var deserializeAws_json1_1CountAction = function (output, context) {
4920
4814
  return {
4921
- CustomRequestHandling: output.CustomRequestHandling !== undefined && output.CustomRequestHandling !== null
4815
+ CustomRequestHandling: output.CustomRequestHandling != null
4922
4816
  ? deserializeAws_json1_1CustomRequestHandling(output.CustomRequestHandling, context)
4923
4817
  : undefined,
4924
4818
  };
@@ -4936,30 +4830,22 @@ var deserializeAws_json1_1CountryCodes = function (output, context) {
4936
4830
  };
4937
4831
  var deserializeAws_json1_1CreateIPSetResponse = function (output, context) {
4938
4832
  return {
4939
- Summary: output.Summary !== undefined && output.Summary !== null
4940
- ? deserializeAws_json1_1IPSetSummary(output.Summary, context)
4941
- : undefined,
4833
+ Summary: output.Summary != null ? deserializeAws_json1_1IPSetSummary(output.Summary, context) : undefined,
4942
4834
  };
4943
4835
  };
4944
4836
  var deserializeAws_json1_1CreateRegexPatternSetResponse = function (output, context) {
4945
4837
  return {
4946
- Summary: output.Summary !== undefined && output.Summary !== null
4947
- ? deserializeAws_json1_1RegexPatternSetSummary(output.Summary, context)
4948
- : undefined,
4838
+ Summary: output.Summary != null ? deserializeAws_json1_1RegexPatternSetSummary(output.Summary, context) : undefined,
4949
4839
  };
4950
4840
  };
4951
4841
  var deserializeAws_json1_1CreateRuleGroupResponse = function (output, context) {
4952
4842
  return {
4953
- Summary: output.Summary !== undefined && output.Summary !== null
4954
- ? deserializeAws_json1_1RuleGroupSummary(output.Summary, context)
4955
- : undefined,
4843
+ Summary: output.Summary != null ? deserializeAws_json1_1RuleGroupSummary(output.Summary, context) : undefined,
4956
4844
  };
4957
4845
  };
4958
4846
  var deserializeAws_json1_1CreateWebACLResponse = function (output, context) {
4959
4847
  return {
4960
- Summary: output.Summary !== undefined && output.Summary !== null
4961
- ? deserializeAws_json1_1WebACLSummary(output.Summary, context)
4962
- : undefined,
4848
+ Summary: output.Summary != null ? deserializeAws_json1_1WebACLSummary(output.Summary, context) : undefined,
4963
4849
  };
4964
4850
  };
4965
4851
  var deserializeAws_json1_1CustomHTTPHeader = function (output, context) {
@@ -4981,16 +4867,14 @@ var deserializeAws_json1_1CustomHTTPHeaders = function (output, context) {
4981
4867
  };
4982
4868
  var deserializeAws_json1_1CustomRequestHandling = function (output, context) {
4983
4869
  return {
4984
- InsertHeaders: output.InsertHeaders !== undefined && output.InsertHeaders !== null
4985
- ? deserializeAws_json1_1CustomHTTPHeaders(output.InsertHeaders, context)
4986
- : undefined,
4870
+ InsertHeaders: output.InsertHeaders != null ? deserializeAws_json1_1CustomHTTPHeaders(output.InsertHeaders, context) : undefined,
4987
4871
  };
4988
4872
  };
4989
4873
  var deserializeAws_json1_1CustomResponse = function (output, context) {
4990
4874
  return {
4991
4875
  CustomResponseBodyKey: __expectString(output.CustomResponseBodyKey),
4992
4876
  ResponseCode: __expectInt32(output.ResponseCode),
4993
- ResponseHeaders: output.ResponseHeaders !== undefined && output.ResponseHeaders !== null
4877
+ ResponseHeaders: output.ResponseHeaders != null
4994
4878
  ? deserializeAws_json1_1CustomHTTPHeaders(output.ResponseHeaders, context)
4995
4879
  : undefined,
4996
4880
  };
@@ -5013,12 +4897,8 @@ var deserializeAws_json1_1CustomResponseBody = function (output, context) {
5013
4897
  };
5014
4898
  var deserializeAws_json1_1DefaultAction = function (output, context) {
5015
4899
  return {
5016
- Allow: output.Allow !== undefined && output.Allow !== null
5017
- ? deserializeAws_json1_1AllowAction(output.Allow, context)
5018
- : undefined,
5019
- Block: output.Block !== undefined && output.Block !== null
5020
- ? deserializeAws_json1_1BlockAction(output.Block, context)
5021
- : undefined,
4900
+ Allow: output.Allow != null ? deserializeAws_json1_1AllowAction(output.Allow, context) : undefined,
4901
+ Block: output.Block != null ? deserializeAws_json1_1BlockAction(output.Block, context) : undefined,
5022
4902
  };
5023
4903
  };
5024
4904
  var deserializeAws_json1_1DeleteFirewallManagerRuleGroupsResponse = function (output, context) {
@@ -5046,17 +4926,13 @@ var deserializeAws_json1_1DeleteWebACLResponse = function (output, context) {
5046
4926
  };
5047
4927
  var deserializeAws_json1_1DescribeManagedRuleGroupResponse = function (output, context) {
5048
4928
  return {
5049
- AvailableLabels: output.AvailableLabels !== undefined && output.AvailableLabels !== null
4929
+ AvailableLabels: output.AvailableLabels != null
5050
4930
  ? deserializeAws_json1_1LabelSummaries(output.AvailableLabels, context)
5051
4931
  : undefined,
5052
4932
  Capacity: __expectLong(output.Capacity),
5053
- ConsumedLabels: output.ConsumedLabels !== undefined && output.ConsumedLabels !== null
5054
- ? deserializeAws_json1_1LabelSummaries(output.ConsumedLabels, context)
5055
- : undefined,
4933
+ ConsumedLabels: output.ConsumedLabels != null ? deserializeAws_json1_1LabelSummaries(output.ConsumedLabels, context) : undefined,
5056
4934
  LabelNamespace: __expectString(output.LabelNamespace),
5057
- Rules: output.Rules !== undefined && output.Rules !== null
5058
- ? deserializeAws_json1_1RuleSummaries(output.Rules, context)
5059
- : undefined,
4935
+ Rules: output.Rules != null ? deserializeAws_json1_1RuleSummaries(output.Rules, context) : undefined,
5060
4936
  SnsTopicArn: __expectString(output.SnsTopicArn),
5061
4937
  VersionName: __expectString(output.VersionName),
5062
4938
  };
@@ -5082,42 +4958,26 @@ var deserializeAws_json1_1ExcludedRules = function (output, context) {
5082
4958
  };
5083
4959
  var deserializeAws_json1_1FieldToMatch = function (output, context) {
5084
4960
  return {
5085
- AllQueryArguments: output.AllQueryArguments !== undefined && output.AllQueryArguments !== null
4961
+ AllQueryArguments: output.AllQueryArguments != null
5086
4962
  ? deserializeAws_json1_1AllQueryArguments(output.AllQueryArguments, context)
5087
4963
  : undefined,
5088
- Body: output.Body !== undefined && output.Body !== null ? deserializeAws_json1_1Body(output.Body, context) : undefined,
5089
- Cookies: output.Cookies !== undefined && output.Cookies !== null
5090
- ? deserializeAws_json1_1Cookies(output.Cookies, context)
5091
- : undefined,
5092
- Headers: output.Headers !== undefined && output.Headers !== null
5093
- ? deserializeAws_json1_1Headers(output.Headers, context)
5094
- : undefined,
5095
- JsonBody: output.JsonBody !== undefined && output.JsonBody !== null
5096
- ? deserializeAws_json1_1JsonBody(output.JsonBody, context)
5097
- : undefined,
5098
- Method: output.Method !== undefined && output.Method !== null
5099
- ? deserializeAws_json1_1Method(output.Method, context)
5100
- : undefined,
5101
- QueryString: output.QueryString !== undefined && output.QueryString !== null
5102
- ? deserializeAws_json1_1QueryString(output.QueryString, context)
5103
- : undefined,
5104
- SingleHeader: output.SingleHeader !== undefined && output.SingleHeader !== null
5105
- ? deserializeAws_json1_1SingleHeader(output.SingleHeader, context)
5106
- : undefined,
5107
- SingleQueryArgument: output.SingleQueryArgument !== undefined && output.SingleQueryArgument !== null
4964
+ Body: output.Body != null ? deserializeAws_json1_1Body(output.Body, context) : undefined,
4965
+ Cookies: output.Cookies != null ? deserializeAws_json1_1Cookies(output.Cookies, context) : undefined,
4966
+ Headers: output.Headers != null ? deserializeAws_json1_1Headers(output.Headers, context) : undefined,
4967
+ JsonBody: output.JsonBody != null ? deserializeAws_json1_1JsonBody(output.JsonBody, context) : undefined,
4968
+ Method: output.Method != null ? deserializeAws_json1_1Method(output.Method, context) : undefined,
4969
+ QueryString: output.QueryString != null ? deserializeAws_json1_1QueryString(output.QueryString, context) : undefined,
4970
+ SingleHeader: output.SingleHeader != null ? deserializeAws_json1_1SingleHeader(output.SingleHeader, context) : undefined,
4971
+ SingleQueryArgument: output.SingleQueryArgument != null
5108
4972
  ? deserializeAws_json1_1SingleQueryArgument(output.SingleQueryArgument, context)
5109
4973
  : undefined,
5110
- UriPath: output.UriPath !== undefined && output.UriPath !== null
5111
- ? deserializeAws_json1_1UriPath(output.UriPath, context)
5112
- : undefined,
4974
+ UriPath: output.UriPath != null ? deserializeAws_json1_1UriPath(output.UriPath, context) : undefined,
5113
4975
  };
5114
4976
  };
5115
4977
  var deserializeAws_json1_1Filter = function (output, context) {
5116
4978
  return {
5117
4979
  Behavior: __expectString(output.Behavior),
5118
- Conditions: output.Conditions !== undefined && output.Conditions !== null
5119
- ? deserializeAws_json1_1Conditions(output.Conditions, context)
5120
- : undefined,
4980
+ Conditions: output.Conditions != null ? deserializeAws_json1_1Conditions(output.Conditions, context) : undefined,
5121
4981
  Requirement: __expectString(output.Requirement),
5122
4982
  };
5123
4983
  };
@@ -5134,15 +4994,13 @@ var deserializeAws_json1_1Filters = function (output, context) {
5134
4994
  };
5135
4995
  var deserializeAws_json1_1FirewallManagerRuleGroup = function (output, context) {
5136
4996
  return {
5137
- FirewallManagerStatement: output.FirewallManagerStatement !== undefined && output.FirewallManagerStatement !== null
4997
+ FirewallManagerStatement: output.FirewallManagerStatement != null
5138
4998
  ? deserializeAws_json1_1FirewallManagerStatement(output.FirewallManagerStatement, context)
5139
4999
  : undefined,
5140
5000
  Name: __expectString(output.Name),
5141
- OverrideAction: output.OverrideAction !== undefined && output.OverrideAction !== null
5142
- ? deserializeAws_json1_1OverrideAction(output.OverrideAction, context)
5143
- : undefined,
5001
+ OverrideAction: output.OverrideAction != null ? deserializeAws_json1_1OverrideAction(output.OverrideAction, context) : undefined,
5144
5002
  Priority: __expectInt32(output.Priority),
5145
- VisibilityConfig: output.VisibilityConfig !== undefined && output.VisibilityConfig !== null
5003
+ VisibilityConfig: output.VisibilityConfig != null
5146
5004
  ? deserializeAws_json1_1VisibilityConfig(output.VisibilityConfig, context)
5147
5005
  : undefined,
5148
5006
  };
@@ -5160,10 +5018,10 @@ var deserializeAws_json1_1FirewallManagerRuleGroups = function (output, context)
5160
5018
  };
5161
5019
  var deserializeAws_json1_1FirewallManagerStatement = function (output, context) {
5162
5020
  return {
5163
- ManagedRuleGroupStatement: output.ManagedRuleGroupStatement !== undefined && output.ManagedRuleGroupStatement !== null
5021
+ ManagedRuleGroupStatement: output.ManagedRuleGroupStatement != null
5164
5022
  ? deserializeAws_json1_1ManagedRuleGroupStatement(output.ManagedRuleGroupStatement, context)
5165
5023
  : undefined,
5166
- RuleGroupReferenceStatement: output.RuleGroupReferenceStatement !== undefined && output.RuleGroupReferenceStatement !== null
5024
+ RuleGroupReferenceStatement: output.RuleGroupReferenceStatement != null
5167
5025
  ? deserializeAws_json1_1RuleGroupReferenceStatement(output.RuleGroupReferenceStatement, context)
5168
5026
  : undefined,
5169
5027
  };
@@ -5181,25 +5039,21 @@ var deserializeAws_json1_1GenerateMobileSdkReleaseUrlResponse = function (output
5181
5039
  };
5182
5040
  var deserializeAws_json1_1GeoMatchStatement = function (output, context) {
5183
5041
  return {
5184
- CountryCodes: output.CountryCodes !== undefined && output.CountryCodes !== null
5185
- ? deserializeAws_json1_1CountryCodes(output.CountryCodes, context)
5186
- : undefined,
5187
- ForwardedIPConfig: output.ForwardedIPConfig !== undefined && output.ForwardedIPConfig !== null
5042
+ CountryCodes: output.CountryCodes != null ? deserializeAws_json1_1CountryCodes(output.CountryCodes, context) : undefined,
5043
+ ForwardedIPConfig: output.ForwardedIPConfig != null
5188
5044
  ? deserializeAws_json1_1ForwardedIPConfig(output.ForwardedIPConfig, context)
5189
5045
  : undefined,
5190
5046
  };
5191
5047
  };
5192
5048
  var deserializeAws_json1_1GetIPSetResponse = function (output, context) {
5193
5049
  return {
5194
- IPSet: output.IPSet !== undefined && output.IPSet !== null
5195
- ? deserializeAws_json1_1IPSet(output.IPSet, context)
5196
- : undefined,
5050
+ IPSet: output.IPSet != null ? deserializeAws_json1_1IPSet(output.IPSet, context) : undefined,
5197
5051
  LockToken: __expectString(output.LockToken),
5198
5052
  };
5199
5053
  };
5200
5054
  var deserializeAws_json1_1GetLoggingConfigurationResponse = function (output, context) {
5201
5055
  return {
5202
- LoggingConfiguration: output.LoggingConfiguration !== undefined && output.LoggingConfiguration !== null
5056
+ LoggingConfiguration: output.LoggingConfiguration != null
5203
5057
  ? deserializeAws_json1_1LoggingConfiguration(output.LoggingConfiguration, context)
5204
5058
  : undefined,
5205
5059
  };
@@ -5207,14 +5061,12 @@ var deserializeAws_json1_1GetLoggingConfigurationResponse = function (output, co
5207
5061
  var deserializeAws_json1_1GetManagedRuleSetResponse = function (output, context) {
5208
5062
  return {
5209
5063
  LockToken: __expectString(output.LockToken),
5210
- ManagedRuleSet: output.ManagedRuleSet !== undefined && output.ManagedRuleSet !== null
5211
- ? deserializeAws_json1_1ManagedRuleSet(output.ManagedRuleSet, context)
5212
- : undefined,
5064
+ ManagedRuleSet: output.ManagedRuleSet != null ? deserializeAws_json1_1ManagedRuleSet(output.ManagedRuleSet, context) : undefined,
5213
5065
  };
5214
5066
  };
5215
5067
  var deserializeAws_json1_1GetMobileSdkReleaseResponse = function (output, context) {
5216
5068
  return {
5217
- MobileSdkRelease: output.MobileSdkRelease !== undefined && output.MobileSdkRelease !== null
5069
+ MobileSdkRelease: output.MobileSdkRelease != null
5218
5070
  ? deserializeAws_json1_1MobileSdkRelease(output.MobileSdkRelease, context)
5219
5071
  : undefined,
5220
5072
  };
@@ -5226,10 +5078,10 @@ var deserializeAws_json1_1GetPermissionPolicyResponse = function (output, contex
5226
5078
  };
5227
5079
  var deserializeAws_json1_1GetRateBasedStatementManagedKeysResponse = function (output, context) {
5228
5080
  return {
5229
- ManagedKeysIPV4: output.ManagedKeysIPV4 !== undefined && output.ManagedKeysIPV4 !== null
5081
+ ManagedKeysIPV4: output.ManagedKeysIPV4 != null
5230
5082
  ? deserializeAws_json1_1RateBasedStatementManagedKeysIPSet(output.ManagedKeysIPV4, context)
5231
5083
  : undefined,
5232
- ManagedKeysIPV6: output.ManagedKeysIPV6 !== undefined && output.ManagedKeysIPV6 !== null
5084
+ ManagedKeysIPV6: output.ManagedKeysIPV6 != null
5233
5085
  ? deserializeAws_json1_1RateBasedStatementManagedKeysIPSet(output.ManagedKeysIPV6, context)
5234
5086
  : undefined,
5235
5087
  };
@@ -5237,7 +5089,7 @@ var deserializeAws_json1_1GetRateBasedStatementManagedKeysResponse = function (o
5237
5089
  var deserializeAws_json1_1GetRegexPatternSetResponse = function (output, context) {
5238
5090
  return {
5239
5091
  LockToken: __expectString(output.LockToken),
5240
- RegexPatternSet: output.RegexPatternSet !== undefined && output.RegexPatternSet !== null
5092
+ RegexPatternSet: output.RegexPatternSet != null
5241
5093
  ? deserializeAws_json1_1RegexPatternSet(output.RegexPatternSet, context)
5242
5094
  : undefined,
5243
5095
  };
@@ -5245,47 +5097,35 @@ var deserializeAws_json1_1GetRegexPatternSetResponse = function (output, context
5245
5097
  var deserializeAws_json1_1GetRuleGroupResponse = function (output, context) {
5246
5098
  return {
5247
5099
  LockToken: __expectString(output.LockToken),
5248
- RuleGroup: output.RuleGroup !== undefined && output.RuleGroup !== null
5249
- ? deserializeAws_json1_1RuleGroup(output.RuleGroup, context)
5250
- : undefined,
5100
+ RuleGroup: output.RuleGroup != null ? deserializeAws_json1_1RuleGroup(output.RuleGroup, context) : undefined,
5251
5101
  };
5252
5102
  };
5253
5103
  var deserializeAws_json1_1GetSampledRequestsResponse = function (output, context) {
5254
5104
  return {
5255
5105
  PopulationSize: __expectLong(output.PopulationSize),
5256
- SampledRequests: output.SampledRequests !== undefined && output.SampledRequests !== null
5106
+ SampledRequests: output.SampledRequests != null
5257
5107
  ? deserializeAws_json1_1SampledHTTPRequests(output.SampledRequests, context)
5258
5108
  : undefined,
5259
- TimeWindow: output.TimeWindow !== undefined && output.TimeWindow !== null
5260
- ? deserializeAws_json1_1TimeWindow(output.TimeWindow, context)
5261
- : undefined,
5109
+ TimeWindow: output.TimeWindow != null ? deserializeAws_json1_1TimeWindow(output.TimeWindow, context) : undefined,
5262
5110
  };
5263
5111
  };
5264
5112
  var deserializeAws_json1_1GetWebACLForResourceResponse = function (output, context) {
5265
5113
  return {
5266
- WebACL: output.WebACL !== undefined && output.WebACL !== null
5267
- ? deserializeAws_json1_1WebACL(output.WebACL, context)
5268
- : undefined,
5114
+ WebACL: output.WebACL != null ? deserializeAws_json1_1WebACL(output.WebACL, context) : undefined,
5269
5115
  };
5270
5116
  };
5271
5117
  var deserializeAws_json1_1GetWebACLResponse = function (output, context) {
5272
5118
  return {
5273
5119
  ApplicationIntegrationURL: __expectString(output.ApplicationIntegrationURL),
5274
5120
  LockToken: __expectString(output.LockToken),
5275
- WebACL: output.WebACL !== undefined && output.WebACL !== null
5276
- ? deserializeAws_json1_1WebACL(output.WebACL, context)
5277
- : undefined,
5121
+ WebACL: output.WebACL != null ? deserializeAws_json1_1WebACL(output.WebACL, context) : undefined,
5278
5122
  };
5279
5123
  };
5280
5124
  var deserializeAws_json1_1HeaderMatchPattern = function (output, context) {
5281
5125
  return {
5282
- All: output.All !== undefined && output.All !== null ? deserializeAws_json1_1All(output.All, context) : undefined,
5283
- ExcludedHeaders: output.ExcludedHeaders !== undefined && output.ExcludedHeaders !== null
5284
- ? deserializeAws_json1_1HeaderNames(output.ExcludedHeaders, context)
5285
- : undefined,
5286
- IncludedHeaders: output.IncludedHeaders !== undefined && output.IncludedHeaders !== null
5287
- ? deserializeAws_json1_1HeaderNames(output.IncludedHeaders, context)
5288
- : undefined,
5126
+ All: output.All != null ? deserializeAws_json1_1All(output.All, context) : undefined,
5127
+ ExcludedHeaders: output.ExcludedHeaders != null ? deserializeAws_json1_1HeaderNames(output.ExcludedHeaders, context) : undefined,
5128
+ IncludedHeaders: output.IncludedHeaders != null ? deserializeAws_json1_1HeaderNames(output.IncludedHeaders, context) : undefined,
5289
5129
  };
5290
5130
  };
5291
5131
  var deserializeAws_json1_1HeaderNames = function (output, context) {
@@ -5301,9 +5141,7 @@ var deserializeAws_json1_1HeaderNames = function (output, context) {
5301
5141
  };
5302
5142
  var deserializeAws_json1_1Headers = function (output, context) {
5303
5143
  return {
5304
- MatchPattern: output.MatchPattern !== undefined && output.MatchPattern !== null
5305
- ? deserializeAws_json1_1HeaderMatchPattern(output.MatchPattern, context)
5306
- : undefined,
5144
+ MatchPattern: output.MatchPattern != null ? deserializeAws_json1_1HeaderMatchPattern(output.MatchPattern, context) : undefined,
5307
5145
  MatchScope: __expectString(output.MatchScope),
5308
5146
  OversizeHandling: __expectString(output.OversizeHandling),
5309
5147
  };
@@ -5330,9 +5168,7 @@ var deserializeAws_json1_1HTTPRequest = function (output, context) {
5330
5168
  ClientIP: __expectString(output.ClientIP),
5331
5169
  Country: __expectString(output.Country),
5332
5170
  HTTPVersion: __expectString(output.HTTPVersion),
5333
- Headers: output.Headers !== undefined && output.Headers !== null
5334
- ? deserializeAws_json1_1HTTPHeaders(output.Headers, context)
5335
- : undefined,
5171
+ Headers: output.Headers != null ? deserializeAws_json1_1HTTPHeaders(output.Headers, context) : undefined,
5336
5172
  Method: __expectString(output.Method),
5337
5173
  URI: __expectString(output.URI),
5338
5174
  };
@@ -5356,9 +5192,7 @@ var deserializeAws_json1_1IPAddresses = function (output, context) {
5356
5192
  var deserializeAws_json1_1IPSet = function (output, context) {
5357
5193
  return {
5358
5194
  ARN: __expectString(output.ARN),
5359
- Addresses: output.Addresses !== undefined && output.Addresses !== null
5360
- ? deserializeAws_json1_1IPAddresses(output.Addresses, context)
5361
- : undefined,
5195
+ Addresses: output.Addresses != null ? deserializeAws_json1_1IPAddresses(output.Addresses, context) : undefined,
5362
5196
  Description: __expectString(output.Description),
5363
5197
  IPAddressVersion: __expectString(output.IPAddressVersion),
5364
5198
  Id: __expectString(output.Id),
@@ -5375,7 +5209,7 @@ var deserializeAws_json1_1IPSetForwardedIPConfig = function (output, context) {
5375
5209
  var deserializeAws_json1_1IPSetReferenceStatement = function (output, context) {
5376
5210
  return {
5377
5211
  ARN: __expectString(output.ARN),
5378
- IPSetForwardedIPConfig: output.IPSetForwardedIPConfig !== undefined && output.IPSetForwardedIPConfig !== null
5212
+ IPSetForwardedIPConfig: output.IPSetForwardedIPConfig != null
5379
5213
  ? deserializeAws_json1_1IPSetForwardedIPConfig(output.IPSetForwardedIPConfig, context)
5380
5214
  : undefined,
5381
5215
  };
@@ -5403,19 +5237,15 @@ var deserializeAws_json1_1IPSetSummary = function (output, context) {
5403
5237
  var deserializeAws_json1_1JsonBody = function (output, context) {
5404
5238
  return {
5405
5239
  InvalidFallbackBehavior: __expectString(output.InvalidFallbackBehavior),
5406
- MatchPattern: output.MatchPattern !== undefined && output.MatchPattern !== null
5407
- ? deserializeAws_json1_1JsonMatchPattern(output.MatchPattern, context)
5408
- : undefined,
5240
+ MatchPattern: output.MatchPattern != null ? deserializeAws_json1_1JsonMatchPattern(output.MatchPattern, context) : undefined,
5409
5241
  MatchScope: __expectString(output.MatchScope),
5410
5242
  OversizeHandling: __expectString(output.OversizeHandling),
5411
5243
  };
5412
5244
  };
5413
5245
  var deserializeAws_json1_1JsonMatchPattern = function (output, context) {
5414
5246
  return {
5415
- All: output.All !== undefined && output.All !== null ? deserializeAws_json1_1All(output.All, context) : undefined,
5416
- IncludedPaths: output.IncludedPaths !== undefined && output.IncludedPaths !== null
5417
- ? deserializeAws_json1_1JsonPointerPaths(output.IncludedPaths, context)
5418
- : undefined,
5247
+ All: output.All != null ? deserializeAws_json1_1All(output.All, context) : undefined,
5248
+ IncludedPaths: output.IncludedPaths != null ? deserializeAws_json1_1JsonPointerPaths(output.IncludedPaths, context) : undefined,
5419
5249
  };
5420
5250
  };
5421
5251
  var deserializeAws_json1_1JsonPointerPaths = function (output, context) {
@@ -5474,7 +5304,7 @@ var deserializeAws_json1_1LabelSummary = function (output, context) {
5474
5304
  };
5475
5305
  var deserializeAws_json1_1ListAvailableManagedRuleGroupsResponse = function (output, context) {
5476
5306
  return {
5477
- ManagedRuleGroups: output.ManagedRuleGroups !== undefined && output.ManagedRuleGroups !== null
5307
+ ManagedRuleGroups: output.ManagedRuleGroups != null
5478
5308
  ? deserializeAws_json1_1ManagedRuleGroupSummaries(output.ManagedRuleGroups, context)
5479
5309
  : undefined,
5480
5310
  NextMarker: __expectString(output.NextMarker),
@@ -5484,22 +5314,18 @@ var deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsResponse = functi
5484
5314
  return {
5485
5315
  CurrentDefaultVersion: __expectString(output.CurrentDefaultVersion),
5486
5316
  NextMarker: __expectString(output.NextMarker),
5487
- Versions: output.Versions !== undefined && output.Versions !== null
5488
- ? deserializeAws_json1_1ManagedRuleGroupVersions(output.Versions, context)
5489
- : undefined,
5317
+ Versions: output.Versions != null ? deserializeAws_json1_1ManagedRuleGroupVersions(output.Versions, context) : undefined,
5490
5318
  };
5491
5319
  };
5492
5320
  var deserializeAws_json1_1ListIPSetsResponse = function (output, context) {
5493
5321
  return {
5494
- IPSets: output.IPSets !== undefined && output.IPSets !== null
5495
- ? deserializeAws_json1_1IPSetSummaries(output.IPSets, context)
5496
- : undefined,
5322
+ IPSets: output.IPSets != null ? deserializeAws_json1_1IPSetSummaries(output.IPSets, context) : undefined,
5497
5323
  NextMarker: __expectString(output.NextMarker),
5498
5324
  };
5499
5325
  };
5500
5326
  var deserializeAws_json1_1ListLoggingConfigurationsResponse = function (output, context) {
5501
5327
  return {
5502
- LoggingConfigurations: output.LoggingConfigurations !== undefined && output.LoggingConfigurations !== null
5328
+ LoggingConfigurations: output.LoggingConfigurations != null
5503
5329
  ? deserializeAws_json1_1LoggingConfigurations(output.LoggingConfigurations, context)
5504
5330
  : undefined,
5505
5331
  NextMarker: __expectString(output.NextMarker),
@@ -5507,7 +5333,7 @@ var deserializeAws_json1_1ListLoggingConfigurationsResponse = function (output,
5507
5333
  };
5508
5334
  var deserializeAws_json1_1ListManagedRuleSetsResponse = function (output, context) {
5509
5335
  return {
5510
- ManagedRuleSets: output.ManagedRuleSets !== undefined && output.ManagedRuleSets !== null
5336
+ ManagedRuleSets: output.ManagedRuleSets != null
5511
5337
  ? deserializeAws_json1_1ManagedRuleSetSummaries(output.ManagedRuleSets, context)
5512
5338
  : undefined,
5513
5339
  NextMarker: __expectString(output.NextMarker),
@@ -5516,7 +5342,7 @@ var deserializeAws_json1_1ListManagedRuleSetsResponse = function (output, contex
5516
5342
  var deserializeAws_json1_1ListMobileSdkReleasesResponse = function (output, context) {
5517
5343
  return {
5518
5344
  NextMarker: __expectString(output.NextMarker),
5519
- ReleaseSummaries: output.ReleaseSummaries !== undefined && output.ReleaseSummaries !== null
5345
+ ReleaseSummaries: output.ReleaseSummaries != null
5520
5346
  ? deserializeAws_json1_1ReleaseSummaries(output.ReleaseSummaries, context)
5521
5347
  : undefined,
5522
5348
  };
@@ -5524,30 +5350,26 @@ var deserializeAws_json1_1ListMobileSdkReleasesResponse = function (output, cont
5524
5350
  var deserializeAws_json1_1ListRegexPatternSetsResponse = function (output, context) {
5525
5351
  return {
5526
5352
  NextMarker: __expectString(output.NextMarker),
5527
- RegexPatternSets: output.RegexPatternSets !== undefined && output.RegexPatternSets !== null
5353
+ RegexPatternSets: output.RegexPatternSets != null
5528
5354
  ? deserializeAws_json1_1RegexPatternSetSummaries(output.RegexPatternSets, context)
5529
5355
  : undefined,
5530
5356
  };
5531
5357
  };
5532
5358
  var deserializeAws_json1_1ListResourcesForWebACLResponse = function (output, context) {
5533
5359
  return {
5534
- ResourceArns: output.ResourceArns !== undefined && output.ResourceArns !== null
5535
- ? deserializeAws_json1_1ResourceArns(output.ResourceArns, context)
5536
- : undefined,
5360
+ ResourceArns: output.ResourceArns != null ? deserializeAws_json1_1ResourceArns(output.ResourceArns, context) : undefined,
5537
5361
  };
5538
5362
  };
5539
5363
  var deserializeAws_json1_1ListRuleGroupsResponse = function (output, context) {
5540
5364
  return {
5541
5365
  NextMarker: __expectString(output.NextMarker),
5542
- RuleGroups: output.RuleGroups !== undefined && output.RuleGroups !== null
5543
- ? deserializeAws_json1_1RuleGroupSummaries(output.RuleGroups, context)
5544
- : undefined,
5366
+ RuleGroups: output.RuleGroups != null ? deserializeAws_json1_1RuleGroupSummaries(output.RuleGroups, context) : undefined,
5545
5367
  };
5546
5368
  };
5547
5369
  var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
5548
5370
  return {
5549
5371
  NextMarker: __expectString(output.NextMarker),
5550
- TagInfoForResource: output.TagInfoForResource !== undefined && output.TagInfoForResource !== null
5372
+ TagInfoForResource: output.TagInfoForResource != null
5551
5373
  ? deserializeAws_json1_1TagInfoForResource(output.TagInfoForResource, context)
5552
5374
  : undefined,
5553
5375
  };
@@ -5555,9 +5377,7 @@ var deserializeAws_json1_1ListTagsForResourceResponse = function (output, contex
5555
5377
  var deserializeAws_json1_1ListWebACLsResponse = function (output, context) {
5556
5378
  return {
5557
5379
  NextMarker: __expectString(output.NextMarker),
5558
- WebACLs: output.WebACLs !== undefined && output.WebACLs !== null
5559
- ? deserializeAws_json1_1WebACLSummaries(output.WebACLs, context)
5560
- : undefined,
5380
+ WebACLs: output.WebACLs != null ? deserializeAws_json1_1WebACLSummaries(output.WebACLs, context) : undefined,
5561
5381
  };
5562
5382
  };
5563
5383
  var deserializeAws_json1_1LogDestinationConfigs = function (output, context) {
@@ -5573,16 +5393,12 @@ var deserializeAws_json1_1LogDestinationConfigs = function (output, context) {
5573
5393
  };
5574
5394
  var deserializeAws_json1_1LoggingConfiguration = function (output, context) {
5575
5395
  return {
5576
- LogDestinationConfigs: output.LogDestinationConfigs !== undefined && output.LogDestinationConfigs !== null
5396
+ LogDestinationConfigs: output.LogDestinationConfigs != null
5577
5397
  ? deserializeAws_json1_1LogDestinationConfigs(output.LogDestinationConfigs, context)
5578
5398
  : undefined,
5579
- LoggingFilter: output.LoggingFilter !== undefined && output.LoggingFilter !== null
5580
- ? deserializeAws_json1_1LoggingFilter(output.LoggingFilter, context)
5581
- : undefined,
5399
+ LoggingFilter: output.LoggingFilter != null ? deserializeAws_json1_1LoggingFilter(output.LoggingFilter, context) : undefined,
5582
5400
  ManagedByFirewallManager: __expectBoolean(output.ManagedByFirewallManager),
5583
- RedactedFields: output.RedactedFields !== undefined && output.RedactedFields !== null
5584
- ? deserializeAws_json1_1RedactedFields(output.RedactedFields, context)
5585
- : undefined,
5401
+ RedactedFields: output.RedactedFields != null ? deserializeAws_json1_1RedactedFields(output.RedactedFields, context) : undefined,
5586
5402
  ResourceArn: __expectString(output.ResourceArn),
5587
5403
  };
5588
5404
  };
@@ -5600,21 +5416,15 @@ var deserializeAws_json1_1LoggingConfigurations = function (output, context) {
5600
5416
  var deserializeAws_json1_1LoggingFilter = function (output, context) {
5601
5417
  return {
5602
5418
  DefaultBehavior: __expectString(output.DefaultBehavior),
5603
- Filters: output.Filters !== undefined && output.Filters !== null
5604
- ? deserializeAws_json1_1Filters(output.Filters, context)
5605
- : undefined,
5419
+ Filters: output.Filters != null ? deserializeAws_json1_1Filters(output.Filters, context) : undefined,
5606
5420
  };
5607
5421
  };
5608
5422
  var deserializeAws_json1_1ManagedRuleGroupConfig = function (output, context) {
5609
5423
  return {
5610
5424
  LoginPath: __expectString(output.LoginPath),
5611
- PasswordField: output.PasswordField !== undefined && output.PasswordField !== null
5612
- ? deserializeAws_json1_1PasswordField(output.PasswordField, context)
5613
- : undefined,
5425
+ PasswordField: output.PasswordField != null ? deserializeAws_json1_1PasswordField(output.PasswordField, context) : undefined,
5614
5426
  PayloadType: __expectString(output.PayloadType),
5615
- UsernameField: output.UsernameField !== undefined && output.UsernameField !== null
5616
- ? deserializeAws_json1_1UsernameField(output.UsernameField, context)
5617
- : undefined,
5427
+ UsernameField: output.UsernameField != null ? deserializeAws_json1_1UsernameField(output.UsernameField, context) : undefined,
5618
5428
  };
5619
5429
  };
5620
5430
  var deserializeAws_json1_1ManagedRuleGroupConfigs = function (output, context) {
@@ -5630,14 +5440,12 @@ var deserializeAws_json1_1ManagedRuleGroupConfigs = function (output, context) {
5630
5440
  };
5631
5441
  var deserializeAws_json1_1ManagedRuleGroupStatement = function (output, context) {
5632
5442
  return {
5633
- ExcludedRules: output.ExcludedRules !== undefined && output.ExcludedRules !== null
5634
- ? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context)
5635
- : undefined,
5636
- ManagedRuleGroupConfigs: output.ManagedRuleGroupConfigs !== undefined && output.ManagedRuleGroupConfigs !== null
5443
+ ExcludedRules: output.ExcludedRules != null ? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context) : undefined,
5444
+ ManagedRuleGroupConfigs: output.ManagedRuleGroupConfigs != null
5637
5445
  ? deserializeAws_json1_1ManagedRuleGroupConfigs(output.ManagedRuleGroupConfigs, context)
5638
5446
  : undefined,
5639
5447
  Name: __expectString(output.Name),
5640
- ScopeDownStatement: output.ScopeDownStatement !== undefined && output.ScopeDownStatement !== null
5448
+ ScopeDownStatement: output.ScopeDownStatement != null
5641
5449
  ? deserializeAws_json1_1Statement(output.ScopeDownStatement, context)
5642
5450
  : undefined,
5643
5451
  VendorName: __expectString(output.VendorName),
@@ -5665,7 +5473,7 @@ var deserializeAws_json1_1ManagedRuleGroupSummary = function (output, context) {
5665
5473
  };
5666
5474
  var deserializeAws_json1_1ManagedRuleGroupVersion = function (output, context) {
5667
5475
  return {
5668
- LastUpdateTimestamp: output.LastUpdateTimestamp !== undefined && output.LastUpdateTimestamp !== null
5476
+ LastUpdateTimestamp: output.LastUpdateTimestamp != null
5669
5477
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTimestamp)))
5670
5478
  : undefined,
5671
5479
  Name: __expectString(output.Name),
@@ -5689,7 +5497,7 @@ var deserializeAws_json1_1ManagedRuleSet = function (output, context) {
5689
5497
  Id: __expectString(output.Id),
5690
5498
  LabelNamespace: __expectString(output.LabelNamespace),
5691
5499
  Name: __expectString(output.Name),
5692
- PublishedVersions: output.PublishedVersions !== undefined && output.PublishedVersions !== null
5500
+ PublishedVersions: output.PublishedVersions != null
5693
5501
  ? deserializeAws_json1_1PublishedVersions(output.PublishedVersions, context)
5694
5502
  : undefined,
5695
5503
  RecommendedVersion: __expectString(output.RecommendedVersion),
@@ -5720,14 +5528,14 @@ var deserializeAws_json1_1ManagedRuleSetVersion = function (output, context) {
5720
5528
  return {
5721
5529
  AssociatedRuleGroupArn: __expectString(output.AssociatedRuleGroupArn),
5722
5530
  Capacity: __expectLong(output.Capacity),
5723
- ExpiryTimestamp: output.ExpiryTimestamp !== undefined && output.ExpiryTimestamp !== null
5531
+ ExpiryTimestamp: output.ExpiryTimestamp != null
5724
5532
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ExpiryTimestamp)))
5725
5533
  : undefined,
5726
5534
  ForecastedLifetime: __expectInt32(output.ForecastedLifetime),
5727
- LastUpdateTimestamp: output.LastUpdateTimestamp !== undefined && output.LastUpdateTimestamp !== null
5535
+ LastUpdateTimestamp: output.LastUpdateTimestamp != null
5728
5536
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTimestamp)))
5729
5537
  : undefined,
5730
- PublishTimestamp: output.PublishTimestamp !== undefined && output.PublishTimestamp !== null
5538
+ PublishTimestamp: output.PublishTimestamp != null
5731
5539
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.PublishTimestamp)))
5732
5540
  : undefined,
5733
5541
  };
@@ -5739,12 +5547,8 @@ var deserializeAws_json1_1MobileSdkRelease = function (output, context) {
5739
5547
  return {
5740
5548
  ReleaseNotes: __expectString(output.ReleaseNotes),
5741
5549
  ReleaseVersion: __expectString(output.ReleaseVersion),
5742
- Tags: output.Tags !== undefined && output.Tags !== null
5743
- ? deserializeAws_json1_1TagList(output.Tags, context)
5744
- : undefined,
5745
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
5746
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp)))
5747
- : undefined,
5550
+ Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
5551
+ Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
5748
5552
  };
5749
5553
  };
5750
5554
  var deserializeAws_json1_1NoneAction = function (output, context) {
@@ -5752,26 +5556,18 @@ var deserializeAws_json1_1NoneAction = function (output, context) {
5752
5556
  };
5753
5557
  var deserializeAws_json1_1NotStatement = function (output, context) {
5754
5558
  return {
5755
- Statement: output.Statement !== undefined && output.Statement !== null
5756
- ? deserializeAws_json1_1Statement(output.Statement, context)
5757
- : undefined,
5559
+ Statement: output.Statement != null ? deserializeAws_json1_1Statement(output.Statement, context) : undefined,
5758
5560
  };
5759
5561
  };
5760
5562
  var deserializeAws_json1_1OrStatement = function (output, context) {
5761
5563
  return {
5762
- Statements: output.Statements !== undefined && output.Statements !== null
5763
- ? deserializeAws_json1_1Statements(output.Statements, context)
5764
- : undefined,
5564
+ Statements: output.Statements != null ? deserializeAws_json1_1Statements(output.Statements, context) : undefined,
5765
5565
  };
5766
5566
  };
5767
5567
  var deserializeAws_json1_1OverrideAction = function (output, context) {
5768
5568
  return {
5769
- Count: output.Count !== undefined && output.Count !== null
5770
- ? deserializeAws_json1_1CountAction(output.Count, context)
5771
- : undefined,
5772
- None: output.None !== undefined && output.None !== null
5773
- ? deserializeAws_json1_1NoneAction(output.None, context)
5774
- : undefined,
5569
+ Count: output.Count != null ? deserializeAws_json1_1CountAction(output.Count, context) : undefined,
5570
+ None: output.None != null ? deserializeAws_json1_1NoneAction(output.None, context) : undefined,
5775
5571
  };
5776
5572
  };
5777
5573
  var deserializeAws_json1_1PasswordField = function (output, context) {
@@ -5791,7 +5587,7 @@ var deserializeAws_json1_1PublishedVersions = function (output, context) {
5791
5587
  };
5792
5588
  var deserializeAws_json1_1PutLoggingConfigurationResponse = function (output, context) {
5793
5589
  return {
5794
- LoggingConfiguration: output.LoggingConfiguration !== undefined && output.LoggingConfiguration !== null
5590
+ LoggingConfiguration: output.LoggingConfiguration != null
5795
5591
  ? deserializeAws_json1_1LoggingConfiguration(output.LoggingConfiguration, context)
5796
5592
  : undefined,
5797
5593
  };
@@ -5810,20 +5606,18 @@ var deserializeAws_json1_1QueryString = function (output, context) {
5810
5606
  var deserializeAws_json1_1RateBasedStatement = function (output, context) {
5811
5607
  return {
5812
5608
  AggregateKeyType: __expectString(output.AggregateKeyType),
5813
- ForwardedIPConfig: output.ForwardedIPConfig !== undefined && output.ForwardedIPConfig !== null
5609
+ ForwardedIPConfig: output.ForwardedIPConfig != null
5814
5610
  ? deserializeAws_json1_1ForwardedIPConfig(output.ForwardedIPConfig, context)
5815
5611
  : undefined,
5816
5612
  Limit: __expectLong(output.Limit),
5817
- ScopeDownStatement: output.ScopeDownStatement !== undefined && output.ScopeDownStatement !== null
5613
+ ScopeDownStatement: output.ScopeDownStatement != null
5818
5614
  ? deserializeAws_json1_1Statement(output.ScopeDownStatement, context)
5819
5615
  : undefined,
5820
5616
  };
5821
5617
  };
5822
5618
  var deserializeAws_json1_1RateBasedStatementManagedKeysIPSet = function (output, context) {
5823
5619
  return {
5824
- Addresses: output.Addresses !== undefined && output.Addresses !== null
5825
- ? deserializeAws_json1_1IPAddresses(output.Addresses, context)
5826
- : undefined,
5620
+ Addresses: output.Addresses != null ? deserializeAws_json1_1IPAddresses(output.Addresses, context) : undefined,
5827
5621
  IPAddressVersion: __expectString(output.IPAddressVersion),
5828
5622
  };
5829
5623
  };
@@ -5845,11 +5639,9 @@ var deserializeAws_json1_1Regex = function (output, context) {
5845
5639
  };
5846
5640
  var deserializeAws_json1_1RegexMatchStatement = function (output, context) {
5847
5641
  return {
5848
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
5849
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
5850
- : undefined,
5642
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
5851
5643
  RegexString: __expectString(output.RegexString),
5852
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
5644
+ TextTransformations: output.TextTransformations != null
5853
5645
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
5854
5646
  : undefined,
5855
5647
  };
@@ -5860,7 +5652,7 @@ var deserializeAws_json1_1RegexPatternSet = function (output, context) {
5860
5652
  Description: __expectString(output.Description),
5861
5653
  Id: __expectString(output.Id),
5862
5654
  Name: __expectString(output.Name),
5863
- RegularExpressionList: output.RegularExpressionList !== undefined && output.RegularExpressionList !== null
5655
+ RegularExpressionList: output.RegularExpressionList != null
5864
5656
  ? deserializeAws_json1_1RegularExpressionList(output.RegularExpressionList, context)
5865
5657
  : undefined,
5866
5658
  };
@@ -5868,10 +5660,8 @@ var deserializeAws_json1_1RegexPatternSet = function (output, context) {
5868
5660
  var deserializeAws_json1_1RegexPatternSetReferenceStatement = function (output, context) {
5869
5661
  return {
5870
5662
  ARN: __expectString(output.ARN),
5871
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
5872
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
5873
- : undefined,
5874
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
5663
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
5664
+ TextTransformations: output.TextTransformations != null
5875
5665
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
5876
5666
  : undefined,
5877
5667
  };
@@ -5921,9 +5711,7 @@ var deserializeAws_json1_1ReleaseSummaries = function (output, context) {
5921
5711
  var deserializeAws_json1_1ReleaseSummary = function (output, context) {
5922
5712
  return {
5923
5713
  ReleaseVersion: __expectString(output.ReleaseVersion),
5924
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
5925
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp)))
5926
- : undefined,
5714
+ Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
5927
5715
  };
5928
5716
  };
5929
5717
  var deserializeAws_json1_1ResourceArns = function (output, context) {
@@ -5939,65 +5727,43 @@ var deserializeAws_json1_1ResourceArns = function (output, context) {
5939
5727
  };
5940
5728
  var deserializeAws_json1_1Rule = function (output, context) {
5941
5729
  return {
5942
- Action: output.Action !== undefined && output.Action !== null
5943
- ? deserializeAws_json1_1RuleAction(output.Action, context)
5944
- : undefined,
5945
- CaptchaConfig: output.CaptchaConfig !== undefined && output.CaptchaConfig !== null
5946
- ? deserializeAws_json1_1CaptchaConfig(output.CaptchaConfig, context)
5947
- : undefined,
5730
+ Action: output.Action != null ? deserializeAws_json1_1RuleAction(output.Action, context) : undefined,
5731
+ CaptchaConfig: output.CaptchaConfig != null ? deserializeAws_json1_1CaptchaConfig(output.CaptchaConfig, context) : undefined,
5948
5732
  Name: __expectString(output.Name),
5949
- OverrideAction: output.OverrideAction !== undefined && output.OverrideAction !== null
5950
- ? deserializeAws_json1_1OverrideAction(output.OverrideAction, context)
5951
- : undefined,
5733
+ OverrideAction: output.OverrideAction != null ? deserializeAws_json1_1OverrideAction(output.OverrideAction, context) : undefined,
5952
5734
  Priority: __expectInt32(output.Priority),
5953
- RuleLabels: output.RuleLabels !== undefined && output.RuleLabels !== null
5954
- ? deserializeAws_json1_1Labels(output.RuleLabels, context)
5955
- : undefined,
5956
- Statement: output.Statement !== undefined && output.Statement !== null
5957
- ? deserializeAws_json1_1Statement(output.Statement, context)
5958
- : undefined,
5959
- VisibilityConfig: output.VisibilityConfig !== undefined && output.VisibilityConfig !== null
5735
+ RuleLabels: output.RuleLabels != null ? deserializeAws_json1_1Labels(output.RuleLabels, context) : undefined,
5736
+ Statement: output.Statement != null ? deserializeAws_json1_1Statement(output.Statement, context) : undefined,
5737
+ VisibilityConfig: output.VisibilityConfig != null
5960
5738
  ? deserializeAws_json1_1VisibilityConfig(output.VisibilityConfig, context)
5961
5739
  : undefined,
5962
5740
  };
5963
5741
  };
5964
5742
  var deserializeAws_json1_1RuleAction = function (output, context) {
5965
5743
  return {
5966
- Allow: output.Allow !== undefined && output.Allow !== null
5967
- ? deserializeAws_json1_1AllowAction(output.Allow, context)
5968
- : undefined,
5969
- Block: output.Block !== undefined && output.Block !== null
5970
- ? deserializeAws_json1_1BlockAction(output.Block, context)
5971
- : undefined,
5972
- Captcha: output.Captcha !== undefined && output.Captcha !== null
5973
- ? deserializeAws_json1_1CaptchaAction(output.Captcha, context)
5974
- : undefined,
5975
- Count: output.Count !== undefined && output.Count !== null
5976
- ? deserializeAws_json1_1CountAction(output.Count, context)
5977
- : undefined,
5744
+ Allow: output.Allow != null ? deserializeAws_json1_1AllowAction(output.Allow, context) : undefined,
5745
+ Block: output.Block != null ? deserializeAws_json1_1BlockAction(output.Block, context) : undefined,
5746
+ Captcha: output.Captcha != null ? deserializeAws_json1_1CaptchaAction(output.Captcha, context) : undefined,
5747
+ Count: output.Count != null ? deserializeAws_json1_1CountAction(output.Count, context) : undefined,
5978
5748
  };
5979
5749
  };
5980
5750
  var deserializeAws_json1_1RuleGroup = function (output, context) {
5981
5751
  return {
5982
5752
  ARN: __expectString(output.ARN),
5983
- AvailableLabels: output.AvailableLabels !== undefined && output.AvailableLabels !== null
5753
+ AvailableLabels: output.AvailableLabels != null
5984
5754
  ? deserializeAws_json1_1LabelSummaries(output.AvailableLabels, context)
5985
5755
  : undefined,
5986
5756
  Capacity: __expectLong(output.Capacity),
5987
- ConsumedLabels: output.ConsumedLabels !== undefined && output.ConsumedLabels !== null
5988
- ? deserializeAws_json1_1LabelSummaries(output.ConsumedLabels, context)
5989
- : undefined,
5990
- CustomResponseBodies: output.CustomResponseBodies !== undefined && output.CustomResponseBodies !== null
5757
+ ConsumedLabels: output.ConsumedLabels != null ? deserializeAws_json1_1LabelSummaries(output.ConsumedLabels, context) : undefined,
5758
+ CustomResponseBodies: output.CustomResponseBodies != null
5991
5759
  ? deserializeAws_json1_1CustomResponseBodies(output.CustomResponseBodies, context)
5992
5760
  : undefined,
5993
5761
  Description: __expectString(output.Description),
5994
5762
  Id: __expectString(output.Id),
5995
5763
  LabelNamespace: __expectString(output.LabelNamespace),
5996
5764
  Name: __expectString(output.Name),
5997
- Rules: output.Rules !== undefined && output.Rules !== null
5998
- ? deserializeAws_json1_1Rules(output.Rules, context)
5999
- : undefined,
6000
- VisibilityConfig: output.VisibilityConfig !== undefined && output.VisibilityConfig !== null
5765
+ Rules: output.Rules != null ? deserializeAws_json1_1Rules(output.Rules, context) : undefined,
5766
+ VisibilityConfig: output.VisibilityConfig != null
6001
5767
  ? deserializeAws_json1_1VisibilityConfig(output.VisibilityConfig, context)
6002
5768
  : undefined,
6003
5769
  };
@@ -6005,9 +5771,7 @@ var deserializeAws_json1_1RuleGroup = function (output, context) {
6005
5771
  var deserializeAws_json1_1RuleGroupReferenceStatement = function (output, context) {
6006
5772
  return {
6007
5773
  ARN: __expectString(output.ARN),
6008
- ExcludedRules: output.ExcludedRules !== undefined && output.ExcludedRules !== null
6009
- ? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context)
6010
- : undefined,
5774
+ ExcludedRules: output.ExcludedRules != null ? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context) : undefined,
6011
5775
  };
6012
5776
  };
6013
5777
  var deserializeAws_json1_1RuleGroupSummaries = function (output, context) {
@@ -6054,32 +5818,24 @@ var deserializeAws_json1_1RuleSummaries = function (output, context) {
6054
5818
  };
6055
5819
  var deserializeAws_json1_1RuleSummary = function (output, context) {
6056
5820
  return {
6057
- Action: output.Action !== undefined && output.Action !== null
6058
- ? deserializeAws_json1_1RuleAction(output.Action, context)
6059
- : undefined,
5821
+ Action: output.Action != null ? deserializeAws_json1_1RuleAction(output.Action, context) : undefined,
6060
5822
  Name: __expectString(output.Name),
6061
5823
  };
6062
5824
  };
6063
5825
  var deserializeAws_json1_1SampledHTTPRequest = function (output, context) {
6064
5826
  return {
6065
5827
  Action: __expectString(output.Action),
6066
- CaptchaResponse: output.CaptchaResponse !== undefined && output.CaptchaResponse !== null
5828
+ CaptchaResponse: output.CaptchaResponse != null
6067
5829
  ? deserializeAws_json1_1CaptchaResponse(output.CaptchaResponse, context)
6068
5830
  : undefined,
6069
- Labels: output.Labels !== undefined && output.Labels !== null
6070
- ? deserializeAws_json1_1Labels(output.Labels, context)
6071
- : undefined,
6072
- Request: output.Request !== undefined && output.Request !== null
6073
- ? deserializeAws_json1_1HTTPRequest(output.Request, context)
6074
- : undefined,
6075
- RequestHeadersInserted: output.RequestHeadersInserted !== undefined && output.RequestHeadersInserted !== null
5831
+ Labels: output.Labels != null ? deserializeAws_json1_1Labels(output.Labels, context) : undefined,
5832
+ Request: output.Request != null ? deserializeAws_json1_1HTTPRequest(output.Request, context) : undefined,
5833
+ RequestHeadersInserted: output.RequestHeadersInserted != null
6076
5834
  ? deserializeAws_json1_1HTTPHeaders(output.RequestHeadersInserted, context)
6077
5835
  : undefined,
6078
5836
  ResponseCodeSent: __expectInt32(output.ResponseCodeSent),
6079
5837
  RuleNameWithinRuleGroup: __expectString(output.RuleNameWithinRuleGroup),
6080
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
6081
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp)))
6082
- : undefined,
5838
+ Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
6083
5839
  Weight: __expectLong(output.Weight),
6084
5840
  };
6085
5841
  };
@@ -6107,70 +5863,60 @@ var deserializeAws_json1_1SingleQueryArgument = function (output, context) {
6107
5863
  var deserializeAws_json1_1SizeConstraintStatement = function (output, context) {
6108
5864
  return {
6109
5865
  ComparisonOperator: __expectString(output.ComparisonOperator),
6110
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
6111
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
6112
- : undefined,
5866
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
6113
5867
  Size: __expectLong(output.Size),
6114
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
5868
+ TextTransformations: output.TextTransformations != null
6115
5869
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
6116
5870
  : undefined,
6117
5871
  };
6118
5872
  };
6119
5873
  var deserializeAws_json1_1SqliMatchStatement = function (output, context) {
6120
5874
  return {
6121
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
6122
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
6123
- : undefined,
6124
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
5875
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
5876
+ TextTransformations: output.TextTransformations != null
6125
5877
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
6126
5878
  : undefined,
6127
5879
  };
6128
5880
  };
6129
5881
  var deserializeAws_json1_1Statement = function (output, context) {
6130
5882
  return {
6131
- AndStatement: output.AndStatement !== undefined && output.AndStatement !== null
6132
- ? deserializeAws_json1_1AndStatement(output.AndStatement, context)
6133
- : undefined,
6134
- ByteMatchStatement: output.ByteMatchStatement !== undefined && output.ByteMatchStatement !== null
5883
+ AndStatement: output.AndStatement != null ? deserializeAws_json1_1AndStatement(output.AndStatement, context) : undefined,
5884
+ ByteMatchStatement: output.ByteMatchStatement != null
6135
5885
  ? deserializeAws_json1_1ByteMatchStatement(output.ByteMatchStatement, context)
6136
5886
  : undefined,
6137
- GeoMatchStatement: output.GeoMatchStatement !== undefined && output.GeoMatchStatement !== null
5887
+ GeoMatchStatement: output.GeoMatchStatement != null
6138
5888
  ? deserializeAws_json1_1GeoMatchStatement(output.GeoMatchStatement, context)
6139
5889
  : undefined,
6140
- IPSetReferenceStatement: output.IPSetReferenceStatement !== undefined && output.IPSetReferenceStatement !== null
5890
+ IPSetReferenceStatement: output.IPSetReferenceStatement != null
6141
5891
  ? deserializeAws_json1_1IPSetReferenceStatement(output.IPSetReferenceStatement, context)
6142
5892
  : undefined,
6143
- LabelMatchStatement: output.LabelMatchStatement !== undefined && output.LabelMatchStatement !== null
5893
+ LabelMatchStatement: output.LabelMatchStatement != null
6144
5894
  ? deserializeAws_json1_1LabelMatchStatement(output.LabelMatchStatement, context)
6145
5895
  : undefined,
6146
- ManagedRuleGroupStatement: output.ManagedRuleGroupStatement !== undefined && output.ManagedRuleGroupStatement !== null
5896
+ ManagedRuleGroupStatement: output.ManagedRuleGroupStatement != null
6147
5897
  ? deserializeAws_json1_1ManagedRuleGroupStatement(output.ManagedRuleGroupStatement, context)
6148
5898
  : undefined,
6149
- NotStatement: output.NotStatement !== undefined && output.NotStatement !== null
6150
- ? deserializeAws_json1_1NotStatement(output.NotStatement, context)
6151
- : undefined,
6152
- OrStatement: output.OrStatement !== undefined && output.OrStatement !== null
6153
- ? deserializeAws_json1_1OrStatement(output.OrStatement, context)
6154
- : undefined,
6155
- RateBasedStatement: output.RateBasedStatement !== undefined && output.RateBasedStatement !== null
5899
+ NotStatement: output.NotStatement != null ? deserializeAws_json1_1NotStatement(output.NotStatement, context) : undefined,
5900
+ OrStatement: output.OrStatement != null ? deserializeAws_json1_1OrStatement(output.OrStatement, context) : undefined,
5901
+ RateBasedStatement: output.RateBasedStatement != null
6156
5902
  ? deserializeAws_json1_1RateBasedStatement(output.RateBasedStatement, context)
6157
5903
  : undefined,
6158
- RegexMatchStatement: output.RegexMatchStatement !== undefined && output.RegexMatchStatement !== null
5904
+ RegexMatchStatement: output.RegexMatchStatement != null
6159
5905
  ? deserializeAws_json1_1RegexMatchStatement(output.RegexMatchStatement, context)
6160
5906
  : undefined,
6161
- RegexPatternSetReferenceStatement: output.RegexPatternSetReferenceStatement !== undefined && output.RegexPatternSetReferenceStatement !== null
5907
+ RegexPatternSetReferenceStatement: output.RegexPatternSetReferenceStatement != null
6162
5908
  ? deserializeAws_json1_1RegexPatternSetReferenceStatement(output.RegexPatternSetReferenceStatement, context)
6163
5909
  : undefined,
6164
- RuleGroupReferenceStatement: output.RuleGroupReferenceStatement !== undefined && output.RuleGroupReferenceStatement !== null
5910
+ RuleGroupReferenceStatement: output.RuleGroupReferenceStatement != null
6165
5911
  ? deserializeAws_json1_1RuleGroupReferenceStatement(output.RuleGroupReferenceStatement, context)
6166
5912
  : undefined,
6167
- SizeConstraintStatement: output.SizeConstraintStatement !== undefined && output.SizeConstraintStatement !== null
5913
+ SizeConstraintStatement: output.SizeConstraintStatement != null
6168
5914
  ? deserializeAws_json1_1SizeConstraintStatement(output.SizeConstraintStatement, context)
6169
5915
  : undefined,
6170
- SqliMatchStatement: output.SqliMatchStatement !== undefined && output.SqliMatchStatement !== null
5916
+ SqliMatchStatement: output.SqliMatchStatement != null
6171
5917
  ? deserializeAws_json1_1SqliMatchStatement(output.SqliMatchStatement, context)
6172
5918
  : undefined,
6173
- XssMatchStatement: output.XssMatchStatement !== undefined && output.XssMatchStatement !== null
5919
+ XssMatchStatement: output.XssMatchStatement != null
6174
5920
  ? deserializeAws_json1_1XssMatchStatement(output.XssMatchStatement, context)
6175
5921
  : undefined,
6176
5922
  };
@@ -6195,9 +5941,7 @@ var deserializeAws_json1_1Tag = function (output, context) {
6195
5941
  var deserializeAws_json1_1TagInfoForResource = function (output, context) {
6196
5942
  return {
6197
5943
  ResourceARN: __expectString(output.ResourceARN),
6198
- TagList: output.TagList !== undefined && output.TagList !== null
6199
- ? deserializeAws_json1_1TagList(output.TagList, context)
6200
- : undefined,
5944
+ TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
6201
5945
  };
6202
5946
  };
6203
5947
  var deserializeAws_json1_1TagList = function (output, context) {
@@ -6233,12 +5977,8 @@ var deserializeAws_json1_1TextTransformations = function (output, context) {
6233
5977
  };
6234
5978
  var deserializeAws_json1_1TimeWindow = function (output, context) {
6235
5979
  return {
6236
- EndTime: output.EndTime !== undefined && output.EndTime !== null
6237
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
6238
- : undefined,
6239
- StartTime: output.StartTime !== undefined && output.StartTime !== null
6240
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
6241
- : undefined,
5980
+ EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
5981
+ StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
6242
5982
  };
6243
5983
  };
6244
5984
  var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
@@ -6252,7 +5992,7 @@ var deserializeAws_json1_1UpdateIPSetResponse = function (output, context) {
6252
5992
  var deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateResponse = function (output, context) {
6253
5993
  return {
6254
5994
  ExpiringVersion: __expectString(output.ExpiringVersion),
6255
- ExpiryTimestamp: output.ExpiryTimestamp !== undefined && output.ExpiryTimestamp !== null
5995
+ ExpiryTimestamp: output.ExpiryTimestamp != null
6256
5996
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ExpiryTimestamp)))
6257
5997
  : undefined,
6258
5998
  NextLockToken: __expectString(output.NextLockToken),
@@ -6385,30 +6125,24 @@ var deserializeAws_json1_1WebACL = function (output, context) {
6385
6125
  return {
6386
6126
  ARN: __expectString(output.ARN),
6387
6127
  Capacity: __expectLong(output.Capacity),
6388
- CaptchaConfig: output.CaptchaConfig !== undefined && output.CaptchaConfig !== null
6389
- ? deserializeAws_json1_1CaptchaConfig(output.CaptchaConfig, context)
6390
- : undefined,
6391
- CustomResponseBodies: output.CustomResponseBodies !== undefined && output.CustomResponseBodies !== null
6128
+ CaptchaConfig: output.CaptchaConfig != null ? deserializeAws_json1_1CaptchaConfig(output.CaptchaConfig, context) : undefined,
6129
+ CustomResponseBodies: output.CustomResponseBodies != null
6392
6130
  ? deserializeAws_json1_1CustomResponseBodies(output.CustomResponseBodies, context)
6393
6131
  : undefined,
6394
- DefaultAction: output.DefaultAction !== undefined && output.DefaultAction !== null
6395
- ? deserializeAws_json1_1DefaultAction(output.DefaultAction, context)
6396
- : undefined,
6132
+ DefaultAction: output.DefaultAction != null ? deserializeAws_json1_1DefaultAction(output.DefaultAction, context) : undefined,
6397
6133
  Description: __expectString(output.Description),
6398
6134
  Id: __expectString(output.Id),
6399
6135
  LabelNamespace: __expectString(output.LabelNamespace),
6400
6136
  ManagedByFirewallManager: __expectBoolean(output.ManagedByFirewallManager),
6401
6137
  Name: __expectString(output.Name),
6402
- PostProcessFirewallManagerRuleGroups: output.PostProcessFirewallManagerRuleGroups !== undefined && output.PostProcessFirewallManagerRuleGroups !== null
6138
+ PostProcessFirewallManagerRuleGroups: output.PostProcessFirewallManagerRuleGroups != null
6403
6139
  ? deserializeAws_json1_1FirewallManagerRuleGroups(output.PostProcessFirewallManagerRuleGroups, context)
6404
6140
  : undefined,
6405
- PreProcessFirewallManagerRuleGroups: output.PreProcessFirewallManagerRuleGroups !== undefined && output.PreProcessFirewallManagerRuleGroups !== null
6141
+ PreProcessFirewallManagerRuleGroups: output.PreProcessFirewallManagerRuleGroups != null
6406
6142
  ? deserializeAws_json1_1FirewallManagerRuleGroups(output.PreProcessFirewallManagerRuleGroups, context)
6407
6143
  : undefined,
6408
- Rules: output.Rules !== undefined && output.Rules !== null
6409
- ? deserializeAws_json1_1Rules(output.Rules, context)
6410
- : undefined,
6411
- VisibilityConfig: output.VisibilityConfig !== undefined && output.VisibilityConfig !== null
6144
+ Rules: output.Rules != null ? deserializeAws_json1_1Rules(output.Rules, context) : undefined,
6145
+ VisibilityConfig: output.VisibilityConfig != null
6412
6146
  ? deserializeAws_json1_1VisibilityConfig(output.VisibilityConfig, context)
6413
6147
  : undefined,
6414
6148
  };
@@ -6435,10 +6169,8 @@ var deserializeAws_json1_1WebACLSummary = function (output, context) {
6435
6169
  };
6436
6170
  var deserializeAws_json1_1XssMatchStatement = function (output, context) {
6437
6171
  return {
6438
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
6439
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
6440
- : undefined,
6441
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
6172
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
6173
+ TextTransformations: output.TextTransformations != null
6442
6174
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
6443
6175
  : undefined,
6444
6176
  };
@@ -6517,5 +6249,4 @@ var loadRestJsonErrorCode = function (output, data) {
6517
6249
  if (data["__type"] !== undefined) {
6518
6250
  return sanitizeErrorCode(data["__type"]);
6519
6251
  }
6520
- return "";
6521
6252
  };