@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.
Files changed (68) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist-cjs/endpoints.js +74 -5
  3. package/dist-cjs/models/models_0.js +42 -4
  4. package/dist-cjs/protocols/Aws_json1_1.js +97 -0
  5. package/dist-cjs/runtimeConfig.browser.js +6 -3
  6. package/dist-cjs/runtimeConfig.js +5 -3
  7. package/dist-es/endpoints.js +74 -5
  8. package/dist-es/models/models_0.js +28 -0
  9. package/dist-es/protocols/Aws_json1_1.js +123 -38
  10. package/dist-es/runtimeConfig.browser.js +3 -2
  11. package/dist-es/runtimeConfig.js +3 -3
  12. package/dist-types/WAFV2.d.ts +8 -16
  13. package/dist-types/WAFV2Client.d.ts +8 -0
  14. package/dist-types/commands/AssociateWebACLCommand.d.ts +1 -1
  15. package/dist-types/commands/CheckCapacityCommand.d.ts +1 -1
  16. package/dist-types/commands/CreateIPSetCommand.d.ts +1 -1
  17. package/dist-types/commands/CreateRegexPatternSetCommand.d.ts +1 -1
  18. package/dist-types/commands/CreateRuleGroupCommand.d.ts +1 -1
  19. package/dist-types/commands/CreateWebACLCommand.d.ts +1 -1
  20. package/dist-types/commands/DeleteFirewallManagerRuleGroupsCommand.d.ts +1 -1
  21. package/dist-types/commands/DeleteIPSetCommand.d.ts +1 -1
  22. package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +1 -1
  23. package/dist-types/commands/DeletePermissionPolicyCommand.d.ts +1 -1
  24. package/dist-types/commands/DeleteRegexPatternSetCommand.d.ts +1 -1
  25. package/dist-types/commands/DeleteRuleGroupCommand.d.ts +1 -1
  26. package/dist-types/commands/DeleteWebACLCommand.d.ts +1 -1
  27. package/dist-types/commands/DescribeManagedRuleGroupCommand.d.ts +1 -1
  28. package/dist-types/commands/DisassociateWebACLCommand.d.ts +1 -1
  29. package/dist-types/commands/GetIPSetCommand.d.ts +1 -1
  30. package/dist-types/commands/GetLoggingConfigurationCommand.d.ts +1 -1
  31. package/dist-types/commands/GetManagedRuleSetCommand.d.ts +1 -1
  32. package/dist-types/commands/GetPermissionPolicyCommand.d.ts +1 -1
  33. package/dist-types/commands/GetRateBasedStatementManagedKeysCommand.d.ts +1 -1
  34. package/dist-types/commands/GetRegexPatternSetCommand.d.ts +1 -1
  35. package/dist-types/commands/GetRuleGroupCommand.d.ts +1 -1
  36. package/dist-types/commands/GetSampledRequestsCommand.d.ts +1 -1
  37. package/dist-types/commands/GetWebACLCommand.d.ts +1 -1
  38. package/dist-types/commands/GetWebACLForResourceCommand.d.ts +1 -1
  39. package/dist-types/commands/ListAvailableManagedRuleGroupVersionsCommand.d.ts +1 -1
  40. package/dist-types/commands/ListAvailableManagedRuleGroupsCommand.d.ts +1 -1
  41. package/dist-types/commands/ListIPSetsCommand.d.ts +1 -1
  42. package/dist-types/commands/ListLoggingConfigurationsCommand.d.ts +1 -1
  43. package/dist-types/commands/ListManagedRuleSetsCommand.d.ts +1 -1
  44. package/dist-types/commands/ListRegexPatternSetsCommand.d.ts +1 -1
  45. package/dist-types/commands/ListResourcesForWebACLCommand.d.ts +1 -1
  46. package/dist-types/commands/ListRuleGroupsCommand.d.ts +1 -1
  47. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  48. package/dist-types/commands/ListWebACLsCommand.d.ts +1 -1
  49. package/dist-types/commands/PutLoggingConfigurationCommand.d.ts +9 -17
  50. package/dist-types/commands/PutManagedRuleSetVersionsCommand.d.ts +1 -1
  51. package/dist-types/commands/PutPermissionPolicyCommand.d.ts +1 -1
  52. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  53. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  54. package/dist-types/commands/UpdateIPSetCommand.d.ts +1 -1
  55. package/dist-types/commands/UpdateManagedRuleSetVersionExpiryDateCommand.d.ts +1 -1
  56. package/dist-types/commands/UpdateRegexPatternSetCommand.d.ts +1 -1
  57. package/dist-types/commands/UpdateRuleGroupCommand.d.ts +1 -1
  58. package/dist-types/commands/UpdateWebACLCommand.d.ts +1 -1
  59. package/dist-types/models/models_0.d.ts +191 -56
  60. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  61. package/dist-types/runtimeConfig.d.ts +2 -0
  62. package/dist-types/runtimeConfig.native.d.ts +2 -0
  63. package/dist-types/ts3.4/WAFV2Client.d.ts +4 -0
  64. package/dist-types/ts3.4/models/models_0.d.ts +3 -1
  65. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  66. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  67. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  68. package/package.json +23 -23
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.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-wafv2
9
+
10
+
11
+
12
+
13
+
14
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
15
+
16
+
17
+ ### Features
18
+
19
+ * **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))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
26
+
27
+
28
+ ### Features
29
+
30
+ * **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))
31
+
32
+
33
+
34
+
35
+
36
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
37
+
38
+
39
+ ### Features
40
+
41
+ * **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
42
+
43
+
44
+
45
+
46
+
6
47
  # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
