@aws-sdk/client-wafv2 3.80.0 → 3.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/models/models_0.js +60 -5
- package/dist-cjs/protocols/Aws_json1_1.js +173 -2
- package/dist-es/models/models_0.js +46 -0
- package/dist-es/protocols/Aws_json1_1.js +262 -109
- package/dist-types/WAFV2.d.ts +43 -3
- package/dist-types/commands/AssociateWebACLCommand.d.ts +2 -0
- package/dist-types/commands/DeleteWebACLCommand.d.ts +30 -1
- package/dist-types/commands/DisassociateWebACLCommand.d.ts +2 -1
- package/dist-types/commands/UpdateIPSetCommand.d.ts +2 -0
- package/dist-types/commands/UpdateRegexPatternSetCommand.d.ts +2 -0
- package/dist-types/commands/UpdateRuleGroupCommand.d.ts +2 -0
- package/dist-types/commands/UpdateWebACLCommand.d.ts +3 -1
- package/dist-types/models/models_0.d.ts +307 -55
- package/dist-types/ts3.4/models/models_0.d.ts +70 -0
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
3
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { WAFAssociatedItemException, WAFDuplicateItemException, WAFExpiredManagedRuleGroupVersionException, WAFInternalErrorException, WAFInvalidOperationException, WAFInvalidParameterException, WAFInvalidPermissionPolicyException, WAFInvalidResourceException, WAFLimitsExceededException, WAFLogDestinationPermissionIssueException, WAFNonexistentItemException, WAFOptimisticLockException, WAFServiceLinkedRoleErrorException, WAFSubscriptionNotFoundException, WAFTagOperationException, WAFTagOperationInternalErrorException, WAFUnavailableEntityException, } from "../models/models_0";
|
|
4
|
+
import { WAFAssociatedItemException, WAFConfigurationWarningException, WAFDuplicateItemException, WAFExpiredManagedRuleGroupVersionException, WAFInternalErrorException, WAFInvalidOperationException, WAFInvalidParameterException, WAFInvalidPermissionPolicyException, WAFInvalidResourceException, WAFLimitsExceededException, WAFLogDestinationPermissionIssueException, WAFNonexistentItemException, WAFOptimisticLockException, WAFServiceLinkedRoleErrorException, WAFSubscriptionNotFoundException, WAFTagOperationException, WAFTagOperationInternalErrorException, WAFUnavailableEntityException, } from "../models/models_0";
|
|
5
5
|
import { WAFV2ServiceException as __BaseException } from "../models/WAFV2ServiceException";
|
|
6
6
|
export var serializeAws_json1_1AssociateWebACLCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
7
|
var headers, body;
|
|
@@ -954,57 +954,61 @@ var deserializeAws_json1_1CreateWebACLCommandError = function (output, context)
|
|
|
954
954
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
955
955
|
_b = errorCode;
|
|
956
956
|
switch (_b) {
|
|
957
|
-
case "
|
|
958
|
-
case "com.amazonaws.wafv2#
|
|
959
|
-
case "
|
|
960
|
-
case "com.amazonaws.wafv2#
|
|
961
|
-
case "
|
|
962
|
-
case "com.amazonaws.wafv2#
|
|
963
|
-
case "
|
|
964
|
-
case "com.amazonaws.wafv2#
|
|
965
|
-
case "
|
|
966
|
-
case "com.amazonaws.wafv2#
|
|
967
|
-
case "
|
|
968
|
-
case "com.amazonaws.wafv2#
|
|
969
|
-
case "
|
|
970
|
-
case "com.amazonaws.wafv2#
|
|
971
|
-
case "
|
|
972
|
-
case "com.amazonaws.wafv2#
|
|
973
|
-
case "
|
|
974
|
-
case "com.amazonaws.wafv2#
|
|
975
|
-
case "
|
|
976
|
-
case "com.amazonaws.wafv2#
|
|
977
|
-
case "
|
|
978
|
-
case "com.amazonaws.wafv2#
|
|
979
|
-
case "
|
|
980
|
-
case "com.amazonaws.wafv2#
|
|
957
|
+
case "WAFConfigurationWarningException": return [3, 2];
|
|
958
|
+
case "com.amazonaws.wafv2#WAFConfigurationWarningException": return [3, 2];
|
|
959
|
+
case "WAFDuplicateItemException": return [3, 4];
|
|
960
|
+
case "com.amazonaws.wafv2#WAFDuplicateItemException": return [3, 4];
|
|
961
|
+
case "WAFInternalErrorException": return [3, 6];
|
|
962
|
+
case "com.amazonaws.wafv2#WAFInternalErrorException": return [3, 6];
|
|
963
|
+
case "WAFInvalidOperationException": return [3, 8];
|
|
964
|
+
case "com.amazonaws.wafv2#WAFInvalidOperationException": return [3, 8];
|
|
965
|
+
case "WAFInvalidParameterException": return [3, 10];
|
|
966
|
+
case "com.amazonaws.wafv2#WAFInvalidParameterException": return [3, 10];
|
|
967
|
+
case "WAFInvalidResourceException": return [3, 12];
|
|
968
|
+
case "com.amazonaws.wafv2#WAFInvalidResourceException": return [3, 12];
|
|
969
|
+
case "WAFLimitsExceededException": return [3, 14];
|
|
970
|
+
case "com.amazonaws.wafv2#WAFLimitsExceededException": return [3, 14];
|
|
971
|
+
case "WAFNonexistentItemException": return [3, 16];
|
|
972
|
+
case "com.amazonaws.wafv2#WAFNonexistentItemException": return [3, 16];
|
|
973
|
+
case "WAFOptimisticLockException": return [3, 18];
|
|
974
|
+
case "com.amazonaws.wafv2#WAFOptimisticLockException": return [3, 18];
|
|
975
|
+
case "WAFSubscriptionNotFoundException": return [3, 20];
|
|
976
|
+
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException": return [3, 20];
|
|
977
|
+
case "WAFTagOperationException": return [3, 22];
|
|
978
|
+
case "com.amazonaws.wafv2#WAFTagOperationException": return [3, 22];
|
|
979
|
+
case "WAFTagOperationInternalErrorException": return [3, 24];
|
|
980
|
+
case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException": return [3, 24];
|
|
981
|
+
case "WAFUnavailableEntityException": return [3, 26];
|
|
982
|
+
case "com.amazonaws.wafv2#WAFUnavailableEntityException": return [3, 26];
|
|
981
983
|
}
|
|
982
|
-
return [3,
|
|
983
|
-
case 2: return [4,
|
|
984
|
+
return [3, 28];
|
|
985
|
+
case 2: return [4, deserializeAws_json1_1WAFConfigurationWarningExceptionResponse(parsedOutput, context)];
|
|
984
986
|
case 3: throw _d.sent();
|
|
985
|
-
case 4: return [4,
|
|
987
|
+
case 4: return [4, deserializeAws_json1_1WAFDuplicateItemExceptionResponse(parsedOutput, context)];
|
|
986
988
|
case 5: throw _d.sent();
|
|
987
|
-
case 6: return [4,
|
|
989
|
+
case 6: return [4, deserializeAws_json1_1WAFInternalErrorExceptionResponse(parsedOutput, context)];
|
|
988
990
|
case 7: throw _d.sent();
|
|
989
|
-
case 8: return [4,
|
|
991
|
+
case 8: return [4, deserializeAws_json1_1WAFInvalidOperationExceptionResponse(parsedOutput, context)];
|
|
990
992
|
case 9: throw _d.sent();
|
|
991
|
-
case 10: return [4,
|
|
993
|
+
case 10: return [4, deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
992
994
|
case 11: throw _d.sent();
|
|
993
|
-
case 12: return [4,
|
|
995
|
+
case 12: return [4, deserializeAws_json1_1WAFInvalidResourceExceptionResponse(parsedOutput, context)];
|
|
994
996
|
case 13: throw _d.sent();
|
|
995
|
-
case 14: return [4,
|
|
997
|
+
case 14: return [4, deserializeAws_json1_1WAFLimitsExceededExceptionResponse(parsedOutput, context)];
|
|
996
998
|
case 15: throw _d.sent();
|
|
997
|
-
case 16: return [4,
|
|
999
|
+
case 16: return [4, deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context)];
|
|
998
1000
|
case 17: throw _d.sent();
|
|
999
|
-
case 18: return [4,
|
|
1001
|
+
case 18: return [4, deserializeAws_json1_1WAFOptimisticLockExceptionResponse(parsedOutput, context)];
|
|
1000
1002
|
case 19: throw _d.sent();
|
|
1001
|
-
case 20: return [4,
|
|
1003
|
+
case 20: return [4, deserializeAws_json1_1WAFSubscriptionNotFoundExceptionResponse(parsedOutput, context)];
|
|
1002
1004
|
case 21: throw _d.sent();
|
|
1003
|
-
case 22: return [4,
|
|
1005
|
+
case 22: return [4, deserializeAws_json1_1WAFTagOperationExceptionResponse(parsedOutput, context)];
|
|
1004
1006
|
case 23: throw _d.sent();
|
|
1005
|
-
case 24: return [4,
|
|
1007
|
+
case 24: return [4, deserializeAws_json1_1WAFTagOperationInternalErrorExceptionResponse(parsedOutput, context)];
|
|
1006
1008
|
case 25: throw _d.sent();
|
|
1007
|
-
case 26:
|
|
1009
|
+
case 26: return [4, deserializeAws_json1_1WAFUnavailableEntityExceptionResponse(parsedOutput, context)];
|
|
1010
|
+
case 27: throw _d.sent();
|
|
1011
|
+
case 28:
|
|
1008
1012
|
parsedBody = parsedOutput.body;
|
|
1009
1013
|
response = new __BaseException({
|
|
1010
1014
|
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
@@ -3644,45 +3648,49 @@ var deserializeAws_json1_1UpdateRuleGroupCommandError = function (output, contex
|
|
|
3644
3648
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3645
3649
|
_b = errorCode;
|
|
3646
3650
|
switch (_b) {
|
|
3647
|
-
case "
|
|
3648
|
-
case "com.amazonaws.wafv2#
|
|
3649
|
-
case "
|
|
3650
|
-
case "com.amazonaws.wafv2#
|
|
3651
|
-
case "
|
|
3652
|
-
case "com.amazonaws.wafv2#
|
|
3653
|
-
case "
|
|
3654
|
-
case "com.amazonaws.wafv2#
|
|
3655
|
-
case "
|
|
3656
|
-
case "com.amazonaws.wafv2#
|
|
3657
|
-
case "
|
|
3658
|
-
case "com.amazonaws.wafv2#
|
|
3659
|
-
case "
|
|
3660
|
-
case "com.amazonaws.wafv2#
|
|
3661
|
-
case "
|
|
3662
|
-
case "com.amazonaws.wafv2#
|
|
3663
|
-
case "
|
|
3664
|
-
case "com.amazonaws.wafv2#
|
|
3651
|
+
case "WAFConfigurationWarningException": return [3, 2];
|
|
3652
|
+
case "com.amazonaws.wafv2#WAFConfigurationWarningException": return [3, 2];
|
|
3653
|
+
case "WAFDuplicateItemException": return [3, 4];
|
|
3654
|
+
case "com.amazonaws.wafv2#WAFDuplicateItemException": return [3, 4];
|
|
3655
|
+
case "WAFInternalErrorException": return [3, 6];
|
|
3656
|
+
case "com.amazonaws.wafv2#WAFInternalErrorException": return [3, 6];
|
|
3657
|
+
case "WAFInvalidOperationException": return [3, 8];
|
|
3658
|
+
case "com.amazonaws.wafv2#WAFInvalidOperationException": return [3, 8];
|
|
3659
|
+
case "WAFInvalidParameterException": return [3, 10];
|
|
3660
|
+
case "com.amazonaws.wafv2#WAFInvalidParameterException": return [3, 10];
|
|
3661
|
+
case "WAFLimitsExceededException": return [3, 12];
|
|
3662
|
+
case "com.amazonaws.wafv2#WAFLimitsExceededException": return [3, 12];
|
|
3663
|
+
case "WAFNonexistentItemException": return [3, 14];
|
|
3664
|
+
case "com.amazonaws.wafv2#WAFNonexistentItemException": return [3, 14];
|
|
3665
|
+
case "WAFOptimisticLockException": return [3, 16];
|
|
3666
|
+
case "com.amazonaws.wafv2#WAFOptimisticLockException": return [3, 16];
|
|
3667
|
+
case "WAFSubscriptionNotFoundException": return [3, 18];
|
|
3668
|
+
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException": return [3, 18];
|
|
3669
|
+
case "WAFUnavailableEntityException": return [3, 20];
|
|
3670
|
+
case "com.amazonaws.wafv2#WAFUnavailableEntityException": return [3, 20];
|
|
3665
3671
|
}
|
|
3666
|
-
return [3,
|
|
3667
|
-
case 2: return [4,
|
|
3672
|
+
return [3, 22];
|
|
3673
|
+
case 2: return [4, deserializeAws_json1_1WAFConfigurationWarningExceptionResponse(parsedOutput, context)];
|
|
3668
3674
|
case 3: throw _d.sent();
|
|
3669
|
-
case 4: return [4,
|
|
3675
|
+
case 4: return [4, deserializeAws_json1_1WAFDuplicateItemExceptionResponse(parsedOutput, context)];
|
|
3670
3676
|
case 5: throw _d.sent();
|
|
3671
|
-
case 6: return [4,
|
|
3677
|
+
case 6: return [4, deserializeAws_json1_1WAFInternalErrorExceptionResponse(parsedOutput, context)];
|
|
3672
3678
|
case 7: throw _d.sent();
|
|
3673
|
-
case 8: return [4,
|
|
3679
|
+
case 8: return [4, deserializeAws_json1_1WAFInvalidOperationExceptionResponse(parsedOutput, context)];
|
|
3674
3680
|
case 9: throw _d.sent();
|
|
3675
|
-
case 10: return [4,
|
|
3681
|
+
case 10: return [4, deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3676
3682
|
case 11: throw _d.sent();
|
|
3677
|
-
case 12: return [4,
|
|
3683
|
+
case 12: return [4, deserializeAws_json1_1WAFLimitsExceededExceptionResponse(parsedOutput, context)];
|
|
3678
3684
|
case 13: throw _d.sent();
|
|
3679
|
-
case 14: return [4,
|
|
3685
|
+
case 14: return [4, deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context)];
|
|
3680
3686
|
case 15: throw _d.sent();
|
|
3681
|
-
case 16: return [4,
|
|
3687
|
+
case 16: return [4, deserializeAws_json1_1WAFOptimisticLockExceptionResponse(parsedOutput, context)];
|
|
3682
3688
|
case 17: throw _d.sent();
|
|
3683
|
-
case 18: return [4,
|
|
3689
|
+
case 18: return [4, deserializeAws_json1_1WAFSubscriptionNotFoundExceptionResponse(parsedOutput, context)];
|
|
3684
3690
|
case 19: throw _d.sent();
|
|
3685
|
-
case 20:
|
|
3691
|
+
case 20: return [4, deserializeAws_json1_1WAFUnavailableEntityExceptionResponse(parsedOutput, context)];
|
|
3692
|
+
case 21: throw _d.sent();
|
|
3693
|
+
case 22:
|
|
3686
3694
|
parsedBody = parsedOutput.body;
|
|
3687
3695
|
response = new __BaseException({
|
|
3688
3696
|
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
@@ -3726,53 +3734,57 @@ var deserializeAws_json1_1UpdateWebACLCommandError = function (output, context)
|
|
|
3726
3734
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3727
3735
|
_b = errorCode;
|
|
3728
3736
|
switch (_b) {
|
|
3729
|
-
case "
|
|
3730
|
-
case "com.amazonaws.wafv2#
|
|
3731
|
-
case "
|
|
3732
|
-
case "com.amazonaws.wafv2#
|
|
3733
|
-
case "
|
|
3734
|
-
case "com.amazonaws.wafv2#
|
|
3735
|
-
case "
|
|
3736
|
-
case "com.amazonaws.wafv2#
|
|
3737
|
-
case "
|
|
3738
|
-
case "com.amazonaws.wafv2#
|
|
3739
|
-
case "
|
|
3740
|
-
case "com.amazonaws.wafv2#
|
|
3741
|
-
case "
|
|
3742
|
-
case "com.amazonaws.wafv2#
|
|
3743
|
-
case "
|
|
3744
|
-
case "com.amazonaws.wafv2#
|
|
3745
|
-
case "
|
|
3746
|
-
case "com.amazonaws.wafv2#
|
|
3747
|
-
case "
|
|
3748
|
-
case "com.amazonaws.wafv2#
|
|
3749
|
-
case "
|
|
3750
|
-
case "com.amazonaws.wafv2#
|
|
3737
|
+
case "WAFConfigurationWarningException": return [3, 2];
|
|
3738
|
+
case "com.amazonaws.wafv2#WAFConfigurationWarningException": return [3, 2];
|
|
3739
|
+
case "WAFDuplicateItemException": return [3, 4];
|
|
3740
|
+
case "com.amazonaws.wafv2#WAFDuplicateItemException": return [3, 4];
|
|
3741
|
+
case "WAFExpiredManagedRuleGroupVersionException": return [3, 6];
|
|
3742
|
+
case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException": return [3, 6];
|
|
3743
|
+
case "WAFInternalErrorException": return [3, 8];
|
|
3744
|
+
case "com.amazonaws.wafv2#WAFInternalErrorException": return [3, 8];
|
|
3745
|
+
case "WAFInvalidOperationException": return [3, 10];
|
|
3746
|
+
case "com.amazonaws.wafv2#WAFInvalidOperationException": return [3, 10];
|
|
3747
|
+
case "WAFInvalidParameterException": return [3, 12];
|
|
3748
|
+
case "com.amazonaws.wafv2#WAFInvalidParameterException": return [3, 12];
|
|
3749
|
+
case "WAFInvalidResourceException": return [3, 14];
|
|
3750
|
+
case "com.amazonaws.wafv2#WAFInvalidResourceException": return [3, 14];
|
|
3751
|
+
case "WAFLimitsExceededException": return [3, 16];
|
|
3752
|
+
case "com.amazonaws.wafv2#WAFLimitsExceededException": return [3, 16];
|
|
3753
|
+
case "WAFNonexistentItemException": return [3, 18];
|
|
3754
|
+
case "com.amazonaws.wafv2#WAFNonexistentItemException": return [3, 18];
|
|
3755
|
+
case "WAFOptimisticLockException": return [3, 20];
|
|
3756
|
+
case "com.amazonaws.wafv2#WAFOptimisticLockException": return [3, 20];
|
|
3757
|
+
case "WAFSubscriptionNotFoundException": return [3, 22];
|
|
3758
|
+
case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException": return [3, 22];
|
|
3759
|
+
case "WAFUnavailableEntityException": return [3, 24];
|
|
3760
|
+
case "com.amazonaws.wafv2#WAFUnavailableEntityException": return [3, 24];
|
|
3751
3761
|
}
|
|
3752
|
-
return [3,
|
|
3753
|
-
case 2: return [4,
|
|
3762
|
+
return [3, 26];
|
|
3763
|
+
case 2: return [4, deserializeAws_json1_1WAFConfigurationWarningExceptionResponse(parsedOutput, context)];
|
|
3754
3764
|
case 3: throw _d.sent();
|
|
3755
|
-
case 4: return [4,
|
|
3765
|
+
case 4: return [4, deserializeAws_json1_1WAFDuplicateItemExceptionResponse(parsedOutput, context)];
|
|
3756
3766
|
case 5: throw _d.sent();
|
|
3757
|
-
case 6: return [4,
|
|
3767
|
+
case 6: return [4, deserializeAws_json1_1WAFExpiredManagedRuleGroupVersionExceptionResponse(parsedOutput, context)];
|
|
3758
3768
|
case 7: throw _d.sent();
|
|
3759
|
-
case 8: return [4,
|
|
3769
|
+
case 8: return [4, deserializeAws_json1_1WAFInternalErrorExceptionResponse(parsedOutput, context)];
|
|
3760
3770
|
case 9: throw _d.sent();
|
|
3761
|
-
case 10: return [4,
|
|
3771
|
+
case 10: return [4, deserializeAws_json1_1WAFInvalidOperationExceptionResponse(parsedOutput, context)];
|
|
3762
3772
|
case 11: throw _d.sent();
|
|
3763
|
-
case 12: return [4,
|
|
3773
|
+
case 12: return [4, deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3764
3774
|
case 13: throw _d.sent();
|
|
3765
|
-
case 14: return [4,
|
|
3775
|
+
case 14: return [4, deserializeAws_json1_1WAFInvalidResourceExceptionResponse(parsedOutput, context)];
|
|
3766
3776
|
case 15: throw _d.sent();
|
|
3767
|
-
case 16: return [4,
|
|
3777
|
+
case 16: return [4, deserializeAws_json1_1WAFLimitsExceededExceptionResponse(parsedOutput, context)];
|
|
3768
3778
|
case 17: throw _d.sent();
|
|
3769
|
-
case 18: return [4,
|
|
3779
|
+
case 18: return [4, deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context)];
|
|
3770
3780
|
case 19: throw _d.sent();
|
|
3771
|
-
case 20: return [4,
|
|
3781
|
+
case 20: return [4, deserializeAws_json1_1WAFOptimisticLockExceptionResponse(parsedOutput, context)];
|
|
3772
3782
|
case 21: throw _d.sent();
|
|
3773
|
-
case 22: return [4,
|
|
3783
|
+
case 22: return [4, deserializeAws_json1_1WAFSubscriptionNotFoundExceptionResponse(parsedOutput, context)];
|
|
3774
3784
|
case 23: throw _d.sent();
|
|
3775
|
-
case 24:
|
|
3785
|
+
case 24: return [4, deserializeAws_json1_1WAFUnavailableEntityExceptionResponse(parsedOutput, context)];
|
|
3786
|
+
case 25: throw _d.sent();
|
|
3787
|
+
case 26:
|
|
3776
3788
|
parsedBody = parsedOutput.body;
|
|
3777
3789
|
response = new __BaseException({
|
|
3778
3790
|
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
@@ -3792,6 +3804,15 @@ var deserializeAws_json1_1WAFAssociatedItemExceptionResponse = function (parsedO
|
|
|
3792
3804
|
return [2, __decorateServiceException(exception, body)];
|
|
3793
3805
|
});
|
|
3794
3806
|
}); };
|
|
3807
|
+
var deserializeAws_json1_1WAFConfigurationWarningExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3808
|
+
var body, deserialized, exception;
|
|
3809
|
+
return __generator(this, function (_a) {
|
|
3810
|
+
body = parsedOutput.body;
|
|
3811
|
+
deserialized = deserializeAws_json1_1WAFConfigurationWarningException(body, context);
|
|
3812
|
+
exception = new WAFConfigurationWarningException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
3813
|
+
return [2, __decorateServiceException(exception, body)];
|
|
3814
|
+
});
|
|
3815
|
+
}); };
|
|
3795
3816
|
var deserializeAws_json1_1WAFDuplicateItemExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3796
3817
|
var body, deserialized, exception;
|
|
3797
3818
|
return __generator(this, function (_a) {
|
|
@@ -3965,7 +3986,8 @@ var serializeAws_json1_1BlockAction = function (input, context) {
|
|
|
3965
3986
|
}));
|
|
3966
3987
|
};
|
|
3967
3988
|
var serializeAws_json1_1Body = function (input, context) {
|
|
3968
|
-
return {}
|
|
3989
|
+
return __assign({}, (input.OversizeHandling !== undefined &&
|
|
3990
|
+
input.OversizeHandling !== null && { OversizeHandling: input.OversizeHandling }));
|
|
3969
3991
|
};
|
|
3970
3992
|
var serializeAws_json1_1ByteMatchStatement = function (input, context) {
|
|
3971
3993
|
return __assign(__assign(__assign(__assign({}, (input.FieldToMatch !== undefined &&
|
|
@@ -4011,6 +4033,32 @@ var serializeAws_json1_1Conditions = function (input, context) {
|
|
|
4011
4033
|
return serializeAws_json1_1Condition(entry, context);
|
|
4012
4034
|
});
|
|
4013
4035
|
};
|
|
4036
|
+
var serializeAws_json1_1CookieMatchPattern = function (input, context) {
|
|
4037
|
+
return __assign(__assign(__assign({}, (input.All !== undefined && input.All !== null && { All: serializeAws_json1_1All(input.All, context) })), (input.ExcludedCookies !== undefined &&
|
|
4038
|
+
input.ExcludedCookies !== null && {
|
|
4039
|
+
ExcludedCookies: serializeAws_json1_1CookieNames(input.ExcludedCookies, context),
|
|
4040
|
+
})), (input.IncludedCookies !== undefined &&
|
|
4041
|
+
input.IncludedCookies !== null && {
|
|
4042
|
+
IncludedCookies: serializeAws_json1_1CookieNames(input.IncludedCookies, context),
|
|
4043
|
+
}));
|
|
4044
|
+
};
|
|
4045
|
+
var serializeAws_json1_1CookieNames = function (input, context) {
|
|
4046
|
+
return input
|
|
4047
|
+
.filter(function (e) { return e != null; })
|
|
4048
|
+
.map(function (entry) {
|
|
4049
|
+
if (entry === null) {
|
|
4050
|
+
return null;
|
|
4051
|
+
}
|
|
4052
|
+
return entry;
|
|
4053
|
+
});
|
|
4054
|
+
};
|
|
4055
|
+
var serializeAws_json1_1Cookies = function (input, context) {
|
|
4056
|
+
return __assign(__assign(__assign({}, (input.MatchPattern !== undefined &&
|
|
4057
|
+
input.MatchPattern !== null && {
|
|
4058
|
+
MatchPattern: serializeAws_json1_1CookieMatchPattern(input.MatchPattern, context),
|
|
4059
|
+
})), (input.MatchScope !== undefined && input.MatchScope !== null && { MatchScope: input.MatchScope })), (input.OversizeHandling !== undefined &&
|
|
4060
|
+
input.OversizeHandling !== null && { OversizeHandling: input.OversizeHandling }));
|
|
4061
|
+
};
|
|
4014
4062
|
var serializeAws_json1_1CountAction = function (input, context) {
|
|
4015
4063
|
return __assign({}, (input.CustomRequestHandling !== undefined &&
|
|
4016
4064
|
input.CustomRequestHandling !== null && {
|
|
@@ -4150,10 +4198,12 @@ var serializeAws_json1_1ExcludedRules = function (input, context) {
|
|
|
4150
4198
|
});
|
|
4151
4199
|
};
|
|
4152
4200
|
var serializeAws_json1_1FieldToMatch = function (input, context) {
|
|
4153
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllQueryArguments !== undefined &&
|
|
4201
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllQueryArguments !== undefined &&
|
|
4154
4202
|
input.AllQueryArguments !== null && {
|
|
4155
4203
|
AllQueryArguments: serializeAws_json1_1AllQueryArguments(input.AllQueryArguments, context),
|
|
4156
|
-
})), (input.Body !== undefined && input.Body !== null && { Body: serializeAws_json1_1Body(input.Body, context) })), (input.
|
|
4204
|
+
})), (input.Body !== undefined && input.Body !== null && { Body: serializeAws_json1_1Body(input.Body, context) })), (input.Cookies !== undefined &&
|
|
4205
|
+
input.Cookies !== null && { Cookies: serializeAws_json1_1Cookies(input.Cookies, context) })), (input.Headers !== undefined &&
|
|
4206
|
+
input.Headers !== null && { Headers: serializeAws_json1_1Headers(input.Headers, context) })), (input.JsonBody !== undefined &&
|
|
4157
4207
|
input.JsonBody !== null && { JsonBody: serializeAws_json1_1JsonBody(input.JsonBody, context) })), (input.Method !== undefined &&
|
|
4158
4208
|
input.Method !== null && { Method: serializeAws_json1_1Method(input.Method, context) })), (input.QueryString !== undefined &&
|
|
4159
4209
|
input.QueryString !== null && { QueryString: serializeAws_json1_1QueryString(input.QueryString, context) })), (input.SingleHeader !== undefined &&
|
|
@@ -4229,6 +4279,32 @@ var serializeAws_json1_1GetWebACLForResourceRequest = function (input, context)
|
|
|
4229
4279
|
var serializeAws_json1_1GetWebACLRequest = function (input, context) {
|
|
4230
4280
|
return __assign(__assign(__assign({}, (input.Id !== undefined && input.Id !== null && { Id: input.Id })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
|
|
4231
4281
|
};
|
|
4282
|
+
var serializeAws_json1_1HeaderMatchPattern = function (input, context) {
|
|
4283
|
+
return __assign(__assign(__assign({}, (input.All !== undefined && input.All !== null && { All: serializeAws_json1_1All(input.All, context) })), (input.ExcludedHeaders !== undefined &&
|
|
4284
|
+
input.ExcludedHeaders !== null && {
|
|
4285
|
+
ExcludedHeaders: serializeAws_json1_1HeaderNames(input.ExcludedHeaders, context),
|
|
4286
|
+
})), (input.IncludedHeaders !== undefined &&
|
|
4287
|
+
input.IncludedHeaders !== null && {
|
|
4288
|
+
IncludedHeaders: serializeAws_json1_1HeaderNames(input.IncludedHeaders, context),
|
|
4289
|
+
}));
|
|
4290
|
+
};
|
|
4291
|
+
var serializeAws_json1_1HeaderNames = function (input, context) {
|
|
4292
|
+
return input
|
|
4293
|
+
.filter(function (e) { return e != null; })
|
|
4294
|
+
.map(function (entry) {
|
|
4295
|
+
if (entry === null) {
|
|
4296
|
+
return null;
|
|
4297
|
+
}
|
|
4298
|
+
return entry;
|
|
4299
|
+
});
|
|
4300
|
+
};
|
|
4301
|
+
var serializeAws_json1_1Headers = function (input, context) {
|
|
4302
|
+
return __assign(__assign(__assign({}, (input.MatchPattern !== undefined &&
|
|
4303
|
+
input.MatchPattern !== null && {
|
|
4304
|
+
MatchPattern: serializeAws_json1_1HeaderMatchPattern(input.MatchPattern, context),
|
|
4305
|
+
})), (input.MatchScope !== undefined && input.MatchScope !== null && { MatchScope: input.MatchScope })), (input.OversizeHandling !== undefined &&
|
|
4306
|
+
input.OversizeHandling !== null && { OversizeHandling: input.OversizeHandling }));
|
|
4307
|
+
};
|
|
4232
4308
|
var serializeAws_json1_1ImmunityTimeProperty = function (input, context) {
|
|
4233
4309
|
return __assign({}, (input.ImmunityTime !== undefined && input.ImmunityTime !== null && { ImmunityTime: input.ImmunityTime }));
|
|
4234
4310
|
};
|
|
@@ -4253,11 +4329,12 @@ var serializeAws_json1_1IPSetReferenceStatement = function (input, context) {
|
|
|
4253
4329
|
}));
|
|
4254
4330
|
};
|
|
4255
4331
|
var serializeAws_json1_1JsonBody = function (input, context) {
|
|
4256
|
-
return __assign(__assign(__assign({}, (input.InvalidFallbackBehavior !== undefined &&
|
|
4332
|
+
return __assign(__assign(__assign(__assign({}, (input.InvalidFallbackBehavior !== undefined &&
|
|
4257
4333
|
input.InvalidFallbackBehavior !== null && { InvalidFallbackBehavior: input.InvalidFallbackBehavior })), (input.MatchPattern !== undefined &&
|
|
4258
4334
|
input.MatchPattern !== null && {
|
|
4259
4335
|
MatchPattern: serializeAws_json1_1JsonMatchPattern(input.MatchPattern, context),
|
|
4260
|
-
})), (input.MatchScope !== undefined && input.MatchScope !== null && { MatchScope: input.MatchScope }))
|
|
4336
|
+
})), (input.MatchScope !== undefined && input.MatchScope !== null && { MatchScope: input.MatchScope })), (input.OversizeHandling !== undefined &&
|
|
4337
|
+
input.OversizeHandling !== null && { OversizeHandling: input.OversizeHandling }));
|
|
4261
4338
|
};
|
|
4262
4339
|
var serializeAws_json1_1JsonMatchPattern = function (input, context) {
|
|
4263
4340
|
return __assign(__assign({}, (input.All !== undefined && input.All !== null && { All: serializeAws_json1_1All(input.All, context) })), (input.IncludedPaths !== undefined &&
|
|
@@ -4743,7 +4820,9 @@ var deserializeAws_json1_1BlockAction = function (output, context) {
|
|
|
4743
4820
|
};
|
|
4744
4821
|
};
|
|
4745
4822
|
var deserializeAws_json1_1Body = function (output, context) {
|
|
4746
|
-
return {
|
|
4823
|
+
return {
|
|
4824
|
+
OversizeHandling: __expectString(output.OversizeHandling),
|
|
4825
|
+
};
|
|
4747
4826
|
};
|
|
4748
4827
|
var deserializeAws_json1_1ByteMatchStatement = function (output, context) {
|
|
4749
4828
|
return {
|
|
@@ -4806,6 +4885,37 @@ var deserializeAws_json1_1Conditions = function (output, context) {
|
|
|
4806
4885
|
});
|
|
4807
4886
|
return retVal;
|
|
4808
4887
|
};
|
|
4888
|
+
var deserializeAws_json1_1CookieMatchPattern = function (output, context) {
|
|
4889
|
+
return {
|
|
4890
|
+
All: output.All !== undefined && output.All !== null ? deserializeAws_json1_1All(output.All, context) : undefined,
|
|
4891
|
+
ExcludedCookies: output.ExcludedCookies !== undefined && output.ExcludedCookies !== null
|
|
4892
|
+
? deserializeAws_json1_1CookieNames(output.ExcludedCookies, context)
|
|
4893
|
+
: undefined,
|
|
4894
|
+
IncludedCookies: output.IncludedCookies !== undefined && output.IncludedCookies !== null
|
|
4895
|
+
? deserializeAws_json1_1CookieNames(output.IncludedCookies, context)
|
|
4896
|
+
: undefined,
|
|
4897
|
+
};
|
|
4898
|
+
};
|
|
4899
|
+
var deserializeAws_json1_1CookieNames = function (output, context) {
|
|
4900
|
+
var retVal = (output || [])
|
|
4901
|
+
.filter(function (e) { return e != null; })
|
|
4902
|
+
.map(function (entry) {
|
|
4903
|
+
if (entry === null) {
|
|
4904
|
+
return null;
|
|
4905
|
+
}
|
|
4906
|
+
return __expectString(entry);
|
|
4907
|
+
});
|
|
4908
|
+
return retVal;
|
|
4909
|
+
};
|
|
4910
|
+
var deserializeAws_json1_1Cookies = function (output, context) {
|
|
4911
|
+
return {
|
|
4912
|
+
MatchPattern: output.MatchPattern !== undefined && output.MatchPattern !== null
|
|
4913
|
+
? deserializeAws_json1_1CookieMatchPattern(output.MatchPattern, context)
|
|
4914
|
+
: undefined,
|
|
4915
|
+
MatchScope: __expectString(output.MatchScope),
|
|
4916
|
+
OversizeHandling: __expectString(output.OversizeHandling),
|
|
4917
|
+
};
|
|
4918
|
+
};
|
|
4809
4919
|
var deserializeAws_json1_1CountAction = function (output, context) {
|
|
4810
4920
|
return {
|
|
4811
4921
|
CustomRequestHandling: output.CustomRequestHandling !== undefined && output.CustomRequestHandling !== null
|
|
@@ -4976,6 +5086,12 @@ var deserializeAws_json1_1FieldToMatch = function (output, context) {
|
|
|
4976
5086
|
? deserializeAws_json1_1AllQueryArguments(output.AllQueryArguments, context)
|
|
4977
5087
|
: undefined,
|
|
4978
5088
|
Body: output.Body !== undefined && output.Body !== null ? deserializeAws_json1_1Body(output.Body, context) : undefined,
|
|
5089
|
+
Cookies: output.Cookies !== undefined && output.Cookies !== null
|
|
5090
|
+
? deserializeAws_json1_1Cookies(output.Cookies, context)
|
|
5091
|
+
: undefined,
|
|
5092
|
+
Headers: output.Headers !== undefined && output.Headers !== null
|
|
5093
|
+
? deserializeAws_json1_1Headers(output.Headers, context)
|
|
5094
|
+
: undefined,
|
|
4979
5095
|
JsonBody: output.JsonBody !== undefined && output.JsonBody !== null
|
|
4980
5096
|
? deserializeAws_json1_1JsonBody(output.JsonBody, context)
|
|
4981
5097
|
: undefined,
|
|
@@ -5161,6 +5277,37 @@ var deserializeAws_json1_1GetWebACLResponse = function (output, context) {
|
|
|
5161
5277
|
: undefined,
|
|
5162
5278
|
};
|
|
5163
5279
|
};
|
|
5280
|
+
var deserializeAws_json1_1HeaderMatchPattern = function (output, context) {
|
|
5281
|
+
return {
|
|
5282
|
+
All: output.All !== undefined && output.All !== null ? deserializeAws_json1_1All(output.All, context) : undefined,
|
|
5283
|
+
ExcludedHeaders: output.ExcludedHeaders !== undefined && output.ExcludedHeaders !== null
|
|
5284
|
+
? deserializeAws_json1_1HeaderNames(output.ExcludedHeaders, context)
|
|
5285
|
+
: undefined,
|
|
5286
|
+
IncludedHeaders: output.IncludedHeaders !== undefined && output.IncludedHeaders !== null
|
|
5287
|
+
? deserializeAws_json1_1HeaderNames(output.IncludedHeaders, context)
|
|
5288
|
+
: undefined,
|
|
5289
|
+
};
|
|
5290
|
+
};
|
|
5291
|
+
var deserializeAws_json1_1HeaderNames = function (output, context) {
|
|
5292
|
+
var retVal = (output || [])
|
|
5293
|
+
.filter(function (e) { return e != null; })
|
|
5294
|
+
.map(function (entry) {
|
|
5295
|
+
if (entry === null) {
|
|
5296
|
+
return null;
|
|
5297
|
+
}
|
|
5298
|
+
return __expectString(entry);
|
|
5299
|
+
});
|
|
5300
|
+
return retVal;
|
|
5301
|
+
};
|
|
5302
|
+
var deserializeAws_json1_1Headers = function (output, context) {
|
|
5303
|
+
return {
|
|
5304
|
+
MatchPattern: output.MatchPattern !== undefined && output.MatchPattern !== null
|
|
5305
|
+
? deserializeAws_json1_1HeaderMatchPattern(output.MatchPattern, context)
|
|
5306
|
+
: undefined,
|
|
5307
|
+
MatchScope: __expectString(output.MatchScope),
|
|
5308
|
+
OversizeHandling: __expectString(output.OversizeHandling),
|
|
5309
|
+
};
|
|
5310
|
+
};
|
|
5164
5311
|
var deserializeAws_json1_1HTTPHeader = function (output, context) {
|
|
5165
5312
|
return {
|
|
5166
5313
|
Name: __expectString(output.Name),
|
|
@@ -5260,6 +5407,7 @@ var deserializeAws_json1_1JsonBody = function (output, context) {
|
|
|
5260
5407
|
? deserializeAws_json1_1JsonMatchPattern(output.MatchPattern, context)
|
|
5261
5408
|
: undefined,
|
|
5262
5409
|
MatchScope: __expectString(output.MatchScope),
|
|
5410
|
+
OversizeHandling: __expectString(output.OversizeHandling),
|
|
5263
5411
|
};
|
|
5264
5412
|
};
|
|
5265
5413
|
var deserializeAws_json1_1JsonMatchPattern = function (output, context) {
|
|
@@ -6145,6 +6293,11 @@ var deserializeAws_json1_1WAFAssociatedItemException = function (output, context
|
|
|
6145
6293
|
Message: __expectString(output.Message),
|
|
6146
6294
|
};
|
|
6147
6295
|
};
|
|
6296
|
+
var deserializeAws_json1_1WAFConfigurationWarningException = function (output, context) {
|
|
6297
|
+
return {
|
|
6298
|
+
Message: __expectString(output.Message),
|
|
6299
|
+
};
|
|
6300
|
+
};
|
|
6148
6301
|
var deserializeAws_json1_1WAFDuplicateItemException = function (output, context) {
|
|
6149
6302
|
return {
|
|
6150
6303
|
Message: __expectString(output.Message),
|