@aws-sdk/client-wafv2 3.40.0 → 3.45.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 +9 -0
- package/dist-cjs/models/models_0.js +42 -4
- package/dist-cjs/protocols/Aws_json1_1.js +97 -0
- package/dist-es/endpoints.js +9 -0
- package/dist-es/models/models_0.js +28 -0
- package/dist-es/protocols/Aws_json1_1.js +123 -38
- package/dist-types/WAFV2.d.ts +8 -16
- 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/ts3.4/models/models_0.d.ts +3 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,47 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-wafv2
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **clients:** update clients as of 11/18/2021 ([#3039](https://github.com/aws/aws-sdk-js-v3/issues/3039)) ([d2b2c45](https://github.com/aws/aws-sdk-js-v3/commit/d2b2c453315fc7bff798c1fb97c792e59274b4d6))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
* **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
6
47
|
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
7
48
|
|
|
8
49
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -14,6 +14,7 @@ const partitionHash = {
|
|
|
14
14
|
"ap-south-1",
|
|
15
15
|
"ap-southeast-1",
|
|
16
16
|
"ap-southeast-2",
|
|
17
|
+
"ap-southeast-3",
|
|
17
18
|
"ca-central-1",
|
|
18
19
|
"eu-central-1",
|
|
19
20
|
"eu-north-1",
|
|
@@ -78,6 +79,10 @@ const partitionHash = {
|
|
|
78
79
|
hostname: "wafv2.{region}.c2s.ic.gov",
|
|
79
80
|
tags: [],
|
|
80
81
|
},
|
|
82
|
+
{
|
|
83
|
+
hostname: "wafv2-fips.{region}.c2s.ic.gov",
|
|
84
|
+
tags: ["fips"],
|
|
85
|
+
},
|
|
81
86
|
],
|
|
82
87
|
},
|
|
83
88
|
"aws-iso-b": {
|
|
@@ -88,6 +93,10 @@ const partitionHash = {
|
|
|
88
93
|
hostname: "wafv2.{region}.sc2s.sgov.gov",
|
|
89
94
|
tags: [],
|
|
90
95
|
},
|
|
96
|
+
{
|
|
97
|
+
hostname: "wafv2-fips.{region}.sc2s.sgov.gov",
|
|
98
|
+
tags: ["fips"],
|
|
99
|
+
},
|
|
91
100
|
],
|
|
92
101
|
},
|
|
93
102
|
"aws-us-gov": {
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BlockAction = exports.CustomResponse = exports.WAFUnavailableEntityException = exports.WAFNonexistentItemException = exports.WAFInvalidParameterException = exports.ParameterExceptionField = exports.WAFInvalidOperationException = exports.WAFInternalErrorException = exports.AssociateWebACLResponse = exports.AssociateWebACLRequest = exports.XssMatchStatement = exports.SqliMatchStatement = exports.SizeConstraintStatement = exports.ComparisonOperator = exports.RuleGroupReferenceStatement = exports.RegexPatternSetReferenceStatement = exports.RegexMatchStatement = exports.RateBasedStatementAggregateKeyType = exports.ExcludedRule = exports.LabelMatchStatement = exports.LabelMatchScope = exports.IPSetReferenceStatement = exports.IPSetForwardedIPConfig = exports.ForwardedIPPosition = exports.GeoMatchStatement = exports.ForwardedIPConfig = exports.FallbackBehavior = exports.CountryCode = exports.ByteMatchStatement = exports.TextTransformation = exports.TextTransformationType = exports.PositionalConstraint = exports.FieldToMatch = exports.UriPath = exports.SingleQueryArgument = exports.SingleHeader = exports.QueryString = exports.Method = exports.JsonBody = exports.JsonMatchScope = exports.JsonMatchPattern = exports.BodyParsingFallbackBehavior = exports.Body = exports.AllQueryArguments = exports.AllowAction = exports.CustomRequestHandling = exports.CustomHTTPHeader = exports.All = exports.ActionCondition = exports.ActionValue = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.GetWebACLResponse = void 0;
|
|
4
|
+
exports.DeleteWebACLResponse = exports.DeleteWebACLRequest = exports.DeleteRuleGroupResponse = exports.DeleteRuleGroupRequest = exports.DeleteRegexPatternSetResponse = exports.DeleteRegexPatternSetRequest = exports.DeletePermissionPolicyResponse = exports.DeletePermissionPolicyRequest = exports.DeleteLoggingConfigurationResponse = exports.DeleteLoggingConfigurationRequest = exports.WAFAssociatedItemException = exports.DeleteIPSetResponse = exports.DeleteIPSetRequest = exports.DeleteFirewallManagerRuleGroupsResponse = exports.DeleteFirewallManagerRuleGroupsRequest = exports.CreateWebACLResponse = exports.WebACLSummary = exports.DefaultAction = exports.CreateRuleGroupResponse = exports.RuleGroupSummary = exports.CustomResponseBody = exports.ResponseContentType = exports.CreateRegexPatternSetResponse = exports.RegexPatternSetSummary = exports.CreateRegexPatternSetRequest = exports.Regex = exports.WAFTagOperationInternalErrorException = exports.WAFTagOperationException = exports.WAFOptimisticLockException = exports.WAFDuplicateItemException = exports.CreateIPSetResponse = exports.IPSetSummary = exports.CreateIPSetRequest = exports.Tag = exports.IPAddressVersion = exports.WAFSubscriptionNotFoundException = exports.WAFLimitsExceededException = exports.WAFInvalidResourceException = exports.WAFExpiredManagedRuleGroupVersionException = exports.CheckCapacityResponse = exports.Scope = exports.VisibilityConfig = exports.Label = exports.OverrideAction = exports.NoneAction = exports.CaptchaConfig = exports.ImmunityTimeProperty = exports.RuleAction = exports.CountAction = exports.CaptchaAction = void 0;
|
|
5
|
+
exports.ListLoggingConfigurationsRequest = exports.ListIPSetsResponse = exports.ListIPSetsRequest = exports.ListAvailableManagedRuleGroupVersionsResponse = exports.ManagedRuleGroupVersion = exports.ListAvailableManagedRuleGroupVersionsRequest = exports.ListAvailableManagedRuleGroupsResponse = exports.ManagedRuleGroupSummary = exports.ListAvailableManagedRuleGroupsRequest = exports.GetWebACLForResourceRequest = exports.GetWebACLRequest = exports.GetSampledRequestsResponse = exports.SampledHTTPRequest = exports.HTTPRequest = exports.HTTPHeader = exports.CaptchaResponse = exports.FailureReason = exports.GetSampledRequestsRequest = exports.TimeWindow = exports.GetRuleGroupRequest = exports.GetRegexPatternSetResponse = exports.RegexPatternSet = exports.GetRegexPatternSetRequest = exports.GetRateBasedStatementManagedKeysResponse = exports.RateBasedStatementManagedKeysIPSet = exports.GetRateBasedStatementManagedKeysRequest = exports.GetPermissionPolicyResponse = exports.GetPermissionPolicyRequest = exports.GetManagedRuleSetResponse = exports.ManagedRuleSet = exports.ManagedRuleSetVersion = exports.GetManagedRuleSetRequest = exports.GetLoggingConfigurationResponse = exports.LoggingConfiguration = exports.LoggingFilter = exports.Filter = exports.FilterRequirement = exports.Condition = exports.LabelNameCondition = exports.FilterBehavior = exports.GetLoggingConfigurationRequest = exports.GetIPSetResponse = exports.IPSet = exports.GetIPSetRequest = exports.DisassociateWebACLResponse = exports.DisassociateWebACLRequest = exports.DescribeManagedRuleGroupResponse = exports.RuleSummary = exports.LabelSummary = exports.DescribeManagedRuleGroupRequest = void 0;
|
|
6
|
+
exports.CreateWebACLRequest = exports.CreateRuleGroupRequest = exports.CheckCapacityRequest = exports.FirewallManagerRuleGroup = exports.FirewallManagerStatement = exports.OrStatement = exports.AndStatement = exports.Rule = exports.RateBasedStatement = exports.NotStatement = exports.ManagedRuleGroupStatement = exports.Statement = exports.UpdateWebACLResponse = exports.UpdateRuleGroupResponse = exports.UpdateRegexPatternSetResponse = exports.UpdateRegexPatternSetRequest = exports.UpdateManagedRuleSetVersionExpiryDateResponse = exports.UpdateManagedRuleSetVersionExpiryDateRequest = exports.UpdateIPSetResponse = exports.UpdateIPSetRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.WAFInvalidPermissionPolicyException = exports.PutPermissionPolicyResponse = exports.PutPermissionPolicyRequest = exports.PutManagedRuleSetVersionsResponse = exports.PutManagedRuleSetVersionsRequest = exports.VersionToPublish = exports.WAFServiceLinkedRoleErrorException = exports.WAFLogDestinationPermissionIssueException = exports.PutLoggingConfigurationResponse = exports.PutLoggingConfigurationRequest = exports.ListWebACLsResponse = exports.ListWebACLsRequest = exports.ListTagsForResourceResponse = exports.TagInfoForResource = exports.ListTagsForResourceRequest = exports.ListRuleGroupsResponse = exports.ListRuleGroupsRequest = exports.ListResourcesForWebACLResponse = exports.ListResourcesForWebACLRequest = exports.ResourceType = exports.ListRegexPatternSetsResponse = exports.ListRegexPatternSetsRequest = exports.ListManagedRuleSetsResponse = exports.ManagedRuleSetSummary = exports.ListManagedRuleSetsRequest = exports.ListLoggingConfigurationsResponse = void 0;
|
|
7
|
+
exports.GetWebACLResponse = exports.GetWebACLForResourceResponse = exports.WebACL = exports.GetRuleGroupResponse = exports.UpdateWebACLRequest = exports.UpdateRuleGroupRequest = exports.RuleGroup = void 0;
|
|
8
8
|
var ActionValue;
|
|
9
9
|
(function (ActionValue) {
|
|
10
10
|
ActionValue["ALLOW"] = "ALLOW";
|
|
11
11
|
ActionValue["BLOCK"] = "BLOCK";
|
|
12
|
+
ActionValue["CAPTCHA"] = "CAPTCHA";
|
|
12
13
|
ActionValue["COUNT"] = "COUNT";
|
|
14
|
+
ActionValue["EXCLUDED_AS_COUNT"] = "EXCLUDED_AS_COUNT";
|
|
13
15
|
})(ActionValue = exports.ActionValue || (exports.ActionValue = {}));
|
|
14
16
|
var ActionCondition;
|
|
15
17
|
(function (ActionCondition) {
|
|
@@ -565,6 +567,7 @@ var ParameterExceptionField;
|
|
|
565
567
|
ParameterExceptionField["JSON_MATCH_SCOPE"] = "JSON_MATCH_SCOPE";
|
|
566
568
|
ParameterExceptionField["LABEL_MATCH_STATEMENT"] = "LABEL_MATCH_STATEMENT";
|
|
567
569
|
ParameterExceptionField["LOGGING_FILTER"] = "LOGGING_FILTER";
|
|
570
|
+
ParameterExceptionField["LOG_DESTINATION"] = "LOG_DESTINATION";
|
|
568
571
|
ParameterExceptionField["MANAGED_RULE_SET"] = "MANAGED_RULE_SET";
|
|
569
572
|
ParameterExceptionField["MANAGED_RULE_SET_STATEMENT"] = "MANAGED_RULE_SET_STATEMENT";
|
|
570
573
|
ParameterExceptionField["METRIC_NAME"] = "METRIC_NAME";
|
|
@@ -624,6 +627,12 @@ var BlockAction;
|
|
|
624
627
|
...obj,
|
|
625
628
|
});
|
|
626
629
|
})(BlockAction = exports.BlockAction || (exports.BlockAction = {}));
|
|
630
|
+
var CaptchaAction;
|
|
631
|
+
(function (CaptchaAction) {
|
|
632
|
+
CaptchaAction.filterSensitiveLog = (obj) => ({
|
|
633
|
+
...obj,
|
|
634
|
+
});
|
|
635
|
+
})(CaptchaAction = exports.CaptchaAction || (exports.CaptchaAction = {}));
|
|
627
636
|
var CountAction;
|
|
628
637
|
(function (CountAction) {
|
|
629
638
|
CountAction.filterSensitiveLog = (obj) => ({
|
|
@@ -636,6 +645,18 @@ var RuleAction;
|
|
|
636
645
|
...obj,
|
|
637
646
|
});
|
|
638
647
|
})(RuleAction = exports.RuleAction || (exports.RuleAction = {}));
|
|
648
|
+
var ImmunityTimeProperty;
|
|
649
|
+
(function (ImmunityTimeProperty) {
|
|
650
|
+
ImmunityTimeProperty.filterSensitiveLog = (obj) => ({
|
|
651
|
+
...obj,
|
|
652
|
+
});
|
|
653
|
+
})(ImmunityTimeProperty = exports.ImmunityTimeProperty || (exports.ImmunityTimeProperty = {}));
|
|
654
|
+
var CaptchaConfig;
|
|
655
|
+
(function (CaptchaConfig) {
|
|
656
|
+
CaptchaConfig.filterSensitiveLog = (obj) => ({
|
|
657
|
+
...obj,
|
|
658
|
+
});
|
|
659
|
+
})(CaptchaConfig = exports.CaptchaConfig || (exports.CaptchaConfig = {}));
|
|
639
660
|
var NoneAction;
|
|
640
661
|
(function (NoneAction) {
|
|
641
662
|
NoneAction.filterSensitiveLog = (obj) => ({
|
|
@@ -1100,6 +1121,17 @@ var GetSampledRequestsRequest;
|
|
|
1100
1121
|
...obj,
|
|
1101
1122
|
});
|
|
1102
1123
|
})(GetSampledRequestsRequest = exports.GetSampledRequestsRequest || (exports.GetSampledRequestsRequest = {}));
|
|
1124
|
+
var FailureReason;
|
|
1125
|
+
(function (FailureReason) {
|
|
1126
|
+
FailureReason["TOKEN_EXPIRED"] = "TOKEN_EXPIRED";
|
|
1127
|
+
FailureReason["TOKEN_MISSING"] = "TOKEN_MISSING";
|
|
1128
|
+
})(FailureReason = exports.FailureReason || (exports.FailureReason = {}));
|
|
1129
|
+
var CaptchaResponse;
|
|
1130
|
+
(function (CaptchaResponse) {
|
|
1131
|
+
CaptchaResponse.filterSensitiveLog = (obj) => ({
|
|
1132
|
+
...obj,
|
|
1133
|
+
});
|
|
1134
|
+
})(CaptchaResponse = exports.CaptchaResponse || (exports.CaptchaResponse = {}));
|
|
1103
1135
|
var HTTPHeader;
|
|
1104
1136
|
(function (HTTPHeader) {
|
|
1105
1137
|
HTTPHeader.filterSensitiveLog = (obj) => ({
|
|
@@ -1298,6 +1330,12 @@ var PutLoggingConfigurationResponse;
|
|
|
1298
1330
|
...obj,
|
|
1299
1331
|
});
|
|
1300
1332
|
})(PutLoggingConfigurationResponse = exports.PutLoggingConfigurationResponse || (exports.PutLoggingConfigurationResponse = {}));
|
|
1333
|
+
var WAFLogDestinationPermissionIssueException;
|
|
1334
|
+
(function (WAFLogDestinationPermissionIssueException) {
|
|
1335
|
+
WAFLogDestinationPermissionIssueException.filterSensitiveLog = (obj) => ({
|
|
1336
|
+
...obj,
|
|
1337
|
+
});
|
|
1338
|
+
})(WAFLogDestinationPermissionIssueException = exports.WAFLogDestinationPermissionIssueException || (exports.WAFLogDestinationPermissionIssueException = {}));
|
|
1301
1339
|
var WAFServiceLinkedRoleErrorException;
|
|
1302
1340
|
(function (WAFServiceLinkedRoleErrorException) {
|
|
1303
1341
|
WAFServiceLinkedRoleErrorException.filterSensitiveLog = (obj) => ({
|
|
@@ -3314,6 +3314,14 @@ const deserializeAws_json1_1PutLoggingConfigurationCommandError = async (output,
|
|
|
3314
3314
|
$metadata: deserializeMetadata(output),
|
|
3315
3315
|
};
|
|
3316
3316
|
break;
|
|
3317
|
+
case "WAFLogDestinationPermissionIssueException":
|
|
3318
|
+
case "com.amazonaws.wafv2#WAFLogDestinationPermissionIssueException":
|
|
3319
|
+
response = {
|
|
3320
|
+
...(await deserializeAws_json1_1WAFLogDestinationPermissionIssueExceptionResponse(parsedOutput, context)),
|
|
3321
|
+
name: errorCode,
|
|
3322
|
+
$metadata: deserializeMetadata(output),
|
|
3323
|
+
};
|
|
3324
|
+
break;
|
|
3317
3325
|
case "WAFNonexistentItemException":
|
|
3318
3326
|
case "com.amazonaws.wafv2#WAFNonexistentItemException":
|
|
3319
3327
|
response = {
|
|
@@ -4292,6 +4300,17 @@ const deserializeAws_json1_1WAFLimitsExceededExceptionResponse = async (parsedOu
|
|
|
4292
4300
|
};
|
|
4293
4301
|
return contents;
|
|
4294
4302
|
};
|
|
4303
|
+
const deserializeAws_json1_1WAFLogDestinationPermissionIssueExceptionResponse = async (parsedOutput, context) => {
|
|
4304
|
+
const body = parsedOutput.body;
|
|
4305
|
+
const deserialized = deserializeAws_json1_1WAFLogDestinationPermissionIssueException(body, context);
|
|
4306
|
+
const contents = {
|
|
4307
|
+
name: "WAFLogDestinationPermissionIssueException",
|
|
4308
|
+
$fault: "client",
|
|
4309
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4310
|
+
...deserialized,
|
|
4311
|
+
};
|
|
4312
|
+
return contents;
|
|
4313
|
+
};
|
|
4295
4314
|
const deserializeAws_json1_1WAFNonexistentItemExceptionResponse = async (parsedOutput, context) => {
|
|
4296
4315
|
const body = parsedOutput.body;
|
|
4297
4316
|
const deserialized = deserializeAws_json1_1WAFNonexistentItemException(body, context);
|
|
@@ -4425,6 +4444,22 @@ const serializeAws_json1_1ByteMatchStatement = (input, context) => {
|
|
|
4425
4444
|
}),
|
|
4426
4445
|
};
|
|
4427
4446
|
};
|
|
4447
|
+
const serializeAws_json1_1CaptchaAction = (input, context) => {
|
|
4448
|
+
return {
|
|
4449
|
+
...(input.CustomRequestHandling !== undefined &&
|
|
4450
|
+
input.CustomRequestHandling !== null && {
|
|
4451
|
+
CustomRequestHandling: serializeAws_json1_1CustomRequestHandling(input.CustomRequestHandling, context),
|
|
4452
|
+
}),
|
|
4453
|
+
};
|
|
4454
|
+
};
|
|
4455
|
+
const serializeAws_json1_1CaptchaConfig = (input, context) => {
|
|
4456
|
+
return {
|
|
4457
|
+
...(input.ImmunityTimeProperty !== undefined &&
|
|
4458
|
+
input.ImmunityTimeProperty !== null && {
|
|
4459
|
+
ImmunityTimeProperty: serializeAws_json1_1ImmunityTimeProperty(input.ImmunityTimeProperty, context),
|
|
4460
|
+
}),
|
|
4461
|
+
};
|
|
4462
|
+
};
|
|
4428
4463
|
const serializeAws_json1_1CheckCapacityRequest = (input, context) => {
|
|
4429
4464
|
return {
|
|
4430
4465
|
...(input.Rules !== undefined &&
|
|
@@ -4517,6 +4552,10 @@ const serializeAws_json1_1CreateRuleGroupRequest = (input, context) => {
|
|
|
4517
4552
|
};
|
|
4518
4553
|
const serializeAws_json1_1CreateWebACLRequest = (input, context) => {
|
|
4519
4554
|
return {
|
|
4555
|
+
...(input.CaptchaConfig !== undefined &&
|
|
4556
|
+
input.CaptchaConfig !== null && {
|
|
4557
|
+
CaptchaConfig: serializeAws_json1_1CaptchaConfig(input.CaptchaConfig, context),
|
|
4558
|
+
}),
|
|
4520
4559
|
...(input.CustomResponseBodies !== undefined &&
|
|
4521
4560
|
input.CustomResponseBodies !== null && {
|
|
4522
4561
|
CustomResponseBodies: serializeAws_json1_1CustomResponseBodies(input.CustomResponseBodies, context),
|
|
@@ -4804,6 +4843,11 @@ const serializeAws_json1_1GetWebACLRequest = (input, context) => {
|
|
|
4804
4843
|
...(input.Scope !== undefined && input.Scope !== null && { Scope: input.Scope }),
|
|
4805
4844
|
};
|
|
4806
4845
|
};
|
|
4846
|
+
const serializeAws_json1_1ImmunityTimeProperty = (input, context) => {
|
|
4847
|
+
return {
|
|
4848
|
+
...(input.ImmunityTime !== undefined && input.ImmunityTime !== null && { ImmunityTime: input.ImmunityTime }),
|
|
4849
|
+
};
|
|
4850
|
+
};
|
|
4807
4851
|
const serializeAws_json1_1IPAddresses = (input, context) => {
|
|
4808
4852
|
return input
|
|
4809
4853
|
.filter((e) => e != null)
|
|
@@ -5133,6 +5177,10 @@ const serializeAws_json1_1Rule = (input, context) => {
|
|
|
5133
5177
|
return {
|
|
5134
5178
|
...(input.Action !== undefined &&
|
|
5135
5179
|
input.Action !== null && { Action: serializeAws_json1_1RuleAction(input.Action, context) }),
|
|
5180
|
+
...(input.CaptchaConfig !== undefined &&
|
|
5181
|
+
input.CaptchaConfig !== null && {
|
|
5182
|
+
CaptchaConfig: serializeAws_json1_1CaptchaConfig(input.CaptchaConfig, context),
|
|
5183
|
+
}),
|
|
5136
5184
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
5137
5185
|
...(input.OverrideAction !== undefined &&
|
|
5138
5186
|
input.OverrideAction !== null && {
|
|
@@ -5155,6 +5203,8 @@ const serializeAws_json1_1RuleAction = (input, context) => {
|
|
|
5155
5203
|
input.Allow !== null && { Allow: serializeAws_json1_1AllowAction(input.Allow, context) }),
|
|
5156
5204
|
...(input.Block !== undefined &&
|
|
5157
5205
|
input.Block !== null && { Block: serializeAws_json1_1BlockAction(input.Block, context) }),
|
|
5206
|
+
...(input.Captcha !== undefined &&
|
|
5207
|
+
input.Captcha !== null && { Captcha: serializeAws_json1_1CaptchaAction(input.Captcha, context) }),
|
|
5158
5208
|
...(input.Count !== undefined &&
|
|
5159
5209
|
input.Count !== null && { Count: serializeAws_json1_1CountAction(input.Count, context) }),
|
|
5160
5210
|
};
|
|
@@ -5399,6 +5449,10 @@ const serializeAws_json1_1UpdateRuleGroupRequest = (input, context) => {
|
|
|
5399
5449
|
};
|
|
5400
5450
|
const serializeAws_json1_1UpdateWebACLRequest = (input, context) => {
|
|
5401
5451
|
return {
|
|
5452
|
+
...(input.CaptchaConfig !== undefined &&
|
|
5453
|
+
input.CaptchaConfig !== null && {
|
|
5454
|
+
CaptchaConfig: serializeAws_json1_1CaptchaConfig(input.CaptchaConfig, context),
|
|
5455
|
+
}),
|
|
5402
5456
|
...(input.CustomResponseBodies !== undefined &&
|
|
5403
5457
|
input.CustomResponseBodies !== null && {
|
|
5404
5458
|
CustomResponseBodies: serializeAws_json1_1CustomResponseBodies(input.CustomResponseBodies, context),
|
|
@@ -5513,6 +5567,27 @@ const deserializeAws_json1_1ByteMatchStatement = (output, context) => {
|
|
|
5513
5567
|
: undefined,
|
|
5514
5568
|
};
|
|
5515
5569
|
};
|
|
5570
|
+
const deserializeAws_json1_1CaptchaAction = (output, context) => {
|
|
5571
|
+
return {
|
|
5572
|
+
CustomRequestHandling: output.CustomRequestHandling !== undefined && output.CustomRequestHandling !== null
|
|
5573
|
+
? deserializeAws_json1_1CustomRequestHandling(output.CustomRequestHandling, context)
|
|
5574
|
+
: undefined,
|
|
5575
|
+
};
|
|
5576
|
+
};
|
|
5577
|
+
const deserializeAws_json1_1CaptchaConfig = (output, context) => {
|
|
5578
|
+
return {
|
|
5579
|
+
ImmunityTimeProperty: output.ImmunityTimeProperty !== undefined && output.ImmunityTimeProperty !== null
|
|
5580
|
+
? deserializeAws_json1_1ImmunityTimeProperty(output.ImmunityTimeProperty, context)
|
|
5581
|
+
: undefined,
|
|
5582
|
+
};
|
|
5583
|
+
};
|
|
5584
|
+
const deserializeAws_json1_1CaptchaResponse = (output, context) => {
|
|
5585
|
+
return {
|
|
5586
|
+
FailureReason: smithy_client_1.expectString(output.FailureReason),
|
|
5587
|
+
ResponseCode: smithy_client_1.expectInt32(output.ResponseCode),
|
|
5588
|
+
SolveTimestamp: smithy_client_1.expectLong(output.SolveTimestamp),
|
|
5589
|
+
};
|
|
5590
|
+
};
|
|
5516
5591
|
const deserializeAws_json1_1CheckCapacityResponse = (output, context) => {
|
|
5517
5592
|
return {
|
|
5518
5593
|
Capacity: smithy_client_1.expectLong(output.Capacity),
|
|
@@ -5904,6 +5979,11 @@ const deserializeAws_json1_1HTTPRequest = (output, context) => {
|
|
|
5904
5979
|
URI: smithy_client_1.expectString(output.URI),
|
|
5905
5980
|
};
|
|
5906
5981
|
};
|
|
5982
|
+
const deserializeAws_json1_1ImmunityTimeProperty = (output, context) => {
|
|
5983
|
+
return {
|
|
5984
|
+
ImmunityTime: smithy_client_1.expectLong(output.ImmunityTime),
|
|
5985
|
+
};
|
|
5986
|
+
};
|
|
5907
5987
|
const deserializeAws_json1_1IPAddresses = (output, context) => {
|
|
5908
5988
|
return (output || [])
|
|
5909
5989
|
.filter((e) => e != null)
|
|
@@ -6418,6 +6498,9 @@ const deserializeAws_json1_1Rule = (output, context) => {
|
|
|
6418
6498
|
Action: output.Action !== undefined && output.Action !== null
|
|
6419
6499
|
? deserializeAws_json1_1RuleAction(output.Action, context)
|
|
6420
6500
|
: undefined,
|
|
6501
|
+
CaptchaConfig: output.CaptchaConfig !== undefined && output.CaptchaConfig !== null
|
|
6502
|
+
? deserializeAws_json1_1CaptchaConfig(output.CaptchaConfig, context)
|
|
6503
|
+
: undefined,
|
|
6421
6504
|
Name: smithy_client_1.expectString(output.Name),
|
|
6422
6505
|
OverrideAction: output.OverrideAction !== undefined && output.OverrideAction !== null
|
|
6423
6506
|
? deserializeAws_json1_1OverrideAction(output.OverrideAction, context)
|
|
@@ -6442,6 +6525,9 @@ const deserializeAws_json1_1RuleAction = (output, context) => {
|
|
|
6442
6525
|
Block: output.Block !== undefined && output.Block !== null
|
|
6443
6526
|
? deserializeAws_json1_1BlockAction(output.Block, context)
|
|
6444
6527
|
: undefined,
|
|
6528
|
+
Captcha: output.Captcha !== undefined && output.Captcha !== null
|
|
6529
|
+
? deserializeAws_json1_1CaptchaAction(output.Captcha, context)
|
|
6530
|
+
: undefined,
|
|
6445
6531
|
Count: output.Count !== undefined && output.Count !== null
|
|
6446
6532
|
? deserializeAws_json1_1CountAction(output.Count, context)
|
|
6447
6533
|
: undefined,
|
|
@@ -6530,6 +6616,9 @@ const deserializeAws_json1_1RuleSummary = (output, context) => {
|
|
|
6530
6616
|
const deserializeAws_json1_1SampledHTTPRequest = (output, context) => {
|
|
6531
6617
|
return {
|
|
6532
6618
|
Action: smithy_client_1.expectString(output.Action),
|
|
6619
|
+
CaptchaResponse: output.CaptchaResponse !== undefined && output.CaptchaResponse !== null
|
|
6620
|
+
? deserializeAws_json1_1CaptchaResponse(output.CaptchaResponse, context)
|
|
6621
|
+
: undefined,
|
|
6533
6622
|
Labels: output.Labels !== undefined && output.Labels !== null
|
|
6534
6623
|
? deserializeAws_json1_1Labels(output.Labels, context)
|
|
6535
6624
|
: undefined,
|
|
@@ -6791,6 +6880,11 @@ const deserializeAws_json1_1WAFLimitsExceededException = (output, context) => {
|
|
|
6791
6880
|
Message: smithy_client_1.expectString(output.Message),
|
|
6792
6881
|
};
|
|
6793
6882
|
};
|
|
6883
|
+
const deserializeAws_json1_1WAFLogDestinationPermissionIssueException = (output, context) => {
|
|
6884
|
+
return {
|
|
6885
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
6886
|
+
};
|
|
6887
|
+
};
|
|
6794
6888
|
const deserializeAws_json1_1WAFNonexistentItemException = (output, context) => {
|
|
6795
6889
|
return {
|
|
6796
6890
|
Message: smithy_client_1.expectString(output.Message),
|
|
@@ -6830,6 +6924,9 @@ const deserializeAws_json1_1WebACL = (output, context) => {
|
|
|
6830
6924
|
return {
|
|
6831
6925
|
ARN: smithy_client_1.expectString(output.ARN),
|
|
6832
6926
|
Capacity: smithy_client_1.expectLong(output.Capacity),
|
|
6927
|
+
CaptchaConfig: output.CaptchaConfig !== undefined && output.CaptchaConfig !== null
|
|
6928
|
+
? deserializeAws_json1_1CaptchaConfig(output.CaptchaConfig, context)
|
|
6929
|
+
: undefined,
|
|
6833
6930
|
CustomResponseBodies: output.CustomResponseBodies !== undefined && output.CustomResponseBodies !== null
|
|
6834
6931
|
? deserializeAws_json1_1CustomResponseBodies(output.CustomResponseBodies, context)
|
|
6835
6932
|
: undefined,
|
package/dist-es/endpoints.js
CHANGED
|
@@ -12,6 +12,7 @@ var partitionHash = {
|
|
|
12
12
|
"ap-south-1",
|
|
13
13
|
"ap-southeast-1",
|
|
14
14
|
"ap-southeast-2",
|
|
15
|
+
"ap-southeast-3",
|
|
15
16
|
"ca-central-1",
|
|
16
17
|
"eu-central-1",
|
|
17
18
|
"eu-north-1",
|
|
@@ -76,6 +77,10 @@ var partitionHash = {
|
|
|
76
77
|
hostname: "wafv2.{region}.c2s.ic.gov",
|
|
77
78
|
tags: [],
|
|
78
79
|
},
|
|
80
|
+
{
|
|
81
|
+
hostname: "wafv2-fips.{region}.c2s.ic.gov",
|
|
82
|
+
tags: ["fips"],
|
|
83
|
+
},
|
|
79
84
|
],
|
|
80
85
|
},
|
|
81
86
|
"aws-iso-b": {
|
|
@@ -86,6 +91,10 @@ var partitionHash = {
|
|
|
86
91
|
hostname: "wafv2.{region}.sc2s.sgov.gov",
|
|
87
92
|
tags: [],
|
|
88
93
|
},
|
|
94
|
+
{
|
|
95
|
+
hostname: "wafv2-fips.{region}.sc2s.sgov.gov",
|
|
96
|
+
tags: ["fips"],
|
|
97
|
+
},
|
|
89
98
|
],
|
|
90
99
|
},
|
|
91
100
|
"aws-us-gov": {
|
|
@@ -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)); };
|