@aws-sdk/client-wafv2 3.39.0 → 3.43.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 +41 -0
- package/dist-cjs/endpoints.js +74 -5
- package/dist-cjs/models/models_0.js +42 -4
- package/dist-cjs/protocols/Aws_json1_1.js +97 -0
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/endpoints.js +74 -5
- package/dist-es/models/models_0.js +28 -0
- package/dist-es/protocols/Aws_json1_1.js +123 -38
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/WAFV2.d.ts +8 -16
- package/dist-types/WAFV2Client.d.ts +8 -0
- package/dist-types/commands/AssociateWebACLCommand.d.ts +1 -1
- package/dist-types/commands/CheckCapacityCommand.d.ts +1 -1
- package/dist-types/commands/CreateIPSetCommand.d.ts +1 -1
- package/dist-types/commands/CreateRegexPatternSetCommand.d.ts +1 -1
- package/dist-types/commands/CreateRuleGroupCommand.d.ts +1 -1
- package/dist-types/commands/CreateWebACLCommand.d.ts +1 -1
- package/dist-types/commands/DeleteFirewallManagerRuleGroupsCommand.d.ts +1 -1
- package/dist-types/commands/DeleteIPSetCommand.d.ts +1 -1
- package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DeletePermissionPolicyCommand.d.ts +1 -1
- package/dist-types/commands/DeleteRegexPatternSetCommand.d.ts +1 -1
- package/dist-types/commands/DeleteRuleGroupCommand.d.ts +1 -1
- package/dist-types/commands/DeleteWebACLCommand.d.ts +1 -1
- package/dist-types/commands/DescribeManagedRuleGroupCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateWebACLCommand.d.ts +1 -1
- package/dist-types/commands/GetIPSetCommand.d.ts +1 -1
- package/dist-types/commands/GetLoggingConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/GetManagedRuleSetCommand.d.ts +1 -1
- package/dist-types/commands/GetPermissionPolicyCommand.d.ts +1 -1
- package/dist-types/commands/GetRateBasedStatementManagedKeysCommand.d.ts +1 -1
- package/dist-types/commands/GetRegexPatternSetCommand.d.ts +1 -1
- package/dist-types/commands/GetRuleGroupCommand.d.ts +1 -1
- package/dist-types/commands/GetSampledRequestsCommand.d.ts +1 -1
- package/dist-types/commands/GetWebACLCommand.d.ts +1 -1
- package/dist-types/commands/GetWebACLForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListAvailableManagedRuleGroupVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListAvailableManagedRuleGroupsCommand.d.ts +1 -1
- package/dist-types/commands/ListIPSetsCommand.d.ts +1 -1
- package/dist-types/commands/ListLoggingConfigurationsCommand.d.ts +1 -1
- package/dist-types/commands/ListManagedRuleSetsCommand.d.ts +1 -1
- package/dist-types/commands/ListRegexPatternSetsCommand.d.ts +1 -1
- package/dist-types/commands/ListResourcesForWebACLCommand.d.ts +1 -1
- package/dist-types/commands/ListRuleGroupsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListWebACLsCommand.d.ts +1 -1
- package/dist-types/commands/PutLoggingConfigurationCommand.d.ts +9 -17
- package/dist-types/commands/PutManagedRuleSetVersionsCommand.d.ts +1 -1
- package/dist-types/commands/PutPermissionPolicyCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateIPSetCommand.d.ts +1 -1
- package/dist-types/commands/UpdateManagedRuleSetVersionExpiryDateCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRegexPatternSetCommand.d.ts +1 -1
- package/dist-types/commands/UpdateRuleGroupCommand.d.ts +1 -1
- package/dist-types/commands/UpdateWebACLCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +191 -56
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/WAFV2Client.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +23 -23
|
@@ -3,7 +3,9 @@ export var ActionValue;
|
|
|
3
3
|
(function (ActionValue) {
|
|
4
4
|
ActionValue["ALLOW"] = "ALLOW";
|
|
5
5
|
ActionValue["BLOCK"] = "BLOCK";
|
|
6
|
+
ActionValue["CAPTCHA"] = "CAPTCHA";
|
|
6
7
|
ActionValue["COUNT"] = "COUNT";
|
|
8
|
+
ActionValue["EXCLUDED_AS_COUNT"] = "EXCLUDED_AS_COUNT";
|
|
7
9
|
})(ActionValue || (ActionValue = {}));
|
|
8
10
|
export var ActionCondition;
|
|
9
11
|
(function (ActionCondition) {
|
|
@@ -493,6 +495,7 @@ export var ParameterExceptionField;
|
|
|
493
495
|
ParameterExceptionField["JSON_MATCH_SCOPE"] = "JSON_MATCH_SCOPE";
|
|
494
496
|
ParameterExceptionField["LABEL_MATCH_STATEMENT"] = "LABEL_MATCH_STATEMENT";
|
|
495
497
|
ParameterExceptionField["LOGGING_FILTER"] = "LOGGING_FILTER";
|
|
498
|
+
ParameterExceptionField["LOG_DESTINATION"] = "LOG_DESTINATION";
|
|
496
499
|
ParameterExceptionField["MANAGED_RULE_SET"] = "MANAGED_RULE_SET";
|
|
497
500
|
ParameterExceptionField["MANAGED_RULE_SET_STATEMENT"] = "MANAGED_RULE_SET_STATEMENT";
|
|
498
501
|
ParameterExceptionField["METRIC_NAME"] = "METRIC_NAME";
|
|
@@ -542,6 +545,10 @@ export var BlockAction;
|
|
|
542
545
|
(function (BlockAction) {
|
|
543
546
|
BlockAction.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
544
547
|
})(BlockAction || (BlockAction = {}));
|
|
548
|
+
export var CaptchaAction;
|
|
549
|
+
(function (CaptchaAction) {
|
|
550
|
+
CaptchaAction.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
551
|
+
})(CaptchaAction || (CaptchaAction = {}));
|
|
545
552
|
export var CountAction;
|
|
546
553
|
(function (CountAction) {
|
|
547
554
|
CountAction.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -550,6 +557,14 @@ export var RuleAction;
|
|
|
550
557
|
(function (RuleAction) {
|
|
551
558
|
RuleAction.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
552
559
|
})(RuleAction || (RuleAction = {}));
|
|
560
|
+
export var ImmunityTimeProperty;
|
|
561
|
+
(function (ImmunityTimeProperty) {
|
|
562
|
+
ImmunityTimeProperty.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
563
|
+
})(ImmunityTimeProperty || (ImmunityTimeProperty = {}));
|
|
564
|
+
export var CaptchaConfig;
|
|
565
|
+
(function (CaptchaConfig) {
|
|
566
|
+
CaptchaConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
567
|
+
})(CaptchaConfig || (CaptchaConfig = {}));
|
|
553
568
|
export var NoneAction;
|
|
554
569
|
(function (NoneAction) {
|
|
555
570
|
NoneAction.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -868,6 +883,15 @@ export var GetSampledRequestsRequest;
|
|
|
868
883
|
(function (GetSampledRequestsRequest) {
|
|
869
884
|
GetSampledRequestsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
870
885
|
})(GetSampledRequestsRequest || (GetSampledRequestsRequest = {}));
|
|
886
|
+
export var FailureReason;
|
|
887
|
+
(function (FailureReason) {
|
|
888
|
+
FailureReason["TOKEN_EXPIRED"] = "TOKEN_EXPIRED";
|
|
889
|
+
FailureReason["TOKEN_MISSING"] = "TOKEN_MISSING";
|
|
890
|
+
})(FailureReason || (FailureReason = {}));
|
|
891
|
+
export var CaptchaResponse;
|
|
892
|
+
(function (CaptchaResponse) {
|
|
893
|
+
CaptchaResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
894
|
+
})(CaptchaResponse || (CaptchaResponse = {}));
|
|
871
895
|
export var HTTPHeader;
|
|
872
896
|
(function (HTTPHeader) {
|
|
873
897
|
HTTPHeader.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1002,6 +1026,10 @@ export var PutLoggingConfigurationResponse;
|
|
|
1002
1026
|
(function (PutLoggingConfigurationResponse) {
|
|
1003
1027
|
PutLoggingConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1004
1028
|
})(PutLoggingConfigurationResponse || (PutLoggingConfigurationResponse = {}));
|
|
1029
|
+
export var WAFLogDestinationPermissionIssueException;
|
|
1030
|
+
(function (WAFLogDestinationPermissionIssueException) {
|
|
1031
|
+
WAFLogDestinationPermissionIssueException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1032
|
+
})(WAFLogDestinationPermissionIssueException || (WAFLogDestinationPermissionIssueException = {}));
|
|
1005
1033
|
export var WAFServiceLinkedRoleErrorException;
|
|
1006
1034
|
(function (WAFServiceLinkedRoleErrorException) {
|
|
1007
1035
|
WAFServiceLinkedRoleErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -3635,16 +3635,16 @@ export var deserializeAws_json1_1PutLoggingConfigurationCommand = function (outp
|
|
|
3635
3635
|
});
|
|
3636
3636
|
}); };
|
|
3637
3637
|
var deserializeAws_json1_1PutLoggingConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3638
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
3639
|
-
var
|
|
3640
|
-
return __generator(this, function (
|
|
3641
|
-
switch (
|
|
3638
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message;
|
|
3639
|
+
var _l;
|
|
3640
|
+
return __generator(this, function (_m) {
|
|
3641
|
+
switch (_m.label) {
|
|
3642
3642
|
case 0:
|
|
3643
3643
|
_a = [__assign({}, output)];
|
|
3644
|
-
|
|
3644
|
+
_l = {};
|
|
3645
3645
|
return [4, parseBody(output.body, context)];
|
|
3646
3646
|
case 1:
|
|
3647
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3647
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
|
|
3648
3648
|
errorCode = "UnknownError";
|
|
3649
3649
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3650
3650
|
_b = errorCode;
|
|
@@ -3657,62 +3657,70 @@ var deserializeAws_json1_1PutLoggingConfigurationCommandError = function (output
|
|
|
3657
3657
|
case "com.amazonaws.wafv2#WAFInvalidParameterException": return [3, 6];
|
|
3658
3658
|
case "WAFLimitsExceededException": return [3, 8];
|
|
3659
3659
|
case "com.amazonaws.wafv2#WAFLimitsExceededException": return [3, 8];
|
|
3660
|
-
case "
|
|
3661
|
-
case "com.amazonaws.wafv2#
|
|
3662
|
-
case "
|
|
3663
|
-
case "com.amazonaws.wafv2#
|
|
3664
|
-
case "
|
|
3665
|
-
case "com.amazonaws.wafv2#
|
|
3660
|
+
case "WAFLogDestinationPermissionIssueException": return [3, 10];
|
|
3661
|
+
case "com.amazonaws.wafv2#WAFLogDestinationPermissionIssueException": return [3, 10];
|
|
3662
|
+
case "WAFNonexistentItemException": return [3, 12];
|
|
3663
|
+
case "com.amazonaws.wafv2#WAFNonexistentItemException": return [3, 12];
|
|
3664
|
+
case "WAFOptimisticLockException": return [3, 14];
|
|
3665
|
+
case "com.amazonaws.wafv2#WAFOptimisticLockException": return [3, 14];
|
|
3666
|
+
case "WAFServiceLinkedRoleErrorException": return [3, 16];
|
|
3667
|
+
case "com.amazonaws.wafv2#WAFServiceLinkedRoleErrorException": return [3, 16];
|
|
3666
3668
|
}
|
|
3667
|
-
return [3,
|
|
3669
|
+
return [3, 18];
|
|
3668
3670
|
case 2:
|
|
3669
3671
|
_c = [{}];
|
|
3670
3672
|
return [4, deserializeAws_json1_1WAFInternalErrorExceptionResponse(parsedOutput, context)];
|
|
3671
3673
|
case 3:
|
|
3672
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
3673
|
-
return [3,
|
|
3674
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3675
|
+
return [3, 19];
|
|
3674
3676
|
case 4:
|
|
3675
3677
|
_d = [{}];
|
|
3676
3678
|
return [4, deserializeAws_json1_1WAFInvalidOperationExceptionResponse(parsedOutput, context)];
|
|
3677
3679
|
case 5:
|
|
3678
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
3679
|
-
return [3,
|
|
3680
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3681
|
+
return [3, 19];
|
|
3680
3682
|
case 6:
|
|
3681
3683
|
_e = [{}];
|
|
3682
3684
|
return [4, deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context)];
|
|
3683
3685
|
case 7:
|
|
3684
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
3685
|
-
return [3,
|
|
3686
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3687
|
+
return [3, 19];
|
|
3686
3688
|
case 8:
|
|
3687
3689
|
_f = [{}];
|
|
3688
3690
|
return [4, deserializeAws_json1_1WAFLimitsExceededExceptionResponse(parsedOutput, context)];
|
|
3689
3691
|
case 9:
|
|
3690
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
3691
|
-
return [3,
|
|
3692
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3693
|
+
return [3, 19];
|
|
3692
3694
|
case 10:
|
|
3693
3695
|
_g = [{}];
|
|
3694
|
-
return [4,
|
|
3696
|
+
return [4, deserializeAws_json1_1WAFLogDestinationPermissionIssueExceptionResponse(parsedOutput, context)];
|
|
3695
3697
|
case 11:
|
|
3696
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
3697
|
-
return [3,
|
|
3698
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3699
|
+
return [3, 19];
|
|
3698
3700
|
case 12:
|
|
3699
3701
|
_h = [{}];
|
|
3700
|
-
return [4,
|
|
3702
|
+
return [4, deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context)];
|
|
3701
3703
|
case 13:
|
|
3702
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(
|
|
3703
|
-
return [3,
|
|
3704
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3705
|
+
return [3, 19];
|
|
3704
3706
|
case 14:
|
|
3705
3707
|
_j = [{}];
|
|
3706
|
-
return [4,
|
|
3708
|
+
return [4, deserializeAws_json1_1WAFOptimisticLockExceptionResponse(parsedOutput, context)];
|
|
3707
3709
|
case 15:
|
|
3708
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(
|
|
3709
|
-
return [3,
|
|
3710
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3711
|
+
return [3, 19];
|
|
3710
3712
|
case 16:
|
|
3713
|
+
_k = [{}];
|
|
3714
|
+
return [4, deserializeAws_json1_1WAFServiceLinkedRoleErrorExceptionResponse(parsedOutput, context)];
|
|
3715
|
+
case 17:
|
|
3716
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3717
|
+
return [3, 19];
|
|
3718
|
+
case 18:
|
|
3711
3719
|
parsedBody = parsedOutput.body;
|
|
3712
3720
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3713
3721
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3714
|
-
|
|
3715
|
-
case
|
|
3722
|
+
_m.label = 19;
|
|
3723
|
+
case 19:
|
|
3716
3724
|
message = response.message || response.Message || errorCode;
|
|
3717
3725
|
response.message = message;
|
|
3718
3726
|
delete response.Message;
|
|
@@ -4721,6 +4729,15 @@ var deserializeAws_json1_1WAFLimitsExceededExceptionResponse = function (parsedO
|
|
|
4721
4729
|
return [2, contents];
|
|
4722
4730
|
});
|
|
4723
4731
|
}); };
|
|
4732
|
+
var deserializeAws_json1_1WAFLogDestinationPermissionIssueExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4733
|
+
var body, deserialized, contents;
|
|
4734
|
+
return __generator(this, function (_a) {
|
|
4735
|
+
body = parsedOutput.body;
|
|
4736
|
+
deserialized = deserializeAws_json1_1WAFLogDestinationPermissionIssueException(body, context);
|
|
4737
|
+
contents = __assign({ name: "WAFLogDestinationPermissionIssueException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
4738
|
+
return [2, contents];
|
|
4739
|
+
});
|
|
4740
|
+
}); };
|
|
4724
4741
|
var deserializeAws_json1_1WAFNonexistentItemExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4725
4742
|
var body, deserialized, contents;
|
|
4726
4743
|
return __generator(this, function (_a) {
|
|
@@ -4824,6 +4841,18 @@ var serializeAws_json1_1ByteMatchStatement = function (input, context) {
|
|
|
4824
4841
|
TextTransformations: serializeAws_json1_1TextTransformations(input.TextTransformations, context),
|
|
4825
4842
|
}));
|
|
4826
4843
|
};
|
|
4844
|
+
var serializeAws_json1_1CaptchaAction = function (input, context) {
|
|
4845
|
+
return __assign({}, (input.CustomRequestHandling !== undefined &&
|
|
4846
|
+
input.CustomRequestHandling !== null && {
|
|
4847
|
+
CustomRequestHandling: serializeAws_json1_1CustomRequestHandling(input.CustomRequestHandling, context),
|
|
4848
|
+
}));
|
|
4849
|
+
};
|
|
4850
|
+
var serializeAws_json1_1CaptchaConfig = function (input, context) {
|
|
4851
|
+
return __assign({}, (input.ImmunityTimeProperty !== undefined &&
|
|
4852
|
+
input.ImmunityTimeProperty !== null && {
|
|
4853
|
+
ImmunityTimeProperty: serializeAws_json1_1ImmunityTimeProperty(input.ImmunityTimeProperty, context),
|
|
4854
|
+
}));
|
|
4855
|
+
};
|
|
4827
4856
|
var serializeAws_json1_1CheckCapacityRequest = function (input, context) {
|
|
4828
4857
|
return __assign(__assign({}, (input.Rules !== undefined &&
|
|
4829
4858
|
input.Rules !== null && { Rules: serializeAws_json1_1Rules(input.Rules, context) })), (input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }));
|
|
@@ -4885,7 +4914,10 @@ var serializeAws_json1_1CreateRuleGroupRequest = function (input, context) {
|
|
|
4885
4914
|
}));
|
|
4886
4915
|
};
|
|
4887
4916
|
var serializeAws_json1_1CreateWebACLRequest = function (input, context) {
|
|
4888
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.
|
|
4917
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CaptchaConfig !== undefined &&
|
|
4918
|
+
input.CaptchaConfig !== null && {
|
|
4919
|
+
CaptchaConfig: serializeAws_json1_1CaptchaConfig(input.CaptchaConfig, context),
|
|
4920
|
+
})), (input.CustomResponseBodies !== undefined &&
|
|
4889
4921
|
input.CustomResponseBodies !== null && {
|
|
4890
4922
|
CustomResponseBodies: serializeAws_json1_1CustomResponseBodies(input.CustomResponseBodies, context),
|
|
4891
4923
|
})), (input.DefaultAction !== undefined &&
|
|
@@ -5054,6 +5086,9 @@ var serializeAws_json1_1GetWebACLForResourceRequest = function (input, context)
|
|
|
5054
5086
|
var serializeAws_json1_1GetWebACLRequest = function (input, context) {
|
|
5055
5087
|
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 }));
|
|
5056
5088
|
};
|
|
5089
|
+
var serializeAws_json1_1ImmunityTimeProperty = function (input, context) {
|
|
5090
|
+
return __assign({}, (input.ImmunityTime !== undefined && input.ImmunityTime !== null && { ImmunityTime: input.ImmunityTime }));
|
|
5091
|
+
};
|
|
5057
5092
|
var serializeAws_json1_1IPAddresses = function (input, context) {
|
|
5058
5093
|
return input
|
|
5059
5094
|
.filter(function (e) { return e != null; })
|
|
@@ -5269,8 +5304,11 @@ var serializeAws_json1_1RegularExpressionList = function (input, context) {
|
|
|
5269
5304
|
});
|
|
5270
5305
|
};
|
|
5271
5306
|
var serializeAws_json1_1Rule = function (input, context) {
|
|
5272
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Action !== undefined &&
|
|
5273
|
-
input.Action !== null && { Action: serializeAws_json1_1RuleAction(input.Action, context) })), (input.
|
|
5307
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Action !== undefined &&
|
|
5308
|
+
input.Action !== null && { Action: serializeAws_json1_1RuleAction(input.Action, context) })), (input.CaptchaConfig !== undefined &&
|
|
5309
|
+
input.CaptchaConfig !== null && {
|
|
5310
|
+
CaptchaConfig: serializeAws_json1_1CaptchaConfig(input.CaptchaConfig, context),
|
|
5311
|
+
})), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.OverrideAction !== undefined &&
|
|
5274
5312
|
input.OverrideAction !== null && {
|
|
5275
5313
|
OverrideAction: serializeAws_json1_1OverrideAction(input.OverrideAction, context),
|
|
5276
5314
|
})), (input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority })), (input.RuleLabels !== undefined &&
|
|
@@ -5281,9 +5319,10 @@ var serializeAws_json1_1Rule = function (input, context) {
|
|
|
5281
5319
|
}));
|
|
5282
5320
|
};
|
|
5283
5321
|
var serializeAws_json1_1RuleAction = function (input, context) {
|
|
5284
|
-
return __assign(__assign(__assign({}, (input.Allow !== undefined &&
|
|
5322
|
+
return __assign(__assign(__assign(__assign({}, (input.Allow !== undefined &&
|
|
5285
5323
|
input.Allow !== null && { Allow: serializeAws_json1_1AllowAction(input.Allow, context) })), (input.Block !== undefined &&
|
|
5286
|
-
input.Block !== null && { Block: serializeAws_json1_1BlockAction(input.Block, context) })), (input.
|
|
5324
|
+
input.Block !== null && { Block: serializeAws_json1_1BlockAction(input.Block, context) })), (input.Captcha !== undefined &&
|
|
5325
|
+
input.Captcha !== null && { Captcha: serializeAws_json1_1CaptchaAction(input.Captcha, context) })), (input.Count !== undefined &&
|
|
5287
5326
|
input.Count !== null && { Count: serializeAws_json1_1CountAction(input.Count, context) }));
|
|
5288
5327
|
};
|
|
5289
5328
|
var serializeAws_json1_1RuleGroupReferenceStatement = function (input, context) {
|
|
@@ -5449,7 +5488,10 @@ var serializeAws_json1_1UpdateRuleGroupRequest = function (input, context) {
|
|
|
5449
5488
|
}));
|
|
5450
5489
|
};
|
|
5451
5490
|
var serializeAws_json1_1UpdateWebACLRequest = function (input, context) {
|
|
5452
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.
|
|
5491
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CaptchaConfig !== undefined &&
|
|
5492
|
+
input.CaptchaConfig !== null && {
|
|
5493
|
+
CaptchaConfig: serializeAws_json1_1CaptchaConfig(input.CaptchaConfig, context),
|
|
5494
|
+
})), (input.CustomResponseBodies !== undefined &&
|
|
5453
5495
|
input.CustomResponseBodies !== null && {
|
|
5454
5496
|
CustomResponseBodies: serializeAws_json1_1CustomResponseBodies(input.CustomResponseBodies, context),
|
|
5455
5497
|
})), (input.DefaultAction !== undefined &&
|
|
@@ -5543,6 +5585,27 @@ var deserializeAws_json1_1ByteMatchStatement = function (output, context) {
|
|
|
5543
5585
|
: undefined,
|
|
5544
5586
|
};
|
|
5545
5587
|
};
|
|
5588
|
+
var deserializeAws_json1_1CaptchaAction = function (output, context) {
|
|
5589
|
+
return {
|
|
5590
|
+
CustomRequestHandling: output.CustomRequestHandling !== undefined && output.CustomRequestHandling !== null
|
|
5591
|
+
? deserializeAws_json1_1CustomRequestHandling(output.CustomRequestHandling, context)
|
|
5592
|
+
: undefined,
|
|
5593
|
+
};
|
|
5594
|
+
};
|
|
5595
|
+
var deserializeAws_json1_1CaptchaConfig = function (output, context) {
|
|
5596
|
+
return {
|
|
5597
|
+
ImmunityTimeProperty: output.ImmunityTimeProperty !== undefined && output.ImmunityTimeProperty !== null
|
|
5598
|
+
? deserializeAws_json1_1ImmunityTimeProperty(output.ImmunityTimeProperty, context)
|
|
5599
|
+
: undefined,
|
|
5600
|
+
};
|
|
5601
|
+
};
|
|
5602
|
+
var deserializeAws_json1_1CaptchaResponse = function (output, context) {
|
|
5603
|
+
return {
|
|
5604
|
+
FailureReason: __expectString(output.FailureReason),
|
|
5605
|
+
ResponseCode: __expectInt32(output.ResponseCode),
|
|
5606
|
+
SolveTimestamp: __expectLong(output.SolveTimestamp),
|
|
5607
|
+
};
|
|
5608
|
+
};
|
|
5546
5609
|
var deserializeAws_json1_1CheckCapacityResponse = function (output, context) {
|
|
5547
5610
|
return {
|
|
5548
5611
|
Capacity: __expectLong(output.Capacity),
|
|
@@ -5933,6 +5996,11 @@ var deserializeAws_json1_1HTTPRequest = function (output, context) {
|
|
|
5933
5996
|
URI: __expectString(output.URI),
|
|
5934
5997
|
};
|
|
5935
5998
|
};
|
|
5999
|
+
var deserializeAws_json1_1ImmunityTimeProperty = function (output, context) {
|
|
6000
|
+
return {
|
|
6001
|
+
ImmunityTime: __expectLong(output.ImmunityTime),
|
|
6002
|
+
};
|
|
6003
|
+
};
|
|
5936
6004
|
var deserializeAws_json1_1IPAddresses = function (output, context) {
|
|
5937
6005
|
return (output || [])
|
|
5938
6006
|
.filter(function (e) { return e != null; })
|
|
@@ -6446,6 +6514,9 @@ var deserializeAws_json1_1Rule = function (output, context) {
|
|
|
6446
6514
|
Action: output.Action !== undefined && output.Action !== null
|
|
6447
6515
|
? deserializeAws_json1_1RuleAction(output.Action, context)
|
|
6448
6516
|
: undefined,
|
|
6517
|
+
CaptchaConfig: output.CaptchaConfig !== undefined && output.CaptchaConfig !== null
|
|
6518
|
+
? deserializeAws_json1_1CaptchaConfig(output.CaptchaConfig, context)
|
|
6519
|
+
: undefined,
|
|
6449
6520
|
Name: __expectString(output.Name),
|
|
6450
6521
|
OverrideAction: output.OverrideAction !== undefined && output.OverrideAction !== null
|
|
6451
6522
|
? deserializeAws_json1_1OverrideAction(output.OverrideAction, context)
|
|
@@ -6470,6 +6541,9 @@ var deserializeAws_json1_1RuleAction = function (output, context) {
|
|
|
6470
6541
|
Block: output.Block !== undefined && output.Block !== null
|
|
6471
6542
|
? deserializeAws_json1_1BlockAction(output.Block, context)
|
|
6472
6543
|
: undefined,
|
|
6544
|
+
Captcha: output.Captcha !== undefined && output.Captcha !== null
|
|
6545
|
+
? deserializeAws_json1_1CaptchaAction(output.Captcha, context)
|
|
6546
|
+
: undefined,
|
|
6473
6547
|
Count: output.Count !== undefined && output.Count !== null
|
|
6474
6548
|
? deserializeAws_json1_1CountAction(output.Count, context)
|
|
6475
6549
|
: undefined,
|
|
@@ -6558,6 +6632,9 @@ var deserializeAws_json1_1RuleSummary = function (output, context) {
|
|
|
6558
6632
|
var deserializeAws_json1_1SampledHTTPRequest = function (output, context) {
|
|
6559
6633
|
return {
|
|
6560
6634
|
Action: __expectString(output.Action),
|
|
6635
|
+
CaptchaResponse: output.CaptchaResponse !== undefined && output.CaptchaResponse !== null
|
|
6636
|
+
? deserializeAws_json1_1CaptchaResponse(output.CaptchaResponse, context)
|
|
6637
|
+
: undefined,
|
|
6561
6638
|
Labels: output.Labels !== undefined && output.Labels !== null
|
|
6562
6639
|
? deserializeAws_json1_1Labels(output.Labels, context)
|
|
6563
6640
|
: undefined,
|
|
@@ -6819,6 +6896,11 @@ var deserializeAws_json1_1WAFLimitsExceededException = function (output, context
|
|
|
6819
6896
|
Message: __expectString(output.Message),
|
|
6820
6897
|
};
|
|
6821
6898
|
};
|
|
6899
|
+
var deserializeAws_json1_1WAFLogDestinationPermissionIssueException = function (output, context) {
|
|
6900
|
+
return {
|
|
6901
|
+
Message: __expectString(output.Message),
|
|
6902
|
+
};
|
|
6903
|
+
};
|
|
6822
6904
|
var deserializeAws_json1_1WAFNonexistentItemException = function (output, context) {
|
|
6823
6905
|
return {
|
|
6824
6906
|
Message: __expectString(output.Message),
|
|
@@ -6858,6 +6940,9 @@ var deserializeAws_json1_1WebACL = function (output, context) {
|
|
|
6858
6940
|
return {
|
|
6859
6941
|
ARN: __expectString(output.ARN),
|
|
6860
6942
|
Capacity: __expectLong(output.Capacity),
|
|
6943
|
+
CaptchaConfig: output.CaptchaConfig !== undefined && output.CaptchaConfig !== null
|
|
6944
|
+
? deserializeAws_json1_1CaptchaConfig(output.CaptchaConfig, context)
|
|
6945
|
+
: undefined,
|
|
6861
6946
|
CustomResponseBodies: output.CustomResponseBodies !== undefined && output.CustomResponseBodies !== null
|
|
6862
6947
|
? deserializeAws_json1_1CustomResponseBodies(output.CustomResponseBodies, context)
|
|
6863
6948
|
: undefined,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
4
5
|
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
|
10
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
11
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
13
|
export var getRuntimeConfig = function (config) {
|
|
13
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
14
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
14
15
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
15
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector,
|
|
16
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
16
17
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
|
-
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
15
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
16
|
export var getRuntimeConfig = function (config) {
|
|
17
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
19
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector,
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
21
|
};
|
package/dist-types/WAFV2.d.ts
CHANGED
|
@@ -389,28 +389,20 @@ export declare class WAFV2 extends WAFV2Client {
|
|
|
389
389
|
* steps:</p>
|
|
390
390
|
* <ol>
|
|
391
391
|
* <li>
|
|
392
|
-
* <p>Create an Amazon Kinesis Data Firehose.
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
*
|
|
396
|
-
* <p>Give the data firehose a name that starts with the prefix
|
|
397
|
-
* <code>aws-waf-logs-</code>. For example,
|
|
398
|
-
* <code>aws-waf-logs-us-east-2-analytics</code>.</p>
|
|
399
|
-
* <note>
|
|
400
|
-
* <p>Do not create the data firehose using a <code>Kinesis stream</code> as your
|
|
401
|
-
* source.</p>
|
|
402
|
-
* </note>
|
|
392
|
+
* <p>Create your logging destination. You can use an Amazon CloudWatch Logs log group, an Amazon Simple Storage Service (Amazon S3) bucket, or an Amazon Kinesis Data Firehose.
|
|
393
|
+
* For information about configuring logging destinations and the permissions that are required for each, see
|
|
394
|
+
* <a href="https://docs.aws.amazon.com/waf/latest/developerguide/logging.html">Logging web ACL traffic information</a>
|
|
395
|
+
* in the <i>WAF Developer Guide</i>.</p>
|
|
403
396
|
* </li>
|
|
404
397
|
* <li>
|
|
405
|
-
* <p>Associate
|
|
398
|
+
* <p>Associate your logging destination to your web ACL using a
|
|
406
399
|
* <code>PutLoggingConfiguration</code> request.</p>
|
|
407
400
|
* </li>
|
|
408
401
|
* </ol>
|
|
409
402
|
* <p>When you successfully enable logging using a <code>PutLoggingConfiguration</code>
|
|
410
|
-
*
|
|
411
|
-
*
|
|
412
|
-
*
|
|
413
|
-
* Guide</i>.</p>
|
|
403
|
+
* request, WAF creates an additional role or policy that is required to write
|
|
404
|
+
* logs to the logging destination. For an Amazon CloudWatch Logs log group, WAF creates a resource policy on the log group.
|
|
405
|
+
* For an Amazon S3 bucket, WAF creates a bucket policy. For an Amazon Kinesis Data Firehose, WAF creates a service-linked role.</p>
|
|
414
406
|
* <note>
|
|
415
407
|
* <p>This operation completely replaces the mutable specifications that you already have for the logging configuration with the ones that you provide to this call. To modify the logging configuration, retrieve it by calling <a>GetLoggingConfiguration</a>, update the settings as needed, and then provide the complete logging configuration specification to this call.</p>
|
|
416
408
|
* </note>
|
|
@@ -121,6 +121,14 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
121
121
|
* Optional logger for logging debug/info/warn/error.
|
|
122
122
|
*/
|
|
123
123
|
logger?: __Logger;
|
|
124
|
+
/**
|
|
125
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
126
|
+
*/
|
|
127
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
128
|
+
/**
|
|
129
|
+
* Enables FIPS compatible endpoints.
|
|
130
|
+
*/
|
|
131
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
124
132
|
/**
|
|
125
133
|
* Unique service identifier.
|
|
126
134
|
* @internal
|
|
@@ -24,7 +24,7 @@ export interface AssociateWebACLCommandOutput extends AssociateWebACLResponse, _
|
|
|
24
24
|
*
|
|
25
25
|
* @see {@link AssociateWebACLCommandInput} for command's `input` shape.
|
|
26
26
|
* @see {@link AssociateWebACLCommandOutput} for command's `response` shape.
|
|
27
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for
|
|
27
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
30
|
export declare class AssociateWebACLCommand extends $Command<AssociateWebACLCommandInput, AssociateWebACLCommandOutput, WAFV2ClientResolvedConfig> {
|
|
@@ -31,7 +31,7 @@ export interface CheckCapacityCommandOutput extends CheckCapacityResponse, __Met
|
|
|
31
31
|
*
|
|
32
32
|
* @see {@link CheckCapacityCommandInput} for command's `input` shape.
|
|
33
33
|
* @see {@link CheckCapacityCommandOutput} for command's `response` shape.
|
|
34
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for
|
|
34
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
37
|
export declare class CheckCapacityCommand extends $Command<CheckCapacityCommandInput, CheckCapacityCommandOutput, WAFV2ClientResolvedConfig> {
|
|
@@ -23,7 +23,7 @@ export interface CreateIPSetCommandOutput extends CreateIPSetResponse, __Metadat
|
|
|
23
23
|
*
|
|
24
24
|
* @see {@link CreateIPSetCommandInput} for command's `input` shape.
|
|
25
25
|
* @see {@link CreateIPSetCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for
|
|
26
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
export declare class CreateIPSetCommand extends $Command<CreateIPSetCommandInput, CreateIPSetCommandOutput, WAFV2ClientResolvedConfig> {
|
|
@@ -21,7 +21,7 @@ export interface CreateRegexPatternSetCommandOutput extends CreateRegexPatternSe
|
|
|
21
21
|
*
|
|
22
22
|
* @see {@link CreateRegexPatternSetCommandInput} for command's `input` shape.
|
|
23
23
|
* @see {@link CreateRegexPatternSetCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
export declare class CreateRegexPatternSetCommand extends $Command<CreateRegexPatternSetCommandInput, CreateRegexPatternSetCommandOutput, WAFV2ClientResolvedConfig> {
|
|
@@ -21,7 +21,7 @@ export interface CreateRuleGroupCommandOutput extends CreateRuleGroupResponse, _
|
|
|
21
21
|
*
|
|
22
22
|
* @see {@link CreateRuleGroupCommandInput} for command's `input` shape.
|
|
23
23
|
* @see {@link CreateRuleGroupCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
export declare class CreateRuleGroupCommand extends $Command<CreateRuleGroupCommandInput, CreateRuleGroupCommandOutput, WAFV2ClientResolvedConfig> {
|
|
@@ -21,7 +21,7 @@ export interface CreateWebACLCommandOutput extends CreateWebACLResponse, __Metad
|
|
|
21
21
|
*
|
|
22
22
|
* @see {@link CreateWebACLCommandInput} for command's `input` shape.
|
|
23
23
|
* @see {@link CreateWebACLCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
export declare class CreateWebACLCommand extends $Command<CreateWebACLCommandInput, CreateWebACLCommandOutput, WAFV2ClientResolvedConfig> {
|
|
@@ -22,7 +22,7 @@ export interface DeleteFirewallManagerRuleGroupsCommandOutput extends DeleteFire
|
|
|
22
22
|
*
|
|
23
23
|
* @see {@link DeleteFirewallManagerRuleGroupsCommandInput} for command's `input` shape.
|
|
24
24
|
* @see {@link DeleteFirewallManagerRuleGroupsCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for
|
|
25
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export declare class DeleteFirewallManagerRuleGroupsCommand extends $Command<DeleteFirewallManagerRuleGroupsCommandInput, DeleteFirewallManagerRuleGroupsCommandOutput, WAFV2ClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface DeleteIPSetCommandOutput extends DeleteIPSetResponse, __Metadat
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link DeleteIPSetCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link DeleteIPSetCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class DeleteIPSetCommand extends $Command<DeleteIPSetCommandInput, DeleteIPSetCommandOutput, WAFV2ClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface DeleteLoggingConfigurationCommandOutput extends DeleteLoggingCo
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link DeleteLoggingConfigurationCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link DeleteLoggingConfigurationCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class DeleteLoggingConfigurationCommand extends $Command<DeleteLoggingConfigurationCommandInput, DeleteLoggingConfigurationCommandOutput, WAFV2ClientResolvedConfig> {
|
|
@@ -21,7 +21,7 @@ export interface DeletePermissionPolicyCommandOutput extends DeletePermissionPol
|
|
|
21
21
|
*
|
|
22
22
|
* @see {@link DeletePermissionPolicyCommandInput} for command's `input` shape.
|
|
23
23
|
* @see {@link DeletePermissionPolicyCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
export declare class DeletePermissionPolicyCommand extends $Command<DeletePermissionPolicyCommandInput, DeletePermissionPolicyCommandOutput, WAFV2ClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface DeleteRegexPatternSetCommandOutput extends DeleteRegexPatternSe
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link DeleteRegexPatternSetCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link DeleteRegexPatternSetCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class DeleteRegexPatternSetCommand extends $Command<DeleteRegexPatternSetCommandInput, DeleteRegexPatternSetCommandOutput, WAFV2ClientResolvedConfig> {
|
|
@@ -20,7 +20,7 @@ export interface DeleteRuleGroupCommandOutput extends DeleteRuleGroupResponse, _
|
|
|
20
20
|
*
|
|
21
21
|
* @see {@link DeleteRuleGroupCommandInput} for command's `input` shape.
|
|
22
22
|
* @see {@link DeleteRuleGroupCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for
|
|
23
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
export declare class DeleteRuleGroupCommand extends $Command<DeleteRuleGroupCommandInput, DeleteRuleGroupCommandOutput, WAFV2ClientResolvedConfig> {
|
|
@@ -22,7 +22,7 @@ export interface DeleteWebACLCommandOutput extends DeleteWebACLResponse, __Metad
|
|
|
22
22
|
*
|
|
23
23
|
* @see {@link DeleteWebACLCommandInput} for command's `input` shape.
|
|
24
24
|
* @see {@link DeleteWebACLCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link WAFV2ClientResolvedConfig | config} for
|
|
25
|
+
* @see {@link WAFV2ClientResolvedConfig | config} for WAFV2Client's `config` shape.
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export declare class DeleteWebACLCommand extends $Command<DeleteWebACLCommandInput, DeleteWebACLCommandOutput, WAFV2ClientResolvedConfig> {
|