@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.
@@ -506,8 +506,7 @@ const deserializeAws_json1_1AssociateWebACLCommandError = async (output, context
506
506
  body: await parseBody(output.body, context),
507
507
  };
508
508
  let response;
509
- let errorCode = "UnknownError";
510
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
509
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
511
510
  switch (errorCode) {
512
511
  case "WAFInternalErrorException":
513
512
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -526,10 +525,12 @@ const deserializeAws_json1_1AssociateWebACLCommandError = async (output, context
526
525
  throw await deserializeAws_json1_1WAFUnavailableEntityExceptionResponse(parsedOutput, context);
527
526
  default:
528
527
  const parsedBody = parsedOutput.body;
528
+ const $metadata = deserializeMetadata(output);
529
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
529
530
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
530
- name: parsedBody.code || parsedBody.Code || errorCode,
531
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
531
532
  $fault: "client",
532
- $metadata: deserializeMetadata(output),
533
+ $metadata,
533
534
  });
534
535
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
535
536
  }
@@ -554,8 +555,7 @@ const deserializeAws_json1_1CheckCapacityCommandError = async (output, context)
554
555
  body: await parseBody(output.body, context),
555
556
  };
556
557
  let response;
557
- let errorCode = "UnknownError";
558
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
558
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
559
559
  switch (errorCode) {
560
560
  case "WAFExpiredManagedRuleGroupVersionException":
561
561
  case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
@@ -583,10 +583,12 @@ const deserializeAws_json1_1CheckCapacityCommandError = async (output, context)
583
583
  throw await deserializeAws_json1_1WAFUnavailableEntityExceptionResponse(parsedOutput, context);
584
584
  default:
585
585
  const parsedBody = parsedOutput.body;
586
+ const $metadata = deserializeMetadata(output);
587
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
586
588
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
587
- name: parsedBody.code || parsedBody.Code || errorCode,
589
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
588
590
  $fault: "client",
589
- $metadata: deserializeMetadata(output),
591
+ $metadata,
590
592
  });
591
593
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
592
594
  }
@@ -611,8 +613,7 @@ const deserializeAws_json1_1CreateIPSetCommandError = async (output, context) =>
611
613
  body: await parseBody(output.body, context),
612
614
  };
613
615
  let response;
614
- let errorCode = "UnknownError";
615
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
616
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
616
617
  switch (errorCode) {
617
618
  case "WAFDuplicateItemException":
618
619
  case "com.amazonaws.wafv2#WAFDuplicateItemException":
@@ -640,10 +641,12 @@ const deserializeAws_json1_1CreateIPSetCommandError = async (output, context) =>
640
641
  throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
641
642
  default:
642
643
  const parsedBody = parsedOutput.body;
644
+ const $metadata = deserializeMetadata(output);
645
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
643
646
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
644
- name: parsedBody.code || parsedBody.Code || errorCode,
647
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
645
648
  $fault: "client",
646
- $metadata: deserializeMetadata(output),
649
+ $metadata,
647
650
  });
648
651
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
649
652
  }
@@ -668,8 +671,7 @@ const deserializeAws_json1_1CreateRegexPatternSetCommandError = async (output, c
668
671
  body: await parseBody(output.body, context),
669
672
  };
670
673
  let response;
671
- let errorCode = "UnknownError";
672
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
674
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
673
675
  switch (errorCode) {
674
676
  case "WAFDuplicateItemException":
675
677
  case "com.amazonaws.wafv2#WAFDuplicateItemException":
@@ -697,10 +699,12 @@ const deserializeAws_json1_1CreateRegexPatternSetCommandError = async (output, c
697
699
  throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
698
700
  default:
699
701
  const parsedBody = parsedOutput.body;
702
+ const $metadata = deserializeMetadata(output);
703
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
700
704
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
701
- name: parsedBody.code || parsedBody.Code || errorCode,
705
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
702
706
  $fault: "client",
703
- $metadata: deserializeMetadata(output),
707
+ $metadata,
704
708
  });
705
709
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
706
710
  }
@@ -725,8 +729,7 @@ const deserializeAws_json1_1CreateRuleGroupCommandError = async (output, context
725
729
  body: await parseBody(output.body, context),
726
730
  };
727
731
  let response;
728
- let errorCode = "UnknownError";
729
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
732
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
730
733
  switch (errorCode) {
731
734
  case "WAFDuplicateItemException":
732
735
  case "com.amazonaws.wafv2#WAFDuplicateItemException":
@@ -763,10 +766,12 @@ const deserializeAws_json1_1CreateRuleGroupCommandError = async (output, context
763
766
  throw await deserializeAws_json1_1WAFUnavailableEntityExceptionResponse(parsedOutput, context);
764
767
  default:
765
768
  const parsedBody = parsedOutput.body;
769
+ const $metadata = deserializeMetadata(output);
770
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
766
771
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
767
- name: parsedBody.code || parsedBody.Code || errorCode,
772
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
768
773
  $fault: "client",
769
- $metadata: deserializeMetadata(output),
774
+ $metadata,
770
775
  });
771
776
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
772
777
  }
@@ -791,8 +796,7 @@ const deserializeAws_json1_1CreateWebACLCommandError = async (output, context) =
791
796
  body: await parseBody(output.body, context),
792
797
  };
793
798
  let response;
794
- let errorCode = "UnknownError";
795
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
799
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
796
800
  switch (errorCode) {
797
801
  case "WAFConfigurationWarningException":
798
802
  case "com.amazonaws.wafv2#WAFConfigurationWarningException":
@@ -835,10 +839,12 @@ const deserializeAws_json1_1CreateWebACLCommandError = async (output, context) =
835
839
  throw await deserializeAws_json1_1WAFUnavailableEntityExceptionResponse(parsedOutput, context);
836
840
  default:
837
841
  const parsedBody = parsedOutput.body;
842
+ const $metadata = deserializeMetadata(output);
843
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
838
844
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
839
- name: parsedBody.code || parsedBody.Code || errorCode,
845
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
840
846
  $fault: "client",
841
- $metadata: deserializeMetadata(output),
847
+ $metadata,
842
848
  });
843
849
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
844
850
  }
@@ -863,8 +869,7 @@ const deserializeAws_json1_1DeleteFirewallManagerRuleGroupsCommandError = async
863
869
  body: await parseBody(output.body, context),
864
870
  };
865
871
  let response;
866
- let errorCode = "UnknownError";
867
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
872
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
868
873
  switch (errorCode) {
869
874
  case "WAFInternalErrorException":
870
875
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -883,10 +888,12 @@ const deserializeAws_json1_1DeleteFirewallManagerRuleGroupsCommandError = async
883
888
  throw await deserializeAws_json1_1WAFOptimisticLockExceptionResponse(parsedOutput, context);
884
889
  default:
885
890
  const parsedBody = parsedOutput.body;
891
+ const $metadata = deserializeMetadata(output);
892
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
886
893
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
887
- name: parsedBody.code || parsedBody.Code || errorCode,
894
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
888
895
  $fault: "client",
889
- $metadata: deserializeMetadata(output),
896
+ $metadata,
890
897
  });
891
898
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
892
899
  }
@@ -911,8 +918,7 @@ const deserializeAws_json1_1DeleteIPSetCommandError = async (output, context) =>
911
918
  body: await parseBody(output.body, context),
912
919
  };
913
920
  let response;
914
- let errorCode = "UnknownError";
915
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
921
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
916
922
  switch (errorCode) {
917
923
  case "WAFAssociatedItemException":
918
924
  case "com.amazonaws.wafv2#WAFAssociatedItemException":
@@ -940,10 +946,12 @@ const deserializeAws_json1_1DeleteIPSetCommandError = async (output, context) =>
940
946
  throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
941
947
  default:
942
948
  const parsedBody = parsedOutput.body;
949
+ const $metadata = deserializeMetadata(output);
950
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
943
951
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
944
- name: parsedBody.code || parsedBody.Code || errorCode,
952
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
945
953
  $fault: "client",
946
- $metadata: deserializeMetadata(output),
954
+ $metadata,
947
955
  });
948
956
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
949
957
  }
@@ -968,8 +976,7 @@ const deserializeAws_json1_1DeleteLoggingConfigurationCommandError = async (outp
968
976
  body: await parseBody(output.body, context),
969
977
  };
970
978
  let response;
971
- let errorCode = "UnknownError";
972
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
979
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
973
980
  switch (errorCode) {
974
981
  case "WAFInternalErrorException":
975
982
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -988,10 +995,12 @@ const deserializeAws_json1_1DeleteLoggingConfigurationCommandError = async (outp
988
995
  throw await deserializeAws_json1_1WAFOptimisticLockExceptionResponse(parsedOutput, context);
989
996
  default:
990
997
  const parsedBody = parsedOutput.body;
998
+ const $metadata = deserializeMetadata(output);
999
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
991
1000
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
992
- name: parsedBody.code || parsedBody.Code || errorCode,
1001
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
993
1002
  $fault: "client",
994
- $metadata: deserializeMetadata(output),
1003
+ $metadata,
995
1004
  });
996
1005
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
997
1006
  }
@@ -1016,8 +1025,7 @@ const deserializeAws_json1_1DeletePermissionPolicyCommandError = async (output,
1016
1025
  body: await parseBody(output.body, context),
1017
1026
  };
1018
1027
  let response;
1019
- let errorCode = "UnknownError";
1020
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1028
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1021
1029
  switch (errorCode) {
1022
1030
  case "WAFInternalErrorException":
1023
1031
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -1030,10 +1038,12 @@ const deserializeAws_json1_1DeletePermissionPolicyCommandError = async (output,
1030
1038
  throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
1031
1039
  default:
1032
1040
  const parsedBody = parsedOutput.body;
1041
+ const $metadata = deserializeMetadata(output);
1042
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1033
1043
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1034
- name: parsedBody.code || parsedBody.Code || errorCode,
1044
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1035
1045
  $fault: "client",
1036
- $metadata: deserializeMetadata(output),
1046
+ $metadata,
1037
1047
  });
1038
1048
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1039
1049
  }
@@ -1058,8 +1068,7 @@ const deserializeAws_json1_1DeleteRegexPatternSetCommandError = async (output, c
1058
1068
  body: await parseBody(output.body, context),
1059
1069
  };
1060
1070
  let response;
1061
- let errorCode = "UnknownError";
1062
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1071
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1063
1072
  switch (errorCode) {
1064
1073
  case "WAFAssociatedItemException":
1065
1074
  case "com.amazonaws.wafv2#WAFAssociatedItemException":
@@ -1087,10 +1096,12 @@ const deserializeAws_json1_1DeleteRegexPatternSetCommandError = async (output, c
1087
1096
  throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
1088
1097
  default:
1089
1098
  const parsedBody = parsedOutput.body;
1099
+ const $metadata = deserializeMetadata(output);
1100
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1090
1101
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1091
- name: parsedBody.code || parsedBody.Code || errorCode,
1102
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1092
1103
  $fault: "client",
1093
- $metadata: deserializeMetadata(output),
1104
+ $metadata,
1094
1105
  });
1095
1106
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1096
1107
  }
@@ -1115,8 +1126,7 @@ const deserializeAws_json1_1DeleteRuleGroupCommandError = async (output, context
1115
1126
  body: await parseBody(output.body, context),
1116
1127
  };
1117
1128
  let response;
1118
- let errorCode = "UnknownError";
1119
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1129
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1120
1130
  switch (errorCode) {
1121
1131
  case "WAFAssociatedItemException":
1122
1132
  case "com.amazonaws.wafv2#WAFAssociatedItemException":
@@ -1144,10 +1154,12 @@ const deserializeAws_json1_1DeleteRuleGroupCommandError = async (output, context
1144
1154
  throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
1145
1155
  default:
1146
1156
  const parsedBody = parsedOutput.body;
1157
+ const $metadata = deserializeMetadata(output);
1158
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1147
1159
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1148
- name: parsedBody.code || parsedBody.Code || errorCode,
1160
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1149
1161
  $fault: "client",
1150
- $metadata: deserializeMetadata(output),
1162
+ $metadata,
1151
1163
  });
1152
1164
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1153
1165
  }
@@ -1172,8 +1184,7 @@ const deserializeAws_json1_1DeleteWebACLCommandError = async (output, context) =
1172
1184
  body: await parseBody(output.body, context),
1173
1185
  };
1174
1186
  let response;
1175
- let errorCode = "UnknownError";
1176
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1187
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1177
1188
  switch (errorCode) {
1178
1189
  case "WAFAssociatedItemException":
1179
1190
  case "com.amazonaws.wafv2#WAFAssociatedItemException":
@@ -1201,10 +1212,12 @@ const deserializeAws_json1_1DeleteWebACLCommandError = async (output, context) =
1201
1212
  throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
1202
1213
  default:
1203
1214
  const parsedBody = parsedOutput.body;
1215
+ const $metadata = deserializeMetadata(output);
1216
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1204
1217
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1205
- name: parsedBody.code || parsedBody.Code || errorCode,
1218
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1206
1219
  $fault: "client",
1207
- $metadata: deserializeMetadata(output),
1220
+ $metadata,
1208
1221
  });
1209
1222
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1210
1223
  }
@@ -1229,8 +1242,7 @@ const deserializeAws_json1_1DescribeManagedRuleGroupCommandError = async (output
1229
1242
  body: await parseBody(output.body, context),
1230
1243
  };
1231
1244
  let response;
1232
- let errorCode = "UnknownError";
1233
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1245
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1234
1246
  switch (errorCode) {
1235
1247
  case "WAFExpiredManagedRuleGroupVersionException":
1236
1248
  case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
@@ -1252,10 +1264,12 @@ const deserializeAws_json1_1DescribeManagedRuleGroupCommandError = async (output
1252
1264
  throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
1253
1265
  default:
1254
1266
  const parsedBody = parsedOutput.body;
1267
+ const $metadata = deserializeMetadata(output);
1268
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1255
1269
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1256
- name: parsedBody.code || parsedBody.Code || errorCode,
1270
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1257
1271
  $fault: "client",
1258
- $metadata: deserializeMetadata(output),
1272
+ $metadata,
1259
1273
  });
1260
1274
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1261
1275
  }
@@ -1280,8 +1294,7 @@ const deserializeAws_json1_1DisassociateWebACLCommandError = async (output, cont
1280
1294
  body: await parseBody(output.body, context),
1281
1295
  };
1282
1296
  let response;
1283
- let errorCode = "UnknownError";
1284
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1297
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1285
1298
  switch (errorCode) {
1286
1299
  case "WAFInternalErrorException":
1287
1300
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -1297,10 +1310,12 @@ const deserializeAws_json1_1DisassociateWebACLCommandError = async (output, cont
1297
1310
  throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
1298
1311
  default:
1299
1312
  const parsedBody = parsedOutput.body;
1313
+ const $metadata = deserializeMetadata(output);
1314
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1300
1315
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1301
- name: parsedBody.code || parsedBody.Code || errorCode,
1316
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1302
1317
  $fault: "client",
1303
- $metadata: deserializeMetadata(output),
1318
+ $metadata,
1304
1319
  });
1305
1320
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1306
1321
  }
@@ -1325,8 +1340,7 @@ const deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommandError = async (out
1325
1340
  body: await parseBody(output.body, context),
1326
1341
  };
1327
1342
  let response;
1328
- let errorCode = "UnknownError";
1329
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1343
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1330
1344
  switch (errorCode) {
1331
1345
  case "WAFInternalErrorException":
1332
1346
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -1342,10 +1356,12 @@ const deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommandError = async (out
1342
1356
  throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
1343
1357
  default:
1344
1358
  const parsedBody = parsedOutput.body;
1359
+ const $metadata = deserializeMetadata(output);
1360
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1345
1361
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1346
- name: parsedBody.code || parsedBody.Code || errorCode,
1362
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1347
1363
  $fault: "client",
1348
- $metadata: deserializeMetadata(output),
1364
+ $metadata,
1349
1365
  });
1350
1366
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1351
1367
  }
@@ -1370,8 +1386,7 @@ const deserializeAws_json1_1GetIPSetCommandError = async (output, context) => {
1370
1386
  body: await parseBody(output.body, context),
1371
1387
  };
1372
1388
  let response;
1373
- let errorCode = "UnknownError";
1374
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1389
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1375
1390
  switch (errorCode) {
1376
1391
  case "WAFInternalErrorException":
1377
1392
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -1387,10 +1402,12 @@ const deserializeAws_json1_1GetIPSetCommandError = async (output, context) => {
1387
1402
  throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
1388
1403
  default:
1389
1404
  const parsedBody = parsedOutput.body;
1405
+ const $metadata = deserializeMetadata(output);
1406
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1390
1407
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1391
- name: parsedBody.code || parsedBody.Code || errorCode,
1408
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1392
1409
  $fault: "client",
1393
- $metadata: deserializeMetadata(output),
1410
+ $metadata,
1394
1411
  });
1395
1412
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1396
1413
  }
@@ -1415,8 +1432,7 @@ const deserializeAws_json1_1GetLoggingConfigurationCommandError = async (output,
1415
1432
  body: await parseBody(output.body, context),
1416
1433
  };
1417
1434
  let response;
1418
- let errorCode = "UnknownError";
1419
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1435
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1420
1436
  switch (errorCode) {
1421
1437
  case "WAFInternalErrorException":
1422
1438
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -1432,10 +1448,12 @@ const deserializeAws_json1_1GetLoggingConfigurationCommandError = async (output,
1432
1448
  throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
1433
1449
  default:
1434
1450
  const parsedBody = parsedOutput.body;
1451
+ const $metadata = deserializeMetadata(output);
1452
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1435
1453
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1436
- name: parsedBody.code || parsedBody.Code || errorCode,
1454
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1437
1455
  $fault: "client",
1438
- $metadata: deserializeMetadata(output),
1456
+ $metadata,
1439
1457
  });
1440
1458
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1441
1459
  }
@@ -1460,8 +1478,7 @@ const deserializeAws_json1_1GetManagedRuleSetCommandError = async (output, conte
1460
1478
  body: await parseBody(output.body, context),
1461
1479
  };
1462
1480
  let response;
1463
- let errorCode = "UnknownError";
1464
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1481
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1465
1482
  switch (errorCode) {
1466
1483
  case "WAFInternalErrorException":
1467
1484
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -1477,10 +1494,12 @@ const deserializeAws_json1_1GetManagedRuleSetCommandError = async (output, conte
1477
1494
  throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
1478
1495
  default:
1479
1496
  const parsedBody = parsedOutput.body;
1497
+ const $metadata = deserializeMetadata(output);
1498
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1480
1499
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1481
- name: parsedBody.code || parsedBody.Code || errorCode,
1500
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1482
1501
  $fault: "client",
1483
- $metadata: deserializeMetadata(output),
1502
+ $metadata,
1484
1503
  });
1485
1504
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1486
1505
  }
@@ -1505,8 +1524,7 @@ const deserializeAws_json1_1GetMobileSdkReleaseCommandError = async (output, con
1505
1524
  body: await parseBody(output.body, context),
1506
1525
  };
1507
1526
  let response;
1508
- let errorCode = "UnknownError";
1509
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1527
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1510
1528
  switch (errorCode) {
1511
1529
  case "WAFInternalErrorException":
1512
1530
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -1522,10 +1540,12 @@ const deserializeAws_json1_1GetMobileSdkReleaseCommandError = async (output, con
1522
1540
  throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
1523
1541
  default:
1524
1542
  const parsedBody = parsedOutput.body;
1543
+ const $metadata = deserializeMetadata(output);
1544
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1525
1545
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1526
- name: parsedBody.code || parsedBody.Code || errorCode,
1546
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1527
1547
  $fault: "client",
1528
- $metadata: deserializeMetadata(output),
1548
+ $metadata,
1529
1549
  });
1530
1550
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1531
1551
  }
@@ -1550,8 +1570,7 @@ const deserializeAws_json1_1GetPermissionPolicyCommandError = async (output, con
1550
1570
  body: await parseBody(output.body, context),
1551
1571
  };
1552
1572
  let response;
1553
- let errorCode = "UnknownError";
1554
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1573
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1555
1574
  switch (errorCode) {
1556
1575
  case "WAFInternalErrorException":
1557
1576
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -1564,10 +1583,12 @@ const deserializeAws_json1_1GetPermissionPolicyCommandError = async (output, con
1564
1583
  throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
1565
1584
  default:
1566
1585
  const parsedBody = parsedOutput.body;
1586
+ const $metadata = deserializeMetadata(output);
1587
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1567
1588
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1568
- name: parsedBody.code || parsedBody.Code || errorCode,
1589
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1569
1590
  $fault: "client",
1570
- $metadata: deserializeMetadata(output),
1591
+ $metadata,
1571
1592
  });
1572
1593
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1573
1594
  }
@@ -1592,8 +1613,7 @@ const deserializeAws_json1_1GetRateBasedStatementManagedKeysCommandError = async
1592
1613
  body: await parseBody(output.body, context),
1593
1614
  };
1594
1615
  let response;
1595
- let errorCode = "UnknownError";
1596
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1616
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1597
1617
  switch (errorCode) {
1598
1618
  case "WAFInternalErrorException":
1599
1619
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -1609,10 +1629,12 @@ const deserializeAws_json1_1GetRateBasedStatementManagedKeysCommandError = async
1609
1629
  throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
1610
1630
  default:
1611
1631
  const parsedBody = parsedOutput.body;
1632
+ const $metadata = deserializeMetadata(output);
1633
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1612
1634
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1613
- name: parsedBody.code || parsedBody.Code || errorCode,
1635
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1614
1636
  $fault: "client",
1615
- $metadata: deserializeMetadata(output),
1637
+ $metadata,
1616
1638
  });
1617
1639
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1618
1640
  }
@@ -1637,8 +1659,7 @@ const deserializeAws_json1_1GetRegexPatternSetCommandError = async (output, cont
1637
1659
  body: await parseBody(output.body, context),
1638
1660
  };
1639
1661
  let response;
1640
- let errorCode = "UnknownError";
1641
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1662
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1642
1663
  switch (errorCode) {
1643
1664
  case "WAFInternalErrorException":
1644
1665
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -1654,10 +1675,12 @@ const deserializeAws_json1_1GetRegexPatternSetCommandError = async (output, cont
1654
1675
  throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
1655
1676
  default:
1656
1677
  const parsedBody = parsedOutput.body;
1678
+ const $metadata = deserializeMetadata(output);
1679
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1657
1680
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1658
- name: parsedBody.code || parsedBody.Code || errorCode,
1681
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1659
1682
  $fault: "client",
1660
- $metadata: deserializeMetadata(output),
1683
+ $metadata,
1661
1684
  });
1662
1685
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1663
1686
  }
@@ -1682,8 +1705,7 @@ const deserializeAws_json1_1GetRuleGroupCommandError = async (output, context) =
1682
1705
  body: await parseBody(output.body, context),
1683
1706
  };
1684
1707
  let response;
1685
- let errorCode = "UnknownError";
1686
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1708
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1687
1709
  switch (errorCode) {
1688
1710
  case "WAFInternalErrorException":
1689
1711
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -1699,10 +1721,12 @@ const deserializeAws_json1_1GetRuleGroupCommandError = async (output, context) =
1699
1721
  throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
1700
1722
  default:
1701
1723
  const parsedBody = parsedOutput.body;
1724
+ const $metadata = deserializeMetadata(output);
1725
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1702
1726
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1703
- name: parsedBody.code || parsedBody.Code || errorCode,
1727
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1704
1728
  $fault: "client",
1705
- $metadata: deserializeMetadata(output),
1729
+ $metadata,
1706
1730
  });
1707
1731
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1708
1732
  }
@@ -1727,8 +1751,7 @@ const deserializeAws_json1_1GetSampledRequestsCommandError = async (output, cont
1727
1751
  body: await parseBody(output.body, context),
1728
1752
  };
1729
1753
  let response;
1730
- let errorCode = "UnknownError";
1731
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1754
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1732
1755
  switch (errorCode) {
1733
1756
  case "WAFInternalErrorException":
1734
1757
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -1741,10 +1764,12 @@ const deserializeAws_json1_1GetSampledRequestsCommandError = async (output, cont
1741
1764
  throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
1742
1765
  default:
1743
1766
  const parsedBody = parsedOutput.body;
1767
+ const $metadata = deserializeMetadata(output);
1768
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1744
1769
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1745
- name: parsedBody.code || parsedBody.Code || errorCode,
1770
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1746
1771
  $fault: "client",
1747
- $metadata: deserializeMetadata(output),
1772
+ $metadata,
1748
1773
  });
1749
1774
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1750
1775
  }
@@ -1769,8 +1794,7 @@ const deserializeAws_json1_1GetWebACLCommandError = async (output, context) => {
1769
1794
  body: await parseBody(output.body, context),
1770
1795
  };
1771
1796
  let response;
