@aws-sdk/client-elasticache 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 +75 -225
- package/dist-es/commands/AddTagsToResourceCommand.js +1 -3
- package/dist-es/commands/AuthorizeCacheSecurityGroupIngressCommand.js +1 -3
- package/dist-es/commands/BatchApplyUpdateActionCommand.js +1 -3
- package/dist-es/commands/BatchStopUpdateActionCommand.js +1 -3
- package/dist-es/commands/CompleteMigrationCommand.js +1 -3
- package/dist-es/commands/CopyServerlessCacheSnapshotCommand.js +1 -3
- package/dist-es/commands/CopySnapshotCommand.js +1 -3
- package/dist-es/commands/CreateCacheClusterCommand.js +1 -3
- package/dist-es/commands/CreateCacheParameterGroupCommand.js +1 -3
- package/dist-es/commands/CreateCacheSecurityGroupCommand.js +1 -3
- package/dist-es/commands/CreateCacheSubnetGroupCommand.js +1 -3
- package/dist-es/commands/CreateGlobalReplicationGroupCommand.js +1 -3
- package/dist-es/commands/CreateReplicationGroupCommand.js +1 -3
- package/dist-es/commands/CreateServerlessCacheCommand.js +1 -3
- package/dist-es/commands/CreateServerlessCacheSnapshotCommand.js +1 -3
- package/dist-es/commands/CreateSnapshotCommand.js +1 -3
- package/dist-es/commands/CreateUserCommand.js +1 -3
- package/dist-es/commands/CreateUserGroupCommand.js +1 -3
- package/dist-es/commands/DecreaseNodeGroupsInGlobalReplicationGroupCommand.js +1 -3
- package/dist-es/commands/DecreaseReplicaCountCommand.js +1 -3
- package/dist-es/commands/DeleteCacheClusterCommand.js +1 -3
- package/dist-es/commands/DeleteCacheParameterGroupCommand.js +1 -3
- package/dist-es/commands/DeleteCacheSecurityGroupCommand.js +1 -3
- package/dist-es/commands/DeleteCacheSubnetGroupCommand.js +1 -3
- package/dist-es/commands/DeleteGlobalReplicationGroupCommand.js +1 -3
- package/dist-es/commands/DeleteReplicationGroupCommand.js +1 -3
- package/dist-es/commands/DeleteServerlessCacheCommand.js +1 -3
- package/dist-es/commands/DeleteServerlessCacheSnapshotCommand.js +1 -3
- package/dist-es/commands/DeleteSnapshotCommand.js +1 -3
- package/dist-es/commands/DeleteUserCommand.js +1 -3
- package/dist-es/commands/DeleteUserGroupCommand.js +1 -3
- package/dist-es/commands/DescribeCacheClustersCommand.js +1 -3
- package/dist-es/commands/DescribeCacheEngineVersionsCommand.js +1 -3
- package/dist-es/commands/DescribeCacheParameterGroupsCommand.js +1 -3
- package/dist-es/commands/DescribeCacheParametersCommand.js +1 -3
- package/dist-es/commands/DescribeCacheSecurityGroupsCommand.js +1 -3
- package/dist-es/commands/DescribeCacheSubnetGroupsCommand.js +1 -3
- package/dist-es/commands/DescribeEngineDefaultParametersCommand.js +1 -3
- package/dist-es/commands/DescribeEventsCommand.js +1 -3
- package/dist-es/commands/DescribeGlobalReplicationGroupsCommand.js +1 -3
- package/dist-es/commands/DescribeReplicationGroupsCommand.js +1 -3
- package/dist-es/commands/DescribeReservedCacheNodesCommand.js +1 -3
- package/dist-es/commands/DescribeReservedCacheNodesOfferingsCommand.js +1 -3
- package/dist-es/commands/DescribeServerlessCacheSnapshotsCommand.js +1 -3
- package/dist-es/commands/DescribeServerlessCachesCommand.js +1 -3
- package/dist-es/commands/DescribeServiceUpdatesCommand.js +1 -3
- package/dist-es/commands/DescribeSnapshotsCommand.js +1 -3
- package/dist-es/commands/DescribeUpdateActionsCommand.js +1 -3
- package/dist-es/commands/DescribeUserGroupsCommand.js +1 -3
- package/dist-es/commands/DescribeUsersCommand.js +1 -3
- package/dist-es/commands/DisassociateGlobalReplicationGroupCommand.js +1 -3
- package/dist-es/commands/ExportServerlessCacheSnapshotCommand.js +1 -3
- package/dist-es/commands/FailoverGlobalReplicationGroupCommand.js +1 -3
- package/dist-es/commands/IncreaseNodeGroupsInGlobalReplicationGroupCommand.js +1 -3
- package/dist-es/commands/IncreaseReplicaCountCommand.js +1 -3
- package/dist-es/commands/ListAllowedNodeTypeModificationsCommand.js +1 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
- package/dist-es/commands/ModifyCacheClusterCommand.js +1 -3
- package/dist-es/commands/ModifyCacheParameterGroupCommand.js +1 -3
- package/dist-es/commands/ModifyCacheSubnetGroupCommand.js +1 -3
- package/dist-es/commands/ModifyGlobalReplicationGroupCommand.js +1 -3
- package/dist-es/commands/ModifyReplicationGroupCommand.js +1 -3
- package/dist-es/commands/ModifyReplicationGroupShardConfigurationCommand.js +1 -3
- package/dist-es/commands/ModifyServerlessCacheCommand.js +1 -3
- package/dist-es/commands/ModifyUserCommand.js +1 -3
- package/dist-es/commands/ModifyUserGroupCommand.js +1 -3
- package/dist-es/commands/PurchaseReservedCacheNodesOfferingCommand.js +1 -3
- package/dist-es/commands/RebalanceSlotsInGlobalReplicationGroupCommand.js +1 -3
- package/dist-es/commands/RebootCacheClusterCommand.js +1 -3
- package/dist-es/commands/RemoveTagsFromResourceCommand.js +1 -3
- package/dist-es/commands/ResetCacheParameterGroupCommand.js +1 -3
- package/dist-es/commands/RevokeCacheSecurityGroupIngressCommand.js +1 -3
- package/dist-es/commands/StartMigrationCommand.js +1 -3
- package/dist-es/commands/TestFailoverCommand.js +1 -3
- package/dist-es/commands/TestMigrationCommand.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 +36 -36
|
@@ -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;
|