@aws-sdk/client-wafv2 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-wafv2
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-wafv2
@@ -14,6 +14,7 @@ const partitionHash = {
14
14
  "ap-south-1",
15
15
  "ap-southeast-1",
16
16
  "ap-southeast-2",
17
+ "ap-southeast-3",
17
18
  "ca-central-1",
18
19
  "eu-central-1",
19
20
  "eu-north-1",
@@ -1,10 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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.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;
3
+ exports.CaptchaConfig = exports.ImmunityTimeProperty = exports.RuleAction = exports.CountAction = exports.CaptchaAction = exports.BlockAction = exports.CustomResponse = exports.ParameterExceptionField = 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.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 = exports.DeleteWebACLResponse = exports.DeleteWebACLRequest = exports.DeleteRuleGroupResponse = exports.DeleteRuleGroupRequest = exports.DeleteRegexPatternSetResponse = exports.DeleteRegexPatternSetRequest = exports.DeletePermissionPolicyResponse = exports.DeletePermissionPolicyRequest = exports.DeleteLoggingConfigurationResponse = exports.DeleteLoggingConfigurationRequest = 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.CreateIPSetResponse = exports.IPSetSummary = exports.CreateIPSetRequest = exports.Tag = exports.IPAddressVersion = exports.CheckCapacityResponse = exports.Scope = exports.VisibilityConfig = exports.Label = exports.OverrideAction = exports.NoneAction = void 0;
5
+ 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 = 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 = void 0;
6
+ exports.GetWebACLResponse = 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.PutPermissionPolicyResponse = exports.PutPermissionPolicyRequest = exports.PutManagedRuleSetVersionsResponse = exports.PutManagedRuleSetVersionsRequest = exports.VersionToPublish = exports.PutLoggingConfigurationResponse = exports.PutLoggingConfigurationRequest = exports.ListWebACLsResponse = exports.ListWebACLsRequest = void 0;
8
7
  var ActionValue;
9
8
  (function (ActionValue) {
10
9
  ActionValue["ALLOW"] = "ALLOW";
@@ -525,18 +524,6 @@ var AssociateWebACLResponse;
525
524
  ...obj,
526
525
  });
527
526
  })(AssociateWebACLResponse = exports.AssociateWebACLResponse || (exports.AssociateWebACLResponse = {}));
528
- var WAFInternalErrorException;
529
- (function (WAFInternalErrorException) {
530
- WAFInternalErrorException.filterSensitiveLog = (obj) => ({
531
- ...obj,
532
- });
533
- })(WAFInternalErrorException = exports.WAFInternalErrorException || (exports.WAFInternalErrorException = {}));
534
- var WAFInvalidOperationException;
535
- (function (WAFInvalidOperationException) {
536
- WAFInvalidOperationException.filterSensitiveLog = (obj) => ({
537
- ...obj,
538
- });
539
- })(WAFInvalidOperationException = exports.WAFInvalidOperationException || (exports.WAFInvalidOperationException = {}));
540
527
  var ParameterExceptionField;
541
528
  (function (ParameterExceptionField) {
542
529
  ParameterExceptionField["AND_STATEMENT"] = "AND_STATEMENT";
@@ -597,24 +584,6 @@ var ParameterExceptionField;
597
584
  ParameterExceptionField["WEB_ACL"] = "WEB_ACL";
598
585
  ParameterExceptionField["XSS_MATCH_STATEMENT"] = "XSS_MATCH_STATEMENT";
599
586
  })(ParameterExceptionField = exports.ParameterExceptionField || (exports.ParameterExceptionField = {}));
600
- var WAFInvalidParameterException;
601
- (function (WAFInvalidParameterException) {
602
- WAFInvalidParameterException.filterSensitiveLog = (obj) => ({
603
- ...obj,
604
- });
605
- })(WAFInvalidParameterException = exports.WAFInvalidParameterException || (exports.WAFInvalidParameterException = {}));
606
- var WAFNonexistentItemException;
607
- (function (WAFNonexistentItemException) {
608
- WAFNonexistentItemException.filterSensitiveLog = (obj) => ({
609
- ...obj,
610
- });
611
- })(WAFNonexistentItemException = exports.WAFNonexistentItemException || (exports.WAFNonexistentItemException = {}));
612
- var WAFUnavailableEntityException;
613
- (function (WAFUnavailableEntityException) {
614
- WAFUnavailableEntityException.filterSensitiveLog = (obj) => ({
615
- ...obj,
616
- });
617
- })(WAFUnavailableEntityException = exports.WAFUnavailableEntityException || (exports.WAFUnavailableEntityException = {}));
618
587
  var CustomResponse;
619
588
  (function (CustomResponse) {
620
589
  CustomResponse.filterSensitiveLog = (obj) => ({
@@ -692,30 +661,6 @@ var CheckCapacityResponse;
692
661
  ...obj,
693
662
  });
694
663
  })(CheckCapacityResponse = exports.CheckCapacityResponse || (exports.CheckCapacityResponse = {}));
695
- var WAFExpiredManagedRuleGroupVersionException;
696
- (function (WAFExpiredManagedRuleGroupVersionException) {
697
- WAFExpiredManagedRuleGroupVersionException.filterSensitiveLog = (obj) => ({
698
- ...obj,
699
- });
700
- })(WAFExpiredManagedRuleGroupVersionException = exports.WAFExpiredManagedRuleGroupVersionException || (exports.WAFExpiredManagedRuleGroupVersionException = {}));
701
- var WAFInvalidResourceException;
702
- (function (WAFInvalidResourceException) {
703
- WAFInvalidResourceException.filterSensitiveLog = (obj) => ({
704
- ...obj,
705
- });
706
- })(WAFInvalidResourceException = exports.WAFInvalidResourceException || (exports.WAFInvalidResourceException = {}));
707
- var WAFLimitsExceededException;
708
- (function (WAFLimitsExceededException) {
709
- WAFLimitsExceededException.filterSensitiveLog = (obj) => ({
710
- ...obj,
711
- });
712
- })(WAFLimitsExceededException = exports.WAFLimitsExceededException || (exports.WAFLimitsExceededException = {}));
713
- var WAFSubscriptionNotFoundException;
714
- (function (WAFSubscriptionNotFoundException) {
715
- WAFSubscriptionNotFoundException.filterSensitiveLog = (obj) => ({
716
- ...obj,
717
- });
718
- })(WAFSubscriptionNotFoundException = exports.WAFSubscriptionNotFoundException || (exports.WAFSubscriptionNotFoundException = {}));
719
664
  var IPAddressVersion;
720
665
  (function (IPAddressVersion) {
721
666
  IPAddressVersion["IPV4"] = "IPV4";
@@ -745,30 +690,6 @@ var CreateIPSetResponse;
745
690
  ...obj,
746
691
  });
747
692
  })(CreateIPSetResponse = exports.CreateIPSetResponse || (exports.CreateIPSetResponse = {}));
748
- var WAFDuplicateItemException;
749
- (function (WAFDuplicateItemException) {
750
- WAFDuplicateItemException.filterSensitiveLog = (obj) => ({
751
- ...obj,
752
- });
753
- })(WAFDuplicateItemException = exports.WAFDuplicateItemException || (exports.WAFDuplicateItemException = {}));
754
- var WAFOptimisticLockException;
755
- (function (WAFOptimisticLockException) {
756
- WAFOptimisticLockException.filterSensitiveLog = (obj) => ({
757
- ...obj,
758
- });
759
- })(WAFOptimisticLockException = exports.WAFOptimisticLockException || (exports.WAFOptimisticLockException = {}));
760
- var WAFTagOperationException;
761
- (function (WAFTagOperationException) {
762
- WAFTagOperationException.filterSensitiveLog = (obj) => ({
763
- ...obj,
764
- });
765
- })(WAFTagOperationException = exports.WAFTagOperationException || (exports.WAFTagOperationException = {}));
766
- var WAFTagOperationInternalErrorException;
767
- (function (WAFTagOperationInternalErrorException) {
768
- WAFTagOperationInternalErrorException.filterSensitiveLog = (obj) => ({
769
- ...obj,
770
- });
771
- })(WAFTagOperationInternalErrorException = exports.WAFTagOperationInternalErrorException || (exports.WAFTagOperationInternalErrorException = {}));
772
693
  var Regex;
773
694
  (function (Regex) {
774
695
  Regex.filterSensitiveLog = (obj) => ({
@@ -859,12 +780,6 @@ var DeleteIPSetResponse;
859
780
  ...obj,
860
781
  });
861
782
  })(DeleteIPSetResponse = exports.DeleteIPSetResponse || (exports.DeleteIPSetResponse = {}));
862
- var WAFAssociatedItemException;
863
- (function (WAFAssociatedItemException) {
864
- WAFAssociatedItemException.filterSensitiveLog = (obj) => ({
865
- ...obj,
866
- });
867
- })(WAFAssociatedItemException = exports.WAFAssociatedItemException || (exports.WAFAssociatedItemException = {}));
868
783
  var DeleteLoggingConfigurationRequest;
