@aws-sdk/client-waf-regional 3.46.0 → 3.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist-cjs/models/models_0.js +5 -126
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +10 -2
- package/dist-es/models/models_0.js +0 -80
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-types/WAFRegionalClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -120
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/WAFRegionalClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -80
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +35 -35
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
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.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-waf-regional
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-waf-regional
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @aws-sdk/client-waf-regional
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **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))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
42
|
|
|
8
43
|
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
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.
|
|
8
|
-
exports.UpdateXssMatchSetResponse = exports.UpdateXssMatchSetRequest = exports.XssMatchSetUpdate = exports.WAFSubscriptionNotFoundException = exports.UpdateWebACLResponse = void 0;
|
|
3
|
+
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.CreateByteMatchSetResponse = exports.ByteMatchSet = exports.ByteMatchTuple = exports.TextTransformation = exports.PositionalConstraint = exports.FieldToMatch = exports.MatchFieldType = exports.CreateByteMatchSetRequest = exports.ParameterExceptionReason = exports.ParameterExceptionField = exports.AssociateWebACLResponse = exports.AssociateWebACLRequest = exports.ActivatedRule = exports.WafRuleType = exports.WafOverrideAction = exports.WafOverrideActionType = exports.ExcludedRule = exports.WafAction = exports.WafActionType = void 0;
|
|
4
|
+
exports.GetByteMatchSetRequest = exports.DisassociateWebACLResponse = exports.DisassociateWebACLRequest = 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 = exports.ComparisonOperator = exports.CreateSizeConstraintSetRequest = void 0;
|
|
5
|
+
exports.ListGeoMatchSetsRequest = exports.ListByteMatchSetsResponse = exports.ByteMatchSetSummary = exports.ListByteMatchSetsRequest = exports.ListActivatedRulesInRuleGroupResponse = exports.ListActivatedRulesInRuleGroupRequest = exports.GetXssMatchSetResponse = exports.GetXssMatchSetRequest = exports.GetWebACLForResourceResponse = exports.WebACLSummary = exports.GetWebACLForResourceRequest = 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 = void 0;
|
|
6
|
+
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.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.ListResourcesForWebACLResponse = exports.ListResourcesForWebACLRequest = exports.ResourceType = 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 = 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 = exports.UpdateIPSetResponse = exports.UpdateIPSetRequest = exports.IPSetUpdate = exports.UpdateGeoMatchSetResponse = exports.UpdateGeoMatchSetRequest = exports.GeoMatchSetUpdate = exports.UpdateByteMatchSetResponse = exports.UpdateByteMatchSetRequest = exports.ByteMatchSetUpdate = void 0;
|
|
9
8
|
var WafActionType;
|
|
10
9
|
(function (WafActionType) {
|
|
11
10
|
WafActionType["ALLOW"] = "ALLOW";
|
|
@@ -59,18 +58,6 @@ var AssociateWebACLResponse;
|
|
|
59
58
|
...obj,
|
|
60
59
|
});
|
|
61
60
|
})(AssociateWebACLResponse = exports.AssociateWebACLResponse || (exports.AssociateWebACLResponse = {}));
|
|
62
|
-
var WAFInternalErrorException;
|
|
63
|
-
(function (WAFInternalErrorException) {
|
|
64
|
-
WAFInternalErrorException.filterSensitiveLog = (obj) => ({
|
|
65
|
-
...obj,
|
|
66
|
-
});
|
|
67
|
-
})(WAFInternalErrorException = exports.WAFInternalErrorException || (exports.WAFInternalErrorException = {}));
|
|
68
|
-
var WAFInvalidAccountException;
|
|
69
|
-
(function (WAFInvalidAccountException) {
|
|
70
|
-
WAFInvalidAccountException.filterSensitiveLog = (obj) => ({
|
|
71
|
-
...obj,
|
|
72
|
-
});
|
|
73
|
-
})(WAFInvalidAccountException = exports.WAFInvalidAccountException || (exports.WAFInvalidAccountException = {}));
|
|
74
61
|
var ParameterExceptionField;
|
|
75
62
|
(function (ParameterExceptionField) {
|
|
76
63
|
ParameterExceptionField["BYTE_MATCH_FIELD_TYPE"] = "BYTE_MATCH_FIELD_TYPE";
|
|
@@ -99,24 +86,6 @@ var ParameterExceptionReason;
|
|
|
99
86
|
ParameterExceptionReason["INVALID_OPTION"] = "INVALID_OPTION";
|
|
100
87
|
ParameterExceptionReason["INVALID_TAG_KEY"] = "INVALID_TAG_KEY";
|
|
101
88
|
})(ParameterExceptionReason = exports.ParameterExceptionReason || (exports.ParameterExceptionReason = {}));
|
|
102
|
-
var WAFInvalidParameterException;
|
|
103
|
-
(function (WAFInvalidParameterException) {
|
|
104
|
-
WAFInvalidParameterException.filterSensitiveLog = (obj) => ({
|
|
105
|
-
...obj,
|
|
106
|
-
});
|
|
107
|
-
})(WAFInvalidParameterException = exports.WAFInvalidParameterException || (exports.WAFInvalidParameterException = {}));
|
|
108
|
-
var WAFNonexistentItemException;
|
|
109
|
-
(function (WAFNonexistentItemException) {
|
|
110
|
-
WAFNonexistentItemException.filterSensitiveLog = (obj) => ({
|
|
111
|
-
...obj,
|
|
112
|
-
});
|
|
113
|
-
})(WAFNonexistentItemException = exports.WAFNonexistentItemException || (exports.WAFNonexistentItemException = {}));
|
|
114
|
-
var WAFUnavailableEntityException;
|
|
115
|
-
(function (WAFUnavailableEntityException) {
|
|
116
|
-
WAFUnavailableEntityException.filterSensitiveLog = (obj) => ({
|
|
117
|
-
...obj,
|
|
118
|
-
});
|
|
119
|
-
})(WAFUnavailableEntityException = exports.WAFUnavailableEntityException || (exports.WAFUnavailableEntityException = {}));
|
|
120
89
|
var CreateByteMatchSetRequest;
|
|
121
90
|
(function (CreateByteMatchSetRequest) {
|
|
122
91
|
CreateByteMatchSetRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -174,24 +143,6 @@ var CreateByteMatchSetResponse;
|
|
|
174
143
|
...obj,
|
|
175
144
|
});
|
|
176
145
|
})(CreateByteMatchSetResponse = exports.CreateByteMatchSetResponse || (exports.CreateByteMatchSetResponse = {}));
|
|
177
|
-
var WAFDisallowedNameException;
|
|
178
|
-
(function (WAFDisallowedNameException) {
|
|
179
|
-
WAFDisallowedNameException.filterSensitiveLog = (obj) => ({
|
|
180
|
-
...obj,
|
|
181
|
-
});
|
|
182
|
-
})(WAFDisallowedNameException = exports.WAFDisallowedNameException || (exports.WAFDisallowedNameException = {}));
|
|
183
|
-
var WAFLimitsExceededException;
|
|
184
|
-
(function (WAFLimitsExceededException) {
|
|
185
|
-
WAFLimitsExceededException.filterSensitiveLog = (obj) => ({
|
|
186
|
-
...obj,
|
|
187
|
-
});
|
|
188
|
-
})(WAFLimitsExceededException = exports.WAFLimitsExceededException || (exports.WAFLimitsExceededException = {}));
|
|
189
|
-
var WAFStaleDataException;
|
|
190
|
-
(function (WAFStaleDataException) {
|
|
191
|
-
WAFStaleDataException.filterSensitiveLog = (obj) => ({
|
|
192
|
-
...obj,
|
|
193
|
-
});
|
|
194
|
-
})(WAFStaleDataException = exports.WAFStaleDataException || (exports.WAFStaleDataException = {}));
|
|
195
146
|
var CreateGeoMatchSetRequest;
|
|
196
147
|
(function (CreateGeoMatchSetRequest) {
|
|
197
148
|
CreateGeoMatchSetRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -545,24 +496,6 @@ var CreateRateBasedRuleResponse;
|
|
|
545
496
|
...obj,
|
|
546
497
|
});
|
|
547
498
|
})(CreateRateBasedRuleResponse = exports.CreateRateBasedRuleResponse || (exports.CreateRateBasedRuleResponse = {}));
|
|
548
|
-
var WAFBadRequestException;
|
|
549
|
-
(function (WAFBadRequestException) {
|
|
550
|
-
WAFBadRequestException.filterSensitiveLog = (obj) => ({
|
|
551
|
-
...obj,
|
|
552
|
-
});
|
|
553
|
-
})(WAFBadRequestException = exports.WAFBadRequestException || (exports.WAFBadRequestException = {}));
|
|
554
|
-
var WAFTagOperationException;
|
|
555
|
-
(function (WAFTagOperationException) {
|
|
556
|
-
WAFTagOperationException.filterSensitiveLog = (obj) => ({
|
|
557
|
-
...obj,
|
|
558
|
-
});
|
|
559
|
-
})(WAFTagOperationException = exports.WAFTagOperationException || (exports.WAFTagOperationException = {}));
|
|
560
|
-
var WAFTagOperationInternalErrorException;
|
|
561
|
-
(function (WAFTagOperationInternalErrorException) {
|
|
562
|
-
WAFTagOperationInternalErrorException.filterSensitiveLog = (obj) => ({
|
|
563
|
-
...obj,
|
|
564
|
-
});
|
|
565
|
-
})(WAFTagOperationInternalErrorException = exports.WAFTagOperationInternalErrorException || (exports.WAFTagOperationInternalErrorException = {}));
|
|
566
499
|
var CreateRegexMatchSetRequest;
|
|
567
500
|
(function (CreateRegexMatchSetRequest) {
|
|
568
501
|
CreateRegexMatchSetRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -738,18 +671,6 @@ var MigrationErrorType;
|
|
|
738
671
|
MigrationErrorType["S3_BUCKET_NO_PERMISSION"] = "S3_BUCKET_NO_PERMISSION";
|
|
739
672
|
MigrationErrorType["S3_INTERNAL_ERROR"] = "S3_INTERNAL_ERROR";
|
|
740
673
|
})(MigrationErrorType = exports.MigrationErrorType || (exports.MigrationErrorType = {}));
|
|
741
|
-
var WAFEntityMigrationException;
|
|
742
|
-
(function (WAFEntityMigrationException) {
|
|
743
|
-
WAFEntityMigrationException.filterSensitiveLog = (obj) => ({
|
|
744
|
-
...obj,
|
|
745
|
-
});
|
|
746
|
-
})(WAFEntityMigrationException = exports.WAFEntityMigrationException || (exports.WAFEntityMigrationException = {}));
|
|
747
|
-
var WAFInvalidOperationException;
|
|
748
|
-
(function (WAFInvalidOperationException) {
|
|
749
|
-
WAFInvalidOperationException.filterSensitiveLog = (obj) => ({
|
|
750
|
-
...obj,
|
|
751
|
-
});
|
|
752
|
-
})(WAFInvalidOperationException = exports.WAFInvalidOperationException || (exports.WAFInvalidOperationException = {}));
|
|
753
674
|
var CreateXssMatchSetRequest;
|
|
754
675
|
(function (CreateXssMatchSetRequest) {
|
|
755
676
|
CreateXssMatchSetRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -786,18 +707,6 @@ var DeleteByteMatchSetResponse;
|
|
|
786
707
|
...obj,
|
|
787
708
|
});
|
|
788
709
|
})(DeleteByteMatchSetResponse = exports.DeleteByteMatchSetResponse || (exports.DeleteByteMatchSetResponse = {}));
|
|
789
|
-
var WAFNonEmptyEntityException;
|
|
790
|
-
(function (WAFNonEmptyEntityException) {
|
|
791
|
-
WAFNonEmptyEntityException.filterSensitiveLog = (obj) => ({
|
|
792
|
-
...obj,
|
|
793
|
-
});
|
|
794
|
-
})(WAFNonEmptyEntityException = exports.WAFNonEmptyEntityException || (exports.WAFNonEmptyEntityException = {}));
|
|
795
|
-
var WAFReferencedItemException;
|
|
796
|
-
(function (WAFReferencedItemException) {
|
|
797
|
-
WAFReferencedItemException.filterSensitiveLog = (obj) => ({
|
|
798
|
-
...obj,
|
|
799
|
-
});
|
|
800
|
-
})(WAFReferencedItemException = exports.WAFReferencedItemException || (exports.WAFReferencedItemException = {}));
|
|
801
710
|
var DeleteGeoMatchSetRequest;
|
|
802
711
|
(function (DeleteGeoMatchSetRequest) {
|
|
803
712
|
DeleteGeoMatchSetRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1529,12 +1438,6 @@ var PutLoggingConfigurationResponse;
|
|
|
1529
1438
|
...obj,
|
|
1530
1439
|
});
|
|
1531
1440
|
})(PutLoggingConfigurationResponse = exports.PutLoggingConfigurationResponse || (exports.PutLoggingConfigurationResponse = {}));
|
|
1532
|
-
var WAFServiceLinkedRoleErrorException;
|
|
1533
|
-
(function (WAFServiceLinkedRoleErrorException) {
|
|
1534
|
-
WAFServiceLinkedRoleErrorException.filterSensitiveLog = (obj) => ({
|
|
1535
|
-
...obj,
|
|
1536
|
-
});
|
|
1537
|
-
})(WAFServiceLinkedRoleErrorException = exports.WAFServiceLinkedRoleErrorException || (exports.WAFServiceLinkedRoleErrorException = {}));
|
|
1538
1441
|
var PutPermissionPolicyRequest;
|
|
1539
1442
|
(function (PutPermissionPolicyRequest) {
|
|
1540
1443
|
PutPermissionPolicyRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1547,12 +1450,6 @@ var PutPermissionPolicyResponse;
|
|
|
1547
1450
|
...obj,
|
|
1548
1451
|
});
|
|
1549
1452
|
})(PutPermissionPolicyResponse = exports.PutPermissionPolicyResponse || (exports.PutPermissionPolicyResponse = {}));
|
|
1550
|
-
var WAFInvalidPermissionPolicyException;
|
|
1551
|
-
(function (WAFInvalidPermissionPolicyException) {
|
|
1552
|
-
WAFInvalidPermissionPolicyException.filterSensitiveLog = (obj) => ({
|
|
1553
|
-
...obj,
|
|
1554
|
-
});
|
|
1555
|
-
})(WAFInvalidPermissionPolicyException = exports.WAFInvalidPermissionPolicyException || (exports.WAFInvalidPermissionPolicyException = {}));
|
|
1556
1453
|
var TagResourceRequest;
|
|
1557
1454
|
(function (TagResourceRequest) {
|
|
1558
1455
|
TagResourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1600,12 +1497,6 @@ var UpdateByteMatchSetResponse;
|
|
|
1600
1497
|
...obj,
|
|
1601
1498
|
});
|
|
1602
1499
|
})(UpdateByteMatchSetResponse = exports.UpdateByteMatchSetResponse || (exports.UpdateByteMatchSetResponse = {}));
|
|
1603
|
-
var WAFNonexistentContainerException;
|
|
1604
|
-
(function (WAFNonexistentContainerException) {
|
|
1605
|
-
WAFNonexistentContainerException.filterSensitiveLog = (obj) => ({
|
|
1606
|
-
...obj,
|
|
1607
|
-
});
|
|
1608
|
-
})(WAFNonexistentContainerException = exports.WAFNonexistentContainerException || (exports.WAFNonexistentContainerException = {}));
|
|
1609
1500
|
var GeoMatchSetUpdate;
|
|
1610
1501
|
(function (GeoMatchSetUpdate) {
|
|
1611
1502
|
GeoMatchSetUpdate.filterSensitiveLog = (obj) => ({
|
|
@@ -1696,12 +1587,6 @@ var UpdateRegexPatternSetResponse;
|
|
|
1696
1587
|
...obj,
|
|
1697
1588
|
});
|
|
1698
1589
|
})(UpdateRegexPatternSetResponse = exports.UpdateRegexPatternSetResponse || (exports.UpdateRegexPatternSetResponse = {}));
|
|
1699
|
-
var WAFInvalidRegexPatternException;
|
|
1700
|
-
(function (WAFInvalidRegexPatternException) {
|
|
1701
|
-
WAFInvalidRegexPatternException.filterSensitiveLog = (obj) => ({
|
|
1702
|
-
...obj,
|
|
1703
|
-
});
|
|
1704
|
-
})(WAFInvalidRegexPatternException = exports.WAFInvalidRegexPatternException || (exports.WAFInvalidRegexPatternException = {}));
|
|
1705
1590
|
var UpdateRuleRequest;
|
|
1706
1591
|
(function (UpdateRuleRequest) {
|
|
1707
1592
|
UpdateRuleRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1786,12 +1671,6 @@ var UpdateWebACLResponse;
|
|
|
1786
1671
|
...obj,
|
|
1787
1672
|
});
|
|
1788
1673
|
})(UpdateWebACLResponse = exports.UpdateWebACLResponse || (exports.UpdateWebACLResponse = {}));
|
|
1789
|
-
var WAFSubscriptionNotFoundException;
|
|
1790
|
-
(function (WAFSubscriptionNotFoundException) {
|
|
1791
|
-
WAFSubscriptionNotFoundException.filterSensitiveLog = (obj) => ({
|
|
1792
|
-
...obj,
|
|
1793
|
-
});
|
|
1794
|
-
})(WAFSubscriptionNotFoundException = exports.WAFSubscriptionNotFoundException || (exports.WAFSubscriptionNotFoundException = {}));
|
|
1795
1674
|
var XssMatchSetUpdate;
|
|
1796
1675
|
(function (XssMatchSetUpdate) {
|
|
1797
1676
|
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 : (() =>
|
|
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)),
|
|
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
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
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
18
20
|
const getRuntimeConfig = (config) => {
|
|
19
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
21
25
|
return {
|
|
22
26
|
...clientSharedValues,
|
|
23
27
|
...config,
|
|
24
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
25
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
26
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
27
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
29
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 }),
|
|
30
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),
|
|
31
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),
|
|
32
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
33
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
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
|
+
}),
|
|
34
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
35
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
36
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),
|
|
@@ -40,14 +40,6 @@ export var AssociateWebACLResponse;
|
|
|
40
40
|
(function (AssociateWebACLResponse) {
|
|
41
41
|
AssociateWebACLResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
42
42
|
})(AssociateWebACLResponse || (AssociateWebACLResponse = {}));
|
|
43
|
-
export var WAFInternalErrorException;
|
|
44
|
-
(function (WAFInternalErrorException) {
|
|
45
|
-
WAFInternalErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
46
|
-
})(WAFInternalErrorException || (WAFInternalErrorException = {}));
|
|
47
|
-
export var WAFInvalidAccountException;
|
|
48
|
-
(function (WAFInvalidAccountException) {
|
|
49
|
-
WAFInvalidAccountException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
50
|
-
})(WAFInvalidAccountException || (WAFInvalidAccountException = {}));
|
|
51
43
|
export var ParameterExceptionField;
|
|
52
44
|
(function (ParameterExceptionField) {
|
|
53
45
|
ParameterExceptionField["BYTE_MATCH_FIELD_TYPE"] = "BYTE_MATCH_FIELD_TYPE";
|
|
@@ -76,18 +68,6 @@ export var ParameterExceptionReason;
|
|
|
76
68
|
ParameterExceptionReason["INVALID_OPTION"] = "INVALID_OPTION";
|
|
77
69
|
ParameterExceptionReason["INVALID_TAG_KEY"] = "INVALID_TAG_KEY";
|
|
78
70
|
})(ParameterExceptionReason || (ParameterExceptionReason = {}));
|
|
79
|
-
export var WAFInvalidParameterException;
|
|
80
|
-
(function (WAFInvalidParameterException) {
|
|
81
|
-
WAFInvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
82
|
-
})(WAFInvalidParameterException || (WAFInvalidParameterException = {}));
|
|
83
|
-
export var WAFNonexistentItemException;
|
|
84
|
-
(function (WAFNonexistentItemException) {
|
|
85
|
-
WAFNonexistentItemException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
86
|
-
})(WAFNonexistentItemException || (WAFNonexistentItemException = {}));
|
|
87
|
-
export var WAFUnavailableEntityException;
|
|
88
|
-
(function (WAFUnavailableEntityException) {
|
|
89
|
-
WAFUnavailableEntityException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
90
|
-
})(WAFUnavailableEntityException || (WAFUnavailableEntityException = {}));
|
|
91
71
|
export var CreateByteMatchSetRequest;
|
|
92
72
|
(function (CreateByteMatchSetRequest) {
|
|
93
73
|
CreateByteMatchSetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -135,18 +115,6 @@ export var CreateByteMatchSetResponse;
|
|
|
135
115
|
(function (CreateByteMatchSetResponse) {
|
|
136
116
|
CreateByteMatchSetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
137
117
|
})(CreateByteMatchSetResponse || (CreateByteMatchSetResponse = {}));
|
|
138
|
-
export var WAFDisallowedNameException;
|
|
139
|
-
(function (WAFDisallowedNameException) {
|
|
140
|
-
WAFDisallowedNameException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
141
|
-
})(WAFDisallowedNameException || (WAFDisallowedNameException = {}));
|
|
142
|
-
export var WAFLimitsExceededException;
|
|
143
|
-
(function (WAFLimitsExceededException) {
|
|
144
|
-
WAFLimitsExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
145
|
-
})(WAFLimitsExceededException || (WAFLimitsExceededException = {}));
|
|
146
|
-
export var WAFStaleDataException;
|
|
147
|
-
(function (WAFStaleDataException) {
|
|
148
|
-
WAFStaleDataException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
149
|
-
})(WAFStaleDataException || (WAFStaleDataException = {}));
|
|
150
118
|
export var CreateGeoMatchSetRequest;
|
|
151
119
|
(function (CreateGeoMatchSetRequest) {
|
|
152
120
|
CreateGeoMatchSetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -474,18 +442,6 @@ export var CreateRateBasedRuleResponse;
|
|
|
474
442
|
(function (CreateRateBasedRuleResponse) {
|
|
475
443
|
CreateRateBasedRuleResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
476
444
|
})(CreateRateBasedRuleResponse || (CreateRateBasedRuleResponse = {}));
|
|
477
|
-
export var WAFBadRequestException;
|
|
478
|
-
(function (WAFBadRequestException) {
|
|
479
|
-
WAFBadRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
480
|
-
})(WAFBadRequestException || (WAFBadRequestException = {}));
|
|
481
|
-
export var WAFTagOperationException;
|
|
482
|
-
(function (WAFTagOperationException) {
|
|
483
|
-
WAFTagOperationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
484
|
-
})(WAFTagOperationException || (WAFTagOperationException = {}));
|
|
485
|
-
export var WAFTagOperationInternalErrorException;
|
|
486
|
-
(function (WAFTagOperationInternalErrorException) {
|
|
487
|
-
WAFTagOperationInternalErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
488
|
-
})(WAFTagOperationInternalErrorException || (WAFTagOperationInternalErrorException = {}));
|
|
489
445
|
export var CreateRegexMatchSetRequest;
|
|
490
446
|
(function (CreateRegexMatchSetRequest) {
|
|
491
447
|
CreateRegexMatchSetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -609,14 +565,6 @@ export var MigrationErrorType;
|
|
|
609
565
|
MigrationErrorType["S3_BUCKET_NO_PERMISSION"] = "S3_BUCKET_NO_PERMISSION";
|
|
610
566
|
MigrationErrorType["S3_INTERNAL_ERROR"] = "S3_INTERNAL_ERROR";
|
|
611
567
|
})(MigrationErrorType || (MigrationErrorType = {}));
|
|
612
|
-
export var WAFEntityMigrationException;
|
|
613
|
-
(function (WAFEntityMigrationException) {
|
|
614
|
-
WAFEntityMigrationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
615
|
-
})(WAFEntityMigrationException || (WAFEntityMigrationException = {}));
|
|
616
|
-
export var WAFInvalidOperationException;
|
|
617
|
-
(function (WAFInvalidOperationException) {
|
|
618
|
-
WAFInvalidOperationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
619
|
-
})(WAFInvalidOperationException || (WAFInvalidOperationException = {}));
|
|
620
568
|
export var CreateXssMatchSetRequest;
|
|
621
569
|
(function (CreateXssMatchSetRequest) {
|
|
622
570
|
CreateXssMatchSetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -641,14 +589,6 @@ export var DeleteByteMatchSetResponse;
|
|
|
641
589
|
(function (DeleteByteMatchSetResponse) {
|
|
642
590
|
DeleteByteMatchSetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
643
591
|
})(DeleteByteMatchSetResponse || (DeleteByteMatchSetResponse = {}));
|
|
644
|
-
export var WAFNonEmptyEntityException;
|
|
645
|
-
(function (WAFNonEmptyEntityException) {
|
|
646
|
-
WAFNonEmptyEntityException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
647
|
-
})(WAFNonEmptyEntityException || (WAFNonEmptyEntityException = {}));
|
|
648
|
-
export var WAFReferencedItemException;
|
|
649
|
-
(function (WAFReferencedItemException) {
|
|
650
|
-
WAFReferencedItemException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
651
|
-
})(WAFReferencedItemException || (WAFReferencedItemException = {}));
|
|
652
592
|
export var DeleteGeoMatchSetRequest;
|
|
653
593
|
(function (DeleteGeoMatchSetRequest) {
|
|
654
594
|
DeleteGeoMatchSetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1140,10 +1080,6 @@ export var PutLoggingConfigurationResponse;
|
|
|
1140
1080
|
(function (PutLoggingConfigurationResponse) {
|
|
1141
1081
|
PutLoggingConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1142
1082
|
})(PutLoggingConfigurationResponse || (PutLoggingConfigurationResponse = {}));
|
|
1143
|
-
export var WAFServiceLinkedRoleErrorException;
|
|
1144
|
-
(function (WAFServiceLinkedRoleErrorException) {
|
|
1145
|
-
WAFServiceLinkedRoleErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1146
|
-
})(WAFServiceLinkedRoleErrorException || (WAFServiceLinkedRoleErrorException = {}));
|
|
1147
1083
|
export var PutPermissionPolicyRequest;
|
|
1148
1084
|
(function (PutPermissionPolicyRequest) {
|
|
1149
1085
|
PutPermissionPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1152,10 +1088,6 @@ export var PutPermissionPolicyResponse;
|
|
|
1152
1088
|
(function (PutPermissionPolicyResponse) {
|
|
1153
1089
|
PutPermissionPolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1154
1090
|
})(PutPermissionPolicyResponse || (PutPermissionPolicyResponse = {}));
|
|
1155
|
-
export var WAFInvalidPermissionPolicyException;
|
|
1156
|
-
(function (WAFInvalidPermissionPolicyException) {
|
|
1157
|
-
WAFInvalidPermissionPolicyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1158
|
-
})(WAFInvalidPermissionPolicyException || (WAFInvalidPermissionPolicyException = {}));
|
|
1159
1091
|
export var TagResourceRequest;
|
|
1160
1092
|
(function (TagResourceRequest) {
|
|
1161
1093
|
TagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1189,10 +1121,6 @@ export var UpdateByteMatchSetResponse;
|
|
|
1189
1121
|
(function (UpdateByteMatchSetResponse) {
|
|
1190
1122
|
UpdateByteMatchSetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1191
1123
|
})(UpdateByteMatchSetResponse || (UpdateByteMatchSetResponse = {}));
|
|
1192
|
-
export var WAFNonexistentContainerException;
|
|
1193
|
-
(function (WAFNonexistentContainerException) {
|
|
1194
|
-
WAFNonexistentContainerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1195
|
-
})(WAFNonexistentContainerException || (WAFNonexistentContainerException = {}));
|
|
1196
1124
|
export var GeoMatchSetUpdate;
|
|
1197
1125
|
(function (GeoMatchSetUpdate) {
|
|
1198
1126
|
GeoMatchSetUpdate.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1253,10 +1181,6 @@ export var UpdateRegexPatternSetResponse;
|
|
|
1253
1181
|
(function (UpdateRegexPatternSetResponse) {
|
|
1254
1182
|
UpdateRegexPatternSetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1255
1183
|
})(UpdateRegexPatternSetResponse || (UpdateRegexPatternSetResponse = {}));
|
|
1256
|
-
export var WAFInvalidRegexPatternException;
|
|
1257
|
-
(function (WAFInvalidRegexPatternException) {
|
|
1258
|
-
WAFInvalidRegexPatternException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1259
|
-
})(WAFInvalidRegexPatternException || (WAFInvalidRegexPatternException = {}));
|
|
1260
1184
|
export var UpdateRuleRequest;
|
|
1261
1185
|
(function (UpdateRuleRequest) {
|
|
1262
1186
|
UpdateRuleRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1313,10 +1237,6 @@ export var UpdateWebACLResponse;
|
|
|
1313
1237
|
(function (UpdateWebACLResponse) {
|
|
1314
1238
|
UpdateWebACLResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1315
1239
|
})(UpdateWebACLResponse || (UpdateWebACLResponse = {}));
|
|
1316
|
-
export var WAFSubscriptionNotFoundException;
|
|
1317
|
-
(function (WAFSubscriptionNotFoundException) {
|
|
1318
|
-
WAFSubscriptionNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1319
|
-
})(WAFSubscriptionNotFoundException || (WAFSubscriptionNotFoundException = {}));
|
|
1320
1240
|
export var XssMatchSetUpdate;
|
|
1321
1241
|
(function (XssMatchSetUpdate) {
|
|
1322
1242
|
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
|
|
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
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,19 +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 { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
15
17
|
export var getRuntimeConfig = function (config) {
|
|
16
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
17
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
-
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
|
|
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 });
|
|
19
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 { CreateByteMatchSetCommandInput, CreateByteMatchSetCommandOutput } from "./commands/CreateByteMatchSetCommand";
|
|
@@ -189,6 +189,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
189
189
|
* @internal
|
|
190
190
|
*/
|
|
191
191
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
192
|
+
/**
|
|
193
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
194
|
+
*/
|
|
195
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
192
196
|
}
|
|
193
197
|
declare type WAFRegionalClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
194
198
|
/**
|