48
 
8
49
  **Note:** Version bump only for package @aws-sdk/client-wafv2
@@ -29,27 +29,96 @@ const partitionHash = {
29
29
  "us-west-2",
30
30
  ],
31
31
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
32
- hostname: "wafv2.{region}.amazonaws.com",
32
+ variants: [
33
+ {
34
+ hostname: "wafv2.{region}.amazonaws.com",
35
+ tags: [],
36
+ },
37
+ {
38
+ hostname: "wafv2-fips.{region}.amazonaws.com",
39
+ tags: ["fips"],
40
+ },
41
+ {
42
+ hostname: "wafv2-fips.{region}.api.aws",
43
+ tags: ["dualstack", "fips"],
44
+ },
45
+ {
46
+ hostname: "wafv2.{region}.api.aws",
47
+ tags: ["dualstack"],
48
+ },
49
+ ],
33
50
  },
34
51
  "aws-cn": {
35
52
  regions: ["cn-north-1", "cn-northwest-1"],
36
53
  regionRegex: "^cn\\-\\w+\\-\\d+$",
37
- hostname: "wafv2.{region}.amazonaws.com.cn",
54
+ variants: [
55
+ {
56
+ hostname: "wafv2.{region}.amazonaws.com.cn",
57
+ tags: [],
58
+ },
59
+ {
60
+ hostname: "wafv2-fips.{region}.amazonaws.com.cn",
61
+ tags: ["fips"],
62
+ },
63
+ {
64
+ hostname: "wafv2-fips.{region}.api.amazonwebservices.com.cn",
65
+ tags: ["dualstack", "fips"],
66
+ },
67
+ {
68
+ hostname: "wafv2.{region}.api.amazonwebservices.com.cn",
69
+ tags: ["dualstack"],
70
+ },
71
+ ],
38
72
  },
39
73
  "aws-iso": {
40
74
  regions: ["us-iso-east-1", "us-iso-west-1"],
41
75
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
42
- hostname: "wafv2.{region}.c2s.ic.gov",
76
+ variants: [
77
+ {
78
+ hostname: "wafv2.{region}.c2s.ic.gov",
79
+ tags: [],
80
+ },
81
+ {
82
+ hostname: "wafv2-fips.{region}.c2s.ic.gov",
83
+ tags: ["fips"],
84
+ },
85
+ ],
43
86
  },
44
87
  "aws-iso-b": {
45
88
  regions: ["us-isob-east-1"],
46
89
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
47
- hostname: "wafv2.{region}.sc2s.sgov.gov",
90
+ variants: [
91
+ {
92
+ hostname: "wafv2.{region}.sc2s.sgov.gov",
93
+ tags: [],
94
+ },
95
+ {
96
+ hostname: "wafv2-fips.{region}.sc2s.sgov.gov",
97
+ tags: ["fips"],
98
+ },
99
+ ],
48
100
  },
49
101
  "aws-us-gov": {
50
102
  regions: ["us-gov-east-1", "us-gov-west-1"],
51
103
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
52
- hostname: "wafv2.{region}.amazonaws.com",
104
+ variants: [
105
+ {
106
+ hostname: "wafv2.{region}.amazonaws.com",
107
+ tags: [],
108
+ },
109
+ {
110
+ hostname: "wafv2-fips.{region}.amazonaws.com",
111
+ tags: ["fips"],
112
+ },
113
+ {
114
+ hostname: "wafv2-fips.{region}.api.aws",
115
+ tags: ["dualstack", "fips"],
116
+ },
117
+ {
118
+ hostname: "wafv2.{region}.api.aws",
119
+ tags: ["dualstack"],
120
+ },
121
+ ],
53
122
  },
54
123
  };
55
124
  const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
