@aws-sdk/client-wafv2 3.271.0 → 3.273.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/README.md +7 -8
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +43 -14
- package/dist-cjs/protocols/Aws_json1_1.js +298 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +30 -8
- package/dist-es/protocols/Aws_json1_1.js +298 -0
- package/dist-types/WAFV2.d.ts +7 -8
- package/dist-types/WAFV2Client.d.ts +7 -8
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +324 -32
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +67 -10
- package/package.json +29 -29
package/README.md
CHANGED
|
@@ -25,16 +25,15 @@ have retained the prior names, endpoints, and namespaces. </p>
|
|
|
25
25
|
see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">WAF Developer Guide</a>. </p>
|
|
26
26
|
</note>
|
|
27
27
|
<p>WAF is a web application firewall that lets you monitor the HTTP and HTTPS
|
|
28
|
-
requests that are forwarded to Amazon CloudFront,
|
|
29
|
-
GraphQL API, or
|
|
28
|
+
requests that are forwarded to an Amazon CloudFront distribution, Amazon API Gateway REST API, Application Load Balancer, AppSync
|
|
29
|
+
GraphQL API, or Amazon Cognito user pool. WAF also lets you control access to your content,
|
|
30
|
+
to protect the Amazon Web Services resource that WAF is monitoring. Based on conditions that
|
|
30
31
|
you specify, such as the IP addresses that requests originate from or the values of query
|
|
31
|
-
strings, the
|
|
32
|
-
|
|
33
|
-
(Forbidden). You also can configure CloudFront to return a custom error page when a request is
|
|
34
|
-
blocked.</p>
|
|
32
|
+
strings, the protected resource responds to requests with either the requested content, an HTTP 403 status code
|
|
33
|
+
(Forbidden), or with a custom response. </p>
|
|
35
34
|
<p>This API guide is for developers who need detailed information about WAF API actions,
|
|
36
|
-
data types, and errors. For detailed information about WAF features and
|
|
37
|
-
|
|
35
|
+
data types, and errors. For detailed information about WAF features and guidance for configuring and using
|
|
36
|
+
WAF, see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/what-is-aws-waf.html">WAF Developer
|
|
38
37
|
Guide</a>.</p>
|
|
39
38
|
<p>You can make calls using the endpoints listed in <a href="https://docs.aws.amazon.com/general/latest/gr/waf.html">WAF endpoints and quotas</a>. </p>
|
|
40
39
|
<ul>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [v]: "Region" }, n = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: e }, "supportsFIPS"] }] }, o = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: e }, "supportsDualStack"] }] }, p = [j], q = [k], r = [m];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [n, o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://wafv2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [n], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://wafv2-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://wafv2.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ conditions: [{ [t]: f, [u]: [m, "af-south-1"] }], endpoint: { url: "https://wafv2.af-south-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-east-1"] }], endpoint: { url: "https://wafv2.ap-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-northeast-1"] }], endpoint: { url: "https://wafv2.ap-northeast-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-northeast-2"] }], endpoint: { url: "https://wafv2.ap-northeast-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-northeast-3"] }], endpoint: { url: "https://wafv2.ap-northeast-3.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-south-1"] }], endpoint: { url: "https://wafv2.ap-south-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-southeast-1"] }], endpoint: { url: "https://wafv2.ap-southeast-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-southeast-2"] }], endpoint: { url: "https://wafv2.ap-southeast-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-southeast-3"] }], endpoint: { url: "https://wafv2.ap-southeast-3.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ca-central-1"] }], endpoint: { url: "https://wafv2.ca-central-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-central-1"] }], endpoint: { url: "https://wafv2.eu-central-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-north-1"] }], endpoint: { url: "https://wafv2.eu-north-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-south-1"] }], endpoint: { url: "https://wafv2.eu-south-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-west-1"] }], endpoint: { url: "https://wafv2.eu-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-west-2"] }], endpoint: { url: "https://wafv2.eu-west-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-west-3"] }], endpoint: { url: "https://wafv2.eu-west-3.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "me-south-1"] }], endpoint: { url: "https://wafv2.me-south-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "sa-east-1"] }], endpoint: { url: "https://wafv2.sa-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-east-1"] }], endpoint: { url: "https://wafv2.us-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-east-2"] }], endpoint: { url: "https://wafv2.us-east-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-west-1"] }], endpoint: { url: "https://wafv2.us-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-west-2"] }], endpoint: { url: "https://wafv2.us-west-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "cn-north-1"] }], endpoint: { url: "https://wafv2.cn-north-1.amazonaws.com.cn", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "cn-northwest-1"] }], endpoint: { url: "https://wafv2.cn-northwest-1.amazonaws.com.cn", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-gov-east-1"] }], endpoint: { url: "https://wafv2.us-gov-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-gov-west-1"] }], endpoint: { url: "https://wafv2.us-gov-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://wafv2.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BodyFilterSensitiveLog = exports.AllQueryArgumentsFilterSensitiveLog = exports.AllowActionFilterSensitiveLog = exports.CustomRequestHandlingFilterSensitiveLog = exports.CustomHTTPHeaderFilterSensitiveLog = exports.AllFilterSensitiveLog = exports.ActionConditionFilterSensitiveLog = exports.WAFInvalidPermissionPolicyException = exports.WAFServiceLinkedRoleErrorException = exports.WAFLogDestinationPermissionIssueException = exports.ResourceType = exports.FailureReason = exports.FilterRequirement = exports.FilterBehavior = exports.Platform = exports.WAFAssociatedItemException = exports.WAFConfigurationWarningException = exports.ResponseContentType = exports.WAFTagOperationInternalErrorException = exports.WAFTagOperationException = exports.WAFOptimisticLockException = exports.WAFDuplicateItemException = exports.IPAddressVersion = exports.WAFSubscriptionNotFoundException = exports.WAFLimitsExceededException = exports.WAFInvalidResourceException = exports.WAFExpiredManagedRuleGroupVersionException = exports.Scope = exports.WAFUnavailableEntityException = exports.WAFNonexistentItemException = exports.WAFInvalidParameterException = exports.ParameterExceptionField = exports.WAFInvalidOperationException = exports.WAFInternalErrorException = exports.SensitivityLevel = exports.ComparisonOperator = exports.RateBasedStatementAggregateKeyType = exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.GetWebACLResponseFilterSensitiveLog = exports.GetWebACLForResourceResponseFilterSensitiveLog = exports.WebACLFilterSensitiveLog = exports.GetRuleGroupResponseFilterSensitiveLog = exports.UpdateWebACLRequestFilterSensitiveLog = exports.UpdateRuleGroupRequestFilterSensitiveLog = exports.RuleGroupFilterSensitiveLog = exports.CreateWebACLRequestFilterSensitiveLog = exports.CreateRuleGroupRequestFilterSensitiveLog = exports.CheckCapacityRequestFilterSensitiveLog = exports.FirewallManagerRuleGroupFilterSensitiveLog = exports.FirewallManagerStatementFilterSensitiveLog = exports.OrStatementFilterSensitiveLog = exports.AndStatementFilterSensitiveLog = exports.RuleFilterSensitiveLog = exports.RateBasedStatementFilterSensitiveLog = exports.NotStatementFilterSensitiveLog = exports.ManagedRuleGroupStatementFilterSensitiveLog = exports.StatementFilterSensitiveLog = exports.UpdateWebACLResponseFilterSensitiveLog = exports.UpdateRuleGroupResponseFilterSensitiveLog = exports.UpdateRegexPatternSetResponseFilterSensitiveLog = exports.UpdateRegexPatternSetRequestFilterSensitiveLog = exports.UpdateManagedRuleSetVersionExpiryDateResponseFilterSensitiveLog = exports.UpdateManagedRuleSetVersionExpiryDateRequestFilterSensitiveLog = exports.UpdateIPSetResponseFilterSensitiveLog = exports.UpdateIPSetRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.PutPermissionPolicyResponseFilterSensitiveLog = exports.PutPermissionPolicyRequestFilterSensitiveLog = exports.PutManagedRuleSetVersionsResponseFilterSensitiveLog = void 0;
|
|
3
|
+
exports.BodyFilterSensitiveLog = exports.AllQueryArgumentsFilterSensitiveLog = exports.AllowActionFilterSensitiveLog = exports.CustomRequestHandlingFilterSensitiveLog = exports.CustomHTTPHeaderFilterSensitiveLog = exports.AllFilterSensitiveLog = exports.ActionConditionFilterSensitiveLog = exports.WAFInvalidPermissionPolicyException = exports.WAFServiceLinkedRoleErrorException = exports.WAFLogDestinationPermissionIssueException = exports.ResourceType = exports.FailureReason = exports.FilterRequirement = exports.FilterBehavior = exports.Platform = exports.WAFAssociatedItemException = exports.WAFConfigurationWarningException = exports.ResponseContentType = exports.WAFTagOperationInternalErrorException = exports.WAFTagOperationException = exports.WAFOptimisticLockException = exports.WAFDuplicateItemException = exports.IPAddressVersion = exports.WAFSubscriptionNotFoundException = exports.WAFLimitsExceededException = exports.WAFInvalidResourceException = exports.WAFExpiredManagedRuleGroupVersionException = exports.Scope = exports.WAFUnavailableEntityException = exports.WAFNonexistentItemException = exports.WAFInvalidParameterException = exports.ParameterExceptionField = exports.WAFInvalidOperationException = exports.WAFInternalErrorException = exports.SensitivityLevel = exports.ComparisonOperator = exports.RateBasedStatementAggregateKeyType = exports.InspectionLevel = exports.PayloadType = exports.LabelMatchScope = exports.ForwardedIPPosition = exports.FallbackBehavior = exports.CountryCode = exports.TextTransformationType = exports.PositionalConstraint = exports.JsonMatchScope = exports.BodyParsingFallbackBehavior = exports.MapMatchScope = exports.OversizeHandling = exports.ActionValue = void 0;
|
|
4
|
+
exports.NoneActionFilterSensitiveLog = exports.ChallengeConfigFilterSensitiveLog = exports.CaptchaConfigFilterSensitiveLog = exports.ImmunityTimePropertyFilterSensitiveLog = exports.AssociateWebACLResponseFilterSensitiveLog = exports.AssociateWebACLRequestFilterSensitiveLog = exports.XssMatchStatementFilterSensitiveLog = exports.SqliMatchStatementFilterSensitiveLog = exports.SizeConstraintStatementFilterSensitiveLog = exports.RuleGroupReferenceStatementFilterSensitiveLog = exports.RegexPatternSetReferenceStatementFilterSensitiveLog = exports.RegexMatchStatementFilterSensitiveLog = exports.RuleActionOverrideFilterSensitiveLog = exports.RuleActionFilterSensitiveLog = exports.CountActionFilterSensitiveLog = exports.ChallengeActionFilterSensitiveLog = exports.CaptchaActionFilterSensitiveLog = exports.BlockActionFilterSensitiveLog = exports.CustomResponseFilterSensitiveLog = exports.ManagedRuleGroupConfigFilterSensitiveLog = exports.AWSManagedRulesBotControlRuleSetFilterSensitiveLog = exports.AWSManagedRulesATPRuleSetFilterSensitiveLog = exports.ResponseInspectionFilterSensitiveLog = exports.ResponseInspectionStatusCodeFilterSensitiveLog = exports.ResponseInspectionJsonFilterSensitiveLog = exports.ResponseInspectionHeaderFilterSensitiveLog = exports.ResponseInspectionBodyContainsFilterSensitiveLog = exports.RequestInspectionFilterSensitiveLog = exports.UsernameFieldFilterSensitiveLog = exports.PasswordFieldFilterSensitiveLog = exports.ExcludedRuleFilterSensitiveLog = exports.LabelMatchStatementFilterSensitiveLog = exports.IPSetReferenceStatementFilterSensitiveLog = exports.IPSetForwardedIPConfigFilterSensitiveLog = exports.GeoMatchStatementFilterSensitiveLog = exports.ForwardedIPConfigFilterSensitiveLog = exports.ByteMatchStatementFilterSensitiveLog = exports.TextTransformationFilterSensitiveLog = exports.FieldToMatchFilterSensitiveLog = exports.UriPathFilterSensitiveLog = exports.SingleQueryArgumentFilterSensitiveLog = exports.SingleHeaderFilterSensitiveLog = exports.QueryStringFilterSensitiveLog = exports.MethodFilterSensitiveLog = exports.JsonBodyFilterSensitiveLog = exports.JsonMatchPatternFilterSensitiveLog = exports.HeadersFilterSensitiveLog = exports.HeaderMatchPatternFilterSensitiveLog = exports.CookiesFilterSensitiveLog = exports.CookieMatchPatternFilterSensitiveLog = void 0;
|
|
5
|
+
exports.GetLoggingConfigurationResponseFilterSensitiveLog = exports.LoggingConfigurationFilterSensitiveLog = exports.LoggingFilterFilterSensitiveLog = exports.FilterFilterSensitiveLog = exports.ConditionFilterSensitiveLog = exports.LabelNameConditionFilterSensitiveLog = exports.GetLoggingConfigurationRequestFilterSensitiveLog = exports.GetIPSetResponseFilterSensitiveLog = exports.IPSetFilterSensitiveLog = exports.GetIPSetRequestFilterSensitiveLog = exports.GenerateMobileSdkReleaseUrlResponseFilterSensitiveLog = exports.GenerateMobileSdkReleaseUrlRequestFilterSensitiveLog = exports.DisassociateWebACLResponseFilterSensitiveLog = exports.DisassociateWebACLRequestFilterSensitiveLog = exports.DescribeManagedRuleGroupResponseFilterSensitiveLog = exports.RuleSummaryFilterSensitiveLog = exports.LabelSummaryFilterSensitiveLog = exports.DescribeManagedRuleGroupRequestFilterSensitiveLog = exports.DeleteWebACLResponseFilterSensitiveLog = exports.DeleteWebACLRequestFilterSensitiveLog = exports.DeleteRuleGroupResponseFilterSensitiveLog = exports.DeleteRuleGroupRequestFilterSensitiveLog = exports.DeleteRegexPatternSetResponseFilterSensitiveLog = exports.DeleteRegexPatternSetRequestFilterSensitiveLog = exports.DeletePermissionPolicyResponseFilterSensitiveLog = exports.DeletePermissionPolicyRequestFilterSensitiveLog = exports.DeleteLoggingConfigurationResponseFilterSensitiveLog = exports.DeleteLoggingConfigurationRequestFilterSensitiveLog = exports.DeleteIPSetResponseFilterSensitiveLog = exports.DeleteIPSetRequestFilterSensitiveLog = exports.DeleteFirewallManagerRuleGroupsResponseFilterSensitiveLog = exports.DeleteFirewallManagerRuleGroupsRequestFilterSensitiveLog = exports.CreateWebACLResponseFilterSensitiveLog = exports.WebACLSummaryFilterSensitiveLog = exports.DefaultActionFilterSensitiveLog = exports.CreateRuleGroupResponseFilterSensitiveLog = exports.RuleGroupSummaryFilterSensitiveLog = exports.CustomResponseBodyFilterSensitiveLog = exports.CreateRegexPatternSetResponseFilterSensitiveLog = exports.RegexPatternSetSummaryFilterSensitiveLog = exports.CreateRegexPatternSetRequestFilterSensitiveLog = exports.RegexFilterSensitiveLog = exports.CreateIPSetResponseFilterSensitiveLog = exports.IPSetSummaryFilterSensitiveLog = exports.CreateIPSetRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.CheckCapacityResponseFilterSensitiveLog = exports.VisibilityConfigFilterSensitiveLog = exports.LabelFilterSensitiveLog = exports.OverrideActionFilterSensitiveLog = void 0;
|
|
6
|
+
exports.TagInfoForResourceFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListRuleGroupsResponseFilterSensitiveLog = exports.ListRuleGroupsRequestFilterSensitiveLog = exports.ListResourcesForWebACLResponseFilterSensitiveLog = exports.ListResourcesForWebACLRequestFilterSensitiveLog = exports.ListRegexPatternSetsResponseFilterSensitiveLog = exports.ListRegexPatternSetsRequestFilterSensitiveLog = exports.ListMobileSdkReleasesResponseFilterSensitiveLog = exports.ReleaseSummaryFilterSensitiveLog = exports.ListMobileSdkReleasesRequestFilterSensitiveLog = exports.ListManagedRuleSetsResponseFilterSensitiveLog = exports.ManagedRuleSetSummaryFilterSensitiveLog = exports.ListManagedRuleSetsRequestFilterSensitiveLog = exports.ListLoggingConfigurationsResponseFilterSensitiveLog = exports.ListLoggingConfigurationsRequestFilterSensitiveLog = exports.ListIPSetsResponseFilterSensitiveLog = exports.ListIPSetsRequestFilterSensitiveLog = exports.ListAvailableManagedRuleGroupVersionsResponseFilterSensitiveLog = exports.ManagedRuleGroupVersionFilterSensitiveLog = exports.ListAvailableManagedRuleGroupVersionsRequestFilterSensitiveLog = exports.ListAvailableManagedRuleGroupsResponseFilterSensitiveLog = exports.ManagedRuleGroupSummaryFilterSensitiveLog = exports.ListAvailableManagedRuleGroupsRequestFilterSensitiveLog = exports.GetWebACLForResourceRequestFilterSensitiveLog = exports.GetWebACLRequestFilterSensitiveLog = exports.GetSampledRequestsResponseFilterSensitiveLog = exports.SampledHTTPRequestFilterSensitiveLog = exports.HTTPRequestFilterSensitiveLog = exports.HTTPHeaderFilterSensitiveLog = exports.ChallengeResponseFilterSensitiveLog = exports.CaptchaResponseFilterSensitiveLog = exports.GetSampledRequestsRequestFilterSensitiveLog = exports.TimeWindowFilterSensitiveLog = exports.GetRuleGroupRequestFilterSensitiveLog = exports.GetRegexPatternSetResponseFilterSensitiveLog = exports.RegexPatternSetFilterSensitiveLog = exports.GetRegexPatternSetRequestFilterSensitiveLog = exports.GetRateBasedStatementManagedKeysResponseFilterSensitiveLog = exports.RateBasedStatementManagedKeysIPSetFilterSensitiveLog = exports.GetRateBasedStatementManagedKeysRequestFilterSensitiveLog = exports.GetPermissionPolicyResponseFilterSensitiveLog = exports.GetPermissionPolicyRequestFilterSensitiveLog = exports.GetMobileSdkReleaseResponseFilterSensitiveLog = exports.MobileSdkReleaseFilterSensitiveLog = exports.GetMobileSdkReleaseRequestFilterSensitiveLog = exports.GetManagedRuleSetResponseFilterSensitiveLog = exports.ManagedRuleSetFilterSensitiveLog = exports.ManagedRuleSetVersionFilterSensitiveLog = exports.GetManagedRuleSetRequestFilterSensitiveLog = void 0;
|
|
7
|
+
exports.GetWebACLResponseFilterSensitiveLog = exports.GetWebACLForResourceResponseFilterSensitiveLog = exports.WebACLFilterSensitiveLog = exports.GetRuleGroupResponseFilterSensitiveLog = exports.UpdateWebACLRequestFilterSensitiveLog = exports.UpdateRuleGroupRequestFilterSensitiveLog = exports.RuleGroupFilterSensitiveLog = exports.CreateWebACLRequestFilterSensitiveLog = exports.CreateRuleGroupRequestFilterSensitiveLog = exports.CheckCapacityRequestFilterSensitiveLog = exports.FirewallManagerRuleGroupFilterSensitiveLog = exports.FirewallManagerStatementFilterSensitiveLog = exports.OrStatementFilterSensitiveLog = exports.AndStatementFilterSensitiveLog = exports.RuleFilterSensitiveLog = exports.RateBasedStatementFilterSensitiveLog = exports.NotStatementFilterSensitiveLog = exports.ManagedRuleGroupStatementFilterSensitiveLog = exports.StatementFilterSensitiveLog = exports.UpdateWebACLResponseFilterSensitiveLog = exports.UpdateRuleGroupResponseFilterSensitiveLog = exports.UpdateRegexPatternSetResponseFilterSensitiveLog = exports.UpdateRegexPatternSetRequestFilterSensitiveLog = exports.UpdateManagedRuleSetVersionExpiryDateResponseFilterSensitiveLog = exports.UpdateManagedRuleSetVersionExpiryDateRequestFilterSensitiveLog = exports.UpdateIPSetResponseFilterSensitiveLog = exports.UpdateIPSetRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.PutPermissionPolicyResponseFilterSensitiveLog = exports.PutPermissionPolicyRequestFilterSensitiveLog = exports.PutManagedRuleSetVersionsResponseFilterSensitiveLog = exports.PutManagedRuleSetVersionsRequestFilterSensitiveLog = exports.VersionToPublishFilterSensitiveLog = exports.PutLoggingConfigurationResponseFilterSensitiveLog = exports.PutLoggingConfigurationRequestFilterSensitiveLog = exports.ListWebACLsResponseFilterSensitiveLog = exports.ListWebACLsRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = void 0;
|
|
8
8
|
const WAFV2ServiceException_1 = require("./WAFV2ServiceException");
|
|
9
9
|
var ActionValue;
|
|
10
10
|
(function (ActionValue) {
|
|
@@ -340,16 +340,16 @@ var LabelMatchScope;
|
|
|
340
340
|
LabelMatchScope["LABEL"] = "LABEL";
|
|
341
341
|
LabelMatchScope["NAMESPACE"] = "NAMESPACE";
|
|
342
342
|
})(LabelMatchScope = exports.LabelMatchScope || (exports.LabelMatchScope = {}));
|
|
343
|
-
var InspectionLevel;
|
|
344
|
-
(function (InspectionLevel) {
|
|
345
|
-
InspectionLevel["COMMON"] = "COMMON";
|
|
346
|
-
InspectionLevel["TARGETED"] = "TARGETED";
|
|
347
|
-
})(InspectionLevel = exports.InspectionLevel || (exports.InspectionLevel = {}));
|
|
348
343
|
var PayloadType;
|
|
349
344
|
(function (PayloadType) {
|
|
350
345
|
PayloadType["FORM_ENCODED"] = "FORM_ENCODED";
|
|
351
346
|
PayloadType["JSON"] = "JSON";
|
|
352
347
|
})(PayloadType = exports.PayloadType || (exports.PayloadType = {}));
|
|
348
|
+
var InspectionLevel;
|
|
349
|
+
(function (InspectionLevel) {
|
|
350
|
+
InspectionLevel["COMMON"] = "COMMON";
|
|
351
|
+
InspectionLevel["TARGETED"] = "TARGETED";
|
|
352
|
+
})(InspectionLevel = exports.InspectionLevel || (exports.InspectionLevel = {}));
|
|
353
353
|
var RateBasedStatementAggregateKeyType;
|
|
354
354
|
(function (RateBasedStatementAggregateKeyType) {
|
|
355
355
|
RateBasedStatementAggregateKeyType["FORWARDED_IP"] = "FORWARDED_IP";
|
|
@@ -401,6 +401,7 @@ var ParameterExceptionField;
|
|
|
401
401
|
(function (ParameterExceptionField) {
|
|
402
402
|
ParameterExceptionField["AND_STATEMENT"] = "AND_STATEMENT";
|
|
403
403
|
ParameterExceptionField["ASSOCIABLE_RESOURCE"] = "ASSOCIABLE_RESOURCE";
|
|
404
|
+
ParameterExceptionField["ATP_RULE_SET_RESPONSE_INSPECTION"] = "ATP_RULE_SET_RESPONSE_INSPECTION";
|
|
404
405
|
ParameterExceptionField["BODY_PARSING_FALLBACK_BEHAVIOR"] = "BODY_PARSING_FALLBACK_BEHAVIOR";
|
|
405
406
|
ParameterExceptionField["BYTE_MATCH_STATEMENT"] = "BYTE_MATCH_STATEMENT";
|
|
406
407
|
ParameterExceptionField["CHALLENGE_CONFIG"] = "CHALLENGE_CONFIG";
|
|
@@ -843,10 +844,6 @@ const ExcludedRuleFilterSensitiveLog = (obj) => ({
|
|
|
843
844
|
...obj,
|
|
844
845
|
});
|
|
845
846
|
exports.ExcludedRuleFilterSensitiveLog = ExcludedRuleFilterSensitiveLog;
|
|
846
|
-
const AWSManagedRulesBotControlRuleSetFilterSensitiveLog = (obj) => ({
|
|
847
|
-
...obj,
|
|
848
|
-
});
|
|
849
|
-
exports.AWSManagedRulesBotControlRuleSetFilterSensitiveLog = AWSManagedRulesBotControlRuleSetFilterSensitiveLog;
|
|
850
847
|
const PasswordFieldFilterSensitiveLog = (obj) => ({
|
|
851
848
|
...obj,
|
|
852
849
|
});
|
|
@@ -855,6 +852,38 @@ const UsernameFieldFilterSensitiveLog = (obj) => ({
|
|
|
855
852
|
...obj,
|
|
856
853
|
});
|
|
857
854
|
exports.UsernameFieldFilterSensitiveLog = UsernameFieldFilterSensitiveLog;
|
|
855
|
+
const RequestInspectionFilterSensitiveLog = (obj) => ({
|
|
856
|
+
...obj,
|
|
857
|
+
});
|
|
858
|
+
exports.RequestInspectionFilterSensitiveLog = RequestInspectionFilterSensitiveLog;
|
|
859
|
+
const ResponseInspectionBodyContainsFilterSensitiveLog = (obj) => ({
|
|
860
|
+
...obj,
|
|
861
|
+
});
|
|
862
|
+
exports.ResponseInspectionBodyContainsFilterSensitiveLog = ResponseInspectionBodyContainsFilterSensitiveLog;
|
|
863
|
+
const ResponseInspectionHeaderFilterSensitiveLog = (obj) => ({
|
|
864
|
+
...obj,
|
|
865
|
+
});
|
|
866
|
+
exports.ResponseInspectionHeaderFilterSensitiveLog = ResponseInspectionHeaderFilterSensitiveLog;
|
|
867
|
+
const ResponseInspectionJsonFilterSensitiveLog = (obj) => ({
|
|
868
|
+
...obj,
|
|
869
|
+
});
|
|
870
|
+
exports.ResponseInspectionJsonFilterSensitiveLog = ResponseInspectionJsonFilterSensitiveLog;
|
|
871
|
+
const ResponseInspectionStatusCodeFilterSensitiveLog = (obj) => ({
|
|
872
|
+
...obj,
|
|
873
|
+
});
|
|
874
|
+
exports.ResponseInspectionStatusCodeFilterSensitiveLog = ResponseInspectionStatusCodeFilterSensitiveLog;
|
|
875
|
+
const ResponseInspectionFilterSensitiveLog = (obj) => ({
|
|
876
|
+
...obj,
|
|
877
|
+
});
|
|
878
|
+
exports.ResponseInspectionFilterSensitiveLog = ResponseInspectionFilterSensitiveLog;
|
|
879
|
+
const AWSManagedRulesATPRuleSetFilterSensitiveLog = (obj) => ({
|
|
880
|
+
...obj,
|
|
881
|
+
});
|
|
882
|
+
exports.AWSManagedRulesATPRuleSetFilterSensitiveLog = AWSManagedRulesATPRuleSetFilterSensitiveLog;
|
|
883
|
+
const AWSManagedRulesBotControlRuleSetFilterSensitiveLog = (obj) => ({
|
|
884
|
+
...obj,
|
|
885
|
+
});
|
|
886
|
+
exports.AWSManagedRulesBotControlRuleSetFilterSensitiveLog = AWSManagedRulesBotControlRuleSetFilterSensitiveLog;
|
|
858
887
|
const ManagedRuleGroupConfigFilterSensitiveLog = (obj) => ({
|
|
859
888
|
...obj,
|
|
860
889
|
});
|
|
@@ -2963,6 +2963,17 @@ const serializeAws_json1_1AssociateWebACLRequest = (input, context) => {
|
|
|
2963
2963
|
...(input.WebACLArn != null && { WebACLArn: input.WebACLArn }),
|
|
2964
2964
|
};
|
|
2965
2965
|
};
|
|
2966
|
+
const serializeAws_json1_1AWSManagedRulesATPRuleSet = (input, context) => {
|
|
2967
|
+
return {
|
|
2968
|
+
...(input.LoginPath != null && { LoginPath: input.LoginPath }),
|
|
2969
|
+
...(input.RequestInspection != null && {
|
|
2970
|
+
RequestInspection: serializeAws_json1_1RequestInspection(input.RequestInspection, context),
|
|
2971
|
+
}),
|
|
2972
|
+
...(input.ResponseInspection != null && {
|
|
2973
|
+
ResponseInspection: serializeAws_json1_1ResponseInspection(input.ResponseInspection, context),
|
|
2974
|
+
}),
|
|
2975
|
+
};
|
|
2976
|
+
};
|
|
2966
2977
|
const serializeAws_json1_1AWSManagedRulesBotControlRuleSet = (input, context) => {
|
|
2967
2978
|
return {
|
|
2968
2979
|
...(input.InspectionLevel != null && { InspectionLevel: input.InspectionLevel }),
|
|
@@ -3604,6 +3615,9 @@ const serializeAws_json1_1LoggingFilter = (input, context) => {
|
|
|
3604
3615
|
};
|
|
3605
3616
|
const serializeAws_json1_1ManagedRuleGroupConfig = (input, context) => {
|
|
3606
3617
|
return {
|
|
3618
|
+
...(input.AWSManagedRulesATPRuleSet != null && {
|
|
3619
|
+
AWSManagedRulesATPRuleSet: serializeAws_json1_1AWSManagedRulesATPRuleSet(input.AWSManagedRulesATPRuleSet, context),
|
|
3620
|
+
}),
|
|
3607
3621
|
...(input.AWSManagedRulesBotControlRuleSet != null && {
|
|
3608
3622
|
AWSManagedRulesBotControlRuleSet: serializeAws_json1_1AWSManagedRulesBotControlRuleSet(input.AWSManagedRulesBotControlRuleSet, context),
|
|
3609
3623
|
}),
|
|
@@ -3747,6 +3761,127 @@ const serializeAws_json1_1RegularExpressionList = (input, context) => {
|
|
|
3747
3761
|
return serializeAws_json1_1Regex(entry, context);
|
|
3748
3762
|
});
|
|
3749
3763
|
};
|
|
3764
|
+
const serializeAws_json1_1RequestInspection = (input, context) => {
|
|
3765
|
+
return {
|
|
3766
|
+
...(input.PasswordField != null && {
|
|
3767
|
+
PasswordField: serializeAws_json1_1PasswordField(input.PasswordField, context),
|
|
3768
|
+
}),
|
|
3769
|
+
...(input.PayloadType != null && { PayloadType: input.PayloadType }),
|
|
3770
|
+
...(input.UsernameField != null && {
|
|
3771
|
+
UsernameField: serializeAws_json1_1UsernameField(input.UsernameField, context),
|
|
3772
|
+
}),
|
|
3773
|
+
};
|
|
3774
|
+
};
|
|
3775
|
+
const serializeAws_json1_1ResponseInspection = (input, context) => {
|
|
3776
|
+
return {
|
|
3777
|
+
...(input.BodyContains != null && {
|
|
3778
|
+
BodyContains: serializeAws_json1_1ResponseInspectionBodyContains(input.BodyContains, context),
|
|
3779
|
+
}),
|
|
3780
|
+
...(input.Header != null && { Header: serializeAws_json1_1ResponseInspectionHeader(input.Header, context) }),
|
|
3781
|
+
...(input.Json != null && { Json: serializeAws_json1_1ResponseInspectionJson(input.Json, context) }),
|
|
3782
|
+
...(input.StatusCode != null && {
|
|
3783
|
+
StatusCode: serializeAws_json1_1ResponseInspectionStatusCode(input.StatusCode, context),
|
|
3784
|
+
}),
|
|
3785
|
+
};
|
|
3786
|
+
};
|
|
3787
|
+
const serializeAws_json1_1ResponseInspectionBodyContains = (input, context) => {
|
|
3788
|
+
return {
|
|
3789
|
+
...(input.FailureStrings != null && {
|
|
3790
|
+
FailureStrings: serializeAws_json1_1ResponseInspectionBodyContainsFailureStrings(input.FailureStrings, context),
|
|
3791
|
+
}),
|
|
3792
|
+
...(input.SuccessStrings != null && {
|
|
3793
|
+
SuccessStrings: serializeAws_json1_1ResponseInspectionBodyContainsSuccessStrings(input.SuccessStrings, context),
|
|
3794
|
+
}),
|
|
3795
|
+
};
|
|
3796
|
+
};
|
|
3797
|
+
const serializeAws_json1_1ResponseInspectionBodyContainsFailureStrings = (input, context) => {
|
|
3798
|
+
return input
|
|
3799
|
+
.filter((e) => e != null)
|
|
3800
|
+
.map((entry) => {
|
|
3801
|
+
return entry;
|
|
3802
|
+
});
|
|
3803
|
+
};
|
|
3804
|
+
const serializeAws_json1_1ResponseInspectionBodyContainsSuccessStrings = (input, context) => {
|
|
3805
|
+
return input
|
|
3806
|
+
.filter((e) => e != null)
|
|
3807
|
+
.map((entry) => {
|
|
3808
|
+
return entry;
|
|
3809
|
+
});
|
|
3810
|
+
};
|
|
3811
|
+
const serializeAws_json1_1ResponseInspectionHeader = (input, context) => {
|
|
3812
|
+
return {
|
|
3813
|
+
...(input.FailureValues != null && {
|
|
3814
|
+
FailureValues: serializeAws_json1_1ResponseInspectionHeaderFailureValues(input.FailureValues, context),
|
|
3815
|
+
}),
|
|
3816
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3817
|
+
...(input.SuccessValues != null && {
|
|
3818
|
+
SuccessValues: serializeAws_json1_1ResponseInspectionHeaderSuccessValues(input.SuccessValues, context),
|
|
3819
|
+
}),
|
|
3820
|
+
};
|
|
3821
|
+
};
|
|
3822
|
+
const serializeAws_json1_1ResponseInspectionHeaderFailureValues = (input, context) => {
|
|
3823
|
+
return input
|
|
3824
|
+
.filter((e) => e != null)
|
|
3825
|
+
.map((entry) => {
|
|
3826
|
+
return entry;
|
|
3827
|
+
});
|
|
3828
|
+
};
|
|
3829
|
+
const serializeAws_json1_1ResponseInspectionHeaderSuccessValues = (input, context) => {
|
|
3830
|
+
return input
|
|
3831
|
+
.filter((e) => e != null)
|
|
3832
|
+
.map((entry) => {
|
|
3833
|
+
return entry;
|
|
3834
|
+
});
|
|
3835
|
+
};
|
|
3836
|
+
const serializeAws_json1_1ResponseInspectionJson = (input, context) => {
|
|
3837
|
+
return {
|
|
3838
|
+
...(input.FailureValues != null && {
|
|
3839
|
+
FailureValues: serializeAws_json1_1ResponseInspectionJsonFailureValues(input.FailureValues, context),
|
|
3840
|
+
}),
|
|
3841
|
+
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
3842
|
+
...(input.SuccessValues != null && {
|
|
3843
|
+
SuccessValues: serializeAws_json1_1ResponseInspectionJsonSuccessValues(input.SuccessValues, context),
|
|
3844
|
+
}),
|
|
3845
|
+
};
|
|
3846
|
+
};
|
|
3847
|
+
const serializeAws_json1_1ResponseInspectionJsonFailureValues = (input, context) => {
|
|
3848
|
+
return input
|
|
3849
|
+
.filter((e) => e != null)
|
|
3850
|
+
.map((entry) => {
|
|
3851
|
+
return entry;
|
|
3852
|
+
});
|
|
3853
|
+
};
|
|
3854
|
+
const serializeAws_json1_1ResponseInspectionJsonSuccessValues = (input, context) => {
|
|
3855
|
+
return input
|
|
3856
|
+
.filter((e) => e != null)
|
|
3857
|
+
.map((entry) => {
|
|
3858
|
+
return entry;
|
|
3859
|
+
});
|
|
3860
|
+
};
|
|
3861
|
+
const serializeAws_json1_1ResponseInspectionStatusCode = (input, context) => {
|
|
3862
|
+
return {
|
|
3863
|
+
...(input.FailureCodes != null && {
|
|
3864
|
+
FailureCodes: serializeAws_json1_1ResponseInspectionStatusCodeFailureCodes(input.FailureCodes, context),
|
|
3865
|
+
}),
|
|
3866
|
+
...(input.SuccessCodes != null && {
|
|
3867
|
+
SuccessCodes: serializeAws_json1_1ResponseInspectionStatusCodeSuccessCodes(input.SuccessCodes, context),
|
|
3868
|
+
}),
|
|
3869
|
+
};
|
|
3870
|
+
};
|
|
3871
|
+
const serializeAws_json1_1ResponseInspectionStatusCodeFailureCodes = (input, context) => {
|
|
3872
|
+
return input
|
|
3873
|
+
.filter((e) => e != null)
|
|
3874
|
+
.map((entry) => {
|
|
3875
|
+
return entry;
|
|
3876
|
+
});
|
|
3877
|
+
};
|
|
3878
|
+
const serializeAws_json1_1ResponseInspectionStatusCodeSuccessCodes = (input, context) => {
|
|
3879
|
+
return input
|
|
3880
|
+
.filter((e) => e != null)
|
|
3881
|
+
.map((entry) => {
|
|
3882
|
+
return entry;
|
|
3883
|
+
});
|
|
3884
|
+
};
|
|
3750
3885
|
const serializeAws_json1_1Rule = (input, context) => {
|
|
3751
3886
|
return {
|
|
3752
3887
|
...(input.Action != null && { Action: serializeAws_json1_1RuleAction(input.Action, context) }),
|
|
@@ -4083,6 +4218,17 @@ const deserializeAws_json1_1AndStatement = (output, context) => {
|
|
|
4083
4218
|
const deserializeAws_json1_1AssociateWebACLResponse = (output, context) => {
|
|
4084
4219
|
return {};
|
|
4085
4220
|
};
|
|
4221
|
+
const deserializeAws_json1_1AWSManagedRulesATPRuleSet = (output, context) => {
|
|
4222
|
+
return {
|
|
4223
|
+
LoginPath: (0, smithy_client_1.expectString)(output.LoginPath),
|
|
4224
|
+
RequestInspection: output.RequestInspection != null
|
|
4225
|
+
? deserializeAws_json1_1RequestInspection(output.RequestInspection, context)
|
|
4226
|
+
: undefined,
|
|
4227
|
+
ResponseInspection: output.ResponseInspection != null
|
|
4228
|
+
? deserializeAws_json1_1ResponseInspection(output.ResponseInspection, context)
|
|
4229
|
+
: undefined,
|
|
4230
|
+
};
|
|
4231
|
+
};
|
|
4086
4232
|
const deserializeAws_json1_1AWSManagedRulesBotControlRuleSet = (output, context) => {
|
|
4087
4233
|
return {
|
|
4088
4234
|
InspectionLevel: (0, smithy_client_1.expectString)(output.InspectionLevel),
|
|
@@ -4811,6 +4957,9 @@ const deserializeAws_json1_1LoggingFilter = (output, context) => {
|
|
|
4811
4957
|
};
|
|
4812
4958
|
const deserializeAws_json1_1ManagedRuleGroupConfig = (output, context) => {
|
|
4813
4959
|
return {
|
|
4960
|
+
AWSManagedRulesATPRuleSet: output.AWSManagedRulesATPRuleSet != null
|
|
4961
|
+
? deserializeAws_json1_1AWSManagedRulesATPRuleSet(output.AWSManagedRulesATPRuleSet, context)
|
|
4962
|
+
: undefined,
|
|
4814
4963
|
AWSManagedRulesBotControlRuleSet: output.AWSManagedRulesBotControlRuleSet != null
|
|
4815
4964
|
? deserializeAws_json1_1AWSManagedRulesBotControlRuleSet(output.AWSManagedRulesBotControlRuleSet, context)
|
|
4816
4965
|
: undefined,
|
|
@@ -5109,6 +5258,13 @@ const deserializeAws_json1_1ReleaseSummary = (output, context) => {
|
|
|
5109
5258
|
Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Timestamp))) : undefined,
|
|
5110
5259
|
};
|
|
5111
5260
|
};
|
|
5261
|
+
const deserializeAws_json1_1RequestInspection = (output, context) => {
|
|
5262
|
+
return {
|
|
5263
|
+
PasswordField: output.PasswordField != null ? deserializeAws_json1_1PasswordField(output.PasswordField, context) : undefined,
|
|
5264
|
+
PayloadType: (0, smithy_client_1.expectString)(output.PayloadType),
|
|
5265
|
+
UsernameField: output.UsernameField != null ? deserializeAws_json1_1UsernameField(output.UsernameField, context) : undefined,
|
|
5266
|
+
};
|
|
5267
|
+
};
|
|
5112
5268
|
const deserializeAws_json1_1ResourceArns = (output, context) => {
|
|
5113
5269
|
const retVal = (output || [])
|
|
5114
5270
|
.filter((e) => e != null)
|
|
@@ -5120,6 +5276,148 @@ const deserializeAws_json1_1ResourceArns = (output, context) => {
|
|
|
5120
5276
|
});
|
|
5121
5277
|
return retVal;
|
|
5122
5278
|
};
|
|
5279
|
+
const deserializeAws_json1_1ResponseInspection = (output, context) => {
|
|
5280
|
+
return {
|
|
5281
|
+
BodyContains: output.BodyContains != null
|
|
5282
|
+
? deserializeAws_json1_1ResponseInspectionBodyContains(output.BodyContains, context)
|
|
5283
|
+
: undefined,
|
|
5284
|
+
Header: output.Header != null ? deserializeAws_json1_1ResponseInspectionHeader(output.Header, context) : undefined,
|
|
5285
|
+
Json: output.Json != null ? deserializeAws_json1_1ResponseInspectionJson(output.Json, context) : undefined,
|
|
5286
|
+
StatusCode: output.StatusCode != null
|
|
5287
|
+
? deserializeAws_json1_1ResponseInspectionStatusCode(output.StatusCode, context)
|
|
5288
|
+
: undefined,
|
|
5289
|
+
};
|
|
5290
|
+
};
|
|
5291
|
+
const deserializeAws_json1_1ResponseInspectionBodyContains = (output, context) => {
|
|
5292
|
+
return {
|
|
5293
|
+
FailureStrings: output.FailureStrings != null
|
|
5294
|
+
? deserializeAws_json1_1ResponseInspectionBodyContainsFailureStrings(output.FailureStrings, context)
|
|
5295
|
+
: undefined,
|
|
5296
|
+
SuccessStrings: output.SuccessStrings != null
|
|
5297
|
+
? deserializeAws_json1_1ResponseInspectionBodyContainsSuccessStrings(output.SuccessStrings, context)
|
|
5298
|
+
: undefined,
|
|
5299
|
+
};
|
|
5300
|
+
};
|
|
5301
|
+
const deserializeAws_json1_1ResponseInspectionBodyContainsFailureStrings = (output, context) => {
|
|
5302
|
+
const retVal = (output || [])
|
|
5303
|
+
.filter((e) => e != null)
|
|
5304
|
+
.map((entry) => {
|
|
5305
|
+
if (entry === null) {
|
|
5306
|
+
return null;
|
|
5307
|
+
}
|
|
5308
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
5309
|
+
});
|
|
5310
|
+
return retVal;
|
|
5311
|
+
};
|
|
5312
|
+
const deserializeAws_json1_1ResponseInspectionBodyContainsSuccessStrings = (output, context) => {
|
|
5313
|
+
const retVal = (output || [])
|
|
5314
|
+
.filter((e) => e != null)
|
|
5315
|
+
.map((entry) => {
|
|
5316
|
+
if (entry === null) {
|
|
5317
|
+
return null;
|
|
5318
|
+
}
|
|
5319
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
5320
|
+
});
|
|
5321
|
+
return retVal;
|
|
5322
|
+
};
|
|
5323
|
+
const deserializeAws_json1_1ResponseInspectionHeader = (output, context) => {
|
|
5324
|
+
return {
|
|
5325
|
+
FailureValues: output.FailureValues != null
|
|
5326
|
+
? deserializeAws_json1_1ResponseInspectionHeaderFailureValues(output.FailureValues, context)
|
|
5327
|
+
: undefined,
|
|
5328
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
5329
|
+
SuccessValues: output.SuccessValues != null
|
|
5330
|
+
? deserializeAws_json1_1ResponseInspectionHeaderSuccessValues(output.SuccessValues, context)
|
|
5331
|
+
: undefined,
|
|
5332
|
+
};
|
|
5333
|
+
};
|
|
5334
|
+
const deserializeAws_json1_1ResponseInspectionHeaderFailureValues = (output, context) => {
|
|
5335
|
+
const retVal = (output || [])
|
|
5336
|
+
.filter((e) => e != null)
|
|
5337
|
+
.map((entry) => {
|
|
5338
|
+
if (entry === null) {
|
|
5339
|
+
return null;
|
|
5340
|
+
}
|
|
5341
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
5342
|
+
});
|
|
5343
|
+
return retVal;
|
|
5344
|
+
};
|
|
5345
|
+
const deserializeAws_json1_1ResponseInspectionHeaderSuccessValues = (output, context) => {
|
|
5346
|
+
const retVal = (output || [])
|
|
5347
|
+
.filter((e) => e != null)
|
|
5348
|
+
.map((entry) => {
|
|
5349
|
+
if (entry === null) {
|
|
5350
|
+
return null;
|
|
5351
|
+
}
|
|
5352
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
5353
|
+
});
|
|
5354
|
+
return retVal;
|
|
5355
|
+
};
|
|
5356
|
+
const deserializeAws_json1_1ResponseInspectionJson = (output, context) => {
|
|
5357
|
+
return {
|
|
5358
|
+
FailureValues: output.FailureValues != null
|
|
5359
|
+
? deserializeAws_json1_1ResponseInspectionJsonFailureValues(output.FailureValues, context)
|
|
5360
|
+
: undefined,
|
|
5361
|
+
Identifier: (0, smithy_client_1.expectString)(output.Identifier),
|
|
5362
|
+
SuccessValues: output.SuccessValues != null
|
|
5363
|
+
? deserializeAws_json1_1ResponseInspectionJsonSuccessValues(output.SuccessValues, context)
|
|
5364
|
+
: undefined,
|
|
5365
|
+
};
|
|
5366
|
+
};
|
|
5367
|
+
const deserializeAws_json1_1ResponseInspectionJsonFailureValues = (output, context) => {
|
|
5368
|
+
const retVal = (output || [])
|
|
5369
|
+
.filter((e) => e != null)
|
|
5370
|
+
.map((entry) => {
|
|
5371
|
+
if (entry === null) {
|
|
5372
|
+
return null;
|
|
5373
|
+
}
|
|
5374
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
5375
|
+
});
|
|
5376
|
+
return retVal;
|
|
5377
|
+
};
|
|
5378
|
+
const deserializeAws_json1_1ResponseInspectionJsonSuccessValues = (output, context) => {
|
|
5379
|
+
const retVal = (output || [])
|
|
5380
|
+
.filter((e) => e != null)
|
|
5381
|
+
.map((entry) => {
|
|
5382
|
+
if (entry === null) {
|
|
5383
|
+
return null;
|
|
5384
|
+
}
|
|
5385
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
5386
|
+
});
|
|
5387
|
+
return retVal;
|
|
5388
|
+
};
|
|
5389
|
+
const deserializeAws_json1_1ResponseInspectionStatusCode = (output, context) => {
|
|
5390
|
+
return {
|
|
5391
|
+
FailureCodes: output.FailureCodes != null
|
|
5392
|
+
? deserializeAws_json1_1ResponseInspectionStatusCodeFailureCodes(output.FailureCodes, context)
|
|
5393
|
+
: undefined,
|
|
5394
|
+
SuccessCodes: output.SuccessCodes != null
|
|
5395
|
+
? deserializeAws_json1_1ResponseInspectionStatusCodeSuccessCodes(output.SuccessCodes, context)
|
|
5396
|
+
: undefined,
|
|
5397
|
+
};
|
|
5398
|
+
};
|
|
5399
|
+
const deserializeAws_json1_1ResponseInspectionStatusCodeFailureCodes = (output, context) => {
|
|
5400
|
+
const retVal = (output || [])
|
|
5401
|
+
.filter((e) => e != null)
|
|
5402
|
+
.map((entry) => {
|
|
5403
|
+
if (entry === null) {
|
|
5404
|
+
return null;
|
|
5405
|
+
}
|
|
5406
|
+
return (0, smithy_client_1.expectInt32)(entry);
|
|
5407
|
+
});
|
|
5408
|
+
return retVal;
|
|
5409
|
+
};
|
|
5410
|
+
const deserializeAws_json1_1ResponseInspectionStatusCodeSuccessCodes = (output, context) => {
|
|
5411
|
+
const retVal = (output || [])
|
|
5412
|
+
.filter((e) => e != null)
|
|
5413
|
+
.map((entry) => {
|
|
5414
|
+
if (entry === null) {
|
|
5415
|
+
return null;
|
|
5416
|
+
}
|
|
5417
|
+
return (0, smithy_client_1.expectInt32)(entry);
|
|
5418
|
+
});
|
|
5419
|
+
return retVal;
|
|
5420
|
+
};
|
|
5123
5421
|
const deserializeAws_json1_1Rule = (output, context) => {
|
|
5124
5422
|
return {
|
|
5125
5423
|
Action: output.Action != null ? deserializeAws_json1_1RuleAction(output.Action, context) : undefined,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [v]: "Region" }, n = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: e }, "supportsFIPS"] }] }, o = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: e }, "supportsDualStack"] }] }, p = [j], q = [k], r = [m];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [n, o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://wafv2-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [n], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://wafv2-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://wafv2.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ conditions: [{ [t]: f, [u]: [m, "af-south-1"] }], endpoint: { url: "https://wafv2.af-south-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-east-1"] }], endpoint: { url: "https://wafv2.ap-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-northeast-1"] }], endpoint: { url: "https://wafv2.ap-northeast-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-northeast-2"] }], endpoint: { url: "https://wafv2.ap-northeast-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-northeast-3"] }], endpoint: { url: "https://wafv2.ap-northeast-3.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-south-1"] }], endpoint: { url: "https://wafv2.ap-south-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-southeast-1"] }], endpoint: { url: "https://wafv2.ap-southeast-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-southeast-2"] }], endpoint: { url: "https://wafv2.ap-southeast-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ap-southeast-3"] }], endpoint: { url: "https://wafv2.ap-southeast-3.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "ca-central-1"] }], endpoint: { url: "https://wafv2.ca-central-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-central-1"] }], endpoint: { url: "https://wafv2.eu-central-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-north-1"] }], endpoint: { url: "https://wafv2.eu-north-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-south-1"] }], endpoint: { url: "https://wafv2.eu-south-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-west-1"] }], endpoint: { url: "https://wafv2.eu-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-west-2"] }], endpoint: { url: "https://wafv2.eu-west-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "eu-west-3"] }], endpoint: { url: "https://wafv2.eu-west-3.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "me-south-1"] }], endpoint: { url: "https://wafv2.me-south-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "sa-east-1"] }], endpoint: { url: "https://wafv2.sa-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-east-1"] }], endpoint: { url: "https://wafv2.us-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-east-2"] }], endpoint: { url: "https://wafv2.us-east-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-west-1"] }], endpoint: { url: "https://wafv2.us-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-west-2"] }], endpoint: { url: "https://wafv2.us-west-2.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "cn-north-1"] }], endpoint: { url: "https://wafv2.cn-north-1.amazonaws.com.cn", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "cn-northwest-1"] }], endpoint: { url: "https://wafv2.cn-northwest-1.amazonaws.com.cn", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-gov-east-1"] }], endpoint: { url: "https://wafv2.us-gov-east-1.amazonaws.com", properties: l, headers: l }, type: d }, { conditions: [{ [t]: f, [u]: [m, "us-gov-west-1"] }], endpoint: { url: "https://wafv2.us-gov-west-1.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://wafv2.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -333,16 +333,16 @@ export var LabelMatchScope;
|
|
|
333
333
|
LabelMatchScope["LABEL"] = "LABEL";
|
|
334
334
|
LabelMatchScope["NAMESPACE"] = "NAMESPACE";
|
|
335
335
|
})(LabelMatchScope || (LabelMatchScope = {}));
|
|
336
|
-
export var InspectionLevel;
|
|
337
|
-
(function (InspectionLevel) {
|
|
338
|
-
InspectionLevel["COMMON"] = "COMMON";
|
|
339
|
-
InspectionLevel["TARGETED"] = "TARGETED";
|
|
340
|
-
})(InspectionLevel || (InspectionLevel = {}));
|
|
341
336
|
export var PayloadType;
|
|
342
337
|
(function (PayloadType) {
|
|
343
338
|
PayloadType["FORM_ENCODED"] = "FORM_ENCODED";
|
|
344
339
|
PayloadType["JSON"] = "JSON";
|
|
345
340
|
})(PayloadType || (PayloadType = {}));
|
|
341
|
+
export var InspectionLevel;
|
|
342
|
+
(function (InspectionLevel) {
|
|
343
|
+
InspectionLevel["COMMON"] = "COMMON";
|
|
344
|
+
InspectionLevel["TARGETED"] = "TARGETED";
|
|
345
|
+
})(InspectionLevel || (InspectionLevel = {}));
|
|
346
346
|
export var RateBasedStatementAggregateKeyType;
|
|
347
347
|
(function (RateBasedStatementAggregateKeyType) {
|
|
348
348
|
RateBasedStatementAggregateKeyType["FORWARDED_IP"] = "FORWARDED_IP";
|
|
@@ -392,6 +392,7 @@ export var ParameterExceptionField;
|
|
|
392
392
|
(function (ParameterExceptionField) {
|
|
393
393
|
ParameterExceptionField["AND_STATEMENT"] = "AND_STATEMENT";
|
|
394
394
|
ParameterExceptionField["ASSOCIABLE_RESOURCE"] = "ASSOCIABLE_RESOURCE";
|
|
395
|
+
ParameterExceptionField["ATP_RULE_SET_RESPONSE_INSPECTION"] = "ATP_RULE_SET_RESPONSE_INSPECTION";
|
|
395
396
|
ParameterExceptionField["BODY_PARSING_FALLBACK_BEHAVIOR"] = "BODY_PARSING_FALLBACK_BEHAVIOR";
|
|
396
397
|
ParameterExceptionField["BYTE_MATCH_STATEMENT"] = "BYTE_MATCH_STATEMENT";
|
|
397
398
|
ParameterExceptionField["CHALLENGE_CONFIG"] = "CHALLENGE_CONFIG";
|
|
@@ -791,15 +792,36 @@ export const LabelMatchStatementFilterSensitiveLog = (obj) => ({
|
|
|
791
792
|
export const ExcludedRuleFilterSensitiveLog = (obj) => ({
|
|
792
793
|
...obj,
|
|
793
794
|
});
|
|
794
|
-
export const AWSManagedRulesBotControlRuleSetFilterSensitiveLog = (obj) => ({
|
|
795
|
-
...obj,
|
|
796
|
-
});
|
|
797
795
|
export const PasswordFieldFilterSensitiveLog = (obj) => ({
|
|
798
796
|
...obj,
|
|
799
797
|
});
|
|
800
798
|
export const UsernameFieldFilterSensitiveLog = (obj) => ({
|
|
801
799
|
...obj,
|
|
802
800
|
});
|
|
801
|
+
export const RequestInspectionFilterSensitiveLog = (obj) => ({
|
|
802
|
+
...obj,
|
|
803
|
+
});
|
|
804
|
+
export const ResponseInspectionBodyContainsFilterSensitiveLog = (obj) => ({
|
|
805
|
+
...obj,
|
|
806
|
+
});
|
|
807
|
+
export const ResponseInspectionHeaderFilterSensitiveLog = (obj) => ({
|
|
808
|
+
...obj,
|
|
809
|
+
});
|
|
810
|
+
export const ResponseInspectionJsonFilterSensitiveLog = (obj) => ({
|
|
811
|
+
...obj,
|
|
812
|
+
});
|
|
813
|
+
export const ResponseInspectionStatusCodeFilterSensitiveLog = (obj) => ({
|
|
814
|
+
...obj,
|
|
815
|
+
});
|
|
816
|
+
export const ResponseInspectionFilterSensitiveLog = (obj) => ({
|
|
817
|
+
...obj,
|
|
818
|
+
});
|
|
819
|
+
export const AWSManagedRulesATPRuleSetFilterSensitiveLog = (obj) => ({
|
|
820
|
+
...obj,
|
|
821
|
+
});
|
|
822
|
+
export const AWSManagedRulesBotControlRuleSetFilterSensitiveLog = (obj) => ({
|
|
823
|
+
...obj,
|
|
824
|
+
});
|
|
803
825
|
export const ManagedRuleGroupConfigFilterSensitiveLog = (obj) => ({
|
|
804
826
|
...obj,
|
|
805
827
|
});
|