869
784
  (function (DeleteLoggingConfigurationRequest) {
870
785
  DeleteLoggingConfigurationRequest.filterSensitiveLog = (obj) => ({
@@ -1330,18 +1245,6 @@ var PutLoggingConfigurationResponse;
1330
1245
  ...obj,
1331
1246
  });
1332
1247
  })(PutLoggingConfigurationResponse = exports.PutLoggingConfigurationResponse || (exports.PutLoggingConfigurationResponse = {}));
1333
- var WAFLogDestinationPermissionIssueException;
1334
- (function (WAFLogDestinationPermissionIssueException) {
1335
- WAFLogDestinationPermissionIssueException.filterSensitiveLog = (obj) => ({
1336
- ...obj,
1337
- });
1338
- })(WAFLogDestinationPermissionIssueException = exports.WAFLogDestinationPermissionIssueException || (exports.WAFLogDestinationPermissionIssueException = {}));
1339
- var WAFServiceLinkedRoleErrorException;
1340
- (function (WAFServiceLinkedRoleErrorException) {
1341
- WAFServiceLinkedRoleErrorException.filterSensitiveLog = (obj) => ({
1342
- ...obj,
1343
- });
1344
- })(WAFServiceLinkedRoleErrorException = exports.WAFServiceLinkedRoleErrorException || (exports.WAFServiceLinkedRoleErrorException = {}));
1345
1248
  var VersionToPublish;
1346
1249
  (function (VersionToPublish) {
1347
1250
  VersionToPublish.filterSensitiveLog = (obj) => ({
@@ -1372,12 +1275,6 @@ var PutPermissionPolicyResponse;
1372
1275
  ...obj,
1373
1276
  });
1374
1277
  })(PutPermissionPolicyResponse = exports.PutPermissionPolicyResponse || (exports.PutPermissionPolicyResponse = {}));
1375
- var WAFInvalidPermissionPolicyException;
1376
- (function (WAFInvalidPermissionPolicyException) {
1377
- WAFInvalidPermissionPolicyException.filterSensitiveLog = (obj) => ({
1378
- ...obj,
1379
- });
1380
- })(WAFInvalidPermissionPolicyException = exports.WAFInvalidPermissionPolicyException || (exports.WAFInvalidPermissionPolicyException = {}));
1381
1278
  var TagResourceRequest;