@@ -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.RuleSummary = exports.LabelSummary = exports.DescribeManagedRuleGroupRequest = 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.RuleAction = exports.CountAction = void 0;
5
- exports.ListRegexPatternSetsRequest = exports.ListManagedRuleSetsResponse = exports.ManagedRuleSetSummary = exports.ListManagedRuleSetsRequest = exports.ListLoggingConfigurationsResponse = 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.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 = void 0;
6
- exports.GetWebACLForResourceResponse = exports.WebACL = exports.GetRuleGroupResponse = exports.UpdateWebACLRequest = exports.UpdateRuleGroupRequest = exports.RuleGroup = 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.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 = void 0;
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,
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
7
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
9
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
16
  const getRuntimeConfig = (config) => {
16
- 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;
17
18
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
18
19
  return {
19
20
  ...clientSharedValues,
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
30
31
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
31
32
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
32
33
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
33
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8,
34
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8,
34
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
35
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
36
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
37
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
35
38
  };
36
39
  };
37
40
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const getRuntimeConfig = (config) => {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
23
  return {
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
35
35
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
36
36
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
37
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8,
39
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8,
38
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
39
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
40
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
41
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
40
42
  };
41
43
  };
42
44
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -27,27 +27,96 @@ var partitionHash = {
27
27
  "us-west-2",
28
28
  ],
29
29
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
30
- hostname: "wafv2.{region}.amazonaws.com",
30
+ variants: [
31
+ {
32
+ hostname: "wafv2.{region}.amazonaws.com",
33
+ tags: [],
34
+ },
35
+ {
36
+ hostname: "wafv2-fips.{region}.amazonaws.com",
37
+ tags: ["fips"],
38
+ },
39
+ {
40
+ hostname: "wafv2-fips.{region}.api.aws",
41
+ tags: ["dualstack", "fips"],
42
+ },
43
+ {
44
+ hostname: "wafv2.{region}.api.aws",
45
+ tags: ["dualstack"],
46
+ },
47
+ ],
31
48
  },
32
49
  "aws-cn": {
33
50
  regions: ["cn-north-1", "cn-northwest-1"],
34
51
  regionRegex: "^cn\\-\\w+\\-\\d+$",
35
- hostname: "wafv2.{region}.amazonaws.com.cn",
52
+ variants: [
53
+ {
54
+ hostname: "wafv2.{region}.amazonaws.com.cn",
55
+ tags: [],
56
+ },
57
+ {
58
+ hostname: "wafv2-fips.{region}.amazonaws.com.cn",
59
+ tags: ["fips"],
60
+ },
61
+ {
62
+ hostname: "wafv2-fips.{region}.api.amazonwebservices.com.cn",
63
+ tags: ["dualstack", "fips"],
64
+ },
65
+ {
66
+ hostname: "wafv2.{region}.api.amazonwebservices.com.cn",
67
+ tags: ["dualstack"],
68
+ },
69
+ ],
36
70
  },
37
71
  "aws-iso": {
38
72
  regions: ["us-iso-east-1", "us-iso-west-1"],
39
73
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
40
- hostname: "wafv2.{region}.c2s.ic.gov",
74
+ variants: [
75
+ {
76
+ hostname: "wafv2.{region}.c2s.ic.gov",
77
+ tags: [],
78
+ },
79
+ {
80
+ hostname: "wafv2-fips.{region}.c2s.ic.gov",
81
+ tags: ["fips"],
82
+ },
83
+ ],
41
84
  },
42
85
  "aws-iso-b": {
43
86
  regions: ["us-isob-east-1"],
44
87
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
45
- hostname: "wafv2.{region}.sc2s.sgov.gov",
88
+ variants: [
89
+ {
90
+ hostname: "wafv2.{region}.sc2s.sgov.gov",
91
+ tags: [],
92
+ },
93
+ {
94
+ hostname: "wafv2-fips.{region}.sc2s.sgov.gov",
95
+ tags: ["fips"],
96
+ },
97
+ ],
46
98
  },
47
99
  "aws-us-gov": {
48
100
  regions: ["us-gov-east-1", "us-gov-west-1"],
49
101
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
50
- hostname: "wafv2.{region}.amazonaws.com",
102
+ variants: [
103
+ {
104
+ hostname: "wafv2.{region}.amazonaws.com",
105
+ tags: [],
106
+ },
107
+ {
108
+ hostname: "wafv2-fips.{region}.amazonaws.com",
109
+ tags: ["fips"],
110
+ },
111
+ {
112
+ hostname: "wafv2-fips.{region}.api.aws",
113
+ tags: ["dualstack", "fips"],
114
+ },
115
+ {
116
+ hostname: "wafv2.{region}.api.aws",
117
+ tags: ["dualstack"],
118
+ },
119
+ ],
51
120
  },
52
121
  };
53
122
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {