@aws-sdk/client-wafv2 3.141.0 → 3.145.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +5 -5
- package/dist-cjs/models/models_0.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +243 -441
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +409 -462
- package/dist-types/WAFV2.d.ts +9 -9
- package/dist-types/WAFV2Client.d.ts +5 -5
- package/dist-types/commands/AssociateWebACLCommand.d.ts +1 -1
- package/dist-types/commands/CreateWebACLCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateWebACLCommand.d.ts +1 -1
- package/dist-types/commands/UpdateWebACLCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +72 -38
- package/package.json +11 -6
|
@@ -505,7 +505,6 @@ const deserializeAws_json1_1AssociateWebACLCommandError = async (output, context
|
|
|
505
505
|
...output,
|
|
506
506
|
body: await parseBody(output.body, context),
|
|
507
507
|
};
|
|
508
|
-
let response;
|
|
509
508
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
510
509
|
switch (errorCode) {
|
|
511
510
|
case "WAFInternalErrorException":
|
|
@@ -525,14 +524,12 @@ const deserializeAws_json1_1AssociateWebACLCommandError = async (output, context
|
|
|
525
524
|
throw await deserializeAws_json1_1WAFUnavailableEntityExceptionResponse(parsedOutput, context);
|
|
526
525
|
default:
|
|
527
526
|
const parsedBody = parsedOutput.body;
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
$metadata,
|
|
527
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
528
|
+
output,
|
|
529
|
+
parsedBody,
|
|
530
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
531
|
+
errorCode,
|
|
534
532
|
});
|
|
535
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
536
533
|
}
|
|
537
534
|
};
|
|
538
535
|
const deserializeAws_json1_1CheckCapacityCommand = async (output, context) => {
|
|
@@ -554,7 +551,6 @@ const deserializeAws_json1_1CheckCapacityCommandError = async (output, context)
|
|
|
554
551
|
...output,
|
|
555
552
|
body: await parseBody(output.body, context),
|
|
556
553
|
};
|
|
557
|
-
let response;
|
|
558
554
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
559
555
|
switch (errorCode) {
|
|
560
556
|
case "WAFExpiredManagedRuleGroupVersionException":
|
|
@@ -563,6 +559,9 @@ const deserializeAws_json1_1CheckCapacityCommandError = async (output, context)
|
|
|
563
559
|
case "WAFInternalErrorException":
|
|
564
560
|
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
565
561
|
throw await deserializeAws_json1_1WAFInternalErrorExceptionResponse(parsedOutput, context);
|
|
562
|
+
case "WAFInvalidOperationException":
|
|
563
|
+
case "com.amazonaws.wafv2#WAFInvalidOperationException":
|
|
564
|
+
throw await deserializeAws_json1_1WAFInvalidOperationExceptionResponse(parsedOutput, context);
|
|
566
565
|
case "WAFInvalidParameterException":
|
|
567
566
|
case "com.amazonaws.wafv2#WAFInvalidParameterException":
|
|
568
567
|
throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
|
|
@@ -583,14 +582,12 @@ const deserializeAws_json1_1CheckCapacityCommandError = async (output, context)
|
|
|
583
582
|
throw await deserializeAws_json1_1WAFUnavailableEntityExceptionResponse(parsedOutput, context);
|
|
584
583
|
default:
|
|
585
584
|
const parsedBody = parsedOutput.body;
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
$metadata,
|
|
585
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
586
|
+
output,
|
|
587
|
+
parsedBody,
|
|
588
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
589
|
+
errorCode,
|
|
592
590
|
});
|
|
593
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
594
591
|
}
|
|
595
592
|
};
|
|
596
593
|
const deserializeAws_json1_1CreateIPSetCommand = async (output, context) => {
|
|
@@ -612,7 +609,6 @@ const deserializeAws_json1_1CreateIPSetCommandError = async (output, context) =>
|
|
|
612
609
|
...output,
|
|
613
610
|
body: await parseBody(output.body, context),
|
|
614
611
|
};
|
|
615
|
-
let response;
|
|
616
612
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
617
613
|
switch (errorCode) {
|
|
618
614
|
case "WAFDuplicateItemException":
|
|
@@ -641,14 +637,12 @@ const deserializeAws_json1_1CreateIPSetCommandError = async (output, context) =>
|
|
|
641
637
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
642
638
|
default:
|
|
643
639
|
const parsedBody = parsedOutput.body;
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
$metadata,
|
|
640
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
641
|
+
output,
|
|
642
|
+
parsedBody,
|
|
643
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
644
|
+
errorCode,
|
|
650
645
|
});
|
|
651
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
652
646
|
}
|
|
653
647
|
};
|
|
654
648
|
const deserializeAws_json1_1CreateRegexPatternSetCommand = async (output, context) => {
|
|
@@ -670,7 +664,6 @@ const deserializeAws_json1_1CreateRegexPatternSetCommandError = async (output, c
|
|
|
670
664
|
...output,
|
|
671
665
|
body: await parseBody(output.body, context),
|
|
672
666
|
};
|
|
673
|
-
let response;
|
|
674
667
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
675
668
|
switch (errorCode) {
|
|
676
669
|
case "WAFDuplicateItemException":
|
|
@@ -699,14 +692,12 @@ const deserializeAws_json1_1CreateRegexPatternSetCommandError = async (output, c
|
|
|
699
692
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
700
693
|
default:
|
|
701
694
|
const parsedBody = parsedOutput.body;
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
$metadata,
|
|
695
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
696
|
+
output,
|
|
697
|
+
parsedBody,
|
|
698
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
699
|
+
errorCode,
|
|
708
700
|
});
|
|
709
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
710
701
|
}
|
|
711
702
|
};
|
|
712
703
|
const deserializeAws_json1_1CreateRuleGroupCommand = async (output, context) => {
|
|
@@ -728,7 +719,6 @@ const deserializeAws_json1_1CreateRuleGroupCommandError = async (output, context
|
|
|
728
719
|
...output,
|
|
729
720
|
body: await parseBody(output.body, context),
|
|
730
721
|
};
|
|
731
|
-
let response;
|
|
732
722
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
733
723
|
switch (errorCode) {
|
|
734
724
|
case "WAFDuplicateItemException":
|
|
@@ -766,14 +756,12 @@ const deserializeAws_json1_1CreateRuleGroupCommandError = async (output, context
|
|
|
766
756
|
throw await deserializeAws_json1_1WAFUnavailableEntityExceptionResponse(parsedOutput, context);
|
|
767
757
|
default:
|
|
768
758
|
const parsedBody = parsedOutput.body;
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
$metadata,
|
|
759
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
760
|
+
output,
|
|
761
|
+
parsedBody,
|
|
762
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
763
|
+
errorCode,
|
|
775
764
|
});
|
|
776
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
777
765
|
}
|
|
778
766
|
};
|
|
779
767
|
const deserializeAws_json1_1CreateWebACLCommand = async (output, context) => {
|
|
@@ -795,7 +783,6 @@ const deserializeAws_json1_1CreateWebACLCommandError = async (output, context) =
|
|
|
795
783
|
...output,
|
|
796
784
|
body: await parseBody(output.body, context),
|
|
797
785
|
};
|
|
798
|
-
let response;
|
|
799
786
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
800
787
|
switch (errorCode) {
|
|
801
788
|
case "WAFConfigurationWarningException":
|
|
@@ -839,14 +826,12 @@ const deserializeAws_json1_1CreateWebACLCommandError = async (output, context) =
|
|
|
839
826
|
throw await deserializeAws_json1_1WAFUnavailableEntityExceptionResponse(parsedOutput, context);
|
|
840
827
|
default:
|
|
841
828
|
const parsedBody = parsedOutput.body;
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
$metadata,
|
|
829
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
830
|
+
output,
|
|
831
|
+
parsedBody,
|
|
832
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
833
|
+
errorCode,
|
|
848
834
|
});
|
|
849
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
850
835
|
}
|
|
851
836
|
};
|
|
852
837
|
const deserializeAws_json1_1DeleteFirewallManagerRuleGroupsCommand = async (output, context) => {
|
|
@@ -868,7 +853,6 @@ const deserializeAws_json1_1DeleteFirewallManagerRuleGroupsCommandError = async
|
|
|
868
853
|
...output,
|
|
869
854
|
body: await parseBody(output.body, context),
|
|
870
855
|
};
|
|
871
|
-
let response;
|
|
872
856
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
873
857
|
switch (errorCode) {
|
|
874
858
|
case "WAFInternalErrorException":
|
|
@@ -888,14 +872,12 @@ const deserializeAws_json1_1DeleteFirewallManagerRuleGroupsCommandError = async
|
|
|
888
872
|
throw await deserializeAws_json1_1WAFOptimisticLockExceptionResponse(parsedOutput, context);
|
|
889
873
|
default:
|
|
890
874
|
const parsedBody = parsedOutput.body;
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
$metadata,
|
|
875
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
876
|
+
output,
|
|
877
|
+
parsedBody,
|
|
878
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
879
|
+
errorCode,
|
|
897
880
|
});
|
|
898
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
899
881
|
}
|
|
900
882
|
};
|
|
901
883
|
const deserializeAws_json1_1DeleteIPSetCommand = async (output, context) => {
|
|
@@ -917,7 +899,6 @@ const deserializeAws_json1_1DeleteIPSetCommandError = async (output, context) =>
|
|
|
917
899
|
...output,
|
|
918
900
|
body: await parseBody(output.body, context),
|
|
919
901
|
};
|
|
920
|
-
let response;
|
|
921
902
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
922
903
|
switch (errorCode) {
|
|
923
904
|
case "WAFAssociatedItemException":
|
|
@@ -946,14 +927,12 @@ const deserializeAws_json1_1DeleteIPSetCommandError = async (output, context) =>
|
|
|
946
927
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
947
928
|
default:
|
|
948
929
|
const parsedBody = parsedOutput.body;
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
$metadata,
|
|
930
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
931
|
+
output,
|
|
932
|
+
parsedBody,
|
|
933
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
934
|
+
errorCode,
|
|
955
935
|
});
|
|
956
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
957
936
|
}
|
|
958
937
|
};
|
|
959
938
|
const deserializeAws_json1_1DeleteLoggingConfigurationCommand = async (output, context) => {
|
|
@@ -975,7 +954,6 @@ const deserializeAws_json1_1DeleteLoggingConfigurationCommandError = async (outp
|
|
|
975
954
|
...output,
|
|
976
955
|
body: await parseBody(output.body, context),
|
|
977
956
|
};
|
|
978
|
-
let response;
|
|
979
957
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
980
958
|
switch (errorCode) {
|
|
981
959
|
case "WAFInternalErrorException":
|
|
@@ -995,14 +973,12 @@ const deserializeAws_json1_1DeleteLoggingConfigurationCommandError = async (outp
|
|
|
995
973
|
throw await deserializeAws_json1_1WAFOptimisticLockExceptionResponse(parsedOutput, context);
|
|
996
974
|
default:
|
|
997
975
|
const parsedBody = parsedOutput.body;
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
$metadata,
|
|
976
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
977
|
+
output,
|
|
978
|
+
parsedBody,
|
|
979
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
980
|
+
errorCode,
|
|
1004
981
|
});
|
|
1005
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1006
982
|
}
|
|
1007
983
|
};
|
|
1008
984
|
const deserializeAws_json1_1DeletePermissionPolicyCommand = async (output, context) => {
|
|
@@ -1024,7 +1000,6 @@ const deserializeAws_json1_1DeletePermissionPolicyCommandError = async (output,
|
|
|
1024
1000
|
...output,
|
|
1025
1001
|
body: await parseBody(output.body, context),
|
|
1026
1002
|
};
|
|
1027
|
-
let response;
|
|
1028
1003
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1029
1004
|
switch (errorCode) {
|
|
1030
1005
|
case "WAFInternalErrorException":
|
|
@@ -1038,14 +1013,12 @@ const deserializeAws_json1_1DeletePermissionPolicyCommandError = async (output,
|
|
|
1038
1013
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1039
1014
|
default:
|
|
1040
1015
|
const parsedBody = parsedOutput.body;
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
$metadata,
|
|
1016
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1017
|
+
output,
|
|
1018
|
+
parsedBody,
|
|
1019
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1020
|
+
errorCode,
|
|
1047
1021
|
});
|
|
1048
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1049
1022
|
}
|
|
1050
1023
|
};
|
|
1051
1024
|
const deserializeAws_json1_1DeleteRegexPatternSetCommand = async (output, context) => {
|
|
@@ -1067,7 +1040,6 @@ const deserializeAws_json1_1DeleteRegexPatternSetCommandError = async (output, c
|
|
|
1067
1040
|
...output,
|
|
1068
1041
|
body: await parseBody(output.body, context),
|
|
1069
1042
|
};
|
|
1070
|
-
let response;
|
|
1071
1043
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
1044
|
switch (errorCode) {
|
|
1073
1045
|
case "WAFAssociatedItemException":
|
|
@@ -1096,14 +1068,12 @@ const deserializeAws_json1_1DeleteRegexPatternSetCommandError = async (output, c
|
|
|
1096
1068
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
1097
1069
|
default:
|
|
1098
1070
|
const parsedBody = parsedOutput.body;
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
$metadata,
|
|
1071
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1072
|
+
output,
|
|
1073
|
+
parsedBody,
|
|
1074
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1075
|
+
errorCode,
|
|
1105
1076
|
});
|
|
1106
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1107
1077
|
}
|
|
1108
1078
|
};
|
|
1109
1079
|
const deserializeAws_json1_1DeleteRuleGroupCommand = async (output, context) => {
|
|
@@ -1125,7 +1095,6 @@ const deserializeAws_json1_1DeleteRuleGroupCommandError = async (output, context
|
|
|
1125
1095
|
...output,
|
|
1126
1096
|
body: await parseBody(output.body, context),
|
|
1127
1097
|
};
|
|
1128
|
-
let response;
|
|
1129
1098
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
1099
|
switch (errorCode) {
|
|
1131
1100
|
case "WAFAssociatedItemException":
|
|
@@ -1154,14 +1123,12 @@ const deserializeAws_json1_1DeleteRuleGroupCommandError = async (output, context
|
|
|
1154
1123
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
1155
1124
|
default:
|
|
1156
1125
|
const parsedBody = parsedOutput.body;
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
$metadata,
|
|
1126
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1127
|
+
output,
|
|
1128
|
+
parsedBody,
|
|
1129
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1130
|
+
errorCode,
|
|
1163
1131
|
});
|
|
1164
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1165
1132
|
}
|
|
1166
1133
|
};
|
|
1167
1134
|
const deserializeAws_json1_1DeleteWebACLCommand = async (output, context) => {
|
|
@@ -1183,7 +1150,6 @@ const deserializeAws_json1_1DeleteWebACLCommandError = async (output, context) =
|
|
|
1183
1150
|
...output,
|
|
1184
1151
|
body: await parseBody(output.body, context),
|
|
1185
1152
|
};
|
|
1186
|
-
let response;
|
|
1187
1153
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
1154
|
switch (errorCode) {
|
|
1189
1155
|
case "WAFAssociatedItemException":
|
|
@@ -1212,14 +1178,12 @@ const deserializeAws_json1_1DeleteWebACLCommandError = async (output, context) =
|
|
|
1212
1178
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
1213
1179
|
default:
|
|
1214
1180
|
const parsedBody = parsedOutput.body;
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
$metadata,
|
|
1181
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1182
|
+
output,
|
|
1183
|
+
parsedBody,
|
|
1184
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1185
|
+
errorCode,
|
|
1221
1186
|
});
|
|
1222
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1223
1187
|
}
|
|
1224
1188
|
};
|
|
1225
1189
|
const deserializeAws_json1_1DescribeManagedRuleGroupCommand = async (output, context) => {
|
|
@@ -1241,7 +1205,6 @@ const deserializeAws_json1_1DescribeManagedRuleGroupCommandError = async (output
|
|
|
1241
1205
|
...output,
|
|
1242
1206
|
body: await parseBody(output.body, context),
|
|
1243
1207
|
};
|
|
1244
|
-
let response;
|
|
1245
1208
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
1209
|
switch (errorCode) {
|
|
1247
1210
|
case "WAFExpiredManagedRuleGroupVersionException":
|
|
@@ -1264,14 +1227,12 @@ const deserializeAws_json1_1DescribeManagedRuleGroupCommandError = async (output
|
|
|
1264
1227
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1265
1228
|
default:
|
|
1266
1229
|
const parsedBody = parsedOutput.body;
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
$metadata,
|
|
1230
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1231
|
+
output,
|
|
1232
|
+
parsedBody,
|
|
1233
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1234
|
+
errorCode,
|
|
1273
1235
|
});
|
|
1274
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1275
1236
|
}
|
|
1276
1237
|
};
|
|
1277
1238
|
const deserializeAws_json1_1DisassociateWebACLCommand = async (output, context) => {
|
|
@@ -1293,7 +1254,6 @@ const deserializeAws_json1_1DisassociateWebACLCommandError = async (output, cont
|
|
|
1293
1254
|
...output,
|
|
1294
1255
|
body: await parseBody(output.body, context),
|
|
1295
1256
|
};
|
|
1296
|
-
let response;
|
|
1297
1257
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1298
1258
|
switch (errorCode) {
|
|
1299
1259
|
case "WAFInternalErrorException":
|
|
@@ -1310,14 +1270,12 @@ const deserializeAws_json1_1DisassociateWebACLCommandError = async (output, cont
|
|
|
1310
1270
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1311
1271
|
default:
|
|
1312
1272
|
const parsedBody = parsedOutput.body;
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
$metadata,
|
|
1273
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1274
|
+
output,
|
|
1275
|
+
parsedBody,
|
|
1276
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1277
|
+
errorCode,
|
|
1319
1278
|
});
|
|
1320
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1321
1279
|
}
|
|
1322
1280
|
};
|
|
1323
1281
|
const deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommand = async (output, context) => {
|
|
@@ -1339,7 +1297,6 @@ const deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommandError = async (out
|
|
|
1339
1297
|
...output,
|
|
1340
1298
|
body: await parseBody(output.body, context),
|
|
1341
1299
|
};
|
|
1342
|
-
let response;
|
|
1343
1300
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
1301
|
switch (errorCode) {
|
|
1345
1302
|
case "WAFInternalErrorException":
|
|
@@ -1356,14 +1313,12 @@ const deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommandError = async (out
|
|
|
1356
1313
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1357
1314
|
default:
|
|
1358
1315
|
const parsedBody = parsedOutput.body;
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
$metadata,
|
|
1316
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1317
|
+
output,
|
|
1318
|
+
parsedBody,
|
|
1319
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1320
|
+
errorCode,
|
|
1365
1321
|
});
|
|
1366
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1367
1322
|
}
|
|
1368
1323
|
};
|
|
1369
1324
|
const deserializeAws_json1_1GetIPSetCommand = async (output, context) => {
|
|
@@ -1385,7 +1340,6 @@ const deserializeAws_json1_1GetIPSetCommandError = async (output, context) => {
|
|
|
1385
1340
|
...output,
|
|
1386
1341
|
body: await parseBody(output.body, context),
|
|
1387
1342
|
};
|
|
1388
|
-
let response;
|
|
1389
1343
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1390
1344
|
switch (errorCode) {
|
|
1391
1345
|
case "WAFInternalErrorException":
|
|
@@ -1402,14 +1356,12 @@ const deserializeAws_json1_1GetIPSetCommandError = async (output, context) => {
|
|
|
1402
1356
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1403
1357
|
default:
|
|
1404
1358
|
const parsedBody = parsedOutput.body;
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
$metadata,
|
|
1359
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1360
|
+
output,
|
|
1361
|
+
parsedBody,
|
|
1362
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1363
|
+
errorCode,
|
|
1411
1364
|
});
|
|
1412
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1413
1365
|
}
|
|
1414
1366
|
};
|
|
1415
1367
|
const deserializeAws_json1_1GetLoggingConfigurationCommand = async (output, context) => {
|
|
@@ -1431,7 +1383,6 @@ const deserializeAws_json1_1GetLoggingConfigurationCommandError = async (output,
|
|
|
1431
1383
|
...output,
|
|
1432
1384
|
body: await parseBody(output.body, context),
|
|
1433
1385
|
};
|
|
1434
|
-
let response;
|
|
1435
1386
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1436
1387
|
switch (errorCode) {
|
|
1437
1388
|
case "WAFInternalErrorException":
|
|
@@ -1448,14 +1399,12 @@ const deserializeAws_json1_1GetLoggingConfigurationCommandError = async (output,
|
|
|
1448
1399
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1449
1400
|
default:
|
|
1450
1401
|
const parsedBody = parsedOutput.body;
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
$metadata,
|
|
1402
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1403
|
+
output,
|
|
1404
|
+
parsedBody,
|
|
1405
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1406
|
+
errorCode,
|
|
1457
1407
|
});
|
|
1458
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1459
1408
|
}
|
|
1460
1409
|
};
|
|
1461
1410
|
const deserializeAws_json1_1GetManagedRuleSetCommand = async (output, context) => {
|
|
@@ -1477,7 +1426,6 @@ const deserializeAws_json1_1GetManagedRuleSetCommandError = async (output, conte
|
|
|
1477
1426
|
...output,
|
|
1478
1427
|
body: await parseBody(output.body, context),
|
|
1479
1428
|
};
|
|
1480
|
-
let response;
|
|
1481
1429
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1482
1430
|
switch (errorCode) {
|
|
1483
1431
|
case "WAFInternalErrorException":
|
|
@@ -1494,14 +1442,12 @@ const deserializeAws_json1_1GetManagedRuleSetCommandError = async (output, conte
|
|
|
1494
1442
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1495
1443
|
default:
|
|
1496
1444
|
const parsedBody = parsedOutput.body;
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
$metadata,
|
|
1445
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1446
|
+
output,
|
|
1447
|
+
parsedBody,
|
|
1448
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1449
|
+
errorCode,
|
|
1503
1450
|
});
|
|
1504
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1505
1451
|
}
|
|
1506
1452
|
};
|
|
1507
1453
|
const deserializeAws_json1_1GetMobileSdkReleaseCommand = async (output, context) => {
|
|
@@ -1523,7 +1469,6 @@ const deserializeAws_json1_1GetMobileSdkReleaseCommandError = async (output, con
|
|
|
1523
1469
|
...output,
|
|
1524
1470
|
body: await parseBody(output.body, context),
|
|
1525
1471
|
};
|
|
1526
|
-
let response;
|
|
1527
1472
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1528
1473
|
switch (errorCode) {
|
|
1529
1474
|
case "WAFInternalErrorException":
|
|
@@ -1540,14 +1485,12 @@ const deserializeAws_json1_1GetMobileSdkReleaseCommandError = async (output, con
|
|
|
1540
1485
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1541
1486
|
default:
|
|
1542
1487
|
const parsedBody = parsedOutput.body;
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
$metadata,
|
|
1488
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1489
|
+
output,
|
|
1490
|
+
parsedBody,
|
|
1491
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1492
|
+
errorCode,
|
|
1549
1493
|
});
|
|
1550
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1551
1494
|
}
|
|
1552
1495
|
};
|
|
1553
1496
|
const deserializeAws_json1_1GetPermissionPolicyCommand = async (output, context) => {
|
|
@@ -1569,7 +1512,6 @@ const deserializeAws_json1_1GetPermissionPolicyCommandError = async (output, con
|
|
|
1569
1512
|
...output,
|
|
1570
1513
|
body: await parseBody(output.body, context),
|
|
1571
1514
|
};
|
|
1572
|
-
let response;
|
|
1573
1515
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1574
1516
|
switch (errorCode) {
|
|
1575
1517
|
case "WAFInternalErrorException":
|
|
@@ -1583,14 +1525,12 @@ const deserializeAws_json1_1GetPermissionPolicyCommandError = async (output, con
|
|
|
1583
1525
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1584
1526
|
default:
|
|
1585
1527
|
const parsedBody = parsedOutput.body;
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
$metadata,
|
|
1528
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1529
|
+
output,
|
|
1530
|
+
parsedBody,
|
|
1531
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1532
|
+
errorCode,
|
|
1592
1533
|
});
|
|
1593
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1594
1534
|
}
|
|
1595
1535
|
};
|
|
1596
1536
|
const deserializeAws_json1_1GetRateBasedStatementManagedKeysCommand = async (output, context) => {
|
|
@@ -1612,7 +1552,6 @@ const deserializeAws_json1_1GetRateBasedStatementManagedKeysCommandError = async
|
|
|
1612
1552
|
...output,
|
|
1613
1553
|
body: await parseBody(output.body, context),
|
|
1614
1554
|
};
|
|
1615
|
-
let response;
|
|
1616
1555
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1617
1556
|
switch (errorCode) {
|
|
1618
1557
|
case "WAFInternalErrorException":
|
|
@@ -1629,14 +1568,12 @@ const deserializeAws_json1_1GetRateBasedStatementManagedKeysCommandError = async
|
|
|
1629
1568
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1630
1569
|
default:
|
|
1631
1570
|
const parsedBody = parsedOutput.body;
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
$metadata,
|
|
1571
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1572
|
+
output,
|
|
1573
|
+
parsedBody,
|
|
1574
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1575
|
+
errorCode,
|
|
1638
1576
|
});
|
|
1639
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1640
1577
|
}
|
|
1641
1578
|
};
|
|
1642
1579
|
const deserializeAws_json1_1GetRegexPatternSetCommand = async (output, context) => {
|
|
@@ -1658,7 +1595,6 @@ const deserializeAws_json1_1GetRegexPatternSetCommandError = async (output, cont
|
|
|
1658
1595
|
...output,
|
|
1659
1596
|
body: await parseBody(output.body, context),
|
|
1660
1597
|
};
|
|
1661
|
-
let response;
|
|
1662
1598
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1663
1599
|
switch (errorCode) {
|
|
1664
1600
|
case "WAFInternalErrorException":
|
|
@@ -1675,14 +1611,12 @@ const deserializeAws_json1_1GetRegexPatternSetCommandError = async (output, cont
|
|
|
1675
1611
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1676
1612
|
default:
|
|
1677
1613
|
const parsedBody = parsedOutput.body;
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
$metadata,
|
|
1614
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1615
|
+
output,
|
|
1616
|
+
parsedBody,
|
|
1617
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1618
|
+
errorCode,
|
|
1684
1619
|
});
|
|
1685
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1686
1620
|
}
|
|
1687
1621
|
};
|
|
1688
1622
|
const deserializeAws_json1_1GetRuleGroupCommand = async (output, context) => {
|
|
@@ -1704,7 +1638,6 @@ const deserializeAws_json1_1GetRuleGroupCommandError = async (output, context) =
|
|
|
1704
1638
|
...output,
|
|
1705
1639
|
body: await parseBody(output.body, context),
|
|
1706
1640
|
};
|
|
1707
|
-
let response;
|
|
1708
1641
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1709
1642
|
switch (errorCode) {
|
|
1710
1643
|
case "WAFInternalErrorException":
|
|
@@ -1721,14 +1654,12 @@ const deserializeAws_json1_1GetRuleGroupCommandError = async (output, context) =
|
|
|
1721
1654
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1722
1655
|
default:
|
|
1723
1656
|
const parsedBody = parsedOutput.body;
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
$metadata,
|
|
1657
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1658
|
+
output,
|
|
1659
|
+
parsedBody,
|
|
1660
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1661
|
+
errorCode,
|
|
1730
1662
|
});
|
|
1731
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1732
1663
|
}
|
|
1733
1664
|
};
|
|
1734
1665
|
const deserializeAws_json1_1GetSampledRequestsCommand = async (output, context) => {
|
|
@@ -1750,7 +1681,6 @@ const deserializeAws_json1_1GetSampledRequestsCommandError = async (output, cont
|
|
|
1750
1681
|
...output,
|
|
1751
1682
|
body: await parseBody(output.body, context),
|
|
1752
1683
|
};
|
|
1753
|
-
let response;
|
|
1754
1684
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1755
1685
|
switch (errorCode) {
|
|
1756
1686
|
case "WAFInternalErrorException":
|
|
@@ -1764,14 +1694,12 @@ const deserializeAws_json1_1GetSampledRequestsCommandError = async (output, cont
|
|
|
1764
1694
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1765
1695
|
default:
|
|
1766
1696
|
const parsedBody = parsedOutput.body;
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
$metadata,
|
|
1697
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1698
|
+
output,
|
|
1699
|
+
parsedBody,
|
|
1700
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1701
|
+
errorCode,
|
|
1773
1702
|
});
|
|
1774
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1775
1703
|
}
|
|
1776
1704
|
};
|
|
1777
1705
|
const deserializeAws_json1_1GetWebACLCommand = async (output, context) => {
|
|
@@ -1793,7 +1721,6 @@ const deserializeAws_json1_1GetWebACLCommandError = async (output, context) => {
|
|
|
1793
1721
|
...output,
|
|
1794
1722
|
body: await parseBody(output.body, context),
|
|
1795
1723
|
};
|
|
1796
|
-
let response;
|
|
1797
1724
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1798
1725
|
switch (errorCode) {
|
|
1799
1726
|
case "WAFInternalErrorException":
|
|
@@ -1810,14 +1737,12 @@ const deserializeAws_json1_1GetWebACLCommandError = async (output, context) => {
|
|
|
1810
1737
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1811
1738
|
default:
|
|
1812
1739
|
const parsedBody = parsedOutput.body;
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
$metadata,
|
|
1740
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1741
|
+
output,
|
|
1742
|
+
parsedBody,
|
|
1743
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1744
|
+
errorCode,
|
|
1819
1745
|
});
|
|
1820
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1821
1746
|
}
|
|
1822
1747
|
};
|
|
1823
1748
|
const deserializeAws_json1_1GetWebACLForResourceCommand = async (output, context) => {
|
|
@@ -1839,7 +1764,6 @@ const deserializeAws_json1_1GetWebACLForResourceCommandError = async (output, co
|
|
|
1839
1764
|
...output,
|
|
1840
1765
|
body: await parseBody(output.body, context),
|
|
1841
1766
|
};
|
|
1842
|
-
let response;
|
|
1843
1767
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1844
1768
|
switch (errorCode) {
|
|
1845
1769
|
case "WAFInternalErrorException":
|
|
@@ -1859,14 +1783,12 @@ const deserializeAws_json1_1GetWebACLForResourceCommandError = async (output, co
|
|
|
1859
1783
|
throw await deserializeAws_json1_1WAFUnavailableEntityExceptionResponse(parsedOutput, context);
|
|
1860
1784
|
default:
|
|
1861
1785
|
const parsedBody = parsedOutput.body;
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
$metadata,
|
|
1786
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1787
|
+
output,
|
|
1788
|
+
parsedBody,
|
|
1789
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1790
|
+
errorCode,
|
|
1868
1791
|
});
|
|
1869
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1870
1792
|
}
|
|
1871
1793
|
};
|
|
1872
1794
|
const deserializeAws_json1_1ListAvailableManagedRuleGroupsCommand = async (output, context) => {
|
|
@@ -1888,7 +1810,6 @@ const deserializeAws_json1_1ListAvailableManagedRuleGroupsCommandError = async (
|
|
|
1888
1810
|
...output,
|
|
1889
1811
|
body: await parseBody(output.body, context),
|
|
1890
1812
|
};
|
|
1891
|
-
let response;
|
|
1892
1813
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1893
1814
|
switch (errorCode) {
|
|
1894
1815
|
case "WAFInternalErrorException":
|
|
@@ -1902,14 +1823,12 @@ const deserializeAws_json1_1ListAvailableManagedRuleGroupsCommandError = async (
|
|
|
1902
1823
|
throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
|
|
1903
1824
|
default:
|
|
1904
1825
|
const parsedBody = parsedOutput.body;
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
$metadata,
|
|
1826
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1827
|
+
output,
|
|
1828
|
+
parsedBody,
|
|
1829
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1830
|
+
errorCode,
|
|
1911
1831
|
});
|
|
1912
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1913
1832
|
}
|
|
1914
1833
|
};
|
|
1915
1834
|
const deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommand = async (output, context) => {
|
|
@@ -1931,7 +1850,6 @@ const deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommandError =
|
|
|
1931
1850
|
...output,
|
|
1932
1851
|
body: await parseBody(output.body, context),
|
|
1933
1852
|
};
|
|
1934
|
-
let response;
|
|
1935
1853
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1936
1854
|
switch (errorCode) {
|
|
1937
1855
|
case "WAFInternalErrorException":
|
|
@@ -1948,14 +1866,12 @@ const deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommandError =
|
|
|
1948
1866
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
1949
1867
|
default:
|
|
1950
1868
|
const parsedBody = parsedOutput.body;
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
$metadata,
|
|
1869
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1870
|
+
output,
|
|
1871
|
+
parsedBody,
|
|
1872
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1873
|
+
errorCode,
|
|
1957
1874
|
});
|
|
1958
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1959
1875
|
}
|
|
1960
1876
|
};
|
|
1961
1877
|
const deserializeAws_json1_1ListIPSetsCommand = async (output, context) => {
|
|
@@ -1977,7 +1893,6 @@ const deserializeAws_json1_1ListIPSetsCommandError = async (output, context) =>
|
|
|
1977
1893
|
...output,
|
|
1978
1894
|
body: await parseBody(output.body, context),
|
|
1979
1895
|
};
|
|
1980
|
-
let response;
|
|
1981
1896
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
1897
|
switch (errorCode) {
|
|
1983
1898
|
case "WAFInternalErrorException":
|
|
@@ -1991,14 +1906,12 @@ const deserializeAws_json1_1ListIPSetsCommandError = async (output, context) =>
|
|
|
1991
1906
|
throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
|
|
1992
1907
|
default:
|
|
1993
1908
|
const parsedBody = parsedOutput.body;
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
$metadata,
|
|
1909
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1910
|
+
output,
|
|
1911
|
+
parsedBody,
|
|
1912
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1913
|
+
errorCode,
|
|
2000
1914
|
});
|
|
2001
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2002
1915
|
}
|
|
2003
1916
|
};
|
|
2004
1917
|
const deserializeAws_json1_1ListLoggingConfigurationsCommand = async (output, context) => {
|
|
@@ -2020,7 +1933,6 @@ const deserializeAws_json1_1ListLoggingConfigurationsCommandError = async (outpu
|
|
|
2020
1933
|
...output,
|
|
2021
1934
|
body: await parseBody(output.body, context),
|
|
2022
1935
|
};
|
|
2023
|
-
let response;
|
|
2024
1936
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2025
1937
|
switch (errorCode) {
|
|
2026
1938
|
case "WAFInternalErrorException":
|
|
@@ -2034,14 +1946,12 @@ const deserializeAws_json1_1ListLoggingConfigurationsCommandError = async (outpu
|
|
|
2034
1946
|
throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
|
|
2035
1947
|
default:
|
|
2036
1948
|
const parsedBody = parsedOutput.body;
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
$metadata,
|
|
1949
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1950
|
+
output,
|
|
1951
|
+
parsedBody,
|
|
1952
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1953
|
+
errorCode,
|
|
2043
1954
|
});
|
|
2044
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2045
1955
|
}
|
|
2046
1956
|
};
|
|
2047
1957
|
const deserializeAws_json1_1ListManagedRuleSetsCommand = async (output, context) => {
|
|
@@ -2063,7 +1973,6 @@ const deserializeAws_json1_1ListManagedRuleSetsCommandError = async (output, con
|
|
|
2063
1973
|
...output,
|
|
2064
1974
|
body: await parseBody(output.body, context),
|
|
2065
1975
|
};
|
|
2066
|
-
let response;
|
|
2067
1976
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2068
1977
|
switch (errorCode) {
|
|
2069
1978
|
case "WAFInternalErrorException":
|
|
@@ -2077,14 +1986,12 @@ const deserializeAws_json1_1ListManagedRuleSetsCommandError = async (output, con
|
|
|
2077
1986
|
throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
|
|
2078
1987
|
default:
|
|
2079
1988
|
const parsedBody = parsedOutput.body;
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
$metadata,
|
|
1989
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1990
|
+
output,
|
|
1991
|
+
parsedBody,
|
|
1992
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
1993
|
+
errorCode,
|
|
2086
1994
|
});
|
|
2087
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2088
1995
|
}
|
|
2089
1996
|
};
|
|
2090
1997
|
const deserializeAws_json1_1ListMobileSdkReleasesCommand = async (output, context) => {
|
|
@@ -2106,7 +2013,6 @@ const deserializeAws_json1_1ListMobileSdkReleasesCommandError = async (output, c
|
|
|
2106
2013
|
...output,
|
|
2107
2014
|
body: await parseBody(output.body, context),
|
|
2108
2015
|
};
|
|
2109
|
-
let response;
|
|
2110
2016
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2111
2017
|
switch (errorCode) {
|
|
2112
2018
|
case "WAFInternalErrorException":
|
|
@@ -2120,14 +2026,12 @@ const deserializeAws_json1_1ListMobileSdkReleasesCommandError = async (output, c
|
|
|
2120
2026
|
throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
|
|
2121
2027
|
default:
|
|
2122
2028
|
const parsedBody = parsedOutput.body;
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
$metadata,
|
|
2029
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2030
|
+
output,
|
|
2031
|
+
parsedBody,
|
|
2032
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
2033
|
+
errorCode,
|
|
2129
2034
|
});
|
|
2130
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2131
2035
|
}
|
|
2132
2036
|
};
|
|
2133
2037
|
const deserializeAws_json1_1ListRegexPatternSetsCommand = async (output, context) => {
|
|
@@ -2149,7 +2053,6 @@ const deserializeAws_json1_1ListRegexPatternSetsCommandError = async (output, co
|
|
|
2149
2053
|
...output,
|
|
2150
2054
|
body: await parseBody(output.body, context),
|
|
2151
2055
|
};
|
|
2152
|
-
let response;
|
|
2153
2056
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2154
2057
|
switch (errorCode) {
|
|
2155
2058
|
case "WAFInternalErrorException":
|
|
@@ -2163,14 +2066,12 @@ const deserializeAws_json1_1ListRegexPatternSetsCommandError = async (output, co
|
|
|
2163
2066
|
throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
|
|
2164
2067
|
default:
|
|
2165
2068
|
const parsedBody = parsedOutput.body;
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
$metadata,
|
|
2069
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2070
|
+
output,
|
|
2071
|
+
parsedBody,
|
|
2072
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
2073
|
+
errorCode,
|
|
2172
2074
|
});
|
|
2173
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2174
2075
|
}
|
|
2175
2076
|
};
|
|
2176
2077
|
const deserializeAws_json1_1ListResourcesForWebACLCommand = async (output, context) => {
|
|
@@ -2192,7 +2093,6 @@ const deserializeAws_json1_1ListResourcesForWebACLCommandError = async (output,
|
|
|
2192
2093
|
...output,
|
|
2193
2094
|
body: await parseBody(output.body, context),
|
|
2194
2095
|
};
|
|
2195
|
-
let response;
|
|
2196
2096
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2197
2097
|
switch (errorCode) {
|
|
2198
2098
|
case "WAFInternalErrorException":
|
|
@@ -2209,14 +2109,12 @@ const deserializeAws_json1_1ListResourcesForWebACLCommandError = async (output,
|
|
|
2209
2109
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2210
2110
|
default:
|
|
2211
2111
|
const parsedBody = parsedOutput.body;
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
$metadata,
|
|
2112
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2113
|
+
output,
|
|
2114
|
+
parsedBody,
|
|
2115
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
2116
|
+
errorCode,
|
|
2218
2117
|
});
|
|
2219
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2220
2118
|
}
|
|
2221
2119
|
};
|
|
2222
2120
|
const deserializeAws_json1_1ListRuleGroupsCommand = async (output, context) => {
|
|
@@ -2238,7 +2136,6 @@ const deserializeAws_json1_1ListRuleGroupsCommandError = async (output, context)
|
|
|
2238
2136
|
...output,
|
|
2239
2137
|
body: await parseBody(output.body, context),
|
|
2240
2138
|
};
|
|
2241
|
-
let response;
|
|
2242
2139
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2243
2140
|
switch (errorCode) {
|
|
2244
2141
|
case "WAFInternalErrorException":
|
|
@@ -2252,14 +2149,12 @@ const deserializeAws_json1_1ListRuleGroupsCommandError = async (output, context)
|
|
|
2252
2149
|
throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
|
|
2253
2150
|
default:
|
|
2254
2151
|
const parsedBody = parsedOutput.body;
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
$metadata,
|
|
2152
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2153
|
+
output,
|
|
2154
|
+
parsedBody,
|
|
2155
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
2156
|
+
errorCode,
|
|
2261
2157
|
});
|
|
2262
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2263
2158
|
}
|
|
2264
2159
|
};
|
|
2265
2160
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -2281,7 +2176,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2281
2176
|
...output,
|
|
2282
2177
|
body: await parseBody(output.body, context),
|
|
2283
2178
|
};
|
|
2284
|
-
let response;
|
|
2285
2179
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2286
2180
|
switch (errorCode) {
|
|
2287
2181
|
case "WAFInternalErrorException":
|
|
@@ -2304,14 +2198,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2304
2198
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
2305
2199
|
default:
|
|
2306
2200
|
const parsedBody = parsedOutput.body;
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
$metadata,
|
|
2201
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2202
|
+
output,
|
|
2203
|
+
parsedBody,
|
|
2204
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
2205
|
+
errorCode,
|
|
2313
2206
|
});
|
|
2314
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2315
2207
|
}
|
|
2316
2208
|
};
|
|
2317
2209
|
const deserializeAws_json1_1ListWebACLsCommand = async (output, context) => {
|
|
@@ -2333,7 +2225,6 @@ const deserializeAws_json1_1ListWebACLsCommandError = async (output, context) =>
|
|
|
2333
2225
|
...output,
|
|
2334
2226
|
body: await parseBody(output.body, context),
|
|
2335
2227
|
};
|
|
2336
|
-
let response;
|
|
2337
2228
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2338
2229
|
switch (errorCode) {
|
|
2339
2230
|
case "WAFInternalErrorException":
|
|
@@ -2347,14 +2238,12 @@ const deserializeAws_json1_1ListWebACLsCommandError = async (output, context) =>
|
|
|
2347
2238
|
throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
|
|
2348
2239
|
default:
|
|
2349
2240
|
const parsedBody = parsedOutput.body;
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
$metadata,
|
|
2241
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2242
|
+
output,
|
|
2243
|
+
parsedBody,
|
|
2244
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
2245
|
+
errorCode,
|
|
2356
2246
|
});
|
|
2357
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2358
2247
|
}
|
|
2359
2248
|
};
|
|
2360
2249
|
const deserializeAws_json1_1PutLoggingConfigurationCommand = async (output, context) => {
|
|
@@ -2376,7 +2265,6 @@ const deserializeAws_json1_1PutLoggingConfigurationCommandError = async (output,
|
|
|
2376
2265
|
...output,
|
|
2377
2266
|
body: await parseBody(output.body, context),
|
|
2378
2267
|
};
|
|
2379
|
-
let response;
|
|
2380
2268
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2381
2269
|
switch (errorCode) {
|
|
2382
2270
|
case "WAFInternalErrorException":
|
|
@@ -2405,14 +2293,12 @@ const deserializeAws_json1_1PutLoggingConfigurationCommandError = async (output,
|
|
|
2405
2293
|
throw await deserializeAws_json1_1WAFServiceLinkedRoleErrorExceptionResponse(parsedOutput, context);
|
|
2406
2294
|
default:
|
|
2407
2295
|
const parsedBody = parsedOutput.body;
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
$metadata,
|
|
2296
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2297
|
+
output,
|
|
2298
|
+
parsedBody,
|
|
2299
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
2300
|
+
errorCode,
|
|
2414
2301
|
});
|
|
2415
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2416
2302
|
}
|
|
2417
2303
|
};
|
|
2418
2304
|
const deserializeAws_json1_1PutManagedRuleSetVersionsCommand = async (output, context) => {
|
|
@@ -2434,7 +2320,6 @@ const deserializeAws_json1_1PutManagedRuleSetVersionsCommandError = async (outpu
|
|
|
2434
2320
|
...output,
|
|
2435
2321
|
body: await parseBody(output.body, context),
|
|
2436
2322
|
};
|
|
2437
|
-
let response;
|
|
2438
2323
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2439
2324
|
switch (errorCode) {
|
|
2440
2325
|
case "WAFInternalErrorException":
|
|
@@ -2454,14 +2339,12 @@ const deserializeAws_json1_1PutManagedRuleSetVersionsCommandError = async (outpu
|
|
|
2454
2339
|
throw await deserializeAws_json1_1WAFOptimisticLockExceptionResponse(parsedOutput, context);
|
|
2455
2340
|
default:
|
|
2456
2341
|
const parsedBody = parsedOutput.body;
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
$metadata,
|
|
2342
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2343
|
+
output,
|
|
2344
|
+
parsedBody,
|
|
2345
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
2346
|
+
errorCode,
|
|
2463
2347
|
});
|
|
2464
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2465
2348
|
}
|
|
2466
2349
|
};
|
|
2467
2350
|
const deserializeAws_json1_1PutPermissionPolicyCommand = async (output, context) => {
|
|
@@ -2483,7 +2366,6 @@ const deserializeAws_json1_1PutPermissionPolicyCommandError = async (output, con
|
|
|
2483
2366
|
...output,
|
|
2484
2367
|
body: await parseBody(output.body, context),
|
|
2485
2368
|
};
|
|
2486
|
-
let response;
|
|
2487
2369
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2488
2370
|
switch (errorCode) {
|
|
2489
2371
|
case "WAFInternalErrorException":
|
|
@@ -2500,14 +2382,12 @@ const deserializeAws_json1_1PutPermissionPolicyCommandError = async (output, con
|
|
|
2500
2382
|
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
|
|
2501
2383
|
default:
|
|
2502
2384
|
const parsedBody = parsedOutput.body;
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
$metadata,
|
|
2385
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2386
|
+
output,
|
|
2387
|
+
parsedBody,
|
|
2388
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
2389
|
+
errorCode,
|
|
2509
2390
|
});
|
|
2510
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2511
2391
|
}
|
|
2512
2392
|
};
|
|
2513
2393
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -2529,7 +2409,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2529
2409
|
...output,
|
|
2530
2410
|
body: await parseBody(output.body, context),
|
|
2531
2411
|
};
|
|
2532
|
-
let response;
|
|
2533
2412
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2534
2413
|
switch (errorCode) {
|
|
2535
2414
|
case "WAFInternalErrorException":
|
|
@@ -2555,14 +2434,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2555
2434
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
2556
2435
|
default:
|
|
2557
2436
|
const parsedBody = parsedOutput.body;
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
$metadata,
|
|
2437
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2438
|
+
output,
|
|
2439
|
+
parsedBody,
|
|
2440
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
2441
|
+
errorCode,
|
|
2564
2442
|
});
|
|
2565
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2566
2443
|
}
|
|
2567
2444
|
};
|
|
2568
2445
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -2584,7 +2461,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2584
2461
|
...output,
|
|
2585
2462
|
body: await parseBody(output.body, context),
|
|
2586
2463
|
};
|
|
2587
|
-
let response;
|
|
2588
2464
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2589
2465
|
switch (errorCode) {
|
|
2590
2466
|
case "WAFInternalErrorException":
|
|
@@ -2607,14 +2483,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2607
2483
|
throw await deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context);
|
|
2608
2484
|
default:
|
|
2609
2485
|
const parsedBody = parsedOutput.body;
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
$metadata,
|
|
2486
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2487
|
+
output,
|
|
2488
|
+
parsedBody,
|
|
2489
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
2490
|
+
errorCode,
|
|
2616
2491
|
});
|
|
2617
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2618
2492
|
}
|
|
2619
2493
|
};
|
|
2620
2494
|
const deserializeAws_json1_1UpdateIPSetCommand = async (output, context) => {
|
|
@@ -2636,7 +2510,6 @@ const deserializeAws_json1_1UpdateIPSetCommandError = async (output, context) =>
|
|
|
2636
2510
|
...output,
|
|
2637
2511
|
body: await parseBody(output.body, context),
|
|
2638
2512
|
};
|
|
2639
|
-
let response;
|
|
2640
2513
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2641
2514
|
switch (errorCode) {
|
|
2642
2515
|
case "WAFDuplicateItemException":
|
|
@@ -2662,14 +2535,12 @@ const deserializeAws_json1_1UpdateIPSetCommandError = async (output, context) =>
|
|
|
2662
2535
|
throw await deserializeAws_json1_1WAFOptimisticLockExceptionResponse(parsedOutput, context);
|
|
2663
2536
|
default:
|
|
2664
2537
|
const parsedBody = parsedOutput.body;
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
$metadata,
|
|
2538
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2539
|
+
output,
|
|
2540
|
+
parsedBody,
|
|
2541
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
2542
|
+
errorCode,
|
|
2671
2543
|
});
|
|
2672
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2673
2544
|
}
|
|
2674
2545
|
};
|
|
2675
2546
|
const deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateCommand = async (output, context) => {
|
|
@@ -2691,7 +2562,6 @@ const deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateCommandError =
|
|
|
2691
2562
|
...output,
|
|
2692
2563
|
body: await parseBody(output.body, context),
|
|
2693
2564
|
};
|
|
2694
|
-
let response;
|
|
2695
2565
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2696
2566
|
switch (errorCode) {
|
|
2697
2567
|
case "WAFInternalErrorException":
|
|
@@ -2711,14 +2581,12 @@ const deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateCommandError =
|
|
|
2711
2581
|
throw await deserializeAws_json1_1WAFOptimisticLockExceptionResponse(parsedOutput, context);
|
|
2712
2582
|
default:
|
|
2713
2583
|
const parsedBody = parsedOutput.body;
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
$metadata,
|
|
2584
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2585
|
+
output,
|
|
2586
|
+
parsedBody,
|
|
2587
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
2588
|
+
errorCode,
|
|
2720
2589
|
});
|
|
2721
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2722
2590
|
}
|
|
2723
2591
|
};
|
|
2724
2592
|
const deserializeAws_json1_1UpdateRegexPatternSetCommand = async (output, context) => {
|
|
@@ -2740,7 +2608,6 @@ const deserializeAws_json1_1UpdateRegexPatternSetCommandError = async (output, c
|
|
|
2740
2608
|
...output,
|
|
2741
2609
|
body: await parseBody(output.body, context),
|
|
2742
2610
|
};
|
|
2743
|
-
let response;
|
|
2744
2611
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2745
2612
|
switch (errorCode) {
|
|
2746
2613
|
case "WAFDuplicateItemException":
|
|
@@ -2766,14 +2633,12 @@ const deserializeAws_json1_1UpdateRegexPatternSetCommandError = async (output, c
|
|
|
2766
2633
|
throw await deserializeAws_json1_1WAFOptimisticLockExceptionResponse(parsedOutput, context);
|
|
2767
2634
|
default:
|
|
2768
2635
|
const parsedBody = parsedOutput.body;
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
$metadata,
|
|
2636
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2637
|
+
output,
|
|
2638
|
+
parsedBody,
|
|
2639
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
2640
|
+
errorCode,
|
|
2775
2641
|
});
|
|
2776
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2777
2642
|
}
|
|
2778
2643
|
};
|
|
2779
2644
|
const deserializeAws_json1_1UpdateRuleGroupCommand = async (output, context) => {
|
|
@@ -2795,7 +2660,6 @@ const deserializeAws_json1_1UpdateRuleGroupCommandError = async (output, context
|
|
|
2795
2660
|
...output,
|
|
2796
2661
|
body: await parseBody(output.body, context),
|
|
2797
2662
|
};
|
|
2798
|
-
let response;
|
|
2799
2663
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2800
2664
|
switch (errorCode) {
|
|
2801
2665
|
case "WAFConfigurationWarningException":
|
|
@@ -2830,14 +2694,12 @@ const deserializeAws_json1_1UpdateRuleGroupCommandError = async (output, context
|
|
|
2830
2694
|
throw await deserializeAws_json1_1WAFUnavailableEntityExceptionResponse(parsedOutput, context);
|
|
2831
2695
|
default:
|
|
2832
2696
|
const parsedBody = parsedOutput.body;
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
$metadata,
|
|
2697
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2698
|
+
output,
|
|
2699
|
+
parsedBody,
|
|
2700
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
2701
|
+
errorCode,
|
|
2839
2702
|
});
|
|
2840
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2841
2703
|
}
|
|
2842
2704
|
};
|
|
2843
2705
|
const deserializeAws_json1_1UpdateWebACLCommand = async (output, context) => {
|
|
@@ -2859,7 +2721,6 @@ const deserializeAws_json1_1UpdateWebACLCommandError = async (output, context) =
|
|
|
2859
2721
|
...output,
|
|
2860
2722
|
body: await parseBody(output.body, context),
|
|
2861
2723
|
};
|
|
2862
|
-
let response;
|
|
2863
2724
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2864
2725
|
switch (errorCode) {
|
|
2865
2726
|
case "WAFConfigurationWarningException":
|
|
@@ -2900,14 +2761,12 @@ const deserializeAws_json1_1UpdateWebACLCommandError = async (output, context) =
|
|
|
2900
2761
|
throw await deserializeAws_json1_1WAFUnavailableEntityExceptionResponse(parsedOutput, context);
|
|
2901
2762
|
default:
|
|
2902
2763
|
const parsedBody = parsedOutput.body;
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
$metadata,
|
|
2764
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2765
|
+
output,
|
|
2766
|
+
parsedBody,
|
|
2767
|
+
exceptionCtor: WAFV2ServiceException_1.WAFV2ServiceException,
|
|
2768
|
+
errorCode,
|
|
2909
2769
|
});
|
|
2910
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2911
2770
|
}
|
|
2912
2771
|
};
|
|
2913
2772
|
const deserializeAws_json1_1WAFAssociatedItemExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -3157,9 +3016,6 @@ const serializeAws_json1_1Conditions = (input, context) => {
|
|
|
3157
3016
|
return input
|
|
3158
3017
|
.filter((e) => e != null)
|
|
3159
3018
|
.map((entry) => {
|
|
3160
|
-
if (entry === null) {
|
|
3161
|
-
return null;
|
|
3162
|
-
}
|
|
3163
3019
|
return serializeAws_json1_1Condition(entry, context);
|
|
3164
3020
|
});
|
|
3165
3021
|
};
|
|
@@ -3178,9 +3034,6 @@ const serializeAws_json1_1CookieNames = (input, context) => {
|
|
|
3178
3034
|
return input
|
|
3179
3035
|
.filter((e) => e != null)
|
|
3180
3036
|
.map((entry) => {
|
|
3181
|
-
if (entry === null) {
|
|
3182
|
-
return null;
|
|
3183
|
-
}
|
|
3184
3037
|
return entry;
|
|
3185
3038
|
});
|
|
3186
3039
|
};
|
|
@@ -3204,9 +3057,6 @@ const serializeAws_json1_1CountryCodes = (input, context) => {
|
|
|
3204
3057
|
return input
|
|
3205
3058
|
.filter((e) => e != null)
|
|
3206
3059
|
.map((entry) => {
|
|
3207
|
-
if (entry === null) {
|
|
3208
|
-
return null;
|
|
3209
|
-
}
|
|
3210
3060
|
return entry;
|
|
3211
3061
|
});
|
|
3212
3062
|
};
|
|
@@ -3278,9 +3128,6 @@ const serializeAws_json1_1CustomHTTPHeaders = (input, context) => {
|
|
|
3278
3128
|
return input
|
|
3279
3129
|
.filter((e) => e != null)
|
|
3280
3130
|
.map((entry) => {
|
|
3281
|
-
if (entry === null) {
|
|
3282
|
-
return null;
|
|
3283
|
-
}
|
|
3284
3131
|
return serializeAws_json1_1CustomHTTPHeader(entry, context);
|
|
3285
3132
|
});
|
|
3286
3133
|
};
|
|
@@ -3393,9 +3240,6 @@ const serializeAws_json1_1ExcludedRules = (input, context) => {
|
|
|
3393
3240
|
return input
|
|
3394
3241
|
.filter((e) => e != null)
|
|
3395
3242
|
.map((entry) => {
|
|
3396
|
-
if (entry === null) {
|
|
3397
|
-
return null;
|
|
3398
|
-
}
|
|
3399
3243
|
return serializeAws_json1_1ExcludedRule(entry, context);
|
|
3400
3244
|
});
|
|
3401
3245
|
};
|
|
@@ -3428,9 +3272,6 @@ const serializeAws_json1_1Filters = (input, context) => {
|
|
|
3428
3272
|
return input
|
|
3429
3273
|
.filter((e) => e != null)
|
|
3430
3274
|
.map((entry) => {
|
|
3431
|
-
if (entry === null) {
|
|
3432
|
-
return null;
|
|
3433
|
-
}
|
|
3434
3275
|
return serializeAws_json1_1Filter(entry, context);
|
|
3435
3276
|
});
|
|
3436
3277
|
};
|
|
@@ -3544,9 +3385,6 @@ const serializeAws_json1_1HeaderNames = (input, context) => {
|
|
|
3544
3385
|
return input
|
|
3545
3386
|
.filter((e) => e != null)
|
|
3546
3387
|
.map((entry) => {
|
|
3547
|
-
if (entry === null) {
|
|
3548
|
-
return null;
|
|
3549
|
-
}
|
|
3550
3388
|
return entry;
|
|
3551
3389
|
});
|
|
3552
3390
|
};
|
|
@@ -3568,9 +3406,6 @@ const serializeAws_json1_1IPAddresses = (input, context) => {
|
|
|
3568
3406
|
return input
|
|
3569
3407
|
.filter((e) => e != null)
|
|
3570
3408
|
.map((entry) => {
|
|
3571
|
-
if (entry === null) {
|
|
3572
|
-
return null;
|
|
3573
|
-
}
|
|
3574
3409
|
return entry;
|
|
3575
3410
|
});
|
|
3576
3411
|
};
|
|
@@ -3611,9 +3446,6 @@ const serializeAws_json1_1JsonPointerPaths = (input, context) => {
|
|
|
3611
3446
|
return input
|
|
3612
3447
|
.filter((e) => e != null)
|
|
3613
3448
|
.map((entry) => {
|
|
3614
|
-
if (entry === null) {
|
|
3615
|
-
return null;
|
|
3616
|
-
}
|
|
3617
3449
|
return entry;
|
|
3618
3450
|
});
|
|
3619
3451
|
};
|
|
@@ -3637,9 +3469,6 @@ const serializeAws_json1_1Labels = (input, context) => {
|
|
|
3637
3469
|
return input
|
|
3638
3470
|
.filter((e) => e != null)
|
|
3639
3471
|
.map((entry) => {
|
|
3640
|
-
if (entry === null) {
|
|
3641
|
-
return null;
|
|
3642
|
-
}
|
|
3643
3472
|
return serializeAws_json1_1Label(entry, context);
|
|
3644
3473
|
});
|
|
3645
3474
|
};
|
|
@@ -3725,9 +3554,6 @@ const serializeAws_json1_1LogDestinationConfigs = (input, context) => {
|
|
|
3725
3554
|
return input
|
|
3726
3555
|
.filter((e) => e != null)
|
|
3727
3556
|
.map((entry) => {
|
|
3728
|
-
if (entry === null) {
|
|
3729
|
-
return null;
|
|
3730
|
-
}
|
|
3731
3557
|
return entry;
|
|
3732
3558
|
});
|
|
3733
3559
|
};
|
|
@@ -3768,9 +3594,6 @@ const serializeAws_json1_1ManagedRuleGroupConfigs = (input, context) => {
|
|
|
3768
3594
|
return input
|
|
3769
3595
|
.filter((e) => e != null)
|
|
3770
3596
|
.map((entry) => {
|
|
3771
|
-
if (entry === null) {
|
|
3772
|
-
return null;
|
|
3773
|
-
}
|
|
3774
3597
|
return serializeAws_json1_1ManagedRuleGroupConfig(entry, context);
|
|
3775
3598
|
});
|
|
3776
3599
|
};
|
|
@@ -3861,9 +3684,6 @@ const serializeAws_json1_1RedactedFields = (input, context) => {
|
|
|
3861
3684
|
return input
|
|
3862
3685
|
.filter((e) => e != null)
|
|
3863
3686
|
.map((entry) => {
|
|
3864
|
-
if (entry === null) {
|
|
3865
|
-
return null;
|
|
3866
|
-
}
|
|
3867
3687
|
return serializeAws_json1_1FieldToMatch(entry, context);
|
|
3868
3688
|
});
|
|
3869
3689
|
};
|
|
@@ -3894,9 +3714,6 @@ const serializeAws_json1_1RegularExpressionList = (input, context) => {
|
|
|
3894
3714
|
return input
|
|
3895
3715
|
.filter((e) => e != null)
|
|
3896
3716
|
.map((entry) => {
|
|
3897
|
-
if (entry === null) {
|
|
3898
|
-
return null;
|
|
3899
|
-
}
|
|
3900
3717
|
return serializeAws_json1_1Regex(entry, context);
|
|
3901
3718
|
});
|
|
3902
3719
|
};
|
|
@@ -3938,9 +3755,6 @@ const serializeAws_json1_1Rules = (input, context) => {
|
|
|
3938
3755
|
return input
|
|
3939
3756
|
.filter((e) => e != null)
|
|
3940
3757
|
.map((entry) => {
|
|
3941
|
-
if (entry === null) {
|
|
3942
|
-
return null;
|
|
3943
|
-
}
|
|
3944
3758
|
return serializeAws_json1_1Rule(entry, context);
|
|
3945
3759
|
});
|
|
3946
3760
|
};
|
|
@@ -4020,9 +3834,6 @@ const serializeAws_json1_1Statements = (input, context) => {
|
|
|
4020
3834
|
return input
|
|
4021
3835
|
.filter((e) => e != null)
|
|
4022
3836
|
.map((entry) => {
|
|
4023
|
-
if (entry === null) {
|
|
4024
|
-
return null;
|
|
4025
|
-
}
|
|
4026
3837
|
return serializeAws_json1_1Statement(entry, context);
|
|
4027
3838
|
});
|
|
4028
3839
|
};
|
|
@@ -4036,9 +3847,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
4036
3847
|
return input
|
|
4037
3848
|
.filter((e) => e != null)
|
|
4038
3849
|
.map((entry) => {
|
|
4039
|
-
if (entry === null) {
|
|
4040
|
-
return null;
|
|
4041
|
-
}
|
|
4042
3850
|
return entry;
|
|
4043
3851
|
});
|
|
4044
3852
|
};
|
|
@@ -4046,9 +3854,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
4046
3854
|
return input
|
|
4047
3855
|
.filter((e) => e != null)
|
|
4048
3856
|
.map((entry) => {
|
|
4049
|
-
if (entry === null) {
|
|
4050
|
-
return null;
|
|
4051
|
-
}
|
|
4052
3857
|
return serializeAws_json1_1Tag(entry, context);
|
|
4053
3858
|
});
|
|
4054
3859
|
};
|
|
@@ -4068,9 +3873,6 @@ const serializeAws_json1_1TextTransformations = (input, context) => {
|
|
|
4068
3873
|
return input
|
|
4069
3874
|
.filter((e) => e != null)
|
|
4070
3875
|
.map((entry) => {
|
|
4071
|
-
if (entry === null) {
|
|
4072
|
-
return null;
|
|
4073
|
-
}
|
|
4074
3876
|
return serializeAws_json1_1TextTransformation(entry, context);
|
|
4075
3877
|
});
|
|
4076
3878
|
};
|