@aws-sdk/client-waf 3.43.0 → 3.47.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,53 @@
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.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-waf
9
+
10
+
11
+
12
+
13
+
14
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
15
+
16
+
17
+ ### Features
18
+
19
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
31
+
32
+
33
+ ### Features
34
+
35
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
36
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
37
+
38
+
39
+
40
+
41
+
42
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
43
+
44
+
45
+ ### Features
46
+
47
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
48
+
49
+
50
+
51
+
52
+
6
53
  # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
54
 
8
55
  **Note:** Version bump only for package @aws-sdk/client-waf
@@ -28,6 +28,7 @@ const partitionHash = {
28
28
  "ap-south-1",
29
29
  "ap-southeast-1",
30
30
  "ap-southeast-2",
31
+ "ap-southeast-3",
31
32
  "aws",
32
33
  "aws-fips",
33
34
  "aws-global",
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RegexPatternSet = exports.CreateRegexPatternSetRequest = exports.CreateRegexMatchSetResponse = exports.RegexMatchSet = exports.RegexMatchTuple = exports.CreateRegexMatchSetRequest = exports.WAFTagOperationInternalErrorException = exports.WAFTagOperationException = exports.WAFBadRequestException = exports.CreateRateBasedRuleResponse = exports.RateBasedRule = exports.Predicate = exports.PredicateType = exports.CreateRateBasedRuleRequest = exports.Tag = exports.RateKey = exports.CreateIPSetResponse = exports.IPSet = exports.IPSetDescriptor = exports.IPSetDescriptorType = exports.CreateIPSetRequest = exports.CreateGeoMatchSetResponse = exports.GeoMatchSet = exports.GeoMatchConstraint = exports.GeoMatchConstraintValue = exports.GeoMatchConstraintType = exports.CreateGeoMatchSetRequest = exports.WAFStaleDataException = exports.WAFLimitsExceededException = exports.WAFInvalidParameterException = exports.ParameterExceptionReason = exports.ParameterExceptionField = exports.WAFInvalidAccountException = exports.WAFInternalErrorException = exports.WAFDisallowedNameException = exports.CreateByteMatchSetResponse = exports.ByteMatchSet = exports.ByteMatchTuple = exports.TextTransformation = exports.PositionalConstraint = exports.FieldToMatch = exports.MatchFieldType = exports.CreateByteMatchSetRequest = exports.ActivatedRule = exports.WafRuleType = exports.WafOverrideAction = exports.WafOverrideActionType = exports.ExcludedRule = exports.WafAction = exports.WafActionType = void 0;
4
- exports.DeleteRuleGroupRequest = exports.DeleteRuleResponse = exports.DeleteRuleRequest = exports.DeleteRegexPatternSetResponse = exports.DeleteRegexPatternSetRequest = exports.DeleteRegexMatchSetResponse = exports.DeleteRegexMatchSetRequest = exports.DeleteRateBasedRuleResponse = exports.DeleteRateBasedRuleRequest = exports.DeletePermissionPolicyResponse = exports.DeletePermissionPolicyRequest = exports.DeleteLoggingConfigurationResponse = exports.DeleteLoggingConfigurationRequest = exports.DeleteIPSetResponse = exports.DeleteIPSetRequest = exports.DeleteGeoMatchSetResponse = exports.DeleteGeoMatchSetRequest = exports.WAFReferencedItemException = exports.WAFNonEmptyEntityException = exports.DeleteByteMatchSetResponse = exports.DeleteByteMatchSetRequest = exports.CreateXssMatchSetResponse = exports.XssMatchSet = exports.XssMatchTuple = exports.CreateXssMatchSetRequest = exports.WAFNonexistentItemException = exports.WAFInvalidOperationException = exports.WAFEntityMigrationException = exports.MigrationErrorType = exports.CreateWebACLMigrationStackResponse = exports.CreateWebACLMigrationStackRequest = exports.CreateWebACLResponse = exports.WebACL = exports.CreateWebACLRequest = exports.CreateSqlInjectionMatchSetResponse = exports.SqlInjectionMatchSet = exports.SqlInjectionMatchTuple = exports.CreateSqlInjectionMatchSetRequest = exports.CreateSizeConstraintSetResponse = exports.SizeConstraintSet = exports.SizeConstraint = exports.ComparisonOperator = exports.CreateSizeConstraintSetRequest = exports.CreateRuleGroupResponse = exports.RuleGroup = exports.CreateRuleGroupRequest = exports.CreateRuleResponse = exports.Rule = exports.CreateRuleRequest = exports.CreateRegexPatternSetResponse = void 0;
5
- exports.GetXssMatchSetRequest = exports.GetWebACLResponse = exports.GetWebACLRequest = exports.GetSqlInjectionMatchSetResponse = exports.GetSqlInjectionMatchSetRequest = exports.GetSizeConstraintSetResponse = exports.GetSizeConstraintSetRequest = exports.GetSampledRequestsResponse = exports.SampledHTTPRequest = exports.HTTPRequest = exports.HTTPHeader = exports.GetSampledRequestsRequest = exports.TimeWindow = exports.GetRuleGroupResponse = exports.GetRuleGroupRequest = exports.GetRuleResponse = exports.GetRuleRequest = exports.GetRegexPatternSetResponse = exports.GetRegexPatternSetRequest = exports.GetRegexMatchSetResponse = exports.GetRegexMatchSetRequest = exports.GetRateBasedRuleManagedKeysResponse = exports.GetRateBasedRuleManagedKeysRequest = exports.GetRateBasedRuleResponse = exports.GetRateBasedRuleRequest = exports.GetPermissionPolicyResponse = exports.GetPermissionPolicyRequest = exports.GetLoggingConfigurationResponse = exports.LoggingConfiguration = exports.GetLoggingConfigurationRequest = exports.GetIPSetResponse = exports.GetIPSetRequest = exports.GetGeoMatchSetResponse = exports.GetGeoMatchSetRequest = exports.GetChangeTokenStatusResponse = exports.ChangeTokenStatus = exports.GetChangeTokenStatusRequest = exports.GetChangeTokenResponse = exports.GetChangeTokenRequest = exports.GetByteMatchSetResponse = exports.GetByteMatchSetRequest = exports.DeleteXssMatchSetResponse = exports.DeleteXssMatchSetRequest = exports.DeleteWebACLResponse = exports.DeleteWebACLRequest = exports.DeleteSqlInjectionMatchSetResponse = exports.DeleteSqlInjectionMatchSetRequest = exports.DeleteSizeConstraintSetResponse = exports.DeleteSizeConstraintSetRequest = exports.DeleteRuleGroupResponse = void 0;
6
- exports.PutPermissionPolicyRequest = exports.WAFServiceLinkedRoleErrorException = exports.PutLoggingConfigurationResponse = exports.PutLoggingConfigurationRequest = exports.ListXssMatchSetsResponse = exports.XssMatchSetSummary = exports.ListXssMatchSetsRequest = exports.ListWebACLsResponse = exports.WebACLSummary = exports.ListWebACLsRequest = exports.ListTagsForResourceResponse = exports.TagInfoForResource = exports.ListTagsForResourceRequest = exports.ListSubscribedRuleGroupsResponse = exports.SubscribedRuleGroupSummary = exports.ListSubscribedRuleGroupsRequest = exports.ListSqlInjectionMatchSetsResponse = exports.SqlInjectionMatchSetSummary = exports.ListSqlInjectionMatchSetsRequest = exports.ListSizeConstraintSetsResponse = exports.SizeConstraintSetSummary = exports.ListSizeConstraintSetsRequest = exports.ListRulesResponse = exports.ListRulesRequest = exports.ListRuleGroupsResponse = exports.RuleGroupSummary = exports.ListRuleGroupsRequest = exports.ListRegexPatternSetsResponse = exports.RegexPatternSetSummary = exports.ListRegexPatternSetsRequest = exports.ListRegexMatchSetsResponse = exports.RegexMatchSetSummary = exports.ListRegexMatchSetsRequest = exports.ListRateBasedRulesResponse = exports.RuleSummary = exports.ListRateBasedRulesRequest = exports.ListLoggingConfigurationsResponse = exports.ListLoggingConfigurationsRequest = exports.ListIPSetsResponse = exports.IPSetSummary = exports.ListIPSetsRequest = exports.ListGeoMatchSetsResponse = exports.GeoMatchSetSummary = exports.ListGeoMatchSetsRequest = exports.ListByteMatchSetsResponse = exports.ByteMatchSetSummary = exports.ListByteMatchSetsRequest = exports.ListActivatedRulesInRuleGroupResponse = exports.ListActivatedRulesInRuleGroupRequest = exports.GetXssMatchSetResponse = void 0;
7
- exports.UpdateXssMatchSetResponse = exports.UpdateXssMatchSetRequest = exports.XssMatchSetUpdate = exports.WAFSubscriptionNotFoundException = exports.UpdateWebACLResponse = exports.UpdateWebACLRequest = exports.WebACLUpdate = exports.UpdateSqlInjectionMatchSetResponse = exports.UpdateSqlInjectionMatchSetRequest = exports.SqlInjectionMatchSetUpdate = exports.UpdateSizeConstraintSetResponse = exports.UpdateSizeConstraintSetRequest = exports.SizeConstraintSetUpdate = exports.UpdateRuleGroupResponse = exports.UpdateRuleGroupRequest = exports.RuleGroupUpdate = exports.UpdateRuleResponse = exports.UpdateRuleRequest = exports.WAFInvalidRegexPatternException = exports.UpdateRegexPatternSetResponse = exports.UpdateRegexPatternSetRequest = exports.RegexPatternSetUpdate = exports.UpdateRegexMatchSetResponse = exports.UpdateRegexMatchSetRequest = exports.RegexMatchSetUpdate = exports.UpdateRateBasedRuleResponse = exports.UpdateRateBasedRuleRequest = exports.RuleUpdate = exports.UpdateIPSetResponse = exports.UpdateIPSetRequest = exports.IPSetUpdate = exports.UpdateGeoMatchSetResponse = exports.UpdateGeoMatchSetRequest = exports.GeoMatchSetUpdate = exports.WAFNonexistentContainerException = exports.UpdateByteMatchSetResponse = exports.UpdateByteMatchSetRequest = exports.ByteMatchSetUpdate = exports.ChangeAction = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.WAFInvalidPermissionPolicyException = exports.PutPermissionPolicyResponse = void 0;
3
+ exports.ComparisonOperator = exports.CreateSizeConstraintSetRequest = exports.CreateRuleGroupResponse = exports.RuleGroup = exports.CreateRuleGroupRequest = exports.CreateRuleResponse = exports.Rule = exports.CreateRuleRequest = exports.CreateRegexPatternSetResponse = exports.RegexPatternSet = exports.CreateRegexPatternSetRequest = exports.CreateRegexMatchSetResponse = exports.RegexMatchSet = exports.RegexMatchTuple = exports.CreateRegexMatchSetRequest = exports.CreateRateBasedRuleResponse = exports.RateBasedRule = exports.Predicate = exports.PredicateType = exports.CreateRateBasedRuleRequest = exports.Tag = exports.RateKey = exports.CreateIPSetResponse = exports.IPSet = exports.IPSetDescriptor = exports.IPSetDescriptorType = exports.CreateIPSetRequest = exports.CreateGeoMatchSetResponse = exports.GeoMatchSet = exports.GeoMatchConstraint = exports.GeoMatchConstraintValue = exports.GeoMatchConstraintType = exports.CreateGeoMatchSetRequest = exports.ParameterExceptionReason = exports.ParameterExceptionField = exports.CreateByteMatchSetResponse = exports.ByteMatchSet = exports.ByteMatchTuple = exports.TextTransformation = exports.PositionalConstraint = exports.FieldToMatch = exports.MatchFieldType = exports.CreateByteMatchSetRequest = exports.ActivatedRule = exports.WafRuleType = exports.WafOverrideAction = exports.WafOverrideActionType = exports.ExcludedRule = exports.WafAction = exports.WafActionType = void 0;
4
+ exports.GetChangeTokenStatusRequest = exports.GetChangeTokenResponse = exports.GetChangeTokenRequest = exports.GetByteMatchSetResponse = exports.GetByteMatchSetRequest = exports.DeleteXssMatchSetResponse = exports.DeleteXssMatchSetRequest = exports.DeleteWebACLResponse = exports.DeleteWebACLRequest = exports.DeleteSqlInjectionMatchSetResponse = exports.DeleteSqlInjectionMatchSetRequest = exports.DeleteSizeConstraintSetResponse = exports.DeleteSizeConstraintSetRequest = exports.DeleteRuleGroupResponse = exports.DeleteRuleGroupRequest = exports.DeleteRuleResponse = exports.DeleteRuleRequest = exports.DeleteRegexPatternSetResponse = exports.DeleteRegexPatternSetRequest = exports.DeleteRegexMatchSetResponse = exports.DeleteRegexMatchSetRequest = exports.DeleteRateBasedRuleResponse = exports.DeleteRateBasedRuleRequest = exports.DeletePermissionPolicyResponse = exports.DeletePermissionPolicyRequest = exports.DeleteLoggingConfigurationResponse = exports.DeleteLoggingConfigurationRequest = exports.DeleteIPSetResponse = exports.DeleteIPSetRequest = exports.DeleteGeoMatchSetResponse = exports.DeleteGeoMatchSetRequest = exports.DeleteByteMatchSetResponse = exports.DeleteByteMatchSetRequest = exports.CreateXssMatchSetResponse = exports.XssMatchSet = exports.XssMatchTuple = exports.CreateXssMatchSetRequest = exports.MigrationErrorType = exports.CreateWebACLMigrationStackResponse = exports.CreateWebACLMigrationStackRequest = exports.CreateWebACLResponse = exports.WebACL = exports.CreateWebACLRequest = exports.CreateSqlInjectionMatchSetResponse = exports.SqlInjectionMatchSet = exports.SqlInjectionMatchTuple = exports.CreateSqlInjectionMatchSetRequest = exports.CreateSizeConstraintSetResponse = exports.SizeConstraintSet = exports.SizeConstraint = void 0;
5
+ exports.ListLoggingConfigurationsResponse = exports.ListLoggingConfigurationsRequest = exports.ListIPSetsResponse = exports.IPSetSummary = exports.ListIPSetsRequest = exports.ListGeoMatchSetsResponse = exports.GeoMatchSetSummary = exports.ListGeoMatchSetsRequest = exports.ListByteMatchSetsResponse = exports.ByteMatchSetSummary = exports.ListByteMatchSetsRequest = exports.ListActivatedRulesInRuleGroupResponse = exports.ListActivatedRulesInRuleGroupRequest = exports.GetXssMatchSetResponse = exports.GetXssMatchSetRequest = exports.GetWebACLResponse = exports.GetWebACLRequest = exports.GetSqlInjectionMatchSetResponse = exports.GetSqlInjectionMatchSetRequest = exports.GetSizeConstraintSetResponse = exports.GetSizeConstraintSetRequest = exports.GetSampledRequestsResponse = exports.SampledHTTPRequest = exports.HTTPRequest = exports.HTTPHeader = exports.GetSampledRequestsRequest = exports.TimeWindow = exports.GetRuleGroupResponse = exports.GetRuleGroupRequest = exports.GetRuleResponse = exports.GetRuleRequest = exports.GetRegexPatternSetResponse = exports.GetRegexPatternSetRequest = exports.GetRegexMatchSetResponse = exports.GetRegexMatchSetRequest = exports.GetRateBasedRuleManagedKeysResponse = exports.GetRateBasedRuleManagedKeysRequest = exports.GetRateBasedRuleResponse = exports.GetRateBasedRuleRequest = exports.GetPermissionPolicyResponse = exports.GetPermissionPolicyRequest = exports.GetLoggingConfigurationResponse = exports.LoggingConfiguration = exports.GetLoggingConfigurationRequest = exports.GetIPSetResponse = exports.GetIPSetRequest = exports.GetGeoMatchSetResponse = exports.GetGeoMatchSetRequest = exports.GetChangeTokenStatusResponse = exports.ChangeTokenStatus = void 0;
6
+ exports.UpdateIPSetResponse = exports.UpdateIPSetRequest = exports.IPSetUpdate = exports.UpdateGeoMatchSetResponse = exports.UpdateGeoMatchSetRequest = exports.GeoMatchSetUpdate = exports.UpdateByteMatchSetResponse = exports.UpdateByteMatchSetRequest = exports.ByteMatchSetUpdate = exports.ChangeAction = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.PutPermissionPolicyResponse = exports.PutPermissionPolicyRequest = exports.PutLoggingConfigurationResponse = exports.PutLoggingConfigurationRequest = exports.ListXssMatchSetsResponse = exports.XssMatchSetSummary = exports.ListXssMatchSetsRequest = exports.ListWebACLsResponse = exports.WebACLSummary = exports.ListWebACLsRequest = exports.ListTagsForResourceResponse = exports.TagInfoForResource = exports.ListTagsForResourceRequest = exports.ListSubscribedRuleGroupsResponse = exports.SubscribedRuleGroupSummary = exports.ListSubscribedRuleGroupsRequest = exports.ListSqlInjectionMatchSetsResponse = exports.SqlInjectionMatchSetSummary = exports.ListSqlInjectionMatchSetsRequest = exports.ListSizeConstraintSetsResponse = exports.SizeConstraintSetSummary = exports.ListSizeConstraintSetsRequest = exports.ListRulesResponse = exports.ListRulesRequest = exports.ListRuleGroupsResponse = exports.RuleGroupSummary = exports.ListRuleGroupsRequest = exports.ListRegexPatternSetsResponse = exports.RegexPatternSetSummary = exports.ListRegexPatternSetsRequest = exports.ListRegexMatchSetsResponse = exports.RegexMatchSetSummary = exports.ListRegexMatchSetsRequest = exports.ListRateBasedRulesResponse = exports.RuleSummary = exports.ListRateBasedRulesRequest = void 0;
7
+ exports.UpdateXssMatchSetResponse = exports.UpdateXssMatchSetRequest = exports.XssMatchSetUpdate = exports.UpdateWebACLResponse = exports.UpdateWebACLRequest = exports.WebACLUpdate = exports.UpdateSqlInjectionMatchSetResponse = exports.UpdateSqlInjectionMatchSetRequest = exports.SqlInjectionMatchSetUpdate = exports.UpdateSizeConstraintSetResponse = exports.UpdateSizeConstraintSetRequest = exports.SizeConstraintSetUpdate = exports.UpdateRuleGroupResponse = exports.UpdateRuleGroupRequest = exports.RuleGroupUpdate = exports.UpdateRuleResponse = exports.UpdateRuleRequest = exports.UpdateRegexPatternSetResponse = exports.UpdateRegexPatternSetRequest = exports.RegexPatternSetUpdate = exports.UpdateRegexMatchSetResponse = exports.UpdateRegexMatchSetRequest = exports.RegexMatchSetUpdate = exports.UpdateRateBasedRuleResponse = exports.UpdateRateBasedRuleRequest = exports.RuleUpdate = void 0;
8
8
  var WafActionType;
9
9
  (function (WafActionType) {
10
10
  WafActionType["ALLOW"] = "ALLOW";
@@ -103,24 +103,6 @@ var CreateByteMatchSetResponse;
103
103
  ...obj,
104
104
  });
105
105
  })(CreateByteMatchSetResponse = exports.CreateByteMatchSetResponse || (exports.CreateByteMatchSetResponse = {}));