1382
1279
  (function (TagResourceRequest) {
1383
1280
  TagResourceRequest.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),
@@ -12,6 +12,7 @@ var partitionHash = {
12
12
  "ap-south-1",
13
13
  "ap-southeast-1",
14
14
  "ap-southeast-2",
15
+ "ap-southeast-3",
15
16
  "ca-central-1",
16
17
  "eu-central-1",
17
18
  "eu-north-1",
@@ -457,14 +457,6 @@ export var AssociateWebACLResponse;
457
457
  (function (AssociateWebACLResponse) {
458
458
  AssociateWebACLResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
459
459
  })(AssociateWebACLResponse || (AssociateWebACLResponse = {}));
460
- export var WAFInternalErrorException;
461
- (function (WAFInternalErrorException) {
462
- WAFInternalErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
463
- })(WAFInternalErrorException || (WAFInternalErrorException = {}));
464
- export var WAFInvalidOperationException;
465
- (function (WAFInvalidOperationException) {
466
- WAFInvalidOperationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
467
- })(WAFInvalidOperationException || (WAFInvalidOperationException = {}));
468
460
  export var ParameterExceptionField;
469
461
  (function (ParameterExceptionField) {
470
462
  ParameterExceptionField["AND_STATEMENT"] = "AND_STATEMENT";
@@ -525,18 +517,6 @@ export var ParameterExceptionField;
525
517
  ParameterExceptionField["WEB_ACL"] = "WEB_ACL";
526
518
  ParameterExceptionField["XSS_MATCH_STATEMENT"] = "XSS_MATCH_STATEMENT";
527
519
  })(ParameterExceptionField || (ParameterExceptionField = {}));
528
- export var WAFInvalidParameterException;
529
- (function (WAFInvalidParameterException) {
530
- WAFInvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
531
- })(WAFInvalidParameterException || (WAFInvalidParameterException = {}));
532
- export var WAFNonexistentItemException;
533
- (function (WAFNonexistentItemException) {
534
- WAFNonexistentItemException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
535
- })(WAFNonexistentItemException || (WAFNonexistentItemException = {}));
536
- export var WAFUnavailableEntityException;
537
- (function (WAFUnavailableEntityException) {
538
- WAFUnavailableEntityException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
539
- })(WAFUnavailableEntityException || (WAFUnavailableEntityException = {}));
540
520
  export var CustomResponse;
541
521
  (function (CustomResponse) {
542
522
  CustomResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -590,22 +570,6 @@ export var CheckCapacityResponse;
590
570
  (function (CheckCapacityResponse) {
591
571
  CheckCapacityResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
592
572
  })(CheckCapacityResponse || (CheckCapacityResponse = {}));
593
- export var WAFExpiredManagedRuleGroupVersionException;
594
- (function (WAFExpiredManagedRuleGroupVersionException) {
595
- WAFExpiredManagedRuleGroupVersionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
596
- })(WAFExpiredManagedRuleGroupVersionException || (WAFExpiredManagedRuleGroupVersionException = {}));
597
- export var WAFInvalidResourceException;
598
- (function (WAFInvalidResourceException) {
599
- WAFInvalidResourceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
600
- })(WAFInvalidResourceException || (WAFInvalidResourceException = {}));
601
- export var WAFLimitsExceededException;
602
- (function (WAFLimitsExceededException) {
603
- WAFLimitsExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
604
- })(WAFLimitsExceededException || (WAFLimitsExceededException = {}));
605
- export var WAFSubscriptionNotFoundException;
606
- (function (WAFSubscriptionNotFoundException) {
607
- WAFSubscriptionNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
608
- })(WAFSubscriptionNotFoundException || (WAFSubscriptionNotFoundException = {}));
609
573
  export var IPAddressVersion;
610
574
  (function (IPAddressVersion) {
611
575
  IPAddressVersion["IPV4"] = "IPV4";
@@ -627,22 +591,6 @@ export var CreateIPSetResponse;
627
591
  (function (CreateIPSetResponse) {
628
592
  CreateIPSetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
629
593
  })(CreateIPSetResponse || (CreateIPSetResponse = {}));
630
- export var WAFDuplicateItemException;
631
- (function (WAFDuplicateItemException) {
632
- WAFDuplicateItemException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
633
- })(WAFDuplicateItemException || (WAFDuplicateItemException = {}));
634
- export var WAFOptimisticLockException;
635
- (function (WAFOptimisticLockException) {
636
- WAFOptimisticLockException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
637
- })(WAFOptimisticLockException || (WAFOptimisticLockException = {}));
638
- export var WAFTagOperationException;
639
- (function (WAFTagOperationException) {
640
- WAFTagOperationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
641
- })(WAFTagOperationException || (WAFTagOperationException = {}));
642
- export var WAFTagOperationInternalErrorException;
643
- (function (WAFTagOperationInternalErrorException) {
644
- WAFTagOperationInternalErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
645
- })(WAFTagOperationInternalErrorException || (WAFTagOperationInternalErrorException = {}));
646
594
  export var Regex;
647
595
  (function (Regex) {
648
596
  Regex.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -705,10 +653,6 @@ export var DeleteIPSetResponse;
705
653
  (function (DeleteIPSetResponse) {
706
654
  DeleteIPSetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
707
655
  })(DeleteIPSetResponse || (DeleteIPSetResponse = {}));
708
- export var WAFAssociatedItemException;
709
- (function (WAFAssociatedItemException) {
710
- WAFAssociatedItemException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
711
- })(WAFAssociatedItemException || (WAFAssociatedItemException = {}));
712
656
  export var DeleteLoggingConfigurationRequest;
713
657
  (function (DeleteLoggingConfigurationRequest) {
714
658
  DeleteLoggingConfigurationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1026,14 +970,6 @@ export var PutLoggingConfigurationResponse;
1026
970
  (function (PutLoggingConfigurationResponse) {
1027
971
  PutLoggingConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1028
972
  })(PutLoggingConfigurationResponse || (PutLoggingConfigurationResponse = {}));
1029
- export var WAFLogDestinationPermissionIssueException;
1030
- (function (WAFLogDestinationPermissionIssueException) {
1031
- WAFLogDestinationPermissionIssueException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1032
- })(WAFLogDestinationPermissionIssueException || (WAFLogDestinationPermissionIssueException = {}));
1033
- export var WAFServiceLinkedRoleErrorException;
1034
- (function (WAFServiceLinkedRoleErrorException) {
1035
- WAFServiceLinkedRoleErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1036
- })(WAFServiceLinkedRoleErrorException || (WAFServiceLinkedRoleErrorException = {}));
1037
973
  export var VersionToPublish;
1038
974
  (function (VersionToPublish) {
1039
975
  VersionToPublish.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1054,10 +990,6 @@ export var PutPermissionPolicyResponse;
1054
990
  (function (PutPermissionPolicyResponse) {
1055
991
  PutPermissionPolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1056
992
  })(PutPermissionPolicyResponse || (PutPermissionPolicyResponse = {}));
1057
- export var WAFInvalidPermissionPolicyException;
1058
- (function (WAFInvalidPermissionPolicyException) {
1059
- WAFInvalidPermissionPolicyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1060
- })(WAFInvalidPermissionPolicyException || (WAFInvalidPermissionPolicyException = {}));
1061
993
  export var TagResourceRequest;
1062
994
  (function (TagResourceRequest) {
1063
995
  TagResourceRequest.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 { AssociateWebACLCommandInput, AssociateWebACLCommandOutput } from "./commands/AssociateWebACLCommand";
10
10
  import { CheckCapacityCommandInput, CheckCapacityCommandOutput } from "./commands/CheckCapacityCommand";
@@ -153,6 +153,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
153
153
  * @internal
154
154
  */
155
155
  defaultUserAgentProvider?: Provider<__UserAgent>;
156
+ /**
157
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
158
+ */
159
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
156
160
  }
157
161
  declare type WAFV2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
158
162
  /**
@@ -1417,12 +1417,6 @@ export interface WAFInternalErrorException extends __SmithyException, $MetadataB
1417
1417
  $fault: "server";
1418
1418
  Message?: string;
1419
1419
  }
1420
- export declare namespace WAFInternalErrorException {
1421
- /**
1422
- * @internal
1423
- */
1424
- const filterSensitiveLog: (obj: WAFInternalErrorException) => any;
1425
- }
1426
1420
  /**
1427
1421
  * <p>The operation isn't valid. </p>
1428
1422
  */
@@ -1431,12 +1425,6 @@ export interface WAFInvalidOperationException extends __SmithyException, $Metada
1431
1425
  $fault: "client";
1432
1426
  Message?: string;
1433
1427
  }
1434
- export declare namespace WAFInvalidOperationException {
1435
- /**
1436
- * @internal
1437
- */
1438
- const filterSensitiveLog: (obj: WAFInvalidOperationException) => any;
1439
- }
1440
1428
  export declare enum ParameterExceptionField {
1441
1429
  AND_STATEMENT = "AND_STATEMENT",
1442
1430
  ASSOCIABLE_RESOURCE = "ASSOCIABLE_RESOURCE",
@@ -1533,12 +1521,6 @@ export interface WAFInvalidParameterException extends __SmithyException, $Metada
1533
1521
  */
1534
1522
  Reason?: string;
1535
1523
  }
1536
- export declare namespace WAFInvalidParameterException {
1537
- /**
1538
- * @internal
1539
- */
1540
- const filterSensitiveLog: (obj: WAFInvalidParameterException) => any;
1541
- }
1542
1524
  /**
1543
1525
  * <p>WAF couldn’t perform the operation because your resource doesn’t exist. </p>
1544
1526
  */
@@ -1547,12 +1529,6 @@ export interface WAFNonexistentItemException extends __SmithyException, $Metadat
1547
1529
  $fault: "client";
1548
1530
  Message?: string;
1549
1531
  }
1550
- export declare namespace WAFNonexistentItemException {
1551
- /**
1552
- * @internal
1553
- */
1554
- const filterSensitiveLog: (obj: WAFNonexistentItemException) => any;
1555
- }
1556
1532
  /**
1557
1533
  * <p>WAF couldn’t retrieve the resource that you requested. Retry your request.</p>
1558
1534
  */
@@ -1561,12 +1537,6 @@ export interface WAFUnavailableEntityException extends __SmithyException, $Metad
1561
1537
  $fault: "client";
1562
1538
  Message?: string;
1563
1539
  }
1564
- export declare namespace WAFUnavailableEntityException {
1565
- /**
1566
- * @internal
1567
- */
1568
- const filterSensitiveLog: (obj: WAFUnavailableEntityException) => any;
1569
- }
1570
1540
  /**
1571
1541
  * <p>A custom response to send to the client. You can define a custom response for rule
1572
1542
  * actions and default web ACL actions that are set to <a>BlockAction</a>. </p>
@@ -1858,12 +1828,6 @@ export interface WAFExpiredManagedRuleGroupVersionException extends __SmithyExce
1858
1828
  $fault: "client";
1859
1829
  Message?: string;
1860
1830
  }
1861
- export declare namespace WAFExpiredManagedRuleGroupVersionException {
1862
- /**
1863
- * @internal
1864
- */
1865
- const filterSensitiveLog: (obj: WAFExpiredManagedRuleGroupVersionException) => any;
1866
- }
1867
1831
  /**
1868
1832
  * <p>WAF couldn’t perform the operation because the resource that you requested isn’t
1869
1833
  * valid. Check the resource, and try again.</p>
@@ -1873,12 +1837,6 @@ export interface WAFInvalidResourceException extends __SmithyException, $Metadat
1873
1837
  $fault: "client";
1874
1838
  Message?: string;
1875
1839
  }
1876
- export declare namespace WAFInvalidResourceException {
1877
- /**
1878
- * @internal
1879
- */
1880
- const filterSensitiveLog: (obj: WAFInvalidResourceException) => any;
1881
- }
1882
1840
  /**
1883
1841
  * <p>WAF couldn’t perform the operation because you exceeded your resource limit. For
1884
1842
  * example, the maximum number of <code>WebACL</code> objects that you can create for an Amazon Web Services
@@ -1890,12 +1848,6 @@ export interface WAFLimitsExceededException extends __SmithyException, $Metadata
1890
1848
  $fault: "client";
1891
1849
  Message?: string;
1892
1850
  }
1893
- export declare namespace WAFLimitsExceededException {
1894
- /**
1895
- * @internal
1896
- */
1897
- const filterSensitiveLog: (obj: WAFLimitsExceededException) => any;
1898
- }
1899
1851
  /**
1900
1852
  * <p>You tried to use a managed rule group that's available by subscription, but you aren't
1901
1853
  * subscribed to it yet. </p>
@@ -1905,12 +1857,6 @@ export interface WAFSubscriptionNotFoundException extends __SmithyException, $Me
1905
1857
  $fault: "client";
1906
1858
  Message?: string;
1907
1859
  }
1908
- export declare namespace WAFSubscriptionNotFoundException {
1909
- /**
1910
- * @internal
1911
- */
1912
- const filterSensitiveLog: (obj: WAFSubscriptionNotFoundException) => any;
1913
- }
1914
1860
  export declare enum IPAddressVersion {
1915
1861
  IPV4 = "IPV4",
1916
1862
  IPV6 = "IPV6"
@@ -2056,12 +2002,6 @@ export interface WAFDuplicateItemException extends __SmithyException, $MetadataB
2056
2002
  $fault: "client";
2057
2003
  Message?: string;
2058
2004
  }
2059
- export declare namespace WAFDuplicateItemException {
2060
- /**
2061
- * @internal
2062
- */
2063
- const filterSensitiveLog: (obj: WAFDuplicateItemException) => any;
2064
- }
2065
2005
  /**
2066
2006
  * <p>WAF couldn’t save your changes because you tried to update or delete a resource
2067
2007
  * that has changed since you last retrieved it. Get the resource again, make any changes you
@@ -2072,12 +2012,6 @@ export interface WAFOptimisticLockException extends __SmithyException, $Metadata
2072
2012
  $fault: "client";
2073
2013
  Message?: string;
2074
2014
  }
2075
- export declare namespace WAFOptimisticLockException {
2076
- /**
2077
- * @internal
2078
- */
2079
- const filterSensitiveLog: (obj: WAFOptimisticLockException) => any;
2080
- }
2081
2015
  /**
2082
2016
  * <p>An error occurred during the tagging operation. Retry your request.</p>
2083
2017
  */
@@ -2086,12 +2020,6 @@ export interface WAFTagOperationException extends __SmithyException, $MetadataBe
2086
2020
  $fault: "client";
2087
2021
  Message?: string;
2088
2022
  }
2089
- export declare namespace WAFTagOperationException {
2090
- /**
2091
- * @internal
2092
- */
2093
- const filterSensitiveLog: (obj: WAFTagOperationException) => any;
2094
- }
2095
2023
  /**
2096
2024
  * <p>WAF couldn’t perform your tagging operation because of an internal error. Retry
2097
2025
  * your request.</p>
@@ -2101,12 +2029,6 @@ export interface WAFTagOperationInternalErrorException extends __SmithyException
2101
2029
  $fault: "server";
2102
2030
  Message?: string;
2103
2031
  }
2104
- export declare namespace WAFTagOperationInternalErrorException {
2105
- /**
2106
- * @internal
2107
- */
2108
- const filterSensitiveLog: (obj: WAFTagOperationInternalErrorException) => any;
2109
- }
2110
2032
  /**
2111
2033
  * <p>A single regular expression. This is used in a <a>RegexPatternSet</a>.</p>
2112
2034
  */
@@ -2418,12 +2340,6 @@ export interface WAFAssociatedItemException extends __SmithyException, $Metadata
2418
2340
  $fault: "client";
2419
2341
  Message?: string;
2420
2342
  }
2421
- export declare namespace WAFAssociatedItemException {
2422
- /**
2423
- * @internal
2424
- */
2425
- const filterSensitiveLog: (obj: WAFAssociatedItemException) => any;
2426
- }
2427
2343
  export interface DeleteLoggingConfigurationRequest {
2428
2344
  /**
2429
2345
  * <p>The Amazon Resource Name (ARN) of the web ACL from which you want to delete the
@@ -4381,12 +4297,6 @@ export interface WAFLogDestinationPermissionIssueException extends __SmithyExcep
4381
4297
  $fault: "client";
4382
4298
  Message?: string;
4383
4299
  }
4384
- export declare namespace WAFLogDestinationPermissionIssueException {
4385
- /**
4386
- * @internal
4387
- */
4388
- const filterSensitiveLog: (obj: WAFLogDestinationPermissionIssueException) => any;
4389
- }
4390
4300
  /**
4391
4301
  * <p>WAF is not able to access the service linked role. This can be caused by a
4392
4302
  * previous <code>PutLoggingConfiguration</code> request, which can lock the service linked
@@ -4402,12 +4312,6 @@ export interface WAFServiceLinkedRoleErrorException extends __SmithyException, $
4402
4312
  $fault: "client";
4403
4313
  message?: string;
4404
4314
  }
4405
- export declare namespace WAFServiceLinkedRoleErrorException {
4406
- /**
4407
- * @internal
4408
- */
4409
- const filterSensitiveLog: (obj: WAFServiceLinkedRoleErrorException) => any;
4410
- }
4411
4315
  /**
4412
4316
  * <p>A version of the named managed rule group, that the rule group's vendor publishes for
4413
4317
  * use by customers. </p>
@@ -4569,12 +4473,6 @@ export interface WAFInvalidPermissionPolicyException extends __SmithyException,
4569
4473
  $fault: "client";
4570
4474
  Message?: string;
4571
4475
  }
4572
- export declare namespace WAFInvalidPermissionPolicyException {
4573
- /**
4574
- * @internal
4575
- */
4576
- const filterSensitiveLog: (obj: WAFInvalidPermissionPolicyException) => any;
4577
- }
4578
4476
  export interface TagResourceRequest {
4579
4477
  /**
4580
4478
  * <p>The Amazon Resource Name (ARN) of the resource.</p>
@@ -1,10 +1,11 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { WAFV2ClientConfig } from "./WAFV2Client";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: WAFV2ClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: WAFV2ClientConfig) => {
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<any>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,18 +1,19 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { WAFV2ClientConfig } from "./WAFV2Client";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: WAFV2ClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<string>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: WAFV2ClientConfig) => {
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
30
  tls?: boolean | undefined;
30
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -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 { AssociateWebACLCommandInput, AssociateWebACLCommandOutput } from "./commands/AssociateWebACLCommand";
10
10
  import { CheckCapacityCommandInput, CheckCapacityCommandOutput } from "./commands/CheckCapacityCommand";
@@ -96,6 +96,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
96
96
  regionInfoProvider?: RegionInfoProvider;
97
97
 
98
98
  defaultUserAgentProvider?: Provider<__UserAgent>;
99
+
100
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
99
101
  }
100
102
  declare type WAFV2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
101
103
 
@@ -1,8 +1,9 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { WAFV2ClientConfig } from "./WAFV2Client";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: WAFV2ClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: WAFV2ClientConfig) => {
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<any>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,16 +1,17 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { WAFV2ClientConfig } from "./WAFV2Client";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: WAFV2ClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
9
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<string>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: WAFV2ClientConfig) => {
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
27
28
  tls?: boolean | undefined;
28
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,18 +1,15 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-wafv2",
3
3
  "description": "AWS SDK for JavaScript Wafv2 Client for Node.js, Browser and React Native",
4
- "version": "3.43.0",
4
+ "version": "3.47.1",
5
5
  "scripts": {
6
- "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
- "build:cjs": "tsc -p tsconfig.json",
8
- "build:docs": "yarn clean:docs && typedoc ./",
6
+ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
+ "build:cjs": "tsc -p tsconfig.cjs.json",
8
+ "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
- "clean": "yarn clean:dist && yarn clean:docs",
12
- "clean:dist": "rimraf ./dist",
13
- "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
- "test": "exit 0"
11
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
+ "clean": "rimraf ./dist-*"
16
13
  },
17
14
  "main": "./dist-cjs/index.js",
18
15
  "types": "./dist-types/index.d.ts",
@@ -21,48 +18,44 @@
21
18
  "dependencies": {
22
19
  "@aws-crypto/sha256-browser": "2.0.0",
23
20
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.43.0",
25
- "@aws-sdk/config-resolver": "3.40.0",
26
- "@aws-sdk/credential-provider-node": "3.41.0",
27
- "@aws-sdk/fetch-http-handler": "3.40.0",
28
- "@aws-sdk/hash-node": "3.40.0",
29
- "@aws-sdk/invalid-dependency": "3.40.0",
30
- "@aws-sdk/middleware-content-length": "3.40.0",
31
- "@aws-sdk/middleware-host-header": "3.40.0",
32
- "@aws-sdk/middleware-logger": "3.40.0",
33
- "@aws-sdk/middleware-retry": "3.40.0",
34
- "@aws-sdk/middleware-serde": "3.40.0",
35
- "@aws-sdk/middleware-signing": "3.40.0",
36
- "@aws-sdk/middleware-stack": "3.40.0",
37
- "@aws-sdk/middleware-user-agent": "3.40.0",
38
- "@aws-sdk/node-config-provider": "3.40.0",
39
- "@aws-sdk/node-http-handler": "3.40.0",
40
- "@aws-sdk/protocol-http": "3.40.0",
41
- "@aws-sdk/smithy-client": "3.41.0",
42
- "@aws-sdk/types": "3.40.0",
43
- "@aws-sdk/url-parser": "3.40.0",
44
- "@aws-sdk/util-base64-browser": "3.37.0",
45
- "@aws-sdk/util-base64-node": "3.37.0",
46
- "@aws-sdk/util-body-length-browser": "3.37.0",
47
- "@aws-sdk/util-body-length-node": "3.37.0",
48
- "@aws-sdk/util-user-agent-browser": "3.40.0",
49
- "@aws-sdk/util-user-agent-node": "3.40.0",
50
- "@aws-sdk/util-utf8-browser": "3.37.0",
51
- "@aws-sdk/util-utf8-node": "3.37.0",
21
+ "@aws-sdk/client-sts": "3.47.1",
22
+ "@aws-sdk/config-resolver": "3.47.1",
23
+ "@aws-sdk/credential-provider-node": "3.47.1",
24
+ "@aws-sdk/fetch-http-handler": "3.47.1",
25
+ "@aws-sdk/hash-node": "3.47.1",
26
+ "@aws-sdk/invalid-dependency": "3.47.1",
27
+ "@aws-sdk/middleware-content-length": "3.47.1",
28
+ "@aws-sdk/middleware-host-header": "3.47.1",
29
+ "@aws-sdk/middleware-logger": "3.47.1",
30
+ "@aws-sdk/middleware-retry": "3.47.1",
31
+ "@aws-sdk/middleware-serde": "3.47.1",
32
+ "@aws-sdk/middleware-signing": "3.47.1",
33
+ "@aws-sdk/middleware-stack": "3.47.1",
34
+ "@aws-sdk/middleware-user-agent": "3.47.1",
35
+ "@aws-sdk/node-config-provider": "3.47.1",
36
+ "@aws-sdk/node-http-handler": "3.47.1",
37
+ "@aws-sdk/protocol-http": "3.47.1",
38
+ "@aws-sdk/smithy-client": "3.47.1",
39
+ "@aws-sdk/types": "3.47.1",
40
+ "@aws-sdk/url-parser": "3.47.1",
41
+ "@aws-sdk/util-base64-browser": "3.47.1",
42
+ "@aws-sdk/util-base64-node": "3.47.1",
43
+ "@aws-sdk/util-body-length-browser": "3.47.1",
44
+ "@aws-sdk/util-body-length-node": "3.47.1",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.47.1",
46
+ "@aws-sdk/util-defaults-mode-node": "3.47.1",
47
+ "@aws-sdk/util-user-agent-browser": "3.47.1",
48
+ "@aws-sdk/util-user-agent-node": "3.47.1",
49
+ "@aws-sdk/util-utf8-browser": "3.47.1",
50
+ "@aws-sdk/util-utf8-node": "3.47.1",
52
51
  "tslib": "^2.3.0"
53
52
  },
54
53
  "devDependencies": {
55
- "@aws-sdk/service-client-documentation-generator": "3.38.0",
56
- "@types/node": "^12.7.5",
57
- "downlevel-dts": "0.7.0",
58
- "jest": "^26.1.0",
59
- "rimraf": "^3.0.0",
60
- "ts-jest": "^26.4.1",
61
- "typedoc": "^0.19.2",
62
- "typescript": "~4.3.5"
54
+ "@aws-sdk/service-client-documentation-generator": "3.47.1",
55
+ "@types/node": "^12.7.5"
63
56
  },
64
57
  "engines": {
65
- "node": ">=10.0.0"
58
+ "node": ">=12.0.0"
66
59
  },
67
60
  "typesVersions": {
68
61
  "<4.0": {