1772
- let errorCode = "UnknownError";
1773
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1797
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1774
1798
  switch (errorCode) {
1775
1799
  case "WAFInternalErrorException":
1776
1800
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -1786,10 +1810,12 @@ const deserializeAws_json1_1GetWebACLCommandError = async (output, context) => {
1786
1810
  throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
1787
1811
  default:
1788
1812
  const parsedBody = parsedOutput.body;
1813
+ const $metadata = deserializeMetadata(output);
1814
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1789
1815
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1790
- name: parsedBody.code || parsedBody.Code || errorCode,
1816
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1791
1817
  $fault: "client",
1792
- $metadata: deserializeMetadata(output),
1818
+ $metadata,
1793
1819
  });
1794
1820
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1795
1821
  }
@@ -1814,8 +1840,7 @@ const deserializeAws_json1_1GetWebACLForResourceCommandError = async (output, co
1814
1840
  body: await parseBody(output.body, context),
1815
1841
  };
1816
1842
  let response;
1817
- let errorCode = "UnknownError";
1818
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1843
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1819
1844
  switch (errorCode) {
1820
1845
  case "WAFInternalErrorException":
1821
1846
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -1834,10 +1859,12 @@ const deserializeAws_json1_1GetWebACLForResourceCommandError = async (output, co
1834
1859
  throw await deserializeAws_json1_1WAFUnavailableEntityExceptionResponse(parsedOutput, context);
1835
1860
  default:
1836
1861
  const parsedBody = parsedOutput.body;
1862
+ const $metadata = deserializeMetadata(output);
1863
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1837
1864
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1838
- name: parsedBody.code || parsedBody.Code || errorCode,
1865
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1839
1866
  $fault: "client",
1840
- $metadata: deserializeMetadata(output),
1867
+ $metadata,
1841
1868
  });
1842
1869
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1843
1870
  }
@@ -1862,8 +1889,7 @@ const deserializeAws_json1_1ListAvailableManagedRuleGroupsCommandError = async (
1862
1889
  body: await parseBody(output.body, context),
1863
1890
  };
1864
1891
  let response;
1865
- let errorCode = "UnknownError";
1866
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1892
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1867
1893
  switch (errorCode) {
1868
1894
  case "WAFInternalErrorException":
1869
1895
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -1876,10 +1902,12 @@ const deserializeAws_json1_1ListAvailableManagedRuleGroupsCommandError = async (
1876
1902
  throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
1877
1903
  default:
1878
1904
  const parsedBody = parsedOutput.body;
1905
+ const $metadata = deserializeMetadata(output);
1906
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1879
1907
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1880
- name: parsedBody.code || parsedBody.Code || errorCode,
1908
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1881
1909
  $fault: "client",
1882
- $metadata: deserializeMetadata(output),
1910
+ $metadata,
1883
1911
  });
1884
1912
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1885
1913
  }
@@ -1904,8 +1932,7 @@ const deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommandError =
1904
1932
  body: await parseBody(output.body, context),
1905
1933
  };
1906
1934
  let response;
1907
- let errorCode = "UnknownError";
1908
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1935
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1909
1936
  switch (errorCode) {
1910
1937
  case "WAFInternalErrorException":
1911
1938
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -1921,10 +1948,12 @@ const deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommandError =
1921
1948
  throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
1922
1949
  default:
1923
1950
  const parsedBody = parsedOutput.body;
1951
+ const $metadata = deserializeMetadata(output);
1952
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1924
1953
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1925
- name: parsedBody.code || parsedBody.Code || errorCode,
1954
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1926
1955
  $fault: "client",
1927
- $metadata: deserializeMetadata(output),
1956
+ $metadata,
1928
1957
  });
1929
1958
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1930
1959
  }
@@ -1949,8 +1978,7 @@ const deserializeAws_json1_1ListIPSetsCommandError = async (output, context) =>
1949
1978
  body: await parseBody(output.body, context),
1950
1979
  };
1951
1980
  let response;
1952
- let errorCode = "UnknownError";
1953
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1981
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1954
1982
  switch (errorCode) {
1955
1983
  case "WAFInternalErrorException":
1956
1984
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -1963,10 +1991,12 @@ const deserializeAws_json1_1ListIPSetsCommandError = async (output, context) =>
1963
1991
  throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
1964
1992
  default:
1965
1993
  const parsedBody = parsedOutput.body;
1994
+ const $metadata = deserializeMetadata(output);
1995
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1966
1996
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
1967
- name: parsedBody.code || parsedBody.Code || errorCode,
1997
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1968
1998
  $fault: "client",
1969
- $metadata: deserializeMetadata(output),
1999
+ $metadata,
1970
2000
  });
1971
2001
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1972
2002
  }
@@ -1991,8 +2021,7 @@ const deserializeAws_json1_1ListLoggingConfigurationsCommandError = async (outpu
1991
2021
  body: await parseBody(output.body, context),
1992
2022
  };
1993
2023
  let response;
1994
- let errorCode = "UnknownError";
1995
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2024
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1996
2025
  switch (errorCode) {
1997
2026
  case "WAFInternalErrorException":
1998
2027
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -2005,10 +2034,12 @@ const deserializeAws_json1_1ListLoggingConfigurationsCommandError = async (outpu
2005
2034
  throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
2006
2035
  default:
2007
2036
  const parsedBody = parsedOutput.body;
2037
+ const $metadata = deserializeMetadata(output);
2038
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2008
2039
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2009
- name: parsedBody.code || parsedBody.Code || errorCode,
2040
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2010
2041
  $fault: "client",
2011
- $metadata: deserializeMetadata(output),
2042
+ $metadata,
2012
2043
  });
2013
2044
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2014
2045
  }
@@ -2033,8 +2064,7 @@ const deserializeAws_json1_1ListManagedRuleSetsCommandError = async (output, con
2033
2064
  body: await parseBody(output.body, context),
2034
2065
  };
2035
2066
  let response;
2036
- let errorCode = "UnknownError";
2037
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2067
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2038
2068
  switch (errorCode) {
2039
2069
  case "WAFInternalErrorException":
2040
2070
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -2047,10 +2077,12 @@ const deserializeAws_json1_1ListManagedRuleSetsCommandError = async (output, con
2047
2077
  throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
2048
2078
  default:
2049
2079
  const parsedBody = parsedOutput.body;
2080
+ const $metadata = deserializeMetadata(output);
2081
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2050
2082
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2051
- name: parsedBody.code || parsedBody.Code || errorCode,
2083
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2052
2084
  $fault: "client",
2053
- $metadata: deserializeMetadata(output),
2085
+ $metadata,
2054
2086
  });
2055
2087
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2056
2088
  }
@@ -2075,8 +2107,7 @@ const deserializeAws_json1_1ListMobileSdkReleasesCommandError = async (output, c
2075
2107
  body: await parseBody(output.body, context),
2076
2108
  };
2077
2109
  let response;
2078
- let errorCode = "UnknownError";
2079
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2110
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2080
2111
  switch (errorCode) {
2081
2112
  case "WAFInternalErrorException":
2082
2113
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -2089,10 +2120,12 @@ const deserializeAws_json1_1ListMobileSdkReleasesCommandError = async (output, c
2089
2120
  throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
2090
2121
  default:
2091
2122
  const parsedBody = parsedOutput.body;
2123
+ const $metadata = deserializeMetadata(output);
2124
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2092
2125
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2093
- name: parsedBody.code || parsedBody.Code || errorCode,
2126
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2094
2127
  $fault: "client",
2095
- $metadata: deserializeMetadata(output),
2128
+ $metadata,
2096
2129
  });
2097
2130
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2098
2131
  }
@@ -2117,8 +2150,7 @@ const deserializeAws_json1_1ListRegexPatternSetsCommandError = async (output, co
2117
2150
  body: await parseBody(output.body, context),
2118
2151
  };
2119
2152
  let response;
2120
- let errorCode = "UnknownError";
2121
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2153
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2122
2154
  switch (errorCode) {
2123
2155
  case "WAFInternalErrorException":
2124
2156
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -2131,10 +2163,12 @@ const deserializeAws_json1_1ListRegexPatternSetsCommandError = async (output, co
2131
2163
  throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
2132
2164
  default:
2133
2165
  const parsedBody = parsedOutput.body;
2166
+ const $metadata = deserializeMetadata(output);
2167
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2134
2168
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2135
- name: parsedBody.code || parsedBody.Code || errorCode,
2169
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2136
2170
  $fault: "client",
2137
- $metadata: deserializeMetadata(output),
2171
+ $metadata,
2138
2172
  });
2139
2173
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2140
2174
  }
@@ -2159,8 +2193,7 @@ const deserializeAws_json1_1ListResourcesForWebACLCommandError = async (output,
2159
2193
  body: await parseBody(output.body, context),
2160
2194
  };
2161
2195
  let response;
2162
- let errorCode = "UnknownError";
2163
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2196
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2164
2197
  switch (errorCode) {
2165
2198
  case "WAFInternalErrorException":
2166
2199
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -2176,10 +2209,12 @@ const deserializeAws_json1_1ListResourcesForWebACLCommandError = async (output,
2176
2209
  throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
2177
2210
  default:
2178
2211
  const parsedBody = parsedOutput.body;
2212
+ const $metadata = deserializeMetadata(output);
2213
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2179
2214
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2180
- name: parsedBody.code || parsedBody.Code || errorCode,
2215
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2181
2216
  $fault: "client",
2182
- $metadata: deserializeMetadata(output),
2217
+ $metadata,
2183
2218
  });
2184
2219
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2185
2220
  }
@@ -2204,8 +2239,7 @@ const deserializeAws_json1_1ListRuleGroupsCommandError = async (output, context)
2204
2239
  body: await parseBody(output.body, context),
2205
2240
  };
2206
2241
  let response;
2207
- let errorCode = "UnknownError";
2208
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2242
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2209
2243
  switch (errorCode) {
2210
2244
  case "WAFInternalErrorException":
2211
2245
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -2218,10 +2252,12 @@ const deserializeAws_json1_1ListRuleGroupsCommandError = async (output, context)
2218
2252
  throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
2219
2253
  default:
2220
2254
  const parsedBody = parsedOutput.body;
2255
+ const $metadata = deserializeMetadata(output);
2256
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2221
2257
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2222
- name: parsedBody.code || parsedBody.Code || errorCode,
2258
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2223
2259
  $fault: "client",
2224
- $metadata: deserializeMetadata(output),
2260
+ $metadata,
2225
2261
  });
2226
2262
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2227
2263
  }
@@ -2246,8 +2282,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
2246
2282
  body: await parseBody(output.body, context),
2247
2283
  };
2248
2284
  let response;
2249
- let errorCode = "UnknownError";
2250
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2285
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2251
2286
  switch (errorCode) {
2252
2287
  case "WAFInternalErrorException":
2253
2288
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -2269,10 +2304,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
2269
2304
  throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
2270
2305
  default:
2271
2306
  const parsedBody = parsedOutput.body;
2307
+ const $metadata = deserializeMetadata(output);
2308
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2272
2309
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2273
- name: parsedBody.code || parsedBody.Code || errorCode,
2310
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2274
2311
  $fault: "client",
2275
- $metadata: deserializeMetadata(output),
2312
+ $metadata,
2276
2313
  });
2277
2314
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2278
2315
  }
@@ -2297,8 +2334,7 @@ const deserializeAws_json1_1ListWebACLsCommandError = async (output, context) =>
2297
2334
  body: await parseBody(output.body, context),
2298
2335
  };
2299
2336
  let response;
2300
- let errorCode = "UnknownError";
2301
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2337
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2302
2338
  switch (errorCode) {
2303
2339
  case "WAFInternalErrorException":
2304
2340
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -2311,10 +2347,12 @@ const deserializeAws_json1_1ListWebACLsCommandError = async (output, context) =>
2311
2347
  throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
2312
2348
  default:
2313
2349
  const parsedBody = parsedOutput.body;
2350
+ const $metadata = deserializeMetadata(output);
2351
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2314
2352
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2315
- name: parsedBody.code || parsedBody.Code || errorCode,
2353
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2316
2354
  $fault: "client",
2317
- $metadata: deserializeMetadata(output),
2355
+ $metadata,
2318
2356
  });
2319
2357
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2320
2358
  }
@@ -2339,8 +2377,7 @@ const deserializeAws_json1_1PutLoggingConfigurationCommandError = async (output,
2339
2377
  body: await parseBody(output.body, context),
2340
2378
  };
2341
2379
  let response;
2342
- let errorCode = "UnknownError";
2343
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2380
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2344
2381
  switch (errorCode) {
2345
2382
  case "WAFInternalErrorException":
2346
2383
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -2368,10 +2405,12 @@ const deserializeAws_json1_1PutLoggingConfigurationCommandError = async (output,
2368
2405
  throw await deserializeAws_json1_1WAFServiceLinkedRoleErrorExceptionResponse(parsedOutput, context);
2369
2406
  default:
2370
2407
  const parsedBody = parsedOutput.body;
2408
+ const $metadata = deserializeMetadata(output);
2409
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2371
2410
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2372
- name: parsedBody.code || parsedBody.Code || errorCode,
2411
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2373
2412
  $fault: "client",
2374
- $metadata: deserializeMetadata(output),
2413
+ $metadata,
2375
2414
  });
2376
2415
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2377
2416
  }
@@ -2396,8 +2435,7 @@ const deserializeAws_json1_1PutManagedRuleSetVersionsCommandError = async (outpu
2396
2435
  body: await parseBody(output.body, context),
2397
2436
  };
2398
2437
  let response;
2399
- let errorCode = "UnknownError";
2400
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2438
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2401
2439
  switch (errorCode) {
2402
2440
  case "WAFInternalErrorException":
2403
2441
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -2416,10 +2454,12 @@ const deserializeAws_json1_1PutManagedRuleSetVersionsCommandError = async (outpu
2416
2454
  throw await deserializeAws_json1_1WAFOptimisticLockExceptionResponse(parsedOutput, context);
2417
2455
  default:
2418
2456
  const parsedBody = parsedOutput.body;
2457
+ const $metadata = deserializeMetadata(output);
2458
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2419
2459
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2420
- name: parsedBody.code || parsedBody.Code || errorCode,
2460
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2421
2461
  $fault: "client",
2422
- $metadata: deserializeMetadata(output),
2462
+ $metadata,
2423
2463
  });
2424
2464
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2425
2465
  }
@@ -2444,8 +2484,7 @@ const deserializeAws_json1_1PutPermissionPolicyCommandError = async (output, con
2444
2484
  body: await parseBody(output.body, context),
2445
2485
  };
2446
2486
  let response;
2447
- let errorCode = "UnknownError";
2448
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2487
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2449
2488
  switch (errorCode) {
2450
2489
  case "WAFInternalErrorException":
2451
2490
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -2461,10 +2500,12 @@ const deserializeAws_json1_1PutPermissionPolicyCommandError = async (output, con
2461
2500
  throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
2462
2501
  default:
2463
2502
  const parsedBody = parsedOutput.body;
2503
+ const $metadata = deserializeMetadata(output);
2504
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2464
2505
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2465
- name: parsedBody.code || parsedBody.Code || errorCode,
2506
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2466
2507
  $fault: "client",
2467
- $metadata: deserializeMetadata(output),
2508
+ $metadata,
2468
2509
  });
2469
2510
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2470
2511
  }
@@ -2489,8 +2530,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
2489
2530
  body: await parseBody(output.body, context),
2490
2531
  };
2491
2532
  let response;
2492
- let errorCode = "UnknownError";
2493
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2533
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2494
2534
  switch (errorCode) {
2495
2535
  case "WAFInternalErrorException":
2496
2536
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -2515,10 +2555,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
2515
2555
  throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
2516
2556
  default:
2517
2557
  const parsedBody = parsedOutput.body;
2558
+ const $metadata = deserializeMetadata(output);
2559
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2518
2560
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2519
- name: parsedBody.code || parsedBody.Code || errorCode,
2561
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2520
2562
  $fault: "client",
2521
- $metadata: deserializeMetadata(output),
2563
+ $metadata,
2522
2564
  });
2523
2565
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2524
2566
  }
@@ -2543,8 +2585,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
2543
2585
  body: await parseBody(output.body, context),
2544
2586
  };
2545
2587
  let response;
2546
- let errorCode = "UnknownError";
2547
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2588
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2548
2589
  switch (errorCode) {
2549
2590
  case "WAFInternalErrorException":
2550
2591
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -2566,10 +2607,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
2566
2607
  throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
2567
2608
  default:
2568
2609
  const parsedBody = parsedOutput.body;
2610
+ const $metadata = deserializeMetadata(output);
2611
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2569
2612
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2570
- name: parsedBody.code || parsedBody.Code || errorCode,
2613
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2571
2614
  $fault: "client",
2572
- $metadata: deserializeMetadata(output),
2615
+ $metadata,
2573
2616
  });
2574
2617
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2575
2618
  }
@@ -2594,8 +2637,7 @@ const deserializeAws_json1_1UpdateIPSetCommandError = async (output, context) =>
2594
2637
  body: await parseBody(output.body, context),
2595
2638
  };
2596
2639
  let response;
2597
- let errorCode = "UnknownError";
2598
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2640
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2599
2641
  switch (errorCode) {
2600
2642
  case "WAFDuplicateItemException":
2601
2643
  case "com.amazonaws.wafv2#WAFDuplicateItemException":
@@ -2620,10 +2662,12 @@ const deserializeAws_json1_1UpdateIPSetCommandError = async (output, context) =>
2620
2662
  throw await deserializeAws_json1_1WAFOptimisticLockExceptionResponse(parsedOutput, context);
2621
2663
  default:
2622
2664
  const parsedBody = parsedOutput.body;
2665
+ const $metadata = deserializeMetadata(output);
2666
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2623
2667
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2624
- name: parsedBody.code || parsedBody.Code || errorCode,
2668
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2625
2669
  $fault: "client",
2626
- $metadata: deserializeMetadata(output),
2670
+ $metadata,
2627
2671
  });
2628
2672
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2629
2673
  }
@@ -2648,8 +2692,7 @@ const deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateCommandError =
2648
2692
  body: await parseBody(output.body, context),
2649
2693
  };
2650
2694
  let response;
2651
- let errorCode = "UnknownError";
2652
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2695
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2653
2696
  switch (errorCode) {
2654
2697
  case "WAFInternalErrorException":
2655
2698
  case "com.amazonaws.wafv2#WAFInternalErrorException":
@@ -2668,10 +2711,12 @@ const deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateCommandError =
2668
2711
  throw await deserializeAws_json1_1WAFOptimisticLockExceptionResponse(parsedOutput, context);
2669
2712
  default:
2670
2713
  const parsedBody = parsedOutput.body;
2714
+ const $metadata = deserializeMetadata(output);
2715
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2671
2716
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2672
- name: parsedBody.code || parsedBody.Code || errorCode,
2717
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2673
2718
  $fault: "client",
2674
- $metadata: deserializeMetadata(output),
2719
+ $metadata,
2675
2720
  });
2676
2721
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2677
2722
  }
@@ -2696,8 +2741,7 @@ const deserializeAws_json1_1UpdateRegexPatternSetCommandError = async (output, c
2696
2741
  body: await parseBody(output.body, context),
2697
2742
  };
2698
2743
  let response;
2699
- let errorCode = "UnknownError";
2700
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2744
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2701
2745
  switch (errorCode) {
2702
2746
  case "WAFDuplicateItemException":
2703
2747
  case "com.amazonaws.wafv2#WAFDuplicateItemException":
@@ -2722,10 +2766,12 @@ const deserializeAws_json1_1UpdateRegexPatternSetCommandError = async (output, c
2722
2766
  throw await deserializeAws_json1_1WAFOptimisticLockExceptionResponse(parsedOutput, context);
2723
2767
  default:
2724
2768
  const parsedBody = parsedOutput.body;
2769
+ const $metadata = deserializeMetadata(output);
2770
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2725
2771
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2726
- name: parsedBody.code || parsedBody.Code || errorCode,
2772
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2727
2773
  $fault: "client",
2728
- $metadata: deserializeMetadata(output),
2774
+ $metadata,
2729
2775
  });
2730
2776
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2731
2777
  }
@@ -2750,8 +2796,7 @@ const deserializeAws_json1_1UpdateRuleGroupCommandError = async (output, context
2750
2796
  body: await parseBody(output.body, context),
2751
2797
  };
2752
2798
  let response;
2753
- let errorCode = "UnknownError";
2754
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2799
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2755
2800
  switch (errorCode) {
2756
2801
  case "WAFConfigurationWarningException":
2757
2802
  case "com.amazonaws.wafv2#WAFConfigurationWarningException":
@@ -2785,10 +2830,12 @@ const deserializeAws_json1_1UpdateRuleGroupCommandError = async (output, context
2785
2830
  throw await deserializeAws_json1_1WAFUnavailableEntityExceptionResponse(parsedOutput, context);
2786
2831
  default:
2787
2832
  const parsedBody = parsedOutput.body;
2833
+ const $metadata = deserializeMetadata(output);
2834
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2788
2835
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2789
- name: parsedBody.code || parsedBody.Code || errorCode,
2836
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2790
2837
  $fault: "client",
2791
- $metadata: deserializeMetadata(output),
2838
+ $metadata,
2792
2839
  });
2793
2840
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2794
2841
  }
@@ -2813,8 +2860,7 @@ const deserializeAws_json1_1UpdateWebACLCommandError = async (output, context) =
2813
2860
  body: await parseBody(output.body, context),
2814
2861
  };
2815
2862
  let response;
2816
- let errorCode = "UnknownError";
2817
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2863
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2818
2864
  switch (errorCode) {
2819
2865
  case "WAFConfigurationWarningException":
2820
2866
  case "com.amazonaws.wafv2#WAFConfigurationWarningException":
@@ -2854,10 +2900,12 @@ const deserializeAws_json1_1UpdateWebACLCommandError = async (output, context) =
2854
2900
  throw await deserializeAws_json1_1WAFUnavailableEntityExceptionResponse(parsedOutput, context);
2855
2901
  default:
2856
2902
  const parsedBody = parsedOutput.body;
2903
+ const $metadata = deserializeMetadata(output);
2904
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
2857
2905
  response = new WAFV2ServiceException_1.WAFV2ServiceException({
2858
- name: parsedBody.code || parsedBody.Code || errorCode,
2906
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
2859
2907
  $fault: "client",
2860
- $metadata: deserializeMetadata(output),
2908
+ $metadata,
2861
2909
  });
2862
2910
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2863
2911
  }
@@ -3026,7 +3074,7 @@ const deserializeAws_json1_1WAFUnavailableEntityExceptionResponse = async (parse
3026
3074
  };
3027
3075
  const serializeAws_json1_1ActionCondition = (input, context) => {
3028
3076
  return {
3029
- ...(input.Action !== undefined && input.Action !== null && { Action: input.Action }),
3077
+ ...(input.Action != null && { Action: input.Action }),
3030
3078
  };
3031
3079
  };