106
- var WAFDisallowedNameException;
107
- (function (WAFDisallowedNameException) {
108
- WAFDisallowedNameException.filterSensitiveLog = (obj) => ({
109
- ...obj,
110
- });
111
- })(WAFDisallowedNameException = exports.WAFDisallowedNameException || (exports.WAFDisallowedNameException = {}));
112
- var WAFInternalErrorException;
113
- (function (WAFInternalErrorException) {
114
- WAFInternalErrorException.filterSensitiveLog = (obj) => ({
115
- ...obj,
116
- });
117
- })(WAFInternalErrorException = exports.WAFInternalErrorException || (exports.WAFInternalErrorException = {}));
118
- var WAFInvalidAccountException;
119
- (function (WAFInvalidAccountException) {
120
- WAFInvalidAccountException.filterSensitiveLog = (obj) => ({
121
- ...obj,
122
- });
123
- })(WAFInvalidAccountException = exports.WAFInvalidAccountException || (exports.WAFInvalidAccountException = {}));
124
106
  var ParameterExceptionField;
125
107
  (function (ParameterExceptionField) {
126
108
  ParameterExceptionField["BYTE_MATCH_FIELD_TYPE"] = "BYTE_MATCH_FIELD_TYPE";
@@ -149,24 +131,6 @@ var ParameterExceptionReason;
149
131
  ParameterExceptionReason["INVALID_OPTION"] = "INVALID_OPTION";
150
132
  ParameterExceptionReason["INVALID_TAG_KEY"] = "INVALID_TAG_KEY";
151
133
  })(ParameterExceptionReason = exports.ParameterExceptionReason || (exports.ParameterExceptionReason = {}));
