@aws-sdk/client-waf-regional 3.645.0 → 3.650.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/dist-cjs/endpoint/endpointResolver.js +6 -2
- package/dist-cjs/index.js +81 -243
- package/dist-es/commands/AssociateWebACLCommand.js +1 -3
- package/dist-es/commands/CreateByteMatchSetCommand.js +1 -3
- package/dist-es/commands/CreateGeoMatchSetCommand.js +1 -3
- package/dist-es/commands/CreateIPSetCommand.js +1 -3
- package/dist-es/commands/CreateRateBasedRuleCommand.js +1 -3
- package/dist-es/commands/CreateRegexMatchSetCommand.js +1 -3
- package/dist-es/commands/CreateRegexPatternSetCommand.js +1 -3
- package/dist-es/commands/CreateRuleCommand.js +1 -3
- package/dist-es/commands/CreateRuleGroupCommand.js +1 -3
- package/dist-es/commands/CreateSizeConstraintSetCommand.js +1 -3
- package/dist-es/commands/CreateSqlInjectionMatchSetCommand.js +1 -3
- package/dist-es/commands/CreateWebACLCommand.js +1 -3
- package/dist-es/commands/CreateWebACLMigrationStackCommand.js +1 -3
- package/dist-es/commands/CreateXssMatchSetCommand.js +1 -3
- package/dist-es/commands/DeleteByteMatchSetCommand.js +1 -3
- package/dist-es/commands/DeleteGeoMatchSetCommand.js +1 -3
- package/dist-es/commands/DeleteIPSetCommand.js +1 -3
- package/dist-es/commands/DeleteLoggingConfigurationCommand.js +1 -3
- package/dist-es/commands/DeletePermissionPolicyCommand.js +1 -3
- package/dist-es/commands/DeleteRateBasedRuleCommand.js +1 -3
- package/dist-es/commands/DeleteRegexMatchSetCommand.js +1 -3
- package/dist-es/commands/DeleteRegexPatternSetCommand.js +1 -3
- package/dist-es/commands/DeleteRuleCommand.js +1 -3
- package/dist-es/commands/DeleteRuleGroupCommand.js +1 -3
- package/dist-es/commands/DeleteSizeConstraintSetCommand.js +1 -3
- package/dist-es/commands/DeleteSqlInjectionMatchSetCommand.js +1 -3
- package/dist-es/commands/DeleteWebACLCommand.js +1 -3
- package/dist-es/commands/DeleteXssMatchSetCommand.js +1 -3
- package/dist-es/commands/DisassociateWebACLCommand.js +1 -3
- package/dist-es/commands/GetByteMatchSetCommand.js +1 -3
- package/dist-es/commands/GetChangeTokenCommand.js +1 -3
- package/dist-es/commands/GetChangeTokenStatusCommand.js +1 -3
- package/dist-es/commands/GetGeoMatchSetCommand.js +1 -3
- package/dist-es/commands/GetIPSetCommand.js +1 -3
- package/dist-es/commands/GetLoggingConfigurationCommand.js +1 -3
- package/dist-es/commands/GetPermissionPolicyCommand.js +1 -3
- package/dist-es/commands/GetRateBasedRuleCommand.js +1 -3
- package/dist-es/commands/GetRateBasedRuleManagedKeysCommand.js +1 -3
- package/dist-es/commands/GetRegexMatchSetCommand.js +1 -3
- package/dist-es/commands/GetRegexPatternSetCommand.js +1 -3
- package/dist-es/commands/GetRuleCommand.js +1 -3
- package/dist-es/commands/GetRuleGroupCommand.js +1 -3
- package/dist-es/commands/GetSampledRequestsCommand.js +1 -3
- package/dist-es/commands/GetSizeConstraintSetCommand.js +1 -3
- package/dist-es/commands/GetSqlInjectionMatchSetCommand.js +1 -3
- package/dist-es/commands/GetWebACLCommand.js +1 -3
- package/dist-es/commands/GetWebACLForResourceCommand.js +1 -3
- package/dist-es/commands/GetXssMatchSetCommand.js +1 -3
- package/dist-es/commands/ListActivatedRulesInRuleGroupCommand.js +1 -3
- package/dist-es/commands/ListByteMatchSetsCommand.js +1 -3
- package/dist-es/commands/ListGeoMatchSetsCommand.js +1 -3
- package/dist-es/commands/ListIPSetsCommand.js +1 -3
- package/dist-es/commands/ListLoggingConfigurationsCommand.js +1 -3
- package/dist-es/commands/ListRateBasedRulesCommand.js +1 -3
- package/dist-es/commands/ListRegexMatchSetsCommand.js +1 -3
- package/dist-es/commands/ListRegexPatternSetsCommand.js +1 -3
- package/dist-es/commands/ListResourcesForWebACLCommand.js +1 -3
- package/dist-es/commands/ListRuleGroupsCommand.js +1 -3
- package/dist-es/commands/ListRulesCommand.js +1 -3
- package/dist-es/commands/ListSizeConstraintSetsCommand.js +1 -3
- package/dist-es/commands/ListSqlInjectionMatchSetsCommand.js +1 -3
- package/dist-es/commands/ListSubscribedRuleGroupsCommand.js +1 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
- package/dist-es/commands/ListWebACLsCommand.js +1 -3
- package/dist-es/commands/ListXssMatchSetsCommand.js +1 -3
- package/dist-es/commands/PutLoggingConfigurationCommand.js +1 -3
- package/dist-es/commands/PutPermissionPolicyCommand.js +1 -3
- package/dist-es/commands/TagResourceCommand.js +1 -3
- package/dist-es/commands/UntagResourceCommand.js +1 -3
- package/dist-es/commands/UpdateByteMatchSetCommand.js +1 -3
- package/dist-es/commands/UpdateGeoMatchSetCommand.js +1 -3
- package/dist-es/commands/UpdateIPSetCommand.js +1 -3
- package/dist-es/commands/UpdateRateBasedRuleCommand.js +1 -3
- package/dist-es/commands/UpdateRegexMatchSetCommand.js +1 -3
- package/dist-es/commands/UpdateRegexPatternSetCommand.js +1 -3
- package/dist-es/commands/UpdateRuleCommand.js +1 -3
- package/dist-es/commands/UpdateRuleGroupCommand.js +1 -3
- package/dist-es/commands/UpdateSizeConstraintSetCommand.js +1 -3
- package/dist-es/commands/UpdateSqlInjectionMatchSetCommand.js +1 -3
- package/dist-es/commands/UpdateWebACLCommand.js +1 -3
- package/dist-es/commands/UpdateXssMatchSetCommand.js +1 -3
- package/dist-es/endpoint/endpointResolver.js +7 -3
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +35 -35
|
@@ -4,11 +4,15 @@ exports.defaultEndpointResolver = void 0;
|
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
5
|
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
6
|
const ruleset_1 = require("./ruleset");
|
|
7
|
+
const cache = new util_endpoints_2.EndpointCache({
|
|
8
|
+
size: 50,
|
|
9
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
|
+
});
|
|
7
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
8
|
-
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
12
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
9
13
|
endpointParams: endpointParams,
|
|
10
14
|
logger: context.logger,
|
|
11
|
-
});
|
|
15
|
+
}));
|
|
12
16
|
};
|
|
13
17
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
14
18
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|