3032
3080
  const serializeAws_json1_1All = (input, context) => {
@@ -3034,8 +3082,7 @@ const serializeAws_json1_1All = (input, context) => {
3034
3082
  };
3035
3083
  const serializeAws_json1_1AllowAction = (input, context) => {
3036
3084
  return {
3037
- ...(input.CustomRequestHandling !== undefined &&
3038
- input.CustomRequestHandling !== null && {
3085
+ ...(input.CustomRequestHandling != null && {
3039
3086
  CustomRequestHandling: serializeAws_json1_1CustomRequestHandling(input.CustomRequestHandling, context),
3040
3087
  }),
3041
3088
  };
@@ -3045,75 +3092,63 @@ const serializeAws_json1_1AllQueryArguments = (input, context) => {
3045
3092
  };
3046
3093
  const serializeAws_json1_1AndStatement = (input, context) => {
3047
3094
  return {
3048
- ...(input.Statements !== undefined &&
3049
- input.Statements !== null && { Statements: serializeAws_json1_1Statements(input.Statements, context) }),
3095
+ ...(input.Statements != null && { Statements: serializeAws_json1_1Statements(input.Statements, context) }),
3050
3096
  };
3051
3097
  };
3052
3098
  const serializeAws_json1_1AssociateWebACLRequest = (input, context) => {
3053
3099
  return {
3054
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3055
- ...(input.WebACLArn !== undefined && input.WebACLArn !== null && { WebACLArn: input.WebACLArn }),
3100
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3101
+ ...(input.WebACLArn != null && { WebACLArn: input.WebACLArn }),
3056
3102
  };
3057
3103
  };
3058
3104
  const serializeAws_json1_1BlockAction = (input, context) => {
3059
3105
  return {
3060
- ...(input.CustomResponse !== undefined &&
3061
- input.CustomResponse !== null && {
3106
+ ...(input.CustomResponse != null && {
3062
3107
  CustomResponse: serializeAws_json1_1CustomResponse(input.CustomResponse, context),
3063
3108
  }),
3064
3109
  };
3065
3110
  };
3066
3111
  const serializeAws_json1_1Body = (input, context) => {
3067
3112
  return {
3068
- ...(input.OversizeHandling !== undefined &&
3069
- input.OversizeHandling !== null && { OversizeHandling: input.OversizeHandling }),
3113
+ ...(input.OversizeHandling != null && { OversizeHandling: input.OversizeHandling }),
3070
3114
  };
3071
3115
  };
3072
3116
  const serializeAws_json1_1ByteMatchStatement = (input, context) => {
3073
3117
  return {
3074
- ...(input.FieldToMatch !== undefined &&
3075
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
3076
- ...(input.PositionalConstraint !== undefined &&
3077
- input.PositionalConstraint !== null && { PositionalConstraint: input.PositionalConstraint }),
3078
- ...(input.SearchString !== undefined &&
3079
- input.SearchString !== null && { SearchString: context.base64Encoder(input.SearchString) }),
3080
- ...(input.TextTransformations !== undefined &&
3081
- input.TextTransformations !== null && {
3118
+ ...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
3119
+ ...(input.PositionalConstraint != null && { PositionalConstraint: input.PositionalConstraint }),
3120
+ ...(input.SearchString != null && { SearchString: context.base64Encoder(input.SearchString) }),
3121
+ ...(input.TextTransformations != null && {
3082
3122
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
3083
3123
  }),
3084
3124
  };
3085
3125
  };
3086
3126
  const serializeAws_json1_1CaptchaAction = (input, context) => {
3087
3127
  return {
3088
- ...(input.CustomRequestHandling !== undefined &&
3089
- input.CustomRequestHandling !== null && {
3128
+ ...(input.CustomRequestHandling != null && {
3090
3129
  CustomRequestHandling: serializeAws_json1_1CustomRequestHandling(input.CustomRequestHandling, context),
3091
3130
  }),
3092
3131
  };
3093
3132
  };
3094
3133
  const serializeAws_json1_1CaptchaConfig = (input, context) => {
3095
3134
  return {
3096
- ...(input.ImmunityTimeProperty !== undefined &&
3097
- input.ImmunityTimeProperty !== null && {
3135
+ ...(input.ImmunityTimeProperty != null && {
3098
3136
  ImmunityTimeProperty: serializeAws_json1_1ImmunityTimeProperty(input.ImmunityTimeProperty, context),
3099
3137
  }),
3100
3138
  };
3101
3139
  };
3102
3140
  const serializeAws_json1_1CheckCapacityRequest = (input, context) => {
3103
3141
  return {
3104
- ...(input.Rules !== undefined &&
3105
- input.Rules !== null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
3106
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3142
+ ...(input.Rules != null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
3143
+ ...(input.Scope != null && { Scope: input.Scope }),
3107
3144
  };
3108
3145
  };
3109
3146
  const serializeAws_json1_1Condition = (input, context) => {
3110
3147
  return {
3111
- ...(input.ActionCondition !== undefined &&
3112
- input.ActionCondition !== null && {
3148
+ ...(input.ActionCondition != null && {
3113
3149
  ActionCondition: serializeAws_json1_1ActionCondition(input.ActionCondition, context),
3114
3150
  }),
3115
- ...(input.LabelNameCondition !== undefined &&
3116
- input.LabelNameCondition !== null && {
3151
+ ...(input.LabelNameCondition != null && {
3117
3152
  LabelNameCondition: serializeAws_json1_1LabelNameCondition(input.LabelNameCondition, context),
3118
3153
  }),
3119
3154
  };
@@ -3130,13 +3165,11 @@ const serializeAws_json1_1Conditions = (input, context) => {
3130
3165
  };
3131
3166
  const serializeAws_json1_1CookieMatchPattern = (input, context) => {
3132
3167
  return {
3133
- ...(input.All !== undefined && input.All !== null && { All: serializeAws_json1_1All(input.All, context) }),
3134
- ...(input.ExcludedCookies !== undefined &&
3135
- input.ExcludedCookies !== null && {
3168
+ ...(input.All != null && { All: serializeAws_json1_1All(input.All, context) }),
3169
+ ...(input.ExcludedCookies != null && {
3136
3170
  ExcludedCookies: serializeAws_json1_1CookieNames(input.ExcludedCookies, context),
3137
3171
  }),
3138
- ...(input.IncludedCookies !== undefined &&
3139
- input.IncludedCookies !== null && {
3172
+ ...(input.IncludedCookies != null && {
3140
3173
  IncludedCookies: serializeAws_json1_1CookieNames(input.IncludedCookies, context),
3141
3174
  }),
3142
3175
  };
@@ -3153,19 +3186,16 @@ const serializeAws_json1_1CookieNames = (input, context) => {
3153
3186
  };
3154
3187
  const serializeAws_json1_1Cookies = (input, context) => {
3155
3188
  return {
3156
- ...(input.MatchPattern !== undefined &&
3157
- input.MatchPattern !== null && {
3189
+ ...(input.MatchPattern != null && {
3158
3190
  MatchPattern: serializeAws_json1_1CookieMatchPattern(input.MatchPattern, context),
3159
3191
  }),
3160
- ...(input.MatchScope !== undefined && input.MatchScope !== null && { MatchScope: input.MatchScope }),
3161
- ...(input.OversizeHandling !== undefined &&
3162
- input.OversizeHandling !== null && { OversizeHandling: input.OversizeHandling }),
3192
+ ...(input.MatchScope != null && { MatchScope: input.MatchScope }),
3193
+ ...(input.OversizeHandling != null && { OversizeHandling: input.OversizeHandling }),
3163
3194
  };
3164
3195
  };
3165
3196
  const serializeAws_json1_1CountAction = (input, context) => {
3166
3197
  return {
3167
- ...(input.CustomRequestHandling !== undefined &&
3168
- input.CustomRequestHandling !== null && {
3198
+ ...(input.CustomRequestHandling != null && {
3169
3199
  CustomRequestHandling: serializeAws_json1_1CustomRequestHandling(input.CustomRequestHandling, context),
3170
3200
  }),
3171
3201
  };
@@ -3182,77 +3212,66 @@ const serializeAws_json1_1CountryCodes = (input, context) => {
3182
3212
  };
3183
3213
  const serializeAws_json1_1CreateIPSetRequest = (input, context) => {
3184
3214
  return {
3185
- ...(input.Addresses !== undefined &&
3186
- input.Addresses !== null && { Addresses: serializeAws_json1_1IPAddresses(input.Addresses, context) }),
3187
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3188
- ...(input.IPAddressVersion !== undefined &&
3189
- input.IPAddressVersion !== null && { IPAddressVersion: input.IPAddressVersion }),
3190
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3191
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3192
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
3215
+ ...(input.Addresses != null && { Addresses: serializeAws_json1_1IPAddresses(input.Addresses, context) }),
3216
+ ...(input.Description != null && { Description: input.Description }),
3217
+ ...(input.IPAddressVersion != null && { IPAddressVersion: input.IPAddressVersion }),
3218
+ ...(input.Name != null && { Name: input.Name }),
3219
+ ...(input.Scope != null && { Scope: input.Scope }),
3220
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
3193
3221
  };
3194
3222
  };
3195
3223
  const serializeAws_json1_1CreateRegexPatternSetRequest = (input, context) => {
3196
3224
  return {
3197
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3198
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3199
- ...(input.RegularExpressionList !== undefined &&
3200
- input.RegularExpressionList !== null && {
3225
+ ...(input.Description != null && { Description: input.Description }),
3226
+ ...(input.Name != null && { Name: input.Name }),
3227
+ ...(input.RegularExpressionList != null && {
3201
3228
  RegularExpressionList: serializeAws_json1_1RegularExpressionList(input.RegularExpressionList, context),
3202
3229
  }),
3203
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3204
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
3230
+ ...(input.Scope != null && { Scope: input.Scope }),
3231
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
3205
3232
  };
3206
3233
  };
3207
3234
  const serializeAws_json1_1CreateRuleGroupRequest = (input, context) => {
3208
3235
  return {
3209
- ...(input.Capacity !== undefined && input.Capacity !== null && { Capacity: input.Capacity }),
3210
- ...(input.CustomResponseBodies !== undefined &&
3211
- input.CustomResponseBodies !== null && {
3236
+ ...(input.Capacity != null && { Capacity: input.Capacity }),
3237
+ ...(input.CustomResponseBodies != null && {
3212
3238
  CustomResponseBodies: serializeAws_json1_1CustomResponseBodies(input.CustomResponseBodies, context),
3213
3239
  }),
3214
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3215
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3216
- ...(input.Rules !== undefined &&
3217
- input.Rules !== null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
3218
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3219
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
3220
- ...(input.VisibilityConfig !== undefined &&
3221
- input.VisibilityConfig !== null && {
3240
+ ...(input.Description != null && { Description: input.Description }),
3241
+ ...(input.Name != null && { Name: input.Name }),
3242
+ ...(input.Rules != null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
3243
+ ...(input.Scope != null && { Scope: input.Scope }),
3244
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
3245
+ ...(input.VisibilityConfig != null && {
3222
3246
  VisibilityConfig: serializeAws_json1_1VisibilityConfig(input.VisibilityConfig, context),
3223
3247
  }),
3224
3248
  };
3225
3249
  };
3226
3250
  const serializeAws_json1_1CreateWebACLRequest = (input, context) => {
3227
3251
  return {
3228
- ...(input.CaptchaConfig !== undefined &&
3229
- input.CaptchaConfig !== null && {
3252
+ ...(input.CaptchaConfig != null && {
3230
3253
  CaptchaConfig: serializeAws_json1_1CaptchaConfig(input.CaptchaConfig, context),
3231
3254
  }),
3232
- ...(input.CustomResponseBodies !== undefined &&
3233
- input.CustomResponseBodies !== null && {
3255
+ ...(input.CustomResponseBodies != null && {
3234
3256
  CustomResponseBodies: serializeAws_json1_1CustomResponseBodies(input.CustomResponseBodies, context),
3235
3257
  }),
3236
- ...(input.DefaultAction !== undefined &&
3237
- input.DefaultAction !== null && {
3258
+ ...(input.DefaultAction != null && {
3238
3259
  DefaultAction: serializeAws_json1_1DefaultAction(input.DefaultAction, context),
3239
3260
  }),
3240
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
3241
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3242
- ...(input.Rules !== undefined &&
3243
- input.Rules !== null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
3244
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3245
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
3246
- ...(input.VisibilityConfig !== undefined &&
3247
- input.VisibilityConfig !== null && {
3261
+ ...(input.Description != null && { Description: input.Description }),
3262
+ ...(input.Name != null && { Name: input.Name }),
3263
+ ...(input.Rules != null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
3264
+ ...(input.Scope != null && { Scope: input.Scope }),
3265
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
3266
+ ...(input.VisibilityConfig != null && {
3248
3267
  VisibilityConfig: serializeAws_json1_1VisibilityConfig(input.VisibilityConfig, context),
3249
3268
  }),
3250
3269
  };
3251
3270
  };
3252
3271
  const serializeAws_json1_1CustomHTTPHeader = (input, context) => {
3253
3272
  return {
3254
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3255
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
3273
+ ...(input.Name != null && { Name: input.Name }),
3274
+ ...(input.Value != null && { Value: input.Value }),
3256
3275
  };
3257
3276
  };
3258
3277
  const serializeAws_json1_1CustomHTTPHeaders = (input, context) => {
@@ -3267,19 +3286,16 @@ const serializeAws_json1_1CustomHTTPHeaders = (input, context) => {
3267
3286
  };
3268
3287
  const serializeAws_json1_1CustomRequestHandling = (input, context) => {
3269
3288
  return {
3270
- ...(input.InsertHeaders !== undefined &&
3271
- input.InsertHeaders !== null && {
3289
+ ...(input.InsertHeaders != null && {
3272
3290
  InsertHeaders: serializeAws_json1_1CustomHTTPHeaders(input.InsertHeaders, context),
3273
3291
  }),
3274
3292
  };
3275
3293
  };
3276
3294
  const serializeAws_json1_1CustomResponse = (input, context) => {
3277
3295
  return {
3278
- ...(input.CustomResponseBodyKey !== undefined &&
3279
- input.CustomResponseBodyKey !== null && { CustomResponseBodyKey: input.CustomResponseBodyKey }),
3280
- ...(input.ResponseCode !== undefined && input.ResponseCode !== null && { ResponseCode: input.ResponseCode }),
3281
- ...(input.ResponseHeaders !== undefined &&
3282
- input.ResponseHeaders !== null && {
3296
+ ...(input.CustomResponseBodyKey != null && { CustomResponseBodyKey: input.CustomResponseBodyKey }),
3297
+ ...(input.ResponseCode != null && { ResponseCode: input.ResponseCode }),
3298
+ ...(input.ResponseHeaders != null && {
3283
3299
  ResponseHeaders: serializeAws_json1_1CustomHTTPHeaders(input.ResponseHeaders, context),
3284
3300
  }),
3285
3301
  };
@@ -3297,83 +3313,80 @@ const serializeAws_json1_1CustomResponseBodies = (input, context) => {
3297
3313
  };
3298
3314
  const serializeAws_json1_1CustomResponseBody = (input, context) => {
3299
3315
  return {
3300
- ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
3301
- ...(input.ContentType !== undefined && input.ContentType !== null && { ContentType: input.ContentType }),
3316
+ ...(input.Content != null && { Content: input.Content }),
3317
+ ...(input.ContentType != null && { ContentType: input.ContentType }),
3302
3318
  };
3303
3319
  };
3304
3320
  const serializeAws_json1_1DefaultAction = (input, context) => {
3305
3321
  return {
3306
- ...(input.Allow !== undefined &&
3307
- input.Allow !== null && { Allow: serializeAws_json1_1AllowAction(input.Allow, context) }),
3308
- ...(input.Block !== undefined &&
3309
- input.Block !== null && { Block: serializeAws_json1_1BlockAction(input.Block, context) }),
3322
+ ...(input.Allow != null && { Allow: serializeAws_json1_1AllowAction(input.Allow, context) }),
3323
+ ...(input.Block != null && { Block: serializeAws_json1_1BlockAction(input.Block, context) }),
3310
3324
  };
3311
3325
  };
3312
3326
  const serializeAws_json1_1DeleteFirewallManagerRuleGroupsRequest = (input, context) => {
3313
3327
  return {
3314
- ...(input.WebACLArn !== undefined && input.WebACLArn !== null && { WebACLArn: input.WebACLArn }),
3315
- ...(input.WebACLLockToken !== undefined &&
3316
- input.WebACLLockToken !== null && { WebACLLockToken: input.WebACLLockToken }),
3328
+ ...(input.WebACLArn != null && { WebACLArn: input.WebACLArn }),
3329
+ ...(input.WebACLLockToken != null && { WebACLLockToken: input.WebACLLockToken }),
3317
3330
  };
3318
3331
  };
3319
3332
  const serializeAws_json1_1DeleteIPSetRequest = (input, context) => {
3320
3333
  return {
3321
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3322
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
3323
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3324
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3334
+ ...(input.Id != null && { Id: input.Id }),
3335
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
3336
+ ...(input.Name != null && { Name: input.Name }),
3337
+ ...(input.Scope != null && { Scope: input.Scope }),
3325
3338
  };
3326
3339
  };
3327
3340
  const serializeAws_json1_1DeleteLoggingConfigurationRequest = (input, context) => {
3328
3341
  return {
3329
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3342
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3330
3343
  };
3331
3344
  };
3332
3345
  const serializeAws_json1_1DeletePermissionPolicyRequest = (input, context) => {
3333
3346
  return {
3334
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3347
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3335
3348
  };
3336
3349
  };
3337
3350
  const serializeAws_json1_1DeleteRegexPatternSetRequest = (input, context) => {
3338
3351
  return {
3339
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3340
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
3341
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3342
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3352
+ ...(input.Id != null && { Id: input.Id }),
3353
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
3354
+ ...(input.Name != null && { Name: input.Name }),
3355
+ ...(input.Scope != null && { Scope: input.Scope }),
3343
3356
  };
3344
3357
  };
3345
3358
  const serializeAws_json1_1DeleteRuleGroupRequest = (input, context) => {
3346
3359
  return {
3347
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3348
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
3349
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3350
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3360
+ ...(input.Id != null && { Id: input.Id }),
3361
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
3362
+ ...(input.Name != null && { Name: input.Name }),
3363
+ ...(input.Scope != null && { Scope: input.Scope }),
3351
3364
  };
3352
3365
  };
3353
3366
  const serializeAws_json1_1DeleteWebACLRequest = (input, context) => {
3354
3367
  return {
3355
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3356
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
3357
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3358
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3368
+ ...(input.Id != null && { Id: input.Id }),
3369
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
3370
+ ...(input.Name != null && { Name: input.Name }),
3371
+ ...(input.Scope != null && { Scope: input.Scope }),
3359
3372
  };
3360
3373
  };
3361
3374
  const serializeAws_json1_1DescribeManagedRuleGroupRequest = (input, context) => {
3362
3375
  return {
3363
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3364
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3365
- ...(input.VendorName !== undefined && input.VendorName !== null && { VendorName: input.VendorName }),
3366
- ...(input.VersionName !== undefined && input.VersionName !== null && { VersionName: input.VersionName }),
3376
+ ...(input.Name != null && { Name: input.Name }),
3377
+ ...(input.Scope != null && { Scope: input.Scope }),
3378
+ ...(input.VendorName != null && { VendorName: input.VendorName }),
3379
+ ...(input.VersionName != null && { VersionName: input.VersionName }),
3367
3380
  };
3368
3381
  };
3369
3382
  const serializeAws_json1_1DisassociateWebACLRequest = (input, context) => {
3370
3383
  return {
3371
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3384
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3372
3385
  };
3373
3386
  };
3374
3387
  const serializeAws_json1_1ExcludedRule = (input, context) => {
3375
3388
  return {
3376
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3389
+ ...(input.Name != null && { Name: input.Name }),
3377
3390
  };
3378
3391
  };
3379
3392
  const serializeAws_json1_1ExcludedRules = (input, context) => {
@@ -3388,37 +3401,27 @@ const serializeAws_json1_1ExcludedRules = (input, context) => {
3388
3401
  };
3389
3402
  const serializeAws_json1_1FieldToMatch = (input, context) => {
3390
3403
  return {
3391
- ...(input.AllQueryArguments !== undefined &&
3392
- input.AllQueryArguments !== null && {
3404
+ ...(input.AllQueryArguments != null && {
3393
3405
  AllQueryArguments: serializeAws_json1_1AllQueryArguments(input.AllQueryArguments, context),
3394
3406
  }),
3395
- ...(input.Body !== undefined && input.Body !== null && { Body: serializeAws_json1_1Body(input.Body, context) }),
3396
- ...(input.Cookies !== undefined &&
3397
- input.Cookies !== null && { Cookies: serializeAws_json1_1Cookies(input.Cookies, context) }),
3398
- ...(input.Headers !== undefined &&
3399
- input.Headers !== null && { Headers: serializeAws_json1_1Headers(input.Headers, context) }),
3400
- ...(input.JsonBody !== undefined &&
3401
- input.JsonBody !== null && { JsonBody: serializeAws_json1_1JsonBody(input.JsonBody, context) }),
3402
- ...(input.Method !== undefined &&
3403
- input.Method !== null && { Method: serializeAws_json1_1Method(input.Method, context) }),
3404
- ...(input.QueryString !== undefined &&
3405
- input.QueryString !== null && { QueryString: serializeAws_json1_1QueryString(input.QueryString, context) }),
3406
- ...(input.SingleHeader !== undefined &&
3407
- input.SingleHeader !== null && { SingleHeader: serializeAws_json1_1SingleHeader(input.SingleHeader, context) }),
3408
- ...(input.SingleQueryArgument !== undefined &&
3409
- input.SingleQueryArgument !== null && {
3407
+ ...(input.Body != null && { Body: serializeAws_json1_1Body(input.Body, context) }),
3408
+ ...(input.Cookies != null && { Cookies: serializeAws_json1_1Cookies(input.Cookies, context) }),
3409
+ ...(input.Headers != null && { Headers: serializeAws_json1_1Headers(input.Headers, context) }),
3410
+ ...(input.JsonBody != null && { JsonBody: serializeAws_json1_1JsonBody(input.JsonBody, context) }),
3411
+ ...(input.Method != null && { Method: serializeAws_json1_1Method(input.Method, context) }),
3412
+ ...(input.QueryString != null && { QueryString: serializeAws_json1_1QueryString(input.QueryString, context) }),
3413
+ ...(input.SingleHeader != null && { SingleHeader: serializeAws_json1_1SingleHeader(input.SingleHeader, context) }),
3414
+ ...(input.SingleQueryArgument != null && {
3410
3415
  SingleQueryArgument: serializeAws_json1_1SingleQueryArgument(input.SingleQueryArgument, context),
3411
3416
  }),
3412
- ...(input.UriPath !== undefined &&
3413
- input.UriPath !== null && { UriPath: serializeAws_json1_1UriPath(input.UriPath, context) }),
3417
+ ...(input.UriPath != null && { UriPath: serializeAws_json1_1UriPath(input.UriPath, context) }),
3414
3418
  };
3415
3419
  };
3416
3420
  const serializeAws_json1_1Filter = (input, context) => {
3417
3421
  return {
3418
- ...(input.Behavior !== undefined && input.Behavior !== null && { Behavior: input.Behavior }),
3419
- ...(input.Conditions !== undefined &&
3420
- input.Conditions !== null && { Conditions: serializeAws_json1_1Conditions(input.Conditions, context) }),
3421
- ...(input.Requirement !== undefined && input.Requirement !== null && { Requirement: input.Requirement }),
3422
+ ...(input.Behavior != null && { Behavior: input.Behavior }),
3423
+ ...(input.Conditions != null && { Conditions: serializeAws_json1_1Conditions(input.Conditions, context) }),
3424
+ ...(input.Requirement != null && { Requirement: input.Requirement }),
3422
3425
  };
3423
3426
  };
3424
3427
  const serializeAws_json1_1Filters = (input, context) => {
@@ -3433,116 +3436,106 @@ const serializeAws_json1_1Filters = (input, context) => {
3433
3436
  };
3434
3437
  const serializeAws_json1_1ForwardedIPConfig = (input, context) => {
3435
3438
  return {
3436
- ...(input.FallbackBehavior !== undefined &&
3437
- input.FallbackBehavior !== null && { FallbackBehavior: input.FallbackBehavior }),
3438
- ...(input.HeaderName !== undefined && input.HeaderName !== null && { HeaderName: input.HeaderName }),
3439
+ ...(input.FallbackBehavior != null && { FallbackBehavior: input.FallbackBehavior }),
3440
+ ...(input.HeaderName != null && { HeaderName: input.HeaderName }),
3439
3441
  };
3440
3442
  };
3441
3443
  const serializeAws_json1_1GenerateMobileSdkReleaseUrlRequest = (input, context) => {
3442
3444
  return {
3443
- ...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
3444
- ...(input.ReleaseVersion !== undefined &&
3445
- input.ReleaseVersion !== null && { ReleaseVersion: input.ReleaseVersion }),
3445
+ ...(input.Platform != null && { Platform: input.Platform }),
3446
+ ...(input.ReleaseVersion != null && { ReleaseVersion: input.ReleaseVersion }),
3446
3447
  };
3447
3448
  };
3448
3449
  const serializeAws_json1_1GeoMatchStatement = (input, context) => {
3449
3450
  return {
3450
- ...(input.CountryCodes !== undefined &&
3451
- input.CountryCodes !== null && { CountryCodes: serializeAws_json1_1CountryCodes(input.CountryCodes, context) }),
3452
- ...(input.ForwardedIPConfig !== undefined &&
3453
- input.ForwardedIPConfig !== null && {
3451
+ ...(input.CountryCodes != null && { CountryCodes: serializeAws_json1_1CountryCodes(input.CountryCodes, context) }),
3452
+ ...(input.ForwardedIPConfig != null && {
3454
3453
  ForwardedIPConfig: serializeAws_json1_1ForwardedIPConfig(input.ForwardedIPConfig, context),
3455
3454
  }),
3456
3455
  };
3457
3456
  };
3458
3457
  const serializeAws_json1_1GetIPSetRequest = (input, context) => {
3459
3458
  return {
3460
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3461
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3462
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3459
+ ...(input.Id != null && { Id: input.Id }),
3460
+ ...(input.Name != null && { Name: input.Name }),
3461
+ ...(input.Scope != null && { Scope: input.Scope }),
3463
3462
  };
3464
3463
  };
3465
3464
  const serializeAws_json1_1GetLoggingConfigurationRequest = (input, context) => {
3466
3465
  return {
3467
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3466
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3468
3467
  };
3469
3468
  };
3470
3469
  const serializeAws_json1_1GetManagedRuleSetRequest = (input, context) => {
3471
3470
  return {
3472
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3473
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3474
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3471
+ ...(input.Id != null && { Id: input.Id }),
3472
+ ...(input.Name != null && { Name: input.Name }),
3473
+ ...(input.Scope != null && { Scope: input.Scope }),
3475
3474
  };
3476
3475
  };
3477
3476
  const serializeAws_json1_1GetMobileSdkReleaseRequest = (input, context) => {
3478
3477
  return {
3479
- ...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
3480
- ...(input.ReleaseVersion !== undefined &&
3481
- input.ReleaseVersion !== null && { ReleaseVersion: input.ReleaseVersion }),
3478
+ ...(input.Platform != null && { Platform: input.Platform }),
3479
+ ...(input.ReleaseVersion != null && { ReleaseVersion: input.ReleaseVersion }),
3482
3480
  };
3483
3481
  };
3484
3482
  const serializeAws_json1_1GetPermissionPolicyRequest = (input, context) => {
3485
3483
  return {
3486
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3484
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3487
3485
  };
3488
3486
  };
3489
3487
  const serializeAws_json1_1GetRateBasedStatementManagedKeysRequest = (input, context) => {
3490
3488
  return {
3491
- ...(input.RuleGroupRuleName !== undefined &&
3492
- input.RuleGroupRuleName !== null && { RuleGroupRuleName: input.RuleGroupRuleName }),
3493
- ...(input.RuleName !== undefined && input.RuleName !== null && { RuleName: input.RuleName }),
3494
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3495
- ...(input.WebACLId !== undefined && input.WebACLId !== null && { WebACLId: input.WebACLId }),
3496
- ...(input.WebACLName !== undefined && input.WebACLName !== null && { WebACLName: input.WebACLName }),
3489
+ ...(input.RuleGroupRuleName != null && { RuleGroupRuleName: input.RuleGroupRuleName }),
3490
+ ...(input.RuleName != null && { RuleName: input.RuleName }),
3491
+ ...(input.Scope != null && { Scope: input.Scope }),
3492
+ ...(input.WebACLId != null && { WebACLId: input.WebACLId }),
3493
+ ...(input.WebACLName != null && { WebACLName: input.WebACLName }),
3497
3494
  };
3498
3495
  };
3499
3496
  const serializeAws_json1_1GetRegexPatternSetRequest = (input, context) => {
3500
3497
  return {
3501
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3502
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3503
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3498
+ ...(input.Id != null && { Id: input.Id }),
3499
+ ...(input.Name != null && { Name: input.Name }),
3500
+ ...(input.Scope != null && { Scope: input.Scope }),
3504
3501
  };
3505
3502
  };
3506
3503
  const serializeAws_json1_1GetRuleGroupRequest = (input, context) => {
3507
3504
  return {
3508
- ...(input.ARN !== undefined && input.ARN !== null && { ARN: input.ARN }),
3509
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3510
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3511
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3505
+ ...(input.ARN != null && { ARN: input.ARN }),
3506
+ ...(input.Id != null && { Id: input.Id }),
3507
+ ...(input.Name != null && { Name: input.Name }),
3508
+ ...(input.Scope != null && { Scope: input.Scope }),
3512
3509
  };
3513
3510
  };
3514
3511
  const serializeAws_json1_1GetSampledRequestsRequest = (input, context) => {
3515
3512
  return {
3516
- ...(input.MaxItems !== undefined && input.MaxItems !== null && { MaxItems: input.MaxItems }),
3517
- ...(input.RuleMetricName !== undefined &&
3518
- input.RuleMetricName !== null && { RuleMetricName: input.RuleMetricName }),
3519
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3520
- ...(input.TimeWindow !== undefined &&
3521
- input.TimeWindow !== null && { TimeWindow: serializeAws_json1_1TimeWindow(input.TimeWindow, context) }),
3522
- ...(input.WebAclArn !== undefined && input.WebAclArn !== null && { WebAclArn: input.WebAclArn }),
3513
+ ...(input.MaxItems != null && { MaxItems: input.MaxItems }),
3514
+ ...(input.RuleMetricName != null && { RuleMetricName: input.RuleMetricName }),
3515
+ ...(input.Scope != null && { Scope: input.Scope }),
3516
+ ...(input.TimeWindow != null && { TimeWindow: serializeAws_json1_1TimeWindow(input.TimeWindow, context) }),
3517
+ ...(input.WebAclArn != null && { WebAclArn: input.WebAclArn }),
3523
3518
  };
3524
3519
  };
3525
3520
  const serializeAws_json1_1GetWebACLForResourceRequest = (input, context) => {
3526
3521
  return {
3527
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3522
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3528
3523
  };
3529
3524
  };
3530
3525
  const serializeAws_json1_1GetWebACLRequest = (input, context) => {
3531
3526
  return {
3532
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3533
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3534
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3527
+ ...(input.Id != null && { Id: input.Id }),
3528
+ ...(input.Name != null && { Name: input.Name }),
3529
+ ...(input.Scope != null && { Scope: input.Scope }),
3535
3530
  };
3536
3531
  };
3537
3532
  const serializeAws_json1_1HeaderMatchPattern = (input, context) => {
3538
3533
  return {
3539
- ...(input.All !== undefined && input.All !== null && { All: serializeAws_json1_1All(input.All, context) }),
3540
- ...(input.ExcludedHeaders !== undefined &&
3541
- input.ExcludedHeaders !== null && {
3534
+ ...(input.All != null && { All: serializeAws_json1_1All(input.All, context) }),
3535
+ ...(input.ExcludedHeaders != null && {
3542
3536
  ExcludedHeaders: serializeAws_json1_1HeaderNames(input.ExcludedHeaders, context),
3543
3537
  }),
3544
- ...(input.IncludedHeaders !== undefined &&
3545
- input.IncludedHeaders !== null && {
3538
+ ...(input.IncludedHeaders != null && {
3546
3539
  IncludedHeaders: serializeAws_json1_1HeaderNames(input.IncludedHeaders, context),
3547
3540
  }),
3548
3541
  };
@@ -3559,18 +3552,16 @@ const serializeAws_json1_1HeaderNames = (input, context) => {
3559
3552
  };
3560
3553
  const serializeAws_json1_1Headers = (input, context) => {
3561
3554
  return {
3562
- ...(input.MatchPattern !== undefined &&
3563
- input.MatchPattern !== null && {
3555
+ ...(input.MatchPattern != null && {
3564
3556
  MatchPattern: serializeAws_json1_1HeaderMatchPattern(input.MatchPattern, context),
3565
3557
  }),
3566
- ...(input.MatchScope !== undefined && input.MatchScope !== null && { MatchScope: input.MatchScope }),
3567
- ...(input.OversizeHandling !== undefined &&
3568
- input.OversizeHandling !== null && { OversizeHandling: input.OversizeHandling }),
3558
+ ...(input.MatchScope != null && { MatchScope: input.MatchScope }),
3559
+ ...(input.OversizeHandling != null && { OversizeHandling: input.OversizeHandling }),
3569
3560
  };
3570
3561
  };
3571
3562
  const serializeAws_json1_1ImmunityTimeProperty = (input, context) => {
3572
3563
  return {
3573
- ...(input.ImmunityTime !== undefined && input.ImmunityTime !== null && { ImmunityTime: input.ImmunityTime }),
3564
+ ...(input.ImmunityTime != null && { ImmunityTime: input.ImmunityTime }),
3574
3565
  };
3575
3566
  };
3576
3567
  const serializeAws_json1_1IPAddresses = (input, context) => {
@@ -3585,39 +3576,33 @@ const serializeAws_json1_1IPAddresses = (input, context) => {
3585
3576
  };
3586
3577
  const serializeAws_json1_1IPSetForwardedIPConfig = (input, context) => {
3587
3578
  return {
3588
- ...(input.FallbackBehavior !== undefined &&
3589
- input.FallbackBehavior !== null && { FallbackBehavior: input.FallbackBehavior }),
3590
- ...(input.HeaderName !== undefined && input.HeaderName !== null && { HeaderName: input.HeaderName }),
3591
- ...(input.Position !== undefined && input.Position !== null && { Position: input.Position }),
3579
+ ...(input.FallbackBehavior != null && { FallbackBehavior: input.FallbackBehavior }),
3580
+ ...(input.HeaderName != null && { HeaderName: input.HeaderName }),
3581
+ ...(input.Position != null && { Position: input.Position }),
3592
3582
  };
3593
3583
  };
3594
3584
  const serializeAws_json1_1IPSetReferenceStatement = (input, context) => {
3595
3585
  return {
3596
- ...(input.ARN !== undefined && input.ARN !== null && { ARN: input.ARN }),
3597
- ...(input.IPSetForwardedIPConfig !== undefined &&
3598
- input.IPSetForwardedIPConfig !== null && {
3586
+ ...(input.ARN != null && { ARN: input.ARN }),
3587
+ ...(input.IPSetForwardedIPConfig != null && {
3599
3588
  IPSetForwardedIPConfig: serializeAws_json1_1IPSetForwardedIPConfig(input.IPSetForwardedIPConfig, context),
3600
3589
  }),
3601
3590
  };
3602
3591
  };
3603
3592
  const serializeAws_json1_1JsonBody = (input, context) => {
3604
3593
  return {
3605
- ...(input.InvalidFallbackBehavior !== undefined &&
3606
- input.InvalidFallbackBehavior !== null && { InvalidFallbackBehavior: input.InvalidFallbackBehavior }),
3607
- ...(input.MatchPattern !== undefined &&
3608
- input.MatchPattern !== null && {
3594
+ ...(input.InvalidFallbackBehavior != null && { InvalidFallbackBehavior: input.InvalidFallbackBehavior }),
3595
+ ...(input.MatchPattern != null && {
3609
3596
  MatchPattern: serializeAws_json1_1JsonMatchPattern(input.MatchPattern, context),
3610
3597
  }),
3611
- ...(input.MatchScope !== undefined && input.MatchScope !== null && { MatchScope: input.MatchScope }),
3612
- ...(input.OversizeHandling !== undefined &&
3613
- input.OversizeHandling !== null && { OversizeHandling: input.OversizeHandling }),
3598
+ ...(input.MatchScope != null && { MatchScope: input.MatchScope }),
3599
+ ...(input.OversizeHandling != null && { OversizeHandling: input.OversizeHandling }),
3614
3600
  };
3615
3601
  };
3616
3602
  const serializeAws_json1_1JsonMatchPattern = (input, context) => {
3617
3603
  return {
3618
- ...(input.All !== undefined && input.All !== null && { All: serializeAws_json1_1All(input.All, context) }),
3619
- ...(input.IncludedPaths !== undefined &&
3620
- input.IncludedPaths !== null && {
3604
+ ...(input.All != null && { All: serializeAws_json1_1All(input.All, context) }),
3605
+ ...(input.IncludedPaths != null && {
3621
3606
  IncludedPaths: serializeAws_json1_1JsonPointerPaths(input.IncludedPaths, context),
3622
3607
  }),
3623
3608
  };
@@ -3634,18 +3619,18 @@ const serializeAws_json1_1JsonPointerPaths = (input, context) => {
3634
3619
  };
3635
3620
  const serializeAws_json1_1Label = (input, context) => {
3636
3621
  return {
3637
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3622
+ ...(input.Name != null && { Name: input.Name }),
3638
3623
  };
3639
3624
  };
3640
3625
  const serializeAws_json1_1LabelMatchStatement = (input, context) => {
3641
3626
  return {
3642
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
3643
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3627
+ ...(input.Key != null && { Key: input.Key }),
3628
+ ...(input.Scope != null && { Scope: input.Scope }),
3644
3629
  };
3645
3630
  };
3646
3631
  const serializeAws_json1_1LabelNameCondition = (input, context) => {
3647
3632
  return {
3648
- ...(input.LabelName !== undefined && input.LabelName !== null && { LabelName: input.LabelName }),
3633
+ ...(input.LabelName != null && { LabelName: input.LabelName }),
3649
3634
  };
3650
3635
  };
3651
3636
  const serializeAws_json1_1Labels = (input, context) => {
@@ -3660,80 +3645,80 @@ const serializeAws_json1_1Labels = (input, context) => {
3660
3645
  };
3661
3646
  const serializeAws_json1_1ListAvailableManagedRuleGroupsRequest = (input, context) => {
3662
3647
  return {
3663
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3664
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3665
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3648
+ ...(input.Limit != null && { Limit: input.Limit }),
3649
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3650
+ ...(input.Scope != null && { Scope: input.Scope }),
3666
3651
  };
3667
3652
  };
3668
3653
  const serializeAws_json1_1ListAvailableManagedRuleGroupVersionsRequest = (input, context) => {
3669
3654
  return {
3670
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3671
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3672
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3673
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3674
- ...(input.VendorName !== undefined && input.VendorName !== null && { VendorName: input.VendorName }),
3655
+ ...(input.Limit != null && { Limit: input.Limit }),
3656
+ ...(input.Name != null && { Name: input.Name }),
3657
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3658
+ ...(input.Scope != null && { Scope: input.Scope }),
3659
+ ...(input.VendorName != null && { VendorName: input.VendorName }),
3675
3660
  };
3676
3661
  };
3677
3662
  const serializeAws_json1_1ListIPSetsRequest = (input, context) => {
3678
3663
  return {
3679
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3680
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3681
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3664
+ ...(input.Limit != null && { Limit: input.Limit }),
3665
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3666
+ ...(input.Scope != null && { Scope: input.Scope }),
3682
3667
  };
3683
3668
  };
3684
3669
  const serializeAws_json1_1ListLoggingConfigurationsRequest = (input, context) => {
3685
3670
  return {
3686
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3687
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3688
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3671
+ ...(input.Limit != null && { Limit: input.Limit }),
3672
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3673
+ ...(input.Scope != null && { Scope: input.Scope }),
3689
3674
  };
3690
3675
  };
3691
3676
  const serializeAws_json1_1ListManagedRuleSetsRequest = (input, context) => {
3692
3677
  return {
3693
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3694
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3695
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3678
+ ...(input.Limit != null && { Limit: input.Limit }),
3679
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3680
+ ...(input.Scope != null && { Scope: input.Scope }),
3696
3681
  };
3697
3682
  };
3698
3683
  const serializeAws_json1_1ListMobileSdkReleasesRequest = (input, context) => {
3699
3684
  return {
3700
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3701
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3702
- ...(input.Platform !== undefined && input.Platform !== null && { Platform: input.Platform }),
3685
+ ...(input.Limit != null && { Limit: input.Limit }),
3686
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3687
+ ...(input.Platform != null && { Platform: input.Platform }),
3703
3688
  };
3704
3689
  };
3705
3690
  const serializeAws_json1_1ListRegexPatternSetsRequest = (input, context) => {
3706
3691
  return {
3707
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3708
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3709
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3692
+ ...(input.Limit != null && { Limit: input.Limit }),
3693
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3694
+ ...(input.Scope != null && { Scope: input.Scope }),
3710
3695
  };
3711
3696
  };
3712
3697
  const serializeAws_json1_1ListResourcesForWebACLRequest = (input, context) => {
3713
3698
  return {
3714
- ...(input.ResourceType !== undefined && input.ResourceType !== null && { ResourceType: input.ResourceType }),
3715
- ...(input.WebACLArn !== undefined && input.WebACLArn !== null && { WebACLArn: input.WebACLArn }),
3699
+ ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
3700
+ ...(input.WebACLArn != null && { WebACLArn: input.WebACLArn }),
3716
3701
  };
3717
3702
  };
3718
3703
  const serializeAws_json1_1ListRuleGroupsRequest = (input, context) => {
3719
3704
  return {
3720
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3721
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3722
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3705
+ ...(input.Limit != null && { Limit: input.Limit }),
3706
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3707
+ ...(input.Scope != null && { Scope: input.Scope }),
3723
3708
  };
3724
3709
  };
3725
3710
  const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
3726
3711
  return {
3727
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3728
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3729
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
3712
+ ...(input.Limit != null && { Limit: input.Limit }),
3713
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3714
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
3730
3715
  };
3731
3716
  };
3732
3717
  const serializeAws_json1_1ListWebACLsRequest = (input, context) => {
3733
3718
  return {
3734
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3735
- ...(input.NextMarker !== undefined && input.NextMarker !== null && { NextMarker: input.NextMarker }),
3736
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3719
+ ...(input.Limit != null && { Limit: input.Limit }),
3720
+ ...(input.NextMarker != null && { NextMarker: input.NextMarker }),
3721
+ ...(input.Scope != null && { Scope: input.Scope }),
3737
3722
  };
3738
3723
  };
3739
3724
  const serializeAws_json1_1LogDestinationConfigs = (input, context) => {
@@ -3748,41 +3733,33 @@ const serializeAws_json1_1LogDestinationConfigs = (input, context) => {
3748
3733
  };
3749
3734
  const serializeAws_json1_1LoggingConfiguration = (input, context) => {
3750
3735
  return {
3751
- ...(input.LogDestinationConfigs !== undefined &&
3752
- input.LogDestinationConfigs !== null && {
3736
+ ...(input.LogDestinationConfigs != null && {
3753
3737
  LogDestinationConfigs: serializeAws_json1_1LogDestinationConfigs(input.LogDestinationConfigs, context),
3754
3738
  }),
3755
- ...(input.LoggingFilter !== undefined &&
3756
- input.LoggingFilter !== null && {
3739
+ ...(input.LoggingFilter != null && {
3757
3740
  LoggingFilter: serializeAws_json1_1LoggingFilter(input.LoggingFilter, context),
3758
3741
  }),
3759
- ...(input.ManagedByFirewallManager !== undefined &&
3760
- input.ManagedByFirewallManager !== null && { ManagedByFirewallManager: input.ManagedByFirewallManager }),
3761
- ...(input.RedactedFields !== undefined &&
3762
- input.RedactedFields !== null && {
3742
+ ...(input.ManagedByFirewallManager != null && { ManagedByFirewallManager: input.ManagedByFirewallManager }),
3743
+ ...(input.RedactedFields != null && {
3763
3744
  RedactedFields: serializeAws_json1_1RedactedFields(input.RedactedFields, context),
3764
3745
  }),
3765
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3746
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3766
3747
  };
3767
3748
  };
3768
3749
  const serializeAws_json1_1LoggingFilter = (input, context) => {
3769
3750
  return {
3770
- ...(input.DefaultBehavior !== undefined &&
3771
- input.DefaultBehavior !== null && { DefaultBehavior: input.DefaultBehavior }),
3772
- ...(input.Filters !== undefined &&
3773
- input.Filters !== null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
3751
+ ...(input.DefaultBehavior != null && { DefaultBehavior: input.DefaultBehavior }),
3752
+ ...(input.Filters != null && { Filters: serializeAws_json1_1Filters(input.Filters, context) }),
3774
3753
  };
3775
3754
  };
3776
3755
  const serializeAws_json1_1ManagedRuleGroupConfig = (input, context) => {
3777
3756
  return {
3778
- ...(input.LoginPath !== undefined && input.LoginPath !== null && { LoginPath: input.LoginPath }),
3779
- ...(input.PasswordField !== undefined &&
3780
- input.PasswordField !== null && {
3757
+ ...(input.LoginPath != null && { LoginPath: input.LoginPath }),
3758
+ ...(input.PasswordField != null && {
3781
3759
  PasswordField: serializeAws_json1_1PasswordField(input.PasswordField, context),
3782
3760
  }),
3783
- ...(input.PayloadType !== undefined && input.PayloadType !== null && { PayloadType: input.PayloadType }),
3784
- ...(input.UsernameField !== undefined &&
3785
- input.UsernameField !== null && {
3761
+ ...(input.PayloadType != null && { PayloadType: input.PayloadType }),
3762
+ ...(input.UsernameField != null && {
3786
3763
  UsernameField: serializeAws_json1_1UsernameField(input.UsernameField, context),
3787
3764
  }),
3788
3765
  };
@@ -3799,21 +3776,18 @@ const serializeAws_json1_1ManagedRuleGroupConfigs = (input, context) => {
3799
3776
  };
3800
3777
  const serializeAws_json1_1ManagedRuleGroupStatement = (input, context) => {
3801
3778
  return {
3802
- ...(input.ExcludedRules !== undefined &&
3803
- input.ExcludedRules !== null && {
3779
+ ...(input.ExcludedRules != null && {
3804
3780
  ExcludedRules: serializeAws_json1_1ExcludedRules(input.ExcludedRules, context),
3805
3781
  }),
3806
- ...(input.ManagedRuleGroupConfigs !== undefined &&
3807
- input.ManagedRuleGroupConfigs !== null && {
3782
+ ...(input.ManagedRuleGroupConfigs != null && {
3808
3783
  ManagedRuleGroupConfigs: serializeAws_json1_1ManagedRuleGroupConfigs(input.ManagedRuleGroupConfigs, context),
3809
3784
  }),
3810
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3811
- ...(input.ScopeDownStatement !== undefined &&
3812
- input.ScopeDownStatement !== null && {
3785
+ ...(input.Name != null && { Name: input.Name }),
3786
+ ...(input.ScopeDownStatement != null && {
3813
3787
  ScopeDownStatement: serializeAws_json1_1Statement(input.ScopeDownStatement, context),
3814
3788
  }),
3815
- ...(input.VendorName !== undefined && input.VendorName !== null && { VendorName: input.VendorName }),
3816
- ...(input.Version !== undefined && input.Version !== null && { Version: input.Version }),
3789
+ ...(input.VendorName != null && { VendorName: input.VendorName }),
3790
+ ...(input.Version != null && { Version: input.Version }),
3817
3791
  };
3818
3792
  };
3819
3793
  const serializeAws_json1_1Method = (input, context) => {
@@ -3824,55 +3798,48 @@ const serializeAws_json1_1NoneAction = (input, context) => {
3824
3798
  };
3825
3799
  const serializeAws_json1_1NotStatement = (input, context) => {
3826
3800
  return {
3827
- ...(input.Statement !== undefined &&
3828
- input.Statement !== null && { Statement: serializeAws_json1_1Statement(input.Statement, context) }),
3801
+ ...(input.Statement != null && { Statement: serializeAws_json1_1Statement(input.Statement, context) }),
3829
3802
  };
3830
3803
  };
3831
3804
  const serializeAws_json1_1OrStatement = (input, context) => {
3832
3805
  return {
3833
- ...(input.Statements !== undefined &&
3834
- input.Statements !== null && { Statements: serializeAws_json1_1Statements(input.Statements, context) }),
3806
+ ...(input.Statements != null && { Statements: serializeAws_json1_1Statements(input.Statements, context) }),
3835
3807
  };
3836
3808
  };
3837
3809
  const serializeAws_json1_1OverrideAction = (input, context) => {
3838
3810
  return {
3839
- ...(input.Count !== undefined &&
3840
- input.Count !== null && { Count: serializeAws_json1_1CountAction(input.Count, context) }),
3841
- ...(input.None !== undefined &&
3842
- input.None !== null && { None: serializeAws_json1_1NoneAction(input.None, context) }),
3811
+ ...(input.Count != null && { Count: serializeAws_json1_1CountAction(input.Count, context) }),
3812
+ ...(input.None != null && { None: serializeAws_json1_1NoneAction(input.None, context) }),
3843
3813
  };
3844
3814
  };
3845
3815
  const serializeAws_json1_1PasswordField = (input, context) => {
3846
3816
  return {
3847
- ...(input.Identifier !== undefined && input.Identifier !== null && { Identifier: input.Identifier }),
3817
+ ...(input.Identifier != null && { Identifier: input.Identifier }),
3848
3818
  };
3849
3819
  };
3850
3820
  const serializeAws_json1_1PutLoggingConfigurationRequest = (input, context) => {
3851
3821
  return {
3852
- ...(input.LoggingConfiguration !== undefined &&
3853
- input.LoggingConfiguration !== null && {
3822
+ ...(input.LoggingConfiguration != null && {
3854
3823
  LoggingConfiguration: serializeAws_json1_1LoggingConfiguration(input.LoggingConfiguration, context),
3855
3824
  }),
3856
3825
  };
3857
3826
  };
3858
3827
  const serializeAws_json1_1PutManagedRuleSetVersionsRequest = (input, context) => {
3859
3828
  return {
3860
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
3861
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
3862
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3863
- ...(input.RecommendedVersion !== undefined &&
3864
- input.RecommendedVersion !== null && { RecommendedVersion: input.RecommendedVersion }),
3865
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
3866
- ...(input.VersionsToPublish !== undefined &&
3867
- input.VersionsToPublish !== null && {
3829
+ ...(input.Id != null && { Id: input.Id }),
3830
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
3831
+ ...(input.Name != null && { Name: input.Name }),
3832
+ ...(input.RecommendedVersion != null && { RecommendedVersion: input.RecommendedVersion }),
3833
+ ...(input.Scope != null && { Scope: input.Scope }),
3834
+ ...(input.VersionsToPublish != null && {
3868
3835
  VersionsToPublish: serializeAws_json1_1VersionsToPublish(input.VersionsToPublish, context),
3869
3836
  }),
3870
3837
  };
3871
3838
  };
3872
3839
  const serializeAws_json1_1PutPermissionPolicyRequest = (input, context) => {
3873
3840
  return {
3874
- ...(input.Policy !== undefined && input.Policy !== null && { Policy: input.Policy }),
3875
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
3841
+ ...(input.Policy != null && { Policy: input.Policy }),
3842
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3876
3843
  };
3877
3844
  };
3878
3845
  const serializeAws_json1_1QueryString = (input, context) => {
@@ -3880,15 +3847,12 @@ const serializeAws_json1_1QueryString = (input, context) => {
3880
3847
  };
3881
3848
  const serializeAws_json1_1RateBasedStatement = (input, context) => {
3882
3849
  return {
3883
- ...(input.AggregateKeyType !== undefined &&
3884
- input.AggregateKeyType !== null && { AggregateKeyType: input.AggregateKeyType }),
3885
- ...(input.ForwardedIPConfig !== undefined &&
3886
- input.ForwardedIPConfig !== null && {
3850
+ ...(input.AggregateKeyType != null && { AggregateKeyType: input.AggregateKeyType }),
3851
+ ...(input.ForwardedIPConfig != null && {
3887
3852
  ForwardedIPConfig: serializeAws_json1_1ForwardedIPConfig(input.ForwardedIPConfig, context),
3888
3853
  }),
3889
- ...(input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit }),
3890
- ...(input.ScopeDownStatement !== undefined &&
3891
- input.ScopeDownStatement !== null && {
3854
+ ...(input.Limit != null && { Limit: input.Limit }),
3855
+ ...(input.ScopeDownStatement != null && {
3892
3856
  ScopeDownStatement: serializeAws_json1_1Statement(input.ScopeDownStatement, context),
3893
3857
  }),
3894
3858
  };
@@ -3905,27 +3869,23 @@ const serializeAws_json1_1RedactedFields = (input, context) => {
3905
3869
  };
3906
3870
  const serializeAws_json1_1Regex = (input, context) => {
3907
3871
  return {
3908
- ...(input.RegexString !== undefined && input.RegexString !== null && { RegexString: input.RegexString }),
3872
+ ...(input.RegexString != null && { RegexString: input.RegexString }),
3909
3873
  };
3910
3874
  };
3911
3875
  const serializeAws_json1_1RegexMatchStatement = (input, context) => {
3912
3876
  return {
3913
- ...(input.FieldToMatch !== undefined &&
3914
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
3915
- ...(input.RegexString !== undefined && input.RegexString !== null && { RegexString: input.RegexString }),
3916
- ...(input.TextTransformations !== undefined &&
3917
- input.TextTransformations !== null && {
3877
+ ...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
3878
+ ...(input.RegexString != null && { RegexString: input.RegexString }),
3879
+ ...(input.TextTransformations != null && {
3918
3880
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
3919
3881
  }),
3920
3882
  };
3921
3883
  };
3922
3884
  const serializeAws_json1_1RegexPatternSetReferenceStatement = (input, context) => {
3923
3885
  return {
3924
- ...(input.ARN !== undefined && input.ARN !== null && { ARN: input.ARN }),
3925
- ...(input.FieldToMatch !== undefined &&
3926
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
3927
- ...(input.TextTransformations !== undefined &&
3928
- input.TextTransformations !== null && {
3886
+ ...(input.ARN != null && { ARN: input.ARN }),
3887
+ ...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
3888
+ ...(input.TextTransformations != null && {
3929
3889
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
3930
3890
  }),
3931
3891
  };
@@ -3942,45 +3902,34 @@ const serializeAws_json1_1RegularExpressionList = (input, context) => {
3942
3902
  };
3943
3903
  const serializeAws_json1_1Rule = (input, context) => {
3944
3904
  return {
3945
- ...(input.Action !== undefined &&
3946
- input.Action !== null && { Action: serializeAws_json1_1RuleAction(input.Action, context) }),
3947
- ...(input.CaptchaConfig !== undefined &&
3948
- input.CaptchaConfig !== null && {
3905
+ ...(input.Action != null && { Action: serializeAws_json1_1RuleAction(input.Action, context) }),
3906
+ ...(input.CaptchaConfig != null && {
3949
3907
  CaptchaConfig: serializeAws_json1_1CaptchaConfig(input.CaptchaConfig, context),
3950
3908
  }),
3951
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3952
- ...(input.OverrideAction !== undefined &&
3953
- input.OverrideAction !== null && {
3909
+ ...(input.Name != null && { Name: input.Name }),
3910
+ ...(input.OverrideAction != null && {
3954
3911
  OverrideAction: serializeAws_json1_1OverrideAction(input.OverrideAction, context),
3955
3912
  }),
3956
- ...(input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority }),
3957
- ...(input.RuleLabels !== undefined &&
3958
- input.RuleLabels !== null && { RuleLabels: serializeAws_json1_1Labels(input.RuleLabels, context) }),
3959
- ...(input.Statement !== undefined &&
3960
- input.Statement !== null && { Statement: serializeAws_json1_1Statement(input.Statement, context) }),
3961
- ...(input.VisibilityConfig !== undefined &&
3962
- input.VisibilityConfig !== null && {
3913
+ ...(input.Priority != null && { Priority: input.Priority }),
3914
+ ...(input.RuleLabels != null && { RuleLabels: serializeAws_json1_1Labels(input.RuleLabels, context) }),
3915
+ ...(input.Statement != null && { Statement: serializeAws_json1_1Statement(input.Statement, context) }),
3916
+ ...(input.VisibilityConfig != null && {
3963
3917
  VisibilityConfig: serializeAws_json1_1VisibilityConfig(input.VisibilityConfig, context),
3964
3918
  }),
3965
3919
  };
3966
3920
  };
3967
3921
  const serializeAws_json1_1RuleAction = (input, context) => {
3968
3922
  return {
3969
- ...(input.Allow !== undefined &&
3970
- input.Allow !== null && { Allow: serializeAws_json1_1AllowAction(input.Allow, context) }),
3971
- ...(input.Block !== undefined &&
3972
- input.Block !== null && { Block: serializeAws_json1_1BlockAction(input.Block, context) }),
3973
- ...(input.Captcha !== undefined &&
3974
- input.Captcha !== null && { Captcha: serializeAws_json1_1CaptchaAction(input.Captcha, context) }),
3975
- ...(input.Count !== undefined &&
3976
- input.Count !== null && { Count: serializeAws_json1_1CountAction(input.Count, context) }),
3923
+ ...(input.Allow != null && { Allow: serializeAws_json1_1AllowAction(input.Allow, context) }),
3924
+ ...(input.Block != null && { Block: serializeAws_json1_1BlockAction(input.Block, context) }),
3925
+ ...(input.Captcha != null && { Captcha: serializeAws_json1_1CaptchaAction(input.Captcha, context) }),
3926
+ ...(input.Count != null && { Count: serializeAws_json1_1CountAction(input.Count, context) }),
3977
3927
  };
3978
3928
  };
3979
3929
  const serializeAws_json1_1RuleGroupReferenceStatement = (input, context) => {
3980
3930
  return {
3981
- ...(input.ARN !== undefined && input.ARN !== null && { ARN: input.ARN }),
3982
- ...(input.ExcludedRules !== undefined &&
3983
- input.ExcludedRules !== null && {
3931
+ ...(input.ARN != null && { ARN: input.ARN }),
3932
+ ...(input.ExcludedRules != null && {
3984
3933
  ExcludedRules: serializeAws_json1_1ExcludedRules(input.ExcludedRules, context),
3985
3934
  }),
3986
3935
  };
@@ -3997,91 +3946,71 @@ const serializeAws_json1_1Rules = (input, context) => {
3997
3946
  };
3998
3947
  const serializeAws_json1_1SingleHeader = (input, context) => {
3999
3948
  return {
4000
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3949
+ ...(input.Name != null && { Name: input.Name }),
4001
3950
  };
4002
3951
  };
4003
3952
  const serializeAws_json1_1SingleQueryArgument = (input, context) => {
4004
3953
  return {
4005
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3954
+ ...(input.Name != null && { Name: input.Name }),
4006
3955
  };
4007
3956
  };
4008
3957
  const serializeAws_json1_1SizeConstraintStatement = (input, context) => {
4009
3958
  return {
4010
- ...(input.ComparisonOperator !== undefined &&
4011
- input.ComparisonOperator !== null && { ComparisonOperator: input.ComparisonOperator }),
4012
- ...(input.FieldToMatch !== undefined &&
4013
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
4014
- ...(input.Size !== undefined && input.Size !== null && { Size: input.Size }),
4015
- ...(input.TextTransformations !== undefined &&
4016
- input.TextTransformations !== null && {
3959
+ ...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
3960
+ ...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
3961
+ ...(input.Size != null && { Size: input.Size }),
3962
+ ...(input.TextTransformations != null && {
4017
3963
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
4018
3964
  }),
4019
3965
  };
4020
3966
  };
4021
3967
  const serializeAws_json1_1SqliMatchStatement = (input, context) => {
4022
3968
  return {
4023
- ...(input.FieldToMatch !== undefined &&
4024
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
4025
- ...(input.TextTransformations !== undefined &&
4026
- input.TextTransformations !== null && {
3969
+ ...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
3970
+ ...(input.TextTransformations != null && {
4027
3971
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
4028
3972
  }),
4029
3973
  };
4030
3974
  };
4031
3975
  const serializeAws_json1_1Statement = (input, context) => {
4032
3976
  return {
4033
- ...(input.AndStatement !== undefined &&
4034
- input.AndStatement !== null && { AndStatement: serializeAws_json1_1AndStatement(input.AndStatement, context) }),
4035
- ...(input.ByteMatchStatement !== undefined &&
4036
- input.ByteMatchStatement !== null && {
3977
+ ...(input.AndStatement != null && { AndStatement: serializeAws_json1_1AndStatement(input.AndStatement, context) }),
3978
+ ...(input.ByteMatchStatement != null && {
4037
3979
  ByteMatchStatement: serializeAws_json1_1ByteMatchStatement(input.ByteMatchStatement, context),
4038
3980
  }),
4039
- ...(input.GeoMatchStatement !== undefined &&
4040
- input.GeoMatchStatement !== null && {
3981
+ ...(input.GeoMatchStatement != null && {
4041
3982
  GeoMatchStatement: serializeAws_json1_1GeoMatchStatement(input.GeoMatchStatement, context),
4042
3983
  }),
4043
- ...(input.IPSetReferenceStatement !== undefined &&
4044
- input.IPSetReferenceStatement !== null && {
3984
+ ...(input.IPSetReferenceStatement != null && {
4045
3985
  IPSetReferenceStatement: serializeAws_json1_1IPSetReferenceStatement(input.IPSetReferenceStatement, context),
4046
3986
  }),
4047
- ...(input.LabelMatchStatement !== undefined &&
4048
- input.LabelMatchStatement !== null && {
3987
+ ...(input.LabelMatchStatement != null && {
4049
3988
  LabelMatchStatement: serializeAws_json1_1LabelMatchStatement(input.LabelMatchStatement, context),
4050
3989
  }),
4051
- ...(input.ManagedRuleGroupStatement !== undefined &&
4052
- input.ManagedRuleGroupStatement !== null && {
3990
+ ...(input.ManagedRuleGroupStatement != null && {
4053
3991
  ManagedRuleGroupStatement: serializeAws_json1_1ManagedRuleGroupStatement(input.ManagedRuleGroupStatement, context),
4054
3992
  }),
4055
- ...(input.NotStatement !== undefined &&
4056
- input.NotStatement !== null && { NotStatement: serializeAws_json1_1NotStatement(input.NotStatement, context) }),
4057
- ...(input.OrStatement !== undefined &&
4058
- input.OrStatement !== null && { OrStatement: serializeAws_json1_1OrStatement(input.OrStatement, context) }),
4059
- ...(input.RateBasedStatement !== undefined &&
4060
- input.RateBasedStatement !== null && {
3993
+ ...(input.NotStatement != null && { NotStatement: serializeAws_json1_1NotStatement(input.NotStatement, context) }),
3994
+ ...(input.OrStatement != null && { OrStatement: serializeAws_json1_1OrStatement(input.OrStatement, context) }),
3995
+ ...(input.RateBasedStatement != null && {
4061
3996
  RateBasedStatement: serializeAws_json1_1RateBasedStatement(input.RateBasedStatement, context),
4062
3997
  }),
4063
- ...(input.RegexMatchStatement !== undefined &&
4064
- input.RegexMatchStatement !== null && {
3998
+ ...(input.RegexMatchStatement != null && {
4065
3999
  RegexMatchStatement: serializeAws_json1_1RegexMatchStatement(input.RegexMatchStatement, context),
4066
4000
  }),
4067
- ...(input.RegexPatternSetReferenceStatement !== undefined &&
4068
- input.RegexPatternSetReferenceStatement !== null && {
4001
+ ...(input.RegexPatternSetReferenceStatement != null && {
4069
4002
  RegexPatternSetReferenceStatement: serializeAws_json1_1RegexPatternSetReferenceStatement(input.RegexPatternSetReferenceStatement, context),
4070
4003
  }),
4071
- ...(input.RuleGroupReferenceStatement !== undefined &&
4072
- input.RuleGroupReferenceStatement !== null && {
4004
+ ...(input.RuleGroupReferenceStatement != null && {
4073
4005
  RuleGroupReferenceStatement: serializeAws_json1_1RuleGroupReferenceStatement(input.RuleGroupReferenceStatement, context),
4074
4006
  }),
4075
- ...(input.SizeConstraintStatement !== undefined &&
4076
- input.SizeConstraintStatement !== null && {
4007
+ ...(input.SizeConstraintStatement != null && {
4077
4008
  SizeConstraintStatement: serializeAws_json1_1SizeConstraintStatement(input.SizeConstraintStatement, context),
4078
4009
  }),
4079
- ...(input.SqliMatchStatement !== undefined &&
4080
- input.SqliMatchStatement !== null && {
4010
+ ...(input.SqliMatchStatement != null && {
4081
4011
  SqliMatchStatement: serializeAws_json1_1SqliMatchStatement(input.SqliMatchStatement, context),
4082
4012
  }),
4083
- ...(input.XssMatchStatement !== undefined &&
4084
- input.XssMatchStatement !== null && {
4013
+ ...(input.XssMatchStatement != null && {
4085
4014
  XssMatchStatement: serializeAws_json1_1XssMatchStatement(input.XssMatchStatement, context),
4086
4015
  }),
4087
4016
  };
@@ -4098,8 +4027,8 @@ const serializeAws_json1_1Statements = (input, context) => {
4098
4027
  };
4099
4028
  const serializeAws_json1_1Tag = (input, context) => {
4100
4029
  return {
4101
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
4102
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
4030
+ ...(input.Key != null && { Key: input.Key }),
4031
+ ...(input.Value != null && { Value: input.Value }),
4103
4032
  };
4104
4033
  };
4105
4034
  const serializeAws_json1_1TagKeyList = (input, context) => {
@@ -4124,14 +4053,14 @@ const serializeAws_json1_1TagList = (input, context) => {
4124
4053
  };
4125
4054
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
4126
4055
  return {
4127
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
4128
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
4056
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
4057
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
4129
4058
  };
4130
4059
  };
4131
4060
  const serializeAws_json1_1TextTransformation = (input, context) => {
4132
4061
  return {
4133
- ...(input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority }),
4134
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
4062
+ ...(input.Priority != null && { Priority: input.Priority }),
4063
+ ...(input.Type != null && { Type: input.Type }),
4135
4064
  };
4136
4065
  };
4137
4066
  const serializeAws_json1_1TextTransformations = (input, context) => {
@@ -4146,97 +4075,82 @@ const serializeAws_json1_1TextTransformations = (input, context) => {
4146
4075
  };
4147
4076
  const serializeAws_json1_1TimeWindow = (input, context) => {
4148
4077
  return {
4149
- ...(input.EndTime !== undefined &&
4150
- input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
4151
- ...(input.StartTime !== undefined &&
4152
- input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
4078
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
4079
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
4153
4080
  };
4154
4081
  };
4155
4082
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
4156
4083
  return {
4157
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
4158
- ...(input.TagKeys !== undefined &&
4159
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
4084
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
4085
+ ...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyList(input.TagKeys, context) }),
4160
4086
  };
4161
4087
  };
4162
4088
  const serializeAws_json1_1UpdateIPSetRequest = (input, context) => {
4163
4089
  return {
4164
- ...(input.Addresses !== undefined &&
4165
- input.Addresses !== null && { Addresses: serializeAws_json1_1IPAddresses(input.Addresses, context) }),
4166
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4167
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
4168
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
4169
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4170
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
4090
+ ...(input.Addresses != null && { Addresses: serializeAws_json1_1IPAddresses(input.Addresses, context) }),
4091
+ ...(input.Description != null && { Description: input.Description }),
4092
+ ...(input.Id != null && { Id: input.Id }),
4093
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
4094
+ ...(input.Name != null && { Name: input.Name }),
4095
+ ...(input.Scope != null && { Scope: input.Scope }),
4171
4096
  };
4172
4097
  };
4173
4098
  const serializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateRequest = (input, context) => {
4174
4099
  return {
4175
- ...(input.ExpiryTimestamp !== undefined &&
4176
- input.ExpiryTimestamp !== null && { ExpiryTimestamp: Math.round(input.ExpiryTimestamp.getTime() / 1000) }),
4177
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
4178
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
4179
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4180
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
4181
- ...(input.VersionToExpire !== undefined &&
4182
- input.VersionToExpire !== null && { VersionToExpire: input.VersionToExpire }),
4100
+ ...(input.ExpiryTimestamp != null && { ExpiryTimestamp: Math.round(input.ExpiryTimestamp.getTime() / 1000) }),
4101
+ ...(input.Id != null && { Id: input.Id }),
4102
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
4103
+ ...(input.Name != null && { Name: input.Name }),
4104
+ ...(input.Scope != null && { Scope: input.Scope }),
4105
+ ...(input.VersionToExpire != null && { VersionToExpire: input.VersionToExpire }),
4183
4106
  };
4184
4107
  };
4185
4108
  const serializeAws_json1_1UpdateRegexPatternSetRequest = (input, context) => {
4186
4109
  return {
4187
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4188
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
4189
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
4190
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4191
- ...(input.RegularExpressionList !== undefined &&
4192
- input.RegularExpressionList !== null && {
4110
+ ...(input.Description != null && { Description: input.Description }),
4111
+ ...(input.Id != null && { Id: input.Id }),
4112
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
4113
+ ...(input.Name != null && { Name: input.Name }),
4114
+ ...(input.RegularExpressionList != null && {
4193
4115
  RegularExpressionList: serializeAws_json1_1RegularExpressionList(input.RegularExpressionList, context),
4194
4116
  }),
4195
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
4117
+ ...(input.Scope != null && { Scope: input.Scope }),
4196
4118
  };
4197
4119
  };
4198
4120
  const serializeAws_json1_1UpdateRuleGroupRequest = (input, context) => {
4199
4121
  return {
4200
- ...(input.CustomResponseBodies !== undefined &&
4201
- input.CustomResponseBodies !== null && {
4122
+ ...(input.CustomResponseBodies != null && {
4202
4123
  CustomResponseBodies: serializeAws_json1_1CustomResponseBodies(input.CustomResponseBodies, context),
4203
4124
  }),
4204
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4205
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
4206
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
4207
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4208
- ...(input.Rules !== undefined &&
4209
- input.Rules !== null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
4210
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
4211
- ...(input.VisibilityConfig !== undefined &&
4212
- input.VisibilityConfig !== null && {
4125
+ ...(input.Description != null && { Description: input.Description }),
4126
+ ...(input.Id != null && { Id: input.Id }),
4127
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
4128
+ ...(input.Name != null && { Name: input.Name }),
4129
+ ...(input.Rules != null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
4130
+ ...(input.Scope != null && { Scope: input.Scope }),
4131
+ ...(input.VisibilityConfig != null && {
4213
4132
  VisibilityConfig: serializeAws_json1_1VisibilityConfig(input.VisibilityConfig, context),
4214
4133
  }),
4215
4134
  };
4216
4135
  };
4217
4136
  const serializeAws_json1_1UpdateWebACLRequest = (input, context) => {
4218
4137
  return {
4219
- ...(input.CaptchaConfig !== undefined &&
4220
- input.CaptchaConfig !== null && {
4138
+ ...(input.CaptchaConfig != null && {
4221
4139
  CaptchaConfig: serializeAws_json1_1CaptchaConfig(input.CaptchaConfig, context),
4222
4140
  }),
4223
- ...(input.CustomResponseBodies !== undefined &&
4224
- input.CustomResponseBodies !== null && {
4141
+ ...(input.CustomResponseBodies != null && {
4225
4142
  CustomResponseBodies: serializeAws_json1_1CustomResponseBodies(input.CustomResponseBodies, context),
4226
4143
  }),
4227
- ...(input.DefaultAction !== undefined &&
4228
- input.DefaultAction !== null && {
4144
+ ...(input.DefaultAction != null && {
4229
4145
  DefaultAction: serializeAws_json1_1DefaultAction(input.DefaultAction, context),
4230
4146
  }),
4231
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
4232
- ...(input.Id !== undefined && input.Id !== null && { Id: input.Id }),
4233
- ...(input.LockToken !== undefined && input.LockToken !== null && { LockToken: input.LockToken }),
4234
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4235
- ...(input.Rules !== undefined &&
4236
- input.Rules !== null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
4237
- ...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
4238
- ...(input.VisibilityConfig !== undefined &&
4239
- input.VisibilityConfig !== null && {
4147
+ ...(input.Description != null && { Description: input.Description }),
4148
+ ...(input.Id != null && { Id: input.Id }),
4149
+ ...(input.LockToken != null && { LockToken: input.LockToken }),
4150
+ ...(input.Name != null && { Name: input.Name }),
4151
+ ...(input.Rules != null && { Rules: serializeAws_json1_1Rules(input.Rules, context) }),
4152
+ ...(input.Scope != null && { Scope: input.Scope }),
4153
+ ...(input.VisibilityConfig != null && {
4240
4154
  VisibilityConfig: serializeAws_json1_1VisibilityConfig(input.VisibilityConfig, context),
4241
4155
  }),
4242
4156
  };
@@ -4246,7 +4160,7 @@ const serializeAws_json1_1UriPath = (input, context) => {
4246
4160
  };
4247
4161
  const serializeAws_json1_1UsernameField = (input, context) => {
4248
4162
  return {
4249
- ...(input.Identifier !== undefined && input.Identifier !== null && { Identifier: input.Identifier }),
4163
+ ...(input.Identifier != null && { Identifier: input.Identifier }),
4250
4164
  };
4251
4165
  };
4252
4166
  const serializeAws_json1_1VersionsToPublish = (input, context) => {
@@ -4262,27 +4176,21 @@ const serializeAws_json1_1VersionsToPublish = (input, context) => {
4262
4176
  };
4263
4177
  const serializeAws_json1_1VersionToPublish = (input, context) => {
4264
4178
  return {
4265
- ...(input.AssociatedRuleGroupArn !== undefined &&
4266
- input.AssociatedRuleGroupArn !== null && { AssociatedRuleGroupArn: input.AssociatedRuleGroupArn }),
4267
- ...(input.ForecastedLifetime !== undefined &&
4268
- input.ForecastedLifetime !== null && { ForecastedLifetime: input.ForecastedLifetime }),
4179
+ ...(input.AssociatedRuleGroupArn != null && { AssociatedRuleGroupArn: input.AssociatedRuleGroupArn }),
4180
+ ...(input.ForecastedLifetime != null && { ForecastedLifetime: input.ForecastedLifetime }),
4269
4181
  };
4270
4182
  };
4271
4183
  const serializeAws_json1_1VisibilityConfig = (input, context) => {
4272
4184
  return {
4273
- ...(input.CloudWatchMetricsEnabled !== undefined &&
4274
- input.CloudWatchMetricsEnabled !== null && { CloudWatchMetricsEnabled: input.CloudWatchMetricsEnabled }),
4275
- ...(input.MetricName !== undefined && input.MetricName !== null && { MetricName: input.MetricName }),
4276
- ...(input.SampledRequestsEnabled !== undefined &&
4277
- input.SampledRequestsEnabled !== null && { SampledRequestsEnabled: input.SampledRequestsEnabled }),
4185
+ ...(input.CloudWatchMetricsEnabled != null && { CloudWatchMetricsEnabled: input.CloudWatchMetricsEnabled }),
4186
+ ...(input.MetricName != null && { MetricName: input.MetricName }),
4187
+ ...(input.SampledRequestsEnabled != null && { SampledRequestsEnabled: input.SampledRequestsEnabled }),
4278
4188
  };
4279
4189
  };
4280
4190
  const serializeAws_json1_1XssMatchStatement = (input, context) => {
4281
4191
  return {
4282
- ...(input.FieldToMatch !== undefined &&
4283
- input.FieldToMatch !== null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
4284
- ...(input.TextTransformations !== undefined &&
4285
- input.TextTransformations !== null && {
4192
+ ...(input.FieldToMatch != null && { FieldToMatch: serializeAws_json1_1FieldToMatch(input.FieldToMatch, context) }),
4193
+ ...(input.TextTransformations != null && {
4286
4194
  TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
4287
4195
  }),
4288
4196
  };
@@ -4297,7 +4205,7 @@ const deserializeAws_json1_1All = (output, context) => {
4297
4205
  };
4298
4206
  const deserializeAws_json1_1AllowAction = (output, context) => {
4299
4207
  return {
4300
- CustomRequestHandling: output.CustomRequestHandling !== undefined && output.CustomRequestHandling !== null
4208
+ CustomRequestHandling: output.CustomRequestHandling != null
4301
4209
  ? deserializeAws_json1_1CustomRequestHandling(output.CustomRequestHandling, context)
4302
4210
  : undefined,
4303
4211
  };
@@ -4307,9 +4215,7 @@ const deserializeAws_json1_1AllQueryArguments = (output, context) => {
4307
4215
  };
4308
4216
  const deserializeAws_json1_1AndStatement = (output, context) => {
4309
4217
  return {
4310
- Statements: output.Statements !== undefined && output.Statements !== null
4311
- ? deserializeAws_json1_1Statements(output.Statements, context)
4312
- : undefined,
4218
+ Statements: output.Statements != null ? deserializeAws_json1_1Statements(output.Statements, context) : undefined,
4313
4219
  };
4314
4220
  };
4315
4221
  const deserializeAws_json1_1AssociateWebACLResponse = (output, context) => {
@@ -4317,9 +4223,7 @@ const deserializeAws_json1_1AssociateWebACLResponse = (output, context) => {
4317
4223
  };
4318
4224
  const deserializeAws_json1_1BlockAction = (output, context) => {
4319
4225
  return {
4320
- CustomResponse: output.CustomResponse !== undefined && output.CustomResponse !== null
4321
- ? deserializeAws_json1_1CustomResponse(output.CustomResponse, context)
4322
- : undefined,
4226
+ CustomResponse: output.CustomResponse != null ? deserializeAws_json1_1CustomResponse(output.CustomResponse, context) : undefined,
4323
4227
  };
4324
4228
  };
4325
4229
  const deserializeAws_json1_1Body = (output, context) => {
@@ -4329,28 +4233,24 @@ const deserializeAws_json1_1Body = (output, context) => {
4329
4233
  };
4330
4234
  const deserializeAws_json1_1ByteMatchStatement = (output, context) => {
4331
4235
  return {
4332
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
4333
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
4334
- : undefined,
4236
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
4335
4237
  PositionalConstraint: (0, smithy_client_1.expectString)(output.PositionalConstraint),
4336
- SearchString: output.SearchString !== undefined && output.SearchString !== null
4337
- ? context.base64Decoder(output.SearchString)
4338
- : undefined,
4339
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
4238
+ SearchString: output.SearchString != null ? context.base64Decoder(output.SearchString) : undefined,
4239
+ TextTransformations: output.TextTransformations != null
4340
4240
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
4341
4241
  : undefined,
4342
4242
  };
4343
4243
  };
4344
4244
  const deserializeAws_json1_1CaptchaAction = (output, context) => {
4345
4245
  return {
4346
- CustomRequestHandling: output.CustomRequestHandling !== undefined && output.CustomRequestHandling !== null
4246
+ CustomRequestHandling: output.CustomRequestHandling != null
4347
4247
  ? deserializeAws_json1_1CustomRequestHandling(output.CustomRequestHandling, context)
4348
4248
  : undefined,
4349
4249
  };
4350
4250
  };
4351
4251
  const deserializeAws_json1_1CaptchaConfig = (output, context) => {
4352
4252
  return {
4353
- ImmunityTimeProperty: output.ImmunityTimeProperty !== undefined && output.ImmunityTimeProperty !== null
4253
+ ImmunityTimeProperty: output.ImmunityTimeProperty != null
4354
4254
  ? deserializeAws_json1_1ImmunityTimeProperty(output.ImmunityTimeProperty, context)
4355
4255
  : undefined,
4356
4256
  };
@@ -4369,10 +4269,10 @@ const deserializeAws_json1_1CheckCapacityResponse = (output, context) => {
4369
4269
  };
4370
4270
  const deserializeAws_json1_1Condition = (output, context) => {
4371
4271
  return {
4372
- ActionCondition: output.ActionCondition !== undefined && output.ActionCondition !== null
4272
+ ActionCondition: output.ActionCondition != null
4373
4273
  ? deserializeAws_json1_1ActionCondition(output.ActionCondition, context)
4374
4274
  : undefined,
4375
- LabelNameCondition: output.LabelNameCondition !== undefined && output.LabelNameCondition !== null
4275
+ LabelNameCondition: output.LabelNameCondition != null
4376
4276
  ? deserializeAws_json1_1LabelNameCondition(output.LabelNameCondition, context)
4377
4277
  : undefined,
4378
4278
  };
@@ -4390,13 +4290,9 @@ const deserializeAws_json1_1Conditions = (output, context) => {
4390
4290
  };
4391
4291
  const deserializeAws_json1_1CookieMatchPattern = (output, context) => {
4392
4292
  return {
4393
- All: output.All !== undefined && output.All !== null ? deserializeAws_json1_1All(output.All, context) : undefined,
4394
- ExcludedCookies: output.ExcludedCookies !== undefined && output.ExcludedCookies !== null
4395
- ? deserializeAws_json1_1CookieNames(output.ExcludedCookies, context)
4396
- : undefined,
4397
- IncludedCookies: output.IncludedCookies !== undefined && output.IncludedCookies !== null
4398
- ? deserializeAws_json1_1CookieNames(output.IncludedCookies, context)
4399
- : undefined,
4293
+ All: output.All != null ? deserializeAws_json1_1All(output.All, context) : undefined,
4294
+ ExcludedCookies: output.ExcludedCookies != null ? deserializeAws_json1_1CookieNames(output.ExcludedCookies, context) : undefined,
4295
+ IncludedCookies: output.IncludedCookies != null ? deserializeAws_json1_1CookieNames(output.IncludedCookies, context) : undefined,
4400
4296
  };
4401
4297
  };
4402
4298
  const deserializeAws_json1_1CookieNames = (output, context) => {
@@ -4412,16 +4308,14 @@ const deserializeAws_json1_1CookieNames = (output, context) => {
4412
4308
  };
4413
4309
  const deserializeAws_json1_1Cookies = (output, context) => {
4414
4310
  return {
4415
- MatchPattern: output.MatchPattern !== undefined && output.MatchPattern !== null
4416
- ? deserializeAws_json1_1CookieMatchPattern(output.MatchPattern, context)
4417
- : undefined,
4311
+ MatchPattern: output.MatchPattern != null ? deserializeAws_json1_1CookieMatchPattern(output.MatchPattern, context) : undefined,
4418
4312
  MatchScope: (0, smithy_client_1.expectString)(output.MatchScope),
4419
4313
  OversizeHandling: (0, smithy_client_1.expectString)(output.OversizeHandling),
4420
4314
  };
4421
4315
  };
4422
4316
  const deserializeAws_json1_1CountAction = (output, context) => {
4423
4317
  return {
4424
- CustomRequestHandling: output.CustomRequestHandling !== undefined && output.CustomRequestHandling !== null
4318
+ CustomRequestHandling: output.CustomRequestHandling != null
4425
4319
  ? deserializeAws_json1_1CustomRequestHandling(output.CustomRequestHandling, context)
4426
4320
  : undefined,
4427
4321
  };
@@ -4439,30 +4333,22 @@ const deserializeAws_json1_1CountryCodes = (output, context) => {
4439
4333
  };
4440
4334
  const deserializeAws_json1_1CreateIPSetResponse = (output, context) => {
4441
4335
  return {
4442
- Summary: output.Summary !== undefined && output.Summary !== null
4443
- ? deserializeAws_json1_1IPSetSummary(output.Summary, context)
4444
- : undefined,
4336
+ Summary: output.Summary != null ? deserializeAws_json1_1IPSetSummary(output.Summary, context) : undefined,
4445
4337
  };
4446
4338
  };
4447
4339
  const deserializeAws_json1_1CreateRegexPatternSetResponse = (output, context) => {
4448
4340
  return {
4449
- Summary: output.Summary !== undefined && output.Summary !== null
4450
- ? deserializeAws_json1_1RegexPatternSetSummary(output.Summary, context)
4451
- : undefined,
4341
+ Summary: output.Summary != null ? deserializeAws_json1_1RegexPatternSetSummary(output.Summary, context) : undefined,
4452
4342
  };
4453
4343
  };
4454
4344
  const deserializeAws_json1_1CreateRuleGroupResponse = (output, context) => {
4455
4345
  return {
4456
- Summary: output.Summary !== undefined && output.Summary !== null
4457
- ? deserializeAws_json1_1RuleGroupSummary(output.Summary, context)
4458
- : undefined,
4346
+ Summary: output.Summary != null ? deserializeAws_json1_1RuleGroupSummary(output.Summary, context) : undefined,
4459
4347
  };
4460
4348
  };
4461
4349
  const deserializeAws_json1_1CreateWebACLResponse = (output, context) => {
4462
4350
  return {
4463
- Summary: output.Summary !== undefined && output.Summary !== null
4464
- ? deserializeAws_json1_1WebACLSummary(output.Summary, context)
4465
- : undefined,
4351
+ Summary: output.Summary != null ? deserializeAws_json1_1WebACLSummary(output.Summary, context) : undefined,
4466
4352
  };
4467
4353
  };
4468
4354
  const deserializeAws_json1_1CustomHTTPHeader = (output, context) => {
@@ -4484,16 +4370,14 @@ const deserializeAws_json1_1CustomHTTPHeaders = (output, context) => {
4484
4370
  };
4485
4371
  const deserializeAws_json1_1CustomRequestHandling = (output, context) => {
4486
4372
  return {
4487
- InsertHeaders: output.InsertHeaders !== undefined && output.InsertHeaders !== null
4488
- ? deserializeAws_json1_1CustomHTTPHeaders(output.InsertHeaders, context)
4489
- : undefined,
4373
+ InsertHeaders: output.InsertHeaders != null ? deserializeAws_json1_1CustomHTTPHeaders(output.InsertHeaders, context) : undefined,
4490
4374
  };
4491
4375
  };
4492
4376
  const deserializeAws_json1_1CustomResponse = (output, context) => {
4493
4377
  return {
4494
4378
  CustomResponseBodyKey: (0, smithy_client_1.expectString)(output.CustomResponseBodyKey),
4495
4379
  ResponseCode: (0, smithy_client_1.expectInt32)(output.ResponseCode),
4496
- ResponseHeaders: output.ResponseHeaders !== undefined && output.ResponseHeaders !== null
4380
+ ResponseHeaders: output.ResponseHeaders != null
4497
4381
  ? deserializeAws_json1_1CustomHTTPHeaders(output.ResponseHeaders, context)
4498
4382
  : undefined,
4499
4383
  };
@@ -4517,12 +4401,8 @@ const deserializeAws_json1_1CustomResponseBody = (output, context) => {
4517
4401
  };
4518
4402
  const deserializeAws_json1_1DefaultAction = (output, context) => {
4519
4403
  return {
4520
- Allow: output.Allow !== undefined && output.Allow !== null
4521
- ? deserializeAws_json1_1AllowAction(output.Allow, context)
4522
- : undefined,
4523
- Block: output.Block !== undefined && output.Block !== null
4524
- ? deserializeAws_json1_1BlockAction(output.Block, context)
4525
- : undefined,
4404
+ Allow: output.Allow != null ? deserializeAws_json1_1AllowAction(output.Allow, context) : undefined,
4405
+ Block: output.Block != null ? deserializeAws_json1_1BlockAction(output.Block, context) : undefined,
4526
4406
  };
4527
4407
  };
4528
4408
  const deserializeAws_json1_1DeleteFirewallManagerRuleGroupsResponse = (output, context) => {
@@ -4550,17 +4430,13 @@ const deserializeAws_json1_1DeleteWebACLResponse = (output, context) => {
4550
4430
  };
4551
4431
  const deserializeAws_json1_1DescribeManagedRuleGroupResponse = (output, context) => {
4552
4432
  return {
4553
- AvailableLabels: output.AvailableLabels !== undefined && output.AvailableLabels !== null
4433
+ AvailableLabels: output.AvailableLabels != null
4554
4434
  ? deserializeAws_json1_1LabelSummaries(output.AvailableLabels, context)
4555
4435
  : undefined,
4556
4436
  Capacity: (0, smithy_client_1.expectLong)(output.Capacity),
4557
- ConsumedLabels: output.ConsumedLabels !== undefined && output.ConsumedLabels !== null
4558
- ? deserializeAws_json1_1LabelSummaries(output.ConsumedLabels, context)
4559
- : undefined,
4437
+ ConsumedLabels: output.ConsumedLabels != null ? deserializeAws_json1_1LabelSummaries(output.ConsumedLabels, context) : undefined,
4560
4438
  LabelNamespace: (0, smithy_client_1.expectString)(output.LabelNamespace),
4561
- Rules: output.Rules !== undefined && output.Rules !== null
4562
- ? deserializeAws_json1_1RuleSummaries(output.Rules, context)
4563
- : undefined,
4439
+ Rules: output.Rules != null ? deserializeAws_json1_1RuleSummaries(output.Rules, context) : undefined,
4564
4440
  SnsTopicArn: (0, smithy_client_1.expectString)(output.SnsTopicArn),
4565
4441
  VersionName: (0, smithy_client_1.expectString)(output.VersionName),
4566
4442
  };
@@ -4586,42 +4462,26 @@ const deserializeAws_json1_1ExcludedRules = (output, context) => {
4586
4462
  };
4587
4463
  const deserializeAws_json1_1FieldToMatch = (output, context) => {
4588
4464
  return {
4589
- AllQueryArguments: output.AllQueryArguments !== undefined && output.AllQueryArguments !== null
4465
+ AllQueryArguments: output.AllQueryArguments != null
4590
4466
  ? deserializeAws_json1_1AllQueryArguments(output.AllQueryArguments, context)
4591
4467
  : undefined,
4592
- Body: output.Body !== undefined && output.Body !== null ? deserializeAws_json1_1Body(output.Body, context) : undefined,
4593
- Cookies: output.Cookies !== undefined && output.Cookies !== null
4594
- ? deserializeAws_json1_1Cookies(output.Cookies, context)
4595
- : undefined,
4596
- Headers: output.Headers !== undefined && output.Headers !== null
4597
- ? deserializeAws_json1_1Headers(output.Headers, context)
4598
- : undefined,
4599
- JsonBody: output.JsonBody !== undefined && output.JsonBody !== null
4600
- ? deserializeAws_json1_1JsonBody(output.JsonBody, context)
4601
- : undefined,
4602
- Method: output.Method !== undefined && output.Method !== null
4603
- ? deserializeAws_json1_1Method(output.Method, context)
4604
- : undefined,
4605
- QueryString: output.QueryString !== undefined && output.QueryString !== null
4606
- ? deserializeAws_json1_1QueryString(output.QueryString, context)
4607
- : undefined,
4608
- SingleHeader: output.SingleHeader !== undefined && output.SingleHeader !== null
4609
- ? deserializeAws_json1_1SingleHeader(output.SingleHeader, context)
4610
- : undefined,
4611
- SingleQueryArgument: output.SingleQueryArgument !== undefined && output.SingleQueryArgument !== null
4468
+ Body: output.Body != null ? deserializeAws_json1_1Body(output.Body, context) : undefined,
4469
+ Cookies: output.Cookies != null ? deserializeAws_json1_1Cookies(output.Cookies, context) : undefined,
4470
+ Headers: output.Headers != null ? deserializeAws_json1_1Headers(output.Headers, context) : undefined,
4471
+ JsonBody: output.JsonBody != null ? deserializeAws_json1_1JsonBody(output.JsonBody, context) : undefined,
4472
+ Method: output.Method != null ? deserializeAws_json1_1Method(output.Method, context) : undefined,
4473
+ QueryString: output.QueryString != null ? deserializeAws_json1_1QueryString(output.QueryString, context) : undefined,
4474
+ SingleHeader: output.SingleHeader != null ? deserializeAws_json1_1SingleHeader(output.SingleHeader, context) : undefined,
4475
+ SingleQueryArgument: output.SingleQueryArgument != null
4612
4476
  ? deserializeAws_json1_1SingleQueryArgument(output.SingleQueryArgument, context)
4613
4477
  : undefined,
4614
- UriPath: output.UriPath !== undefined && output.UriPath !== null
4615
- ? deserializeAws_json1_1UriPath(output.UriPath, context)
4616
- : undefined,
4478
+ UriPath: output.UriPath != null ? deserializeAws_json1_1UriPath(output.UriPath, context) : undefined,
4617
4479
  };
4618
4480
  };
4619
4481
  const deserializeAws_json1_1Filter = (output, context) => {
4620
4482
  return {
4621
4483
  Behavior: (0, smithy_client_1.expectString)(output.Behavior),
4622
- Conditions: output.Conditions !== undefined && output.Conditions !== null
4623
- ? deserializeAws_json1_1Conditions(output.Conditions, context)
4624
- : undefined,
4484
+ Conditions: output.Conditions != null ? deserializeAws_json1_1Conditions(output.Conditions, context) : undefined,
4625
4485
  Requirement: (0, smithy_client_1.expectString)(output.Requirement),
4626
4486
  };
4627
4487
  };
@@ -4638,15 +4498,13 @@ const deserializeAws_json1_1Filters = (output, context) => {
4638
4498
  };
4639
4499
  const deserializeAws_json1_1FirewallManagerRuleGroup = (output, context) => {
4640
4500
  return {
4641
- FirewallManagerStatement: output.FirewallManagerStatement !== undefined && output.FirewallManagerStatement !== null
4501
+ FirewallManagerStatement: output.FirewallManagerStatement != null
4642
4502
  ? deserializeAws_json1_1FirewallManagerStatement(output.FirewallManagerStatement, context)
4643
4503
  : undefined,
4644
4504
  Name: (0, smithy_client_1.expectString)(output.Name),
4645
- OverrideAction: output.OverrideAction !== undefined && output.OverrideAction !== null
4646
- ? deserializeAws_json1_1OverrideAction(output.OverrideAction, context)
4647
- : undefined,
4505
+ OverrideAction: output.OverrideAction != null ? deserializeAws_json1_1OverrideAction(output.OverrideAction, context) : undefined,
4648
4506
  Priority: (0, smithy_client_1.expectInt32)(output.Priority),
4649
- VisibilityConfig: output.VisibilityConfig !== undefined && output.VisibilityConfig !== null
4507
+ VisibilityConfig: output.VisibilityConfig != null
4650
4508
  ? deserializeAws_json1_1VisibilityConfig(output.VisibilityConfig, context)
4651
4509
  : undefined,
4652
4510
  };
@@ -4664,10 +4522,10 @@ const deserializeAws_json1_1FirewallManagerRuleGroups = (output, context) => {
4664
4522
  };
4665
4523
  const deserializeAws_json1_1FirewallManagerStatement = (output, context) => {
4666
4524
  return {
4667
- ManagedRuleGroupStatement: output.ManagedRuleGroupStatement !== undefined && output.ManagedRuleGroupStatement !== null
4525
+ ManagedRuleGroupStatement: output.ManagedRuleGroupStatement != null
4668
4526
  ? deserializeAws_json1_1ManagedRuleGroupStatement(output.ManagedRuleGroupStatement, context)
4669
4527
  : undefined,
4670
- RuleGroupReferenceStatement: output.RuleGroupReferenceStatement !== undefined && output.RuleGroupReferenceStatement !== null
4528
+ RuleGroupReferenceStatement: output.RuleGroupReferenceStatement != null
4671
4529
  ? deserializeAws_json1_1RuleGroupReferenceStatement(output.RuleGroupReferenceStatement, context)
4672
4530
  : undefined,
4673
4531
  };
@@ -4685,25 +4543,21 @@ const deserializeAws_json1_1GenerateMobileSdkReleaseUrlResponse = (output, conte
4685
4543
  };
4686
4544
  const deserializeAws_json1_1GeoMatchStatement = (output, context) => {
4687
4545
  return {
4688
- CountryCodes: output.CountryCodes !== undefined && output.CountryCodes !== null
4689
- ? deserializeAws_json1_1CountryCodes(output.CountryCodes, context)
4690
- : undefined,
4691
- ForwardedIPConfig: output.ForwardedIPConfig !== undefined && output.ForwardedIPConfig !== null
4546
+ CountryCodes: output.CountryCodes != null ? deserializeAws_json1_1CountryCodes(output.CountryCodes, context) : undefined,
4547
+ ForwardedIPConfig: output.ForwardedIPConfig != null
4692
4548
  ? deserializeAws_json1_1ForwardedIPConfig(output.ForwardedIPConfig, context)
4693
4549
  : undefined,
4694
4550
  };
4695
4551
  };
4696
4552
  const deserializeAws_json1_1GetIPSetResponse = (output, context) => {
4697
4553
  return {
4698
- IPSet: output.IPSet !== undefined && output.IPSet !== null
4699
- ? deserializeAws_json1_1IPSet(output.IPSet, context)
4700
- : undefined,
4554
+ IPSet: output.IPSet != null ? deserializeAws_json1_1IPSet(output.IPSet, context) : undefined,
4701
4555
  LockToken: (0, smithy_client_1.expectString)(output.LockToken),
4702
4556
  };
4703
4557
  };
4704
4558
  const deserializeAws_json1_1GetLoggingConfigurationResponse = (output, context) => {
4705
4559
  return {
4706
- LoggingConfiguration: output.LoggingConfiguration !== undefined && output.LoggingConfiguration !== null
4560
+ LoggingConfiguration: output.LoggingConfiguration != null
4707
4561
  ? deserializeAws_json1_1LoggingConfiguration(output.LoggingConfiguration, context)
4708
4562
  : undefined,
4709
4563
  };
@@ -4711,14 +4565,12 @@ const deserializeAws_json1_1GetLoggingConfigurationResponse = (output, context)
4711
4565
  const deserializeAws_json1_1GetManagedRuleSetResponse = (output, context) => {
4712
4566
  return {
4713
4567
  LockToken: (0, smithy_client_1.expectString)(output.LockToken),
4714
- ManagedRuleSet: output.ManagedRuleSet !== undefined && output.ManagedRuleSet !== null
4715
- ? deserializeAws_json1_1ManagedRuleSet(output.ManagedRuleSet, context)
4716
- : undefined,
4568
+ ManagedRuleSet: output.ManagedRuleSet != null ? deserializeAws_json1_1ManagedRuleSet(output.ManagedRuleSet, context) : undefined,
4717
4569
  };
4718
4570
  };
4719
4571
  const deserializeAws_json1_1GetMobileSdkReleaseResponse = (output, context) => {
4720
4572
  return {
4721
- MobileSdkRelease: output.MobileSdkRelease !== undefined && output.MobileSdkRelease !== null
4573
+ MobileSdkRelease: output.MobileSdkRelease != null
4722
4574
  ? deserializeAws_json1_1MobileSdkRelease(output.MobileSdkRelease, context)
4723
4575
  : undefined,
4724
4576
  };
@@ -4730,10 +4582,10 @@ const deserializeAws_json1_1GetPermissionPolicyResponse = (output, context) => {
4730
4582
  };
4731
4583
  const deserializeAws_json1_1GetRateBasedStatementManagedKeysResponse = (output, context) => {
4732
4584
  return {
4733
- ManagedKeysIPV4: output.ManagedKeysIPV4 !== undefined && output.ManagedKeysIPV4 !== null
4585
+ ManagedKeysIPV4: output.ManagedKeysIPV4 != null
4734
4586
  ? deserializeAws_json1_1RateBasedStatementManagedKeysIPSet(output.ManagedKeysIPV4, context)
4735
4587
  : undefined,
4736
- ManagedKeysIPV6: output.ManagedKeysIPV6 !== undefined && output.ManagedKeysIPV6 !== null
4588
+ ManagedKeysIPV6: output.ManagedKeysIPV6 != null
4737
4589
  ? deserializeAws_json1_1RateBasedStatementManagedKeysIPSet(output.ManagedKeysIPV6, context)
4738
4590
  : undefined,
4739
4591
  };
@@ -4741,7 +4593,7 @@ const deserializeAws_json1_1GetRateBasedStatementManagedKeysResponse = (output,
4741
4593
  const deserializeAws_json1_1GetRegexPatternSetResponse = (output, context) => {
4742
4594
  return {
4743
4595
  LockToken: (0, smithy_client_1.expectString)(output.LockToken),
4744
- RegexPatternSet: output.RegexPatternSet !== undefined && output.RegexPatternSet !== null
4596
+ RegexPatternSet: output.RegexPatternSet != null
4745
4597
  ? deserializeAws_json1_1RegexPatternSet(output.RegexPatternSet, context)
4746
4598
  : undefined,
4747
4599
  };
@@ -4749,47 +4601,35 @@ const deserializeAws_json1_1GetRegexPatternSetResponse = (output, context) => {
4749
4601
  const deserializeAws_json1_1GetRuleGroupResponse = (output, context) => {
4750
4602
  return {
4751
4603
  LockToken: (0, smithy_client_1.expectString)(output.LockToken),
4752
- RuleGroup: output.RuleGroup !== undefined && output.RuleGroup !== null
4753
- ? deserializeAws_json1_1RuleGroup(output.RuleGroup, context)
4754
- : undefined,
4604
+ RuleGroup: output.RuleGroup != null ? deserializeAws_json1_1RuleGroup(output.RuleGroup, context) : undefined,
4755
4605
  };
4756
4606
  };
4757
4607
  const deserializeAws_json1_1GetSampledRequestsResponse = (output, context) => {
4758
4608
  return {
4759
4609
  PopulationSize: (0, smithy_client_1.expectLong)(output.PopulationSize),
4760
- SampledRequests: output.SampledRequests !== undefined && output.SampledRequests !== null
4610
+ SampledRequests: output.SampledRequests != null
4761
4611
  ? deserializeAws_json1_1SampledHTTPRequests(output.SampledRequests, context)
4762
4612
  : undefined,
4763
- TimeWindow: output.TimeWindow !== undefined && output.TimeWindow !== null
4764
- ? deserializeAws_json1_1TimeWindow(output.TimeWindow, context)
4765
- : undefined,
4613
+ TimeWindow: output.TimeWindow != null ? deserializeAws_json1_1TimeWindow(output.TimeWindow, context) : undefined,
4766
4614
  };
4767
4615
  };
4768
4616
  const deserializeAws_json1_1GetWebACLForResourceResponse = (output, context) => {
4769
4617
  return {
4770
- WebACL: output.WebACL !== undefined && output.WebACL !== null
4771
- ? deserializeAws_json1_1WebACL(output.WebACL, context)
4772
- : undefined,
4618
+ WebACL: output.WebACL != null ? deserializeAws_json1_1WebACL(output.WebACL, context) : undefined,
4773
4619
  };
4774
4620
  };
4775
4621
  const deserializeAws_json1_1GetWebACLResponse = (output, context) => {
4776
4622
  return {
4777
4623
  ApplicationIntegrationURL: (0, smithy_client_1.expectString)(output.ApplicationIntegrationURL),
4778
4624
  LockToken: (0, smithy_client_1.expectString)(output.LockToken),
4779
- WebACL: output.WebACL !== undefined && output.WebACL !== null
4780
- ? deserializeAws_json1_1WebACL(output.WebACL, context)
4781
- : undefined,
4625
+ WebACL: output.WebACL != null ? deserializeAws_json1_1WebACL(output.WebACL, context) : undefined,
4782
4626
  };
4783
4627
  };
4784
4628
  const deserializeAws_json1_1HeaderMatchPattern = (output, context) => {
4785
4629
  return {
4786
- All: output.All !== undefined && output.All !== null ? deserializeAws_json1_1All(output.All, context) : undefined,
4787
- ExcludedHeaders: output.ExcludedHeaders !== undefined && output.ExcludedHeaders !== null
4788
- ? deserializeAws_json1_1HeaderNames(output.ExcludedHeaders, context)
4789
- : undefined,
4790
- IncludedHeaders: output.IncludedHeaders !== undefined && output.IncludedHeaders !== null
4791
- ? deserializeAws_json1_1HeaderNames(output.IncludedHeaders, context)
4792
- : undefined,
4630
+ All: output.All != null ? deserializeAws_json1_1All(output.All, context) : undefined,
4631
+ ExcludedHeaders: output.ExcludedHeaders != null ? deserializeAws_json1_1HeaderNames(output.ExcludedHeaders, context) : undefined,
4632
+ IncludedHeaders: output.IncludedHeaders != null ? deserializeAws_json1_1HeaderNames(output.IncludedHeaders, context) : undefined,
4793
4633
  };
4794
4634
  };
4795
4635
  const deserializeAws_json1_1HeaderNames = (output, context) => {
@@ -4805,9 +4645,7 @@ const deserializeAws_json1_1HeaderNames = (output, context) => {
4805
4645
  };
4806
4646
  const deserializeAws_json1_1Headers = (output, context) => {
4807
4647
  return {
4808
- MatchPattern: output.MatchPattern !== undefined && output.MatchPattern !== null
4809
- ? deserializeAws_json1_1HeaderMatchPattern(output.MatchPattern, context)
4810
- : undefined,
4648
+ MatchPattern: output.MatchPattern != null ? deserializeAws_json1_1HeaderMatchPattern(output.MatchPattern, context) : undefined,
4811
4649
  MatchScope: (0, smithy_client_1.expectString)(output.MatchScope),
4812
4650
  OversizeHandling: (0, smithy_client_1.expectString)(output.OversizeHandling),
4813
4651
  };
@@ -4834,9 +4672,7 @@ const deserializeAws_json1_1HTTPRequest = (output, context) => {
4834
4672
  ClientIP: (0, smithy_client_1.expectString)(output.ClientIP),
4835
4673
  Country: (0, smithy_client_1.expectString)(output.Country),
4836
4674
  HTTPVersion: (0, smithy_client_1.expectString)(output.HTTPVersion),
4837
- Headers: output.Headers !== undefined && output.Headers !== null
4838
- ? deserializeAws_json1_1HTTPHeaders(output.Headers, context)
4839
- : undefined,
4675
+ Headers: output.Headers != null ? deserializeAws_json1_1HTTPHeaders(output.Headers, context) : undefined,
4840
4676
  Method: (0, smithy_client_1.expectString)(output.Method),
4841
4677
  URI: (0, smithy_client_1.expectString)(output.URI),
4842
4678
  };
@@ -4860,9 +4696,7 @@ const deserializeAws_json1_1IPAddresses = (output, context) => {
4860
4696
  const deserializeAws_json1_1IPSet = (output, context) => {
4861
4697
  return {
4862
4698
  ARN: (0, smithy_client_1.expectString)(output.ARN),
4863
- Addresses: output.Addresses !== undefined && output.Addresses !== null
4864
- ? deserializeAws_json1_1IPAddresses(output.Addresses, context)
4865
- : undefined,
4699
+ Addresses: output.Addresses != null ? deserializeAws_json1_1IPAddresses(output.Addresses, context) : undefined,
4866
4700
  Description: (0, smithy_client_1.expectString)(output.Description),
4867
4701
  IPAddressVersion: (0, smithy_client_1.expectString)(output.IPAddressVersion),
4868
4702
  Id: (0, smithy_client_1.expectString)(output.Id),
@@ -4879,7 +4713,7 @@ const deserializeAws_json1_1IPSetForwardedIPConfig = (output, context) => {
4879
4713
  const deserializeAws_json1_1IPSetReferenceStatement = (output, context) => {
4880
4714
  return {
4881
4715
  ARN: (0, smithy_client_1.expectString)(output.ARN),
4882
- IPSetForwardedIPConfig: output.IPSetForwardedIPConfig !== undefined && output.IPSetForwardedIPConfig !== null
4716
+ IPSetForwardedIPConfig: output.IPSetForwardedIPConfig != null
4883
4717
  ? deserializeAws_json1_1IPSetForwardedIPConfig(output.IPSetForwardedIPConfig, context)
4884
4718
  : undefined,
4885
4719
  };
@@ -4907,19 +4741,15 @@ const deserializeAws_json1_1IPSetSummary = (output, context) => {
4907
4741
  const deserializeAws_json1_1JsonBody = (output, context) => {
4908
4742
  return {
4909
4743
  InvalidFallbackBehavior: (0, smithy_client_1.expectString)(output.InvalidFallbackBehavior),
4910
- MatchPattern: output.MatchPattern !== undefined && output.MatchPattern !== null
4911
- ? deserializeAws_json1_1JsonMatchPattern(output.MatchPattern, context)
4912
- : undefined,
4744
+ MatchPattern: output.MatchPattern != null ? deserializeAws_json1_1JsonMatchPattern(output.MatchPattern, context) : undefined,
4913
4745
  MatchScope: (0, smithy_client_1.expectString)(output.MatchScope),
4914
4746
  OversizeHandling: (0, smithy_client_1.expectString)(output.OversizeHandling),
4915
4747
  };
4916
4748
  };
4917
4749
  const deserializeAws_json1_1JsonMatchPattern = (output, context) => {
4918
4750
  return {
4919
- All: output.All !== undefined && output.All !== null ? deserializeAws_json1_1All(output.All, context) : undefined,
4920
- IncludedPaths: output.IncludedPaths !== undefined && output.IncludedPaths !== null
4921
- ? deserializeAws_json1_1JsonPointerPaths(output.IncludedPaths, context)
4922
- : undefined,
4751
+ All: output.All != null ? deserializeAws_json1_1All(output.All, context) : undefined,
4752
+ IncludedPaths: output.IncludedPaths != null ? deserializeAws_json1_1JsonPointerPaths(output.IncludedPaths, context) : undefined,
4923
4753
  };
4924
4754
  };
4925
4755
  const deserializeAws_json1_1JsonPointerPaths = (output, context) => {
@@ -4978,7 +4808,7 @@ const deserializeAws_json1_1LabelSummary = (output, context) => {
4978
4808
  };
4979
4809
  const deserializeAws_json1_1ListAvailableManagedRuleGroupsResponse = (output, context) => {
4980
4810
  return {
4981
- ManagedRuleGroups: output.ManagedRuleGroups !== undefined && output.ManagedRuleGroups !== null
4811
+ ManagedRuleGroups: output.ManagedRuleGroups != null
4982
4812
  ? deserializeAws_json1_1ManagedRuleGroupSummaries(output.ManagedRuleGroups, context)
4983
4813
  : undefined,
4984
4814
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
@@ -4988,22 +4818,18 @@ const deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsResponse = (out
4988
4818
  return {
4989
4819
  CurrentDefaultVersion: (0, smithy_client_1.expectString)(output.CurrentDefaultVersion),
4990
4820
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
4991
- Versions: output.Versions !== undefined && output.Versions !== null
4992
- ? deserializeAws_json1_1ManagedRuleGroupVersions(output.Versions, context)
4993
- : undefined,
4821
+ Versions: output.Versions != null ? deserializeAws_json1_1ManagedRuleGroupVersions(output.Versions, context) : undefined,
4994
4822
  };
4995
4823
  };
4996
4824
  const deserializeAws_json1_1ListIPSetsResponse = (output, context) => {
4997
4825
  return {
4998
- IPSets: output.IPSets !== undefined && output.IPSets !== null
4999
- ? deserializeAws_json1_1IPSetSummaries(output.IPSets, context)
5000
- : undefined,
4826
+ IPSets: output.IPSets != null ? deserializeAws_json1_1IPSetSummaries(output.IPSets, context) : undefined,
5001
4827
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
5002
4828
  };
5003
4829
  };
5004
4830
  const deserializeAws_json1_1ListLoggingConfigurationsResponse = (output, context) => {
5005
4831
  return {
5006
- LoggingConfigurations: output.LoggingConfigurations !== undefined && output.LoggingConfigurations !== null
4832
+ LoggingConfigurations: output.LoggingConfigurations != null
5007
4833
  ? deserializeAws_json1_1LoggingConfigurations(output.LoggingConfigurations, context)
5008
4834
  : undefined,
5009
4835
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
@@ -5011,7 +4837,7 @@ const deserializeAws_json1_1ListLoggingConfigurationsResponse = (output, context
5011
4837
  };
5012
4838
  const deserializeAws_json1_1ListManagedRuleSetsResponse = (output, context) => {
5013
4839
  return {
5014
- ManagedRuleSets: output.ManagedRuleSets !== undefined && output.ManagedRuleSets !== null
4840
+ ManagedRuleSets: output.ManagedRuleSets != null
5015
4841
  ? deserializeAws_json1_1ManagedRuleSetSummaries(output.ManagedRuleSets, context)
5016
4842
  : undefined,
5017
4843
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
@@ -5020,7 +4846,7 @@ const deserializeAws_json1_1ListManagedRuleSetsResponse = (output, context) => {
5020
4846
  const deserializeAws_json1_1ListMobileSdkReleasesResponse = (output, context) => {
5021
4847
  return {
5022
4848
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
5023
- ReleaseSummaries: output.ReleaseSummaries !== undefined && output.ReleaseSummaries !== null
4849
+ ReleaseSummaries: output.ReleaseSummaries != null
5024
4850
  ? deserializeAws_json1_1ReleaseSummaries(output.ReleaseSummaries, context)
5025
4851
  : undefined,
5026
4852
  };
@@ -5028,30 +4854,26 @@ const deserializeAws_json1_1ListMobileSdkReleasesResponse = (output, context) =>
5028
4854
  const deserializeAws_json1_1ListRegexPatternSetsResponse = (output, context) => {
5029
4855
  return {
5030
4856
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
5031
- RegexPatternSets: output.RegexPatternSets !== undefined && output.RegexPatternSets !== null
4857
+ RegexPatternSets: output.RegexPatternSets != null
5032
4858
  ? deserializeAws_json1_1RegexPatternSetSummaries(output.RegexPatternSets, context)
5033
4859
  : undefined,
5034
4860
  };
5035
4861
  };
5036
4862
  const deserializeAws_json1_1ListResourcesForWebACLResponse = (output, context) => {
5037
4863
  return {
5038
- ResourceArns: output.ResourceArns !== undefined && output.ResourceArns !== null
5039
- ? deserializeAws_json1_1ResourceArns(output.ResourceArns, context)
5040
- : undefined,
4864
+ ResourceArns: output.ResourceArns != null ? deserializeAws_json1_1ResourceArns(output.ResourceArns, context) : undefined,
5041
4865
  };
5042
4866
  };
5043
4867
  const deserializeAws_json1_1ListRuleGroupsResponse = (output, context) => {
5044
4868
  return {
5045
4869
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
5046
- RuleGroups: output.RuleGroups !== undefined && output.RuleGroups !== null
5047
- ? deserializeAws_json1_1RuleGroupSummaries(output.RuleGroups, context)
5048
- : undefined,
4870
+ RuleGroups: output.RuleGroups != null ? deserializeAws_json1_1RuleGroupSummaries(output.RuleGroups, context) : undefined,
5049
4871
  };
5050
4872
  };
5051
4873
  const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
5052
4874
  return {
5053
4875
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
5054
- TagInfoForResource: output.TagInfoForResource !== undefined && output.TagInfoForResource !== null
4876
+ TagInfoForResource: output.TagInfoForResource != null
5055
4877
  ? deserializeAws_json1_1TagInfoForResource(output.TagInfoForResource, context)
5056
4878
  : undefined,
5057
4879
  };
@@ -5059,9 +4881,7 @@ const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
5059
4881
  const deserializeAws_json1_1ListWebACLsResponse = (output, context) => {
5060
4882
  return {
5061
4883
  NextMarker: (0, smithy_client_1.expectString)(output.NextMarker),
5062
- WebACLs: output.WebACLs !== undefined && output.WebACLs !== null
5063
- ? deserializeAws_json1_1WebACLSummaries(output.WebACLs, context)
5064
- : undefined,
4884
+ WebACLs: output.WebACLs != null ? deserializeAws_json1_1WebACLSummaries(output.WebACLs, context) : undefined,
5065
4885
  };
5066
4886
  };
5067
4887
  const deserializeAws_json1_1LogDestinationConfigs = (output, context) => {
@@ -5077,16 +4897,12 @@ const deserializeAws_json1_1LogDestinationConfigs = (output, context) => {
5077
4897
  };
5078
4898
  const deserializeAws_json1_1LoggingConfiguration = (output, context) => {
5079
4899
  return {
5080
- LogDestinationConfigs: output.LogDestinationConfigs !== undefined && output.LogDestinationConfigs !== null
4900
+ LogDestinationConfigs: output.LogDestinationConfigs != null
5081
4901
  ? deserializeAws_json1_1LogDestinationConfigs(output.LogDestinationConfigs, context)
5082
4902
  : undefined,
5083
- LoggingFilter: output.LoggingFilter !== undefined && output.LoggingFilter !== null
5084
- ? deserializeAws_json1_1LoggingFilter(output.LoggingFilter, context)
5085
- : undefined,
4903
+ LoggingFilter: output.LoggingFilter != null ? deserializeAws_json1_1LoggingFilter(output.LoggingFilter, context) : undefined,
5086
4904
  ManagedByFirewallManager: (0, smithy_client_1.expectBoolean)(output.ManagedByFirewallManager),
5087
- RedactedFields: output.RedactedFields !== undefined && output.RedactedFields !== null
5088
- ? deserializeAws_json1_1RedactedFields(output.RedactedFields, context)
5089
- : undefined,
4905
+ RedactedFields: output.RedactedFields != null ? deserializeAws_json1_1RedactedFields(output.RedactedFields, context) : undefined,
5090
4906
  ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
5091
4907
  };
5092
4908
  };
@@ -5104,21 +4920,15 @@ const deserializeAws_json1_1LoggingConfigurations = (output, context) => {
5104
4920
  const deserializeAws_json1_1LoggingFilter = (output, context) => {
5105
4921
  return {
5106
4922
  DefaultBehavior: (0, smithy_client_1.expectString)(output.DefaultBehavior),
5107
- Filters: output.Filters !== undefined && output.Filters !== null
5108
- ? deserializeAws_json1_1Filters(output.Filters, context)
5109
- : undefined,
4923
+ Filters: output.Filters != null ? deserializeAws_json1_1Filters(output.Filters, context) : undefined,
5110
4924
  };
5111
4925
  };
5112
4926
  const deserializeAws_json1_1ManagedRuleGroupConfig = (output, context) => {
5113
4927
  return {
5114
4928
  LoginPath: (0, smithy_client_1.expectString)(output.LoginPath),
5115
- PasswordField: output.PasswordField !== undefined && output.PasswordField !== null
5116
- ? deserializeAws_json1_1PasswordField(output.PasswordField, context)
5117
- : undefined,
4929
+ PasswordField: output.PasswordField != null ? deserializeAws_json1_1PasswordField(output.PasswordField, context) : undefined,
5118
4930
  PayloadType: (0, smithy_client_1.expectString)(output.PayloadType),
5119
- UsernameField: output.UsernameField !== undefined && output.UsernameField !== null
5120
- ? deserializeAws_json1_1UsernameField(output.UsernameField, context)
5121
- : undefined,
4931
+ UsernameField: output.UsernameField != null ? deserializeAws_json1_1UsernameField(output.UsernameField, context) : undefined,
5122
4932
  };
5123
4933
  };
5124
4934
  const deserializeAws_json1_1ManagedRuleGroupConfigs = (output, context) => {
@@ -5134,14 +4944,12 @@ const deserializeAws_json1_1ManagedRuleGroupConfigs = (output, context) => {
5134
4944
  };
5135
4945
  const deserializeAws_json1_1ManagedRuleGroupStatement = (output, context) => {
5136
4946
  return {
5137
- ExcludedRules: output.ExcludedRules !== undefined && output.ExcludedRules !== null
5138
- ? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context)
5139
- : undefined,
5140
- ManagedRuleGroupConfigs: output.ManagedRuleGroupConfigs !== undefined && output.ManagedRuleGroupConfigs !== null
4947
+ ExcludedRules: output.ExcludedRules != null ? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context) : undefined,
4948
+ ManagedRuleGroupConfigs: output.ManagedRuleGroupConfigs != null
5141
4949
  ? deserializeAws_json1_1ManagedRuleGroupConfigs(output.ManagedRuleGroupConfigs, context)
5142
4950
  : undefined,
5143
4951
  Name: (0, smithy_client_1.expectString)(output.Name),
5144
- ScopeDownStatement: output.ScopeDownStatement !== undefined && output.ScopeDownStatement !== null
4952
+ ScopeDownStatement: output.ScopeDownStatement != null
5145
4953
  ? deserializeAws_json1_1Statement(output.ScopeDownStatement, context)
5146
4954
  : undefined,
5147
4955
  VendorName: (0, smithy_client_1.expectString)(output.VendorName),
@@ -5169,7 +4977,7 @@ const deserializeAws_json1_1ManagedRuleGroupSummary = (output, context) => {
5169
4977
  };
5170
4978
  const deserializeAws_json1_1ManagedRuleGroupVersion = (output, context) => {
5171
4979
  return {
5172
- LastUpdateTimestamp: output.LastUpdateTimestamp !== undefined && output.LastUpdateTimestamp !== null
4980
+ LastUpdateTimestamp: output.LastUpdateTimestamp != null
5173
4981
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTimestamp)))
5174
4982
  : undefined,
5175
4983
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -5193,7 +5001,7 @@ const deserializeAws_json1_1ManagedRuleSet = (output, context) => {
5193
5001
  Id: (0, smithy_client_1.expectString)(output.Id),
5194
5002
  LabelNamespace: (0, smithy_client_1.expectString)(output.LabelNamespace),
5195
5003
  Name: (0, smithy_client_1.expectString)(output.Name),
5196
- PublishedVersions: output.PublishedVersions !== undefined && output.PublishedVersions !== null
5004
+ PublishedVersions: output.PublishedVersions != null
5197
5005
  ? deserializeAws_json1_1PublishedVersions(output.PublishedVersions, context)
5198
5006
  : undefined,
5199
5007
  RecommendedVersion: (0, smithy_client_1.expectString)(output.RecommendedVersion),
@@ -5224,14 +5032,14 @@ const deserializeAws_json1_1ManagedRuleSetVersion = (output, context) => {
5224
5032
  return {
5225
5033
  AssociatedRuleGroupArn: (0, smithy_client_1.expectString)(output.AssociatedRuleGroupArn),
5226
5034
  Capacity: (0, smithy_client_1.expectLong)(output.Capacity),
5227
- ExpiryTimestamp: output.ExpiryTimestamp !== undefined && output.ExpiryTimestamp !== null
5035
+ ExpiryTimestamp: output.ExpiryTimestamp != null
5228
5036
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpiryTimestamp)))
5229
5037
  : undefined,
5230
5038
  ForecastedLifetime: (0, smithy_client_1.expectInt32)(output.ForecastedLifetime),
5231
- LastUpdateTimestamp: output.LastUpdateTimestamp !== undefined && output.LastUpdateTimestamp !== null
5039
+ LastUpdateTimestamp: output.LastUpdateTimestamp != null
5232
5040
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdateTimestamp)))
5233
5041
  : undefined,
5234
- PublishTimestamp: output.PublishTimestamp !== undefined && output.PublishTimestamp !== null
5042
+ PublishTimestamp: output.PublishTimestamp != null
5235
5043
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.PublishTimestamp)))
5236
5044
  : undefined,
5237
5045
  };
@@ -5243,12 +5051,8 @@ const deserializeAws_json1_1MobileSdkRelease = (output, context) => {
5243
5051
  return {
5244
5052
  ReleaseNotes: (0, smithy_client_1.expectString)(output.ReleaseNotes),
5245
5053
  ReleaseVersion: (0, smithy_client_1.expectString)(output.ReleaseVersion),
5246
- Tags: output.Tags !== undefined && output.Tags !== null
5247
- ? deserializeAws_json1_1TagList(output.Tags, context)
5248
- : undefined,
5249
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
5250
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
5251
- : undefined,
5054
+ Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
5055
+ Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
5252
5056
  };
5253
5057
  };
5254
5058
  const deserializeAws_json1_1NoneAction = (output, context) => {
@@ -5256,26 +5060,18 @@ const deserializeAws_json1_1NoneAction = (output, context) => {
5256
5060
  };
5257
5061
  const deserializeAws_json1_1NotStatement = (output, context) => {
5258
5062
  return {
5259
- Statement: output.Statement !== undefined && output.Statement !== null
5260
- ? deserializeAws_json1_1Statement(output.Statement, context)
5261
- : undefined,
5063
+ Statement: output.Statement != null ? deserializeAws_json1_1Statement(output.Statement, context) : undefined,
5262
5064
  };
5263
5065
  };
5264
5066
  const deserializeAws_json1_1OrStatement = (output, context) => {
5265
5067
  return {
5266
- Statements: output.Statements !== undefined && output.Statements !== null
5267
- ? deserializeAws_json1_1Statements(output.Statements, context)
5268
- : undefined,
5068
+ Statements: output.Statements != null ? deserializeAws_json1_1Statements(output.Statements, context) : undefined,
5269
5069
  };
5270
5070
  };
5271
5071
  const deserializeAws_json1_1OverrideAction = (output, context) => {
5272
5072
  return {
5273
- Count: output.Count !== undefined && output.Count !== null
5274
- ? deserializeAws_json1_1CountAction(output.Count, context)
5275
- : undefined,
5276
- None: output.None !== undefined && output.None !== null
5277
- ? deserializeAws_json1_1NoneAction(output.None, context)
5278
- : undefined,
5073
+ Count: output.Count != null ? deserializeAws_json1_1CountAction(output.Count, context) : undefined,
5074
+ None: output.None != null ? deserializeAws_json1_1NoneAction(output.None, context) : undefined,
5279
5075
  };
5280
5076
  };
5281
5077
  const deserializeAws_json1_1PasswordField = (output, context) => {
@@ -5296,7 +5092,7 @@ const deserializeAws_json1_1PublishedVersions = (output, context) => {
5296
5092
  };
5297
5093
  const deserializeAws_json1_1PutLoggingConfigurationResponse = (output, context) => {
5298
5094
  return {
5299
- LoggingConfiguration: output.LoggingConfiguration !== undefined && output.LoggingConfiguration !== null
5095
+ LoggingConfiguration: output.LoggingConfiguration != null
5300
5096
  ? deserializeAws_json1_1LoggingConfiguration(output.LoggingConfiguration, context)
5301
5097
  : undefined,
5302
5098
  };
@@ -5315,20 +5111,18 @@ const deserializeAws_json1_1QueryString = (output, context) => {
5315
5111
  const deserializeAws_json1_1RateBasedStatement = (output, context) => {
5316
5112
  return {
5317
5113
  AggregateKeyType: (0, smithy_client_1.expectString)(output.AggregateKeyType),
5318
- ForwardedIPConfig: output.ForwardedIPConfig !== undefined && output.ForwardedIPConfig !== null
5114
+ ForwardedIPConfig: output.ForwardedIPConfig != null
5319
5115
  ? deserializeAws_json1_1ForwardedIPConfig(output.ForwardedIPConfig, context)
5320
5116
  : undefined,
5321
5117
  Limit: (0, smithy_client_1.expectLong)(output.Limit),
5322
- ScopeDownStatement: output.ScopeDownStatement !== undefined && output.ScopeDownStatement !== null
5118
+ ScopeDownStatement: output.ScopeDownStatement != null
5323
5119
  ? deserializeAws_json1_1Statement(output.ScopeDownStatement, context)
5324
5120
  : undefined,
5325
5121
  };
5326
5122
  };
5327
5123
  const deserializeAws_json1_1RateBasedStatementManagedKeysIPSet = (output, context) => {
5328
5124
  return {
5329
- Addresses: output.Addresses !== undefined && output.Addresses !== null
5330
- ? deserializeAws_json1_1IPAddresses(output.Addresses, context)
5331
- : undefined,
5125
+ Addresses: output.Addresses != null ? deserializeAws_json1_1IPAddresses(output.Addresses, context) : undefined,
5332
5126
  IPAddressVersion: (0, smithy_client_1.expectString)(output.IPAddressVersion),
5333
5127
  };
5334
5128
  };
@@ -5350,11 +5144,9 @@ const deserializeAws_json1_1Regex = (output, context) => {
5350
5144
  };
5351
5145
  const deserializeAws_json1_1RegexMatchStatement = (output, context) => {
5352
5146
  return {
5353
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
5354
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
5355
- : undefined,
5147
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
5356
5148
  RegexString: (0, smithy_client_1.expectString)(output.RegexString),
5357
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
5149
+ TextTransformations: output.TextTransformations != null
5358
5150
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
5359
5151
  : undefined,
5360
5152
  };
@@ -5365,7 +5157,7 @@ const deserializeAws_json1_1RegexPatternSet = (output, context) => {
5365
5157
  Description: (0, smithy_client_1.expectString)(output.Description),
5366
5158
  Id: (0, smithy_client_1.expectString)(output.Id),
5367
5159
  Name: (0, smithy_client_1.expectString)(output.Name),
5368
- RegularExpressionList: output.RegularExpressionList !== undefined && output.RegularExpressionList !== null
5160
+ RegularExpressionList: output.RegularExpressionList != null
5369
5161
  ? deserializeAws_json1_1RegularExpressionList(output.RegularExpressionList, context)
5370
5162
  : undefined,
5371
5163
  };
@@ -5373,10 +5165,8 @@ const deserializeAws_json1_1RegexPatternSet = (output, context) => {
5373
5165
  const deserializeAws_json1_1RegexPatternSetReferenceStatement = (output, context) => {
5374
5166
  return {
5375
5167
  ARN: (0, smithy_client_1.expectString)(output.ARN),
5376
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
5377
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
5378
- : undefined,
5379
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
5168
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
5169
+ TextTransformations: output.TextTransformations != null
5380
5170
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
5381
5171
  : undefined,
5382
5172
  };
@@ -5426,9 +5216,7 @@ const deserializeAws_json1_1ReleaseSummaries = (output, context) => {
5426
5216
  const deserializeAws_json1_1ReleaseSummary = (output, context) => {
5427
5217
  return {
5428
5218
  ReleaseVersion: (0, smithy_client_1.expectString)(output.ReleaseVersion),
5429
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
5430
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
5431
- : undefined,
5219
+ Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
5432
5220
  };
5433
5221
  };
5434
5222
  const deserializeAws_json1_1ResourceArns = (output, context) => {
@@ -5444,65 +5232,43 @@ const deserializeAws_json1_1ResourceArns = (output, context) => {
5444
5232
  };
5445
5233
  const deserializeAws_json1_1Rule = (output, context) => {
5446
5234
  return {
5447
- Action: output.Action !== undefined && output.Action !== null
5448
- ? deserializeAws_json1_1RuleAction(output.Action, context)
5449
- : undefined,
5450
- CaptchaConfig: output.CaptchaConfig !== undefined && output.CaptchaConfig !== null
5451
- ? deserializeAws_json1_1CaptchaConfig(output.CaptchaConfig, context)
5452
- : undefined,
5235
+ Action: output.Action != null ? deserializeAws_json1_1RuleAction(output.Action, context) : undefined,
5236
+ CaptchaConfig: output.CaptchaConfig != null ? deserializeAws_json1_1CaptchaConfig(output.CaptchaConfig, context) : undefined,
5453
5237
  Name: (0, smithy_client_1.expectString)(output.Name),
5454
- OverrideAction: output.OverrideAction !== undefined && output.OverrideAction !== null
5455
- ? deserializeAws_json1_1OverrideAction(output.OverrideAction, context)
5456
- : undefined,
5238
+ OverrideAction: output.OverrideAction != null ? deserializeAws_json1_1OverrideAction(output.OverrideAction, context) : undefined,
5457
5239
  Priority: (0, smithy_client_1.expectInt32)(output.Priority),
5458
- RuleLabels: output.RuleLabels !== undefined && output.RuleLabels !== null
5459
- ? deserializeAws_json1_1Labels(output.RuleLabels, context)
5460
- : undefined,
5461
- Statement: output.Statement !== undefined && output.Statement !== null
5462
- ? deserializeAws_json1_1Statement(output.Statement, context)
5463
- : undefined,
5464
- VisibilityConfig: output.VisibilityConfig !== undefined && output.VisibilityConfig !== null
5240
+ RuleLabels: output.RuleLabels != null ? deserializeAws_json1_1Labels(output.RuleLabels, context) : undefined,
5241
+ Statement: output.Statement != null ? deserializeAws_json1_1Statement(output.Statement, context) : undefined,
5242
+ VisibilityConfig: output.VisibilityConfig != null
5465
5243
  ? deserializeAws_json1_1VisibilityConfig(output.VisibilityConfig, context)
5466
5244
  : undefined,
5467
5245
  };
5468
5246
  };
5469
5247
  const deserializeAws_json1_1RuleAction = (output, context) => {
5470
5248
  return {
5471
- Allow: output.Allow !== undefined && output.Allow !== null
5472
- ? deserializeAws_json1_1AllowAction(output.Allow, context)
5473
- : undefined,
5474
- Block: output.Block !== undefined && output.Block !== null
5475
- ? deserializeAws_json1_1BlockAction(output.Block, context)
5476
- : undefined,
5477
- Captcha: output.Captcha !== undefined && output.Captcha !== null
5478
- ? deserializeAws_json1_1CaptchaAction(output.Captcha, context)
5479
- : undefined,
5480
- Count: output.Count !== undefined && output.Count !== null
5481
- ? deserializeAws_json1_1CountAction(output.Count, context)
5482
- : undefined,
5249
+ Allow: output.Allow != null ? deserializeAws_json1_1AllowAction(output.Allow, context) : undefined,
5250
+ Block: output.Block != null ? deserializeAws_json1_1BlockAction(output.Block, context) : undefined,
5251
+ Captcha: output.Captcha != null ? deserializeAws_json1_1CaptchaAction(output.Captcha, context) : undefined,
5252
+ Count: output.Count != null ? deserializeAws_json1_1CountAction(output.Count, context) : undefined,
5483
5253
  };
5484
5254
  };
5485
5255
  const deserializeAws_json1_1RuleGroup = (output, context) => {
5486
5256
  return {
5487
5257
  ARN: (0, smithy_client_1.expectString)(output.ARN),
5488
- AvailableLabels: output.AvailableLabels !== undefined && output.AvailableLabels !== null
5258
+ AvailableLabels: output.AvailableLabels != null
5489
5259
  ? deserializeAws_json1_1LabelSummaries(output.AvailableLabels, context)
5490
5260
  : undefined,
5491
5261
  Capacity: (0, smithy_client_1.expectLong)(output.Capacity),
5492
- ConsumedLabels: output.ConsumedLabels !== undefined && output.ConsumedLabels !== null
5493
- ? deserializeAws_json1_1LabelSummaries(output.ConsumedLabels, context)
5494
- : undefined,
5495
- CustomResponseBodies: output.CustomResponseBodies !== undefined && output.CustomResponseBodies !== null
5262
+ ConsumedLabels: output.ConsumedLabels != null ? deserializeAws_json1_1LabelSummaries(output.ConsumedLabels, context) : undefined,
5263
+ CustomResponseBodies: output.CustomResponseBodies != null
5496
5264
  ? deserializeAws_json1_1CustomResponseBodies(output.CustomResponseBodies, context)
5497
5265
  : undefined,
5498
5266
  Description: (0, smithy_client_1.expectString)(output.Description),
5499
5267
  Id: (0, smithy_client_1.expectString)(output.Id),
5500
5268
  LabelNamespace: (0, smithy_client_1.expectString)(output.LabelNamespace),
5501
5269
  Name: (0, smithy_client_1.expectString)(output.Name),
5502
- Rules: output.Rules !== undefined && output.Rules !== null
5503
- ? deserializeAws_json1_1Rules(output.Rules, context)
5504
- : undefined,
5505
- VisibilityConfig: output.VisibilityConfig !== undefined && output.VisibilityConfig !== null
5270
+ Rules: output.Rules != null ? deserializeAws_json1_1Rules(output.Rules, context) : undefined,
5271
+ VisibilityConfig: output.VisibilityConfig != null
5506
5272
  ? deserializeAws_json1_1VisibilityConfig(output.VisibilityConfig, context)
5507
5273
  : undefined,
5508
5274
  };
@@ -5510,9 +5276,7 @@ const deserializeAws_json1_1RuleGroup = (output, context) => {
5510
5276
  const deserializeAws_json1_1RuleGroupReferenceStatement = (output, context) => {
5511
5277
  return {
5512
5278
  ARN: (0, smithy_client_1.expectString)(output.ARN),
5513
- ExcludedRules: output.ExcludedRules !== undefined && output.ExcludedRules !== null
5514
- ? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context)
5515
- : undefined,
5279
+ ExcludedRules: output.ExcludedRules != null ? deserializeAws_json1_1ExcludedRules(output.ExcludedRules, context) : undefined,
5516
5280
  };
5517
5281
  };
5518
5282
  const deserializeAws_json1_1RuleGroupSummaries = (output, context) => {
@@ -5559,32 +5323,24 @@ const deserializeAws_json1_1RuleSummaries = (output, context) => {
5559
5323
  };
5560
5324
  const deserializeAws_json1_1RuleSummary = (output, context) => {
5561
5325
  return {
5562
- Action: output.Action !== undefined && output.Action !== null
5563
- ? deserializeAws_json1_1RuleAction(output.Action, context)
5564
- : undefined,
5326
+ Action: output.Action != null ? deserializeAws_json1_1RuleAction(output.Action, context) : undefined,
5565
5327
  Name: (0, smithy_client_1.expectString)(output.Name),
5566
5328
  };
5567
5329
  };
5568
5330
  const deserializeAws_json1_1SampledHTTPRequest = (output, context) => {
5569
5331
  return {
5570
5332
  Action: (0, smithy_client_1.expectString)(output.Action),
5571
- CaptchaResponse: output.CaptchaResponse !== undefined && output.CaptchaResponse !== null
5333
+ CaptchaResponse: output.CaptchaResponse != null
5572
5334
  ? deserializeAws_json1_1CaptchaResponse(output.CaptchaResponse, context)
5573
5335
  : undefined,
5574
- Labels: output.Labels !== undefined && output.Labels !== null
5575
- ? deserializeAws_json1_1Labels(output.Labels, context)
5576
- : undefined,
5577
- Request: output.Request !== undefined && output.Request !== null
5578
- ? deserializeAws_json1_1HTTPRequest(output.Request, context)
5579
- : undefined,
5580
- RequestHeadersInserted: output.RequestHeadersInserted !== undefined && output.RequestHeadersInserted !== null
5336
+ Labels: output.Labels != null ? deserializeAws_json1_1Labels(output.Labels, context) : undefined,
5337
+ Request: output.Request != null ? deserializeAws_json1_1HTTPRequest(output.Request, context) : undefined,
5338
+ RequestHeadersInserted: output.RequestHeadersInserted != null
5581
5339
  ? deserializeAws_json1_1HTTPHeaders(output.RequestHeadersInserted, context)
5582
5340
  : undefined,
5583
5341
  ResponseCodeSent: (0, smithy_client_1.expectInt32)(output.ResponseCodeSent),
5584
5342
  RuleNameWithinRuleGroup: (0, smithy_client_1.expectString)(output.RuleNameWithinRuleGroup),
5585
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
5586
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp)))
5587
- : undefined,
5343
+ Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
5588
5344
  Weight: (0, smithy_client_1.expectLong)(output.Weight),
5589
5345
  };
5590
5346
  };
@@ -5612,70 +5368,60 @@ const deserializeAws_json1_1SingleQueryArgument = (output, context) => {
5612
5368
  const deserializeAws_json1_1SizeConstraintStatement = (output, context) => {
5613
5369
  return {
5614
5370
  ComparisonOperator: (0, smithy_client_1.expectString)(output.ComparisonOperator),
5615
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
5616
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
5617
- : undefined,
5371
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
5618
5372
  Size: (0, smithy_client_1.expectLong)(output.Size),
5619
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
5373
+ TextTransformations: output.TextTransformations != null
5620
5374
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
5621
5375
  : undefined,
5622
5376
  };
5623
5377
  };
5624
5378
  const deserializeAws_json1_1SqliMatchStatement = (output, context) => {
5625
5379
  return {
5626
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
5627
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
5628
- : undefined,
5629
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
5380
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
5381
+ TextTransformations: output.TextTransformations != null
5630
5382
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
5631
5383
  : undefined,
5632
5384
  };
5633
5385
  };
5634
5386
  const deserializeAws_json1_1Statement = (output, context) => {
5635
5387
  return {
5636
- AndStatement: output.AndStatement !== undefined && output.AndStatement !== null
5637
- ? deserializeAws_json1_1AndStatement(output.AndStatement, context)
5638
- : undefined,
5639
- ByteMatchStatement: output.ByteMatchStatement !== undefined && output.ByteMatchStatement !== null
5388
+ AndStatement: output.AndStatement != null ? deserializeAws_json1_1AndStatement(output.AndStatement, context) : undefined,
5389
+ ByteMatchStatement: output.ByteMatchStatement != null
5640
5390
  ? deserializeAws_json1_1ByteMatchStatement(output.ByteMatchStatement, context)
5641
5391
  : undefined,
5642
- GeoMatchStatement: output.GeoMatchStatement !== undefined && output.GeoMatchStatement !== null
5392
+ GeoMatchStatement: output.GeoMatchStatement != null
5643
5393
  ? deserializeAws_json1_1GeoMatchStatement(output.GeoMatchStatement, context)
5644
5394
  : undefined,
5645
- IPSetReferenceStatement: output.IPSetReferenceStatement !== undefined && output.IPSetReferenceStatement !== null
5395
+ IPSetReferenceStatement: output.IPSetReferenceStatement != null
5646
5396
  ? deserializeAws_json1_1IPSetReferenceStatement(output.IPSetReferenceStatement, context)
5647
5397
  : undefined,
5648
- LabelMatchStatement: output.LabelMatchStatement !== undefined && output.LabelMatchStatement !== null
5398
+ LabelMatchStatement: output.LabelMatchStatement != null
5649
5399
  ? deserializeAws_json1_1LabelMatchStatement(output.LabelMatchStatement, context)
5650
5400
  : undefined,
5651
- ManagedRuleGroupStatement: output.ManagedRuleGroupStatement !== undefined && output.ManagedRuleGroupStatement !== null
5401
+ ManagedRuleGroupStatement: output.ManagedRuleGroupStatement != null
5652
5402
  ? deserializeAws_json1_1ManagedRuleGroupStatement(output.ManagedRuleGroupStatement, context)
5653
5403
  : undefined,
5654
- NotStatement: output.NotStatement !== undefined && output.NotStatement !== null
5655
- ? deserializeAws_json1_1NotStatement(output.NotStatement, context)
5656
- : undefined,
5657
- OrStatement: output.OrStatement !== undefined && output.OrStatement !== null
5658
- ? deserializeAws_json1_1OrStatement(output.OrStatement, context)
5659
- : undefined,
5660
- RateBasedStatement: output.RateBasedStatement !== undefined && output.RateBasedStatement !== null
5404
+ NotStatement: output.NotStatement != null ? deserializeAws_json1_1NotStatement(output.NotStatement, context) : undefined,
5405
+ OrStatement: output.OrStatement != null ? deserializeAws_json1_1OrStatement(output.OrStatement, context) : undefined,
5406
+ RateBasedStatement: output.RateBasedStatement != null
5661
5407
  ? deserializeAws_json1_1RateBasedStatement(output.RateBasedStatement, context)
5662
5408
  : undefined,
5663
- RegexMatchStatement: output.RegexMatchStatement !== undefined && output.RegexMatchStatement !== null
5409
+ RegexMatchStatement: output.RegexMatchStatement != null
5664
5410
  ? deserializeAws_json1_1RegexMatchStatement(output.RegexMatchStatement, context)
5665
5411
  : undefined,
5666
- RegexPatternSetReferenceStatement: output.RegexPatternSetReferenceStatement !== undefined && output.RegexPatternSetReferenceStatement !== null
5412
+ RegexPatternSetReferenceStatement: output.RegexPatternSetReferenceStatement != null
5667
5413
  ? deserializeAws_json1_1RegexPatternSetReferenceStatement(output.RegexPatternSetReferenceStatement, context)
5668
5414
  : undefined,
5669
- RuleGroupReferenceStatement: output.RuleGroupReferenceStatement !== undefined && output.RuleGroupReferenceStatement !== null
5415
+ RuleGroupReferenceStatement: output.RuleGroupReferenceStatement != null
5670
5416
  ? deserializeAws_json1_1RuleGroupReferenceStatement(output.RuleGroupReferenceStatement, context)
5671
5417
  : undefined,
5672
- SizeConstraintStatement: output.SizeConstraintStatement !== undefined && output.SizeConstraintStatement !== null
5418
+ SizeConstraintStatement: output.SizeConstraintStatement != null
5673
5419
  ? deserializeAws_json1_1SizeConstraintStatement(output.SizeConstraintStatement, context)
5674
5420
  : undefined,
5675
- SqliMatchStatement: output.SqliMatchStatement !== undefined && output.SqliMatchStatement !== null
5421
+ SqliMatchStatement: output.SqliMatchStatement != null
5676
5422
  ? deserializeAws_json1_1SqliMatchStatement(output.SqliMatchStatement, context)
5677
5423
  : undefined,
5678
- XssMatchStatement: output.XssMatchStatement !== undefined && output.XssMatchStatement !== null
5424
+ XssMatchStatement: output.XssMatchStatement != null
5679
5425
  ? deserializeAws_json1_1XssMatchStatement(output.XssMatchStatement, context)
5680
5426
  : undefined,
5681
5427
  };
@@ -5700,9 +5446,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
5700
5446
  const deserializeAws_json1_1TagInfoForResource = (output, context) => {
5701
5447
  return {
5702
5448
  ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
5703
- TagList: output.TagList !== undefined && output.TagList !== null
5704
- ? deserializeAws_json1_1TagList(output.TagList, context)
5705
- : undefined,
5449
+ TagList: output.TagList != null ? deserializeAws_json1_1TagList(output.TagList, context) : undefined,
5706
5450
  };
5707
5451
  };
5708
5452
  const deserializeAws_json1_1TagList = (output, context) => {
@@ -5738,12 +5482,8 @@ const deserializeAws_json1_1TextTransformations = (output, context) => {
5738
5482
  };
5739
5483
  const deserializeAws_json1_1TimeWindow = (output, context) => {
5740
5484
  return {
5741
- EndTime: output.EndTime !== undefined && output.EndTime !== null
5742
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
5743
- : undefined,
5744
- StartTime: output.StartTime !== undefined && output.StartTime !== null
5745
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
5746
- : undefined,
5485
+ EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
5486
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
5747
5487
  };
5748
5488
  };
5749
5489
  const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
@@ -5757,7 +5497,7 @@ const deserializeAws_json1_1UpdateIPSetResponse = (output, context) => {
5757
5497
  const deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateResponse = (output, context) => {
5758
5498
  return {
5759
5499
  ExpiringVersion: (0, smithy_client_1.expectString)(output.ExpiringVersion),
5760
- ExpiryTimestamp: output.ExpiryTimestamp !== undefined && output.ExpiryTimestamp !== null
5500
+ ExpiryTimestamp: output.ExpiryTimestamp != null
5761
5501
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpiryTimestamp)))
5762
5502
  : undefined,
5763
5503
  NextLockToken: (0, smithy_client_1.expectString)(output.NextLockToken),
@@ -5890,30 +5630,24 @@ const deserializeAws_json1_1WebACL = (output, context) => {
5890
5630
  return {
5891
5631
  ARN: (0, smithy_client_1.expectString)(output.ARN),
5892
5632
  Capacity: (0, smithy_client_1.expectLong)(output.Capacity),
5893
- CaptchaConfig: output.CaptchaConfig !== undefined && output.CaptchaConfig !== null
5894
- ? deserializeAws_json1_1CaptchaConfig(output.CaptchaConfig, context)
5895
- : undefined,
5896
- CustomResponseBodies: output.CustomResponseBodies !== undefined && output.CustomResponseBodies !== null
5633
+ CaptchaConfig: output.CaptchaConfig != null ? deserializeAws_json1_1CaptchaConfig(output.CaptchaConfig, context) : undefined,
5634
+ CustomResponseBodies: output.CustomResponseBodies != null
5897
5635
  ? deserializeAws_json1_1CustomResponseBodies(output.CustomResponseBodies, context)
5898
5636
  : undefined,
5899
- DefaultAction: output.DefaultAction !== undefined && output.DefaultAction !== null
5900
- ? deserializeAws_json1_1DefaultAction(output.DefaultAction, context)
5901
- : undefined,
5637
+ DefaultAction: output.DefaultAction != null ? deserializeAws_json1_1DefaultAction(output.DefaultAction, context) : undefined,
5902
5638
  Description: (0, smithy_client_1.expectString)(output.Description),
5903
5639
  Id: (0, smithy_client_1.expectString)(output.Id),
5904
5640
  LabelNamespace: (0, smithy_client_1.expectString)(output.LabelNamespace),
5905
5641
  ManagedByFirewallManager: (0, smithy_client_1.expectBoolean)(output.ManagedByFirewallManager),
5906
5642
  Name: (0, smithy_client_1.expectString)(output.Name),
5907
- PostProcessFirewallManagerRuleGroups: output.PostProcessFirewallManagerRuleGroups !== undefined && output.PostProcessFirewallManagerRuleGroups !== null
5643
+ PostProcessFirewallManagerRuleGroups: output.PostProcessFirewallManagerRuleGroups != null
5908
5644
  ? deserializeAws_json1_1FirewallManagerRuleGroups(output.PostProcessFirewallManagerRuleGroups, context)
5909
5645
  : undefined,
5910
- PreProcessFirewallManagerRuleGroups: output.PreProcessFirewallManagerRuleGroups !== undefined && output.PreProcessFirewallManagerRuleGroups !== null
5646
+ PreProcessFirewallManagerRuleGroups: output.PreProcessFirewallManagerRuleGroups != null
5911
5647
  ? deserializeAws_json1_1FirewallManagerRuleGroups(output.PreProcessFirewallManagerRuleGroups, context)
5912
5648
  : undefined,
5913
- Rules: output.Rules !== undefined && output.Rules !== null
5914
- ? deserializeAws_json1_1Rules(output.Rules, context)
5915
- : undefined,
5916
- VisibilityConfig: output.VisibilityConfig !== undefined && output.VisibilityConfig !== null
5649
+ Rules: output.Rules != null ? deserializeAws_json1_1Rules(output.Rules, context) : undefined,
5650
+ VisibilityConfig: output.VisibilityConfig != null
5917
5651
  ? deserializeAws_json1_1VisibilityConfig(output.VisibilityConfig, context)
5918
5652
  : undefined,
5919
5653
  };
@@ -5940,10 +5674,8 @@ const deserializeAws_json1_1WebACLSummary = (output, context) => {
5940
5674
  };
5941
5675
  const deserializeAws_json1_1XssMatchStatement = (output, context) => {
5942
5676
  return {
5943
- FieldToMatch: output.FieldToMatch !== undefined && output.FieldToMatch !== null
5944
- ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context)
5945
- : undefined,
5946
- TextTransformations: output.TextTransformations !== undefined && output.TextTransformations !== null
5677
+ FieldToMatch: output.FieldToMatch != null ? deserializeAws_json1_1FieldToMatch(output.FieldToMatch, context) : undefined,
5678
+ TextTransformations: output.TextTransformations != null
5947
5679
  ? deserializeAws_json1_1TextTransformations(output.TextTransformations, context)
5948
5680
  : undefined,
5949
5681
  };
@@ -6010,5 +5742,4 @@ const loadRestJsonErrorCode = (output, data) => {
6010
5742
  if (data["__type"] !== undefined) {
6011
5743
  return sanitizeErrorCode(data["__type"]);
6012
5744
  }
6013
- return "";
6014
5745
  };