152
- var WAFInvalidParameterException;
153
- (function (WAFInvalidParameterException) {
154
- WAFInvalidParameterException.filterSensitiveLog = (obj) => ({
155
- ...obj,
156
- });
157
- })(WAFInvalidParameterException = exports.WAFInvalidParameterException || (exports.WAFInvalidParameterException = {}));
158
- var WAFLimitsExceededException;
159
- (function (WAFLimitsExceededException) {
160
- WAFLimitsExceededException.filterSensitiveLog = (obj) => ({
161
- ...obj,
162
- });
163
- })(WAFLimitsExceededException = exports.WAFLimitsExceededException || (exports.WAFLimitsExceededException = {}));
164
- var WAFStaleDataException;
165
- (function (WAFStaleDataException) {
166
- WAFStaleDataException.filterSensitiveLog = (obj) => ({
167
- ...obj,
168
- });
169
- })(WAFStaleDataException = exports.WAFStaleDataException || (exports.WAFStaleDataException = {}));
170
134
  var CreateGeoMatchSetRequest;
171
135
  (function (CreateGeoMatchSetRequest) {
172
136
  CreateGeoMatchSetRequest.filterSensitiveLog = (obj) => ({
@@ -520,24 +484,6 @@ var CreateRateBasedRuleResponse;
520
484
  ...obj,
521
485
  });
522
486
  })(CreateRateBasedRuleResponse = exports.CreateRateBasedRuleResponse || (exports.CreateRateBasedRuleResponse = {}));
523
- var WAFBadRequestException;
524
- (function (WAFBadRequestException) {
525
- WAFBadRequestException.filterSensitiveLog = (obj) => ({
526
- ...obj,
527
- });
528
- })(WAFBadRequestException = exports.WAFBadRequestException || (exports.WAFBadRequestException = {}));
529
- var WAFTagOperationException;
530
- (function (WAFTagOperationException) {
531
- WAFTagOperationException.filterSensitiveLog = (obj) => ({
532
- ...obj,
533
- });
534
- })(WAFTagOperationException = exports.WAFTagOperationException || (exports.WAFTagOperationException = {}));
535
- var WAFTagOperationInternalErrorException;
536
- (function (WAFTagOperationInternalErrorException) {
537
- WAFTagOperationInternalErrorException.filterSensitiveLog = (obj) => ({
538
- ...obj,
539
- });
540
- })(WAFTagOperationInternalErrorException = exports.WAFTagOperationInternalErrorException || (exports.WAFTagOperationInternalErrorException = {}));
541
487
  var CreateRegexMatchSetRequest;
542
488
  (function (CreateRegexMatchSetRequest) {
543
489
  CreateRegexMatchSetRequest.filterSensitiveLog = (obj) => ({
@@ -713,24 +659,6 @@ var MigrationErrorType;
713
659
  MigrationErrorType["S3_BUCKET_NO_PERMISSION"] = "S3_BUCKET_NO_PERMISSION";
714
660
  MigrationErrorType["S3_INTERNAL_ERROR"] = "S3_INTERNAL_ERROR";
715
661
  })(MigrationErrorType = exports.MigrationErrorType || (exports.MigrationErrorType = {}));
716
- var WAFEntityMigrationException;
717
- (function (WAFEntityMigrationException) {
718
- WAFEntityMigrationException.filterSensitiveLog = (obj) => ({
719
- ...obj,
720
- });
721
- })(WAFEntityMigrationException = exports.WAFEntityMigrationException || (exports.WAFEntityMigrationException = {}));
722
- var WAFInvalidOperationException;
723
- (function (WAFInvalidOperationException) {
724
- WAFInvalidOperationException.filterSensitiveLog = (obj) => ({
725
- ...obj,
726
- });
727
- })(WAFInvalidOperationException = exports.WAFInvalidOperationException || (exports.WAFInvalidOperationException = {}));
728
- var WAFNonexistentItemException;
729
- (function (WAFNonexistentItemException) {
730
- WAFNonexistentItemException.filterSensitiveLog = (obj) => ({
731
- ...obj,
732
- });
733
- })(WAFNonexistentItemException = exports.WAFNonexistentItemException || (exports.WAFNonexistentItemException = {}));
734
662
  var CreateXssMatchSetRequest;
735
663
  (function (CreateXssMatchSetRequest) {
736
664
  CreateXssMatchSetRequest.filterSensitiveLog = (obj) => ({
@@ -767,18 +695,6 @@ var DeleteByteMatchSetResponse;
767
695
  ...obj,
768
696
  });
769
697
  })(DeleteByteMatchSetResponse = exports.DeleteByteMatchSetResponse || (exports.DeleteByteMatchSetResponse = {}));
770
- var WAFNonEmptyEntityException;
771
- (function (WAFNonEmptyEntityException) {
772
- WAFNonEmptyEntityException.filterSensitiveLog = (obj) => ({
773
- ...obj,
774
- });
775
- })(WAFNonEmptyEntityException = exports.WAFNonEmptyEntityException || (exports.WAFNonEmptyEntityException = {}));
776
- var WAFReferencedItemException;
777
- (function (WAFReferencedItemException) {
778
- WAFReferencedItemException.filterSensitiveLog = (obj) => ({
779
- ...obj,
780
- });
781
- })(WAFReferencedItemException = exports.WAFReferencedItemException || (exports.WAFReferencedItemException = {}));
782
698
  var DeleteGeoMatchSetRequest;
783
699
  (function (DeleteGeoMatchSetRequest) {
784
700
  DeleteGeoMatchSetRequest.filterSensitiveLog = (obj) => ({
@@ -1469,12 +1385,6 @@ var PutLoggingConfigurationResponse;
1469
1385
  ...obj,
1470
1386
  });
1471
1387
  })(PutLoggingConfigurationResponse = exports.PutLoggingConfigurationResponse || (exports.PutLoggingConfigurationResponse = {}));
1472
- var WAFServiceLinkedRoleErrorException;
1473
- (function (WAFServiceLinkedRoleErrorException) {
1474
- WAFServiceLinkedRoleErrorException.filterSensitiveLog = (obj) => ({
1475
- ...obj,
1476
- });
1477
- })(WAFServiceLinkedRoleErrorException = exports.WAFServiceLinkedRoleErrorException || (exports.WAFServiceLinkedRoleErrorException = {}));
1478
1388
  var PutPermissionPolicyRequest;
1479
1389
  (function (PutPermissionPolicyRequest) {
1480
1390
  PutPermissionPolicyRequest.filterSensitiveLog = (obj) => ({
@@ -1487,12 +1397,6 @@ var PutPermissionPolicyResponse;
1487
1397
  ...obj,
1488
1398
  });
1489
1399
  })(PutPermissionPolicyResponse = exports.PutPermissionPolicyResponse || (exports.PutPermissionPolicyResponse = {}));
1490
- var WAFInvalidPermissionPolicyException;
1491
- (function (WAFInvalidPermissionPolicyException) {
1492
- WAFInvalidPermissionPolicyException.filterSensitiveLog = (obj) => ({
1493
- ...obj,
1494
- });
1495
- })(WAFInvalidPermissionPolicyException = exports.WAFInvalidPermissionPolicyException || (exports.WAFInvalidPermissionPolicyException = {}));
1496
1400
  var TagResourceRequest;
1497
1401
  (function (TagResourceRequest) {
1498
1402
  TagResourceRequest.filterSensitiveLog = (obj) => ({
@@ -1540,12 +1444,6 @@ var UpdateByteMatchSetResponse;
1540
1444
  ...obj,
1541
1445
  });
1542
1446
  })(UpdateByteMatchSetResponse = exports.UpdateByteMatchSetResponse || (exports.UpdateByteMatchSetResponse = {}));
1543
- var WAFNonexistentContainerException;
1544
- (function (WAFNonexistentContainerException) {
1545
- WAFNonexistentContainerException.filterSensitiveLog = (obj) => ({
1546
- ...obj,
1547
- });
1548
- })(WAFNonexistentContainerException = exports.WAFNonexistentContainerException || (exports.WAFNonexistentContainerException = {}));
1549
1447
  var GeoMatchSetUpdate;
1550
1448
  (function (GeoMatchSetUpdate) {
1551
1449
  GeoMatchSetUpdate.filterSensitiveLog = (obj) => ({
@@ -1636,12 +1534,6 @@ var UpdateRegexPatternSetResponse;
1636
1534
  ...obj,
1637
1535
  });
1638
1536
  })(UpdateRegexPatternSetResponse = exports.UpdateRegexPatternSetResponse || (exports.UpdateRegexPatternSetResponse = {}));
1639
- var WAFInvalidRegexPatternException;
1640
- (function (WAFInvalidRegexPatternException) {
1641
- WAFInvalidRegexPatternException.filterSensitiveLog = (obj) => ({
1642
- ...obj,
1643
- });
1644
- })(WAFInvalidRegexPatternException = exports.WAFInvalidRegexPatternException || (exports.WAFInvalidRegexPatternException = {}));
1645
1537
  var UpdateRuleRequest;
1646
1538
  (function (UpdateRuleRequest) {
1647
1539
  UpdateRuleRequest.filterSensitiveLog = (obj) => ({
@@ -1726,12 +1618,6 @@ var UpdateWebACLResponse;
1726
1618
  ...obj,
1727
1619
  });
1728
1620
  })(UpdateWebACLResponse = exports.UpdateWebACLResponse || (exports.UpdateWebACLResponse = {}));
1729
- var WAFSubscriptionNotFoundException;
1730
- (function (WAFSubscriptionNotFoundException) {
1731
- WAFSubscriptionNotFoundException.filterSensitiveLog = (obj) => ({
1732
- ...obj,
1733
- });
1734
- })(WAFSubscriptionNotFoundException = exports.WAFSubscriptionNotFoundException || (exports.WAFSubscriptionNotFoundException = {}));
1735
1621
  var XssMatchSetUpdate;
1736
1622
  (function (XssMatchSetUpdate) {
1737
1623
  XssMatchSetUpdate.filterSensitiveLog = (obj) => ({
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
32
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
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)),
35
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  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)),
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  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
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
19
20
  const getRuntimeConfig = (config) => {
20
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
25
  return {
24
26
  ...clientSharedValues,
25
27
  ...config,
26
28
  runtime: "node",
29
+ defaultsMode,
27
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
28
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
29
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
31
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
34
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
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),
37
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
36
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
44
  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),
@@ -26,6 +26,7 @@ var partitionHash = {
26
26
  "ap-south-1",
27
27
  "ap-southeast-1",
28
28
  "ap-southeast-2",
29
+ "ap-southeast-3",
29
30
  "aws",
30
31
  "aws-fips",
31
32
  "aws-global",
@@ -79,18 +79,6 @@ export var CreateByteMatchSetResponse;
79
79
  (function (CreateByteMatchSetResponse) {
80
80
  CreateByteMatchSetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
81
81
  })(CreateByteMatchSetResponse || (CreateByteMatchSetResponse = {}));
82
- export var WAFDisallowedNameException;
83
- (function (WAFDisallowedNameException) {
84
- WAFDisallowedNameException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
85
- })(WAFDisallowedNameException || (WAFDisallowedNameException = {}));
86
- export var WAFInternalErrorException;
87
- (function (WAFInternalErrorException) {
88
- WAFInternalErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
89
- })(WAFInternalErrorException || (WAFInternalErrorException = {}));
90
- export var WAFInvalidAccountException;
91
- (function (WAFInvalidAccountException) {
92
- WAFInvalidAccountException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
93
- })(WAFInvalidAccountException || (WAFInvalidAccountException = {}));
94
82
  export var ParameterExceptionField;
95
83
  (function (ParameterExceptionField) {
96
84
  ParameterExceptionField["BYTE_MATCH_FIELD_TYPE"] = "BYTE_MATCH_FIELD_TYPE";
@@ -119,18 +107,6 @@ export var ParameterExceptionReason;
119
107
  ParameterExceptionReason["INVALID_OPTION"] = "INVALID_OPTION";
120
108
  ParameterExceptionReason["INVALID_TAG_KEY"] = "INVALID_TAG_KEY";
121
109
  })(ParameterExceptionReason || (ParameterExceptionReason = {}));
122
- export var WAFInvalidParameterException;
123
- (function (WAFInvalidParameterException) {
124
- WAFInvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
125
- })(WAFInvalidParameterException || (WAFInvalidParameterException = {}));
126
- export var WAFLimitsExceededException;
127
- (function (WAFLimitsExceededException) {
128
- WAFLimitsExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
129
- })(WAFLimitsExceededException || (WAFLimitsExceededException = {}));
130
- export var WAFStaleDataException;
131
- (function (WAFStaleDataException) {
132
- WAFStaleDataException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
133
- })(WAFStaleDataException || (WAFStaleDataException = {}));
134
110
  export var CreateGeoMatchSetRequest;
135
111
  (function (CreateGeoMatchSetRequest) {
136
112
  CreateGeoMatchSetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -458,18 +434,6 @@ export var CreateRateBasedRuleResponse;
458
434
  (function (CreateRateBasedRuleResponse) {
459
435
  CreateRateBasedRuleResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
460
436
  })(CreateRateBasedRuleResponse || (CreateRateBasedRuleResponse = {}));
461
- export var WAFBadRequestException;
462
- (function (WAFBadRequestException) {
463
- WAFBadRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
464
- })(WAFBadRequestException || (WAFBadRequestException = {}));
465
- export var WAFTagOperationException;
466
- (function (WAFTagOperationException) {
467
- WAFTagOperationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
468
- })(WAFTagOperationException || (WAFTagOperationException = {}));
469
- export var WAFTagOperationInternalErrorException;
470
- (function (WAFTagOperationInternalErrorException) {
471
- WAFTagOperationInternalErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
472
- })(WAFTagOperationInternalErrorException || (WAFTagOperationInternalErrorException = {}));
473
437
  export var CreateRegexMatchSetRequest;
474
438
  (function (CreateRegexMatchSetRequest) {
475
439
  CreateRegexMatchSetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -593,18 +557,6 @@ export var MigrationErrorType;
593
557
  MigrationErrorType["S3_BUCKET_NO_PERMISSION"] = "S3_BUCKET_NO_PERMISSION";
594
558
  MigrationErrorType["S3_INTERNAL_ERROR"] = "S3_INTERNAL_ERROR";
595
559
  })(MigrationErrorType || (MigrationErrorType = {}));
596
- export var WAFEntityMigrationException;
597
- (function (WAFEntityMigrationException) {
598
- WAFEntityMigrationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
599
- })(WAFEntityMigrationException || (WAFEntityMigrationException = {}));
600
- export var WAFInvalidOperationException;
601
- (function (WAFInvalidOperationException) {
602
- WAFInvalidOperationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
603
- })(WAFInvalidOperationException || (WAFInvalidOperationException = {}));
604
- export var WAFNonexistentItemException;
605
- (function (WAFNonexistentItemException) {
606
- WAFNonexistentItemException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
607
- })(WAFNonexistentItemException || (WAFNonexistentItemException = {}));
608
560
  export var CreateXssMatchSetRequest;
609
561
  (function (CreateXssMatchSetRequest) {
610
562
  CreateXssMatchSetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -629,14 +581,6 @@ export var DeleteByteMatchSetResponse;
629
581
  (function (DeleteByteMatchSetResponse) {
630
582
  DeleteByteMatchSetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
631
583
  })(DeleteByteMatchSetResponse || (DeleteByteMatchSetResponse = {}));
632
- export var WAFNonEmptyEntityException;
633
- (function (WAFNonEmptyEntityException) {
634
- WAFNonEmptyEntityException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
635
- })(WAFNonEmptyEntityException || (WAFNonEmptyEntityException = {}));
636
- export var WAFReferencedItemException;
637
- (function (WAFReferencedItemException) {
638
- WAFReferencedItemException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
639
- })(WAFReferencedItemException || (WAFReferencedItemException = {}));
640
584
  export var DeleteGeoMatchSetRequest;
641
585
  (function (DeleteGeoMatchSetRequest) {
642
586
  DeleteGeoMatchSetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1099,10 +1043,6 @@ export var PutLoggingConfigurationResponse;
1099
1043
  (function (PutLoggingConfigurationResponse) {
1100
1044
  PutLoggingConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1101
1045
  })(PutLoggingConfigurationResponse || (PutLoggingConfigurationResponse = {}));
1102
- export var WAFServiceLinkedRoleErrorException;
1103
- (function (WAFServiceLinkedRoleErrorException) {
1104
- WAFServiceLinkedRoleErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1105
- })(WAFServiceLinkedRoleErrorException || (WAFServiceLinkedRoleErrorException = {}));
1106
1046
  export var PutPermissionPolicyRequest;
1107
1047
  (function (PutPermissionPolicyRequest) {
1108
1048
  PutPermissionPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1111,10 +1051,6 @@ export var PutPermissionPolicyResponse;
1111
1051
  (function (PutPermissionPolicyResponse) {
1112
1052
  PutPermissionPolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1113
1053
  })(PutPermissionPolicyResponse || (PutPermissionPolicyResponse = {}));
1114
- export var WAFInvalidPermissionPolicyException;
1115
- (function (WAFInvalidPermissionPolicyException) {
1116
- WAFInvalidPermissionPolicyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1117
- })(WAFInvalidPermissionPolicyException || (WAFInvalidPermissionPolicyException = {}));
1118
1054
  export var TagResourceRequest;
1119
1055
  (function (TagResourceRequest) {
1120
1056
  TagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1148,10 +1084,6 @@ export var UpdateByteMatchSetResponse;
1148
1084
  (function (UpdateByteMatchSetResponse) {
1149
1085
  UpdateByteMatchSetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1150
1086
  })(UpdateByteMatchSetResponse || (UpdateByteMatchSetResponse = {}));
1151
- export var WAFNonexistentContainerException;
1152
- (function (WAFNonexistentContainerException) {
1153
- WAFNonexistentContainerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1154
- })(WAFNonexistentContainerException || (WAFNonexistentContainerException = {}));
1155
1087
  export var GeoMatchSetUpdate;
1156
1088
  (function (GeoMatchSetUpdate) {
1157
1089
  GeoMatchSetUpdate.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1212,10 +1144,6 @@ export var UpdateRegexPatternSetResponse;
1212
1144
  (function (UpdateRegexPatternSetResponse) {
1213
1145
  UpdateRegexPatternSetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1214
1146
  })(UpdateRegexPatternSetResponse || (UpdateRegexPatternSetResponse = {}));
1215
- export var WAFInvalidRegexPatternException;
1216
- (function (WAFInvalidRegexPatternException) {
1217
- WAFInvalidRegexPatternException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1218
- })(WAFInvalidRegexPatternException || (WAFInvalidRegexPatternException = {}));
1219
1147
  export var UpdateRuleRequest;
1220
1148
  (function (UpdateRuleRequest) {
1221
1149
  UpdateRuleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1272,10 +1200,6 @@ export var UpdateWebACLResponse;
1272
1200
  (function (UpdateWebACLResponse) {
1273
1201
  UpdateWebACLResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1274
1202
  })(UpdateWebACLResponse || (UpdateWebACLResponse = {}));
1275
- export var WAFSubscriptionNotFoundException;
1276
- (function (WAFSubscriptionNotFoundException) {
1277
- WAFSubscriptionNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1278
- })(WAFSubscriptionNotFoundException || (WAFSubscriptionNotFoundException = {}));
1279
1203
  export var XssMatchSetUpdate;
1280
1204
  (function (XssMatchSetUpdate) {
1281
1205
  XssMatchSetUpdate.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
17
26
  };
@@ -1,21 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
28
  };
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CreateByteMatchSetCommandInput, CreateByteMatchSetCommandOutput } from "./commands/CreateByteMatchSetCommand";
10
10
  import { CreateGeoMatchSetCommandInput, CreateGeoMatchSetCommandOutput } from "./commands/CreateGeoMatchSetCommand";
@@ -185,6 +185,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
185
185
  * @internal
186
186
  */
187
187
  defaultUserAgentProvider?: Provider<__UserAgent>;
188
+ /**
189
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
190
+ */
191
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
188
192
  }
189
193
  declare type WAFClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
190
194
  /**