@aws-sdk/client-neptune 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 +69 -207
- package/dist-es/commands/AddRoleToDBClusterCommand.js +1 -3
- package/dist-es/commands/AddSourceIdentifierToSubscriptionCommand.js +1 -3
- package/dist-es/commands/AddTagsToResourceCommand.js +1 -3
- package/dist-es/commands/ApplyPendingMaintenanceActionCommand.js +1 -3
- package/dist-es/commands/CopyDBClusterParameterGroupCommand.js +1 -3
- package/dist-es/commands/CopyDBClusterSnapshotCommand.js +1 -3
- package/dist-es/commands/CopyDBParameterGroupCommand.js +1 -3
- package/dist-es/commands/CreateDBClusterCommand.js +1 -3
- package/dist-es/commands/CreateDBClusterEndpointCommand.js +1 -3
- package/dist-es/commands/CreateDBClusterParameterGroupCommand.js +1 -3
- package/dist-es/commands/CreateDBClusterSnapshotCommand.js +1 -3
- package/dist-es/commands/CreateDBInstanceCommand.js +1 -3
- package/dist-es/commands/CreateDBParameterGroupCommand.js +1 -3
- package/dist-es/commands/CreateDBSubnetGroupCommand.js +1 -3
- package/dist-es/commands/CreateEventSubscriptionCommand.js +1 -3
- package/dist-es/commands/CreateGlobalClusterCommand.js +1 -3
- package/dist-es/commands/DeleteDBClusterCommand.js +1 -3
- package/dist-es/commands/DeleteDBClusterEndpointCommand.js +1 -3
- package/dist-es/commands/DeleteDBClusterParameterGroupCommand.js +1 -3
- package/dist-es/commands/DeleteDBClusterSnapshotCommand.js +1 -3
- package/dist-es/commands/DeleteDBInstanceCommand.js +1 -3
- package/dist-es/commands/DeleteDBParameterGroupCommand.js +1 -3
- package/dist-es/commands/DeleteDBSubnetGroupCommand.js +1 -3
- package/dist-es/commands/DeleteEventSubscriptionCommand.js +1 -3
- package/dist-es/commands/DeleteGlobalClusterCommand.js +1 -3
- package/dist-es/commands/DescribeDBClusterEndpointsCommand.js +1 -3
- package/dist-es/commands/DescribeDBClusterParameterGroupsCommand.js +1 -3
- package/dist-es/commands/DescribeDBClusterParametersCommand.js +1 -3
- package/dist-es/commands/DescribeDBClusterSnapshotAttributesCommand.js +1 -3
- package/dist-es/commands/DescribeDBClusterSnapshotsCommand.js +1 -3
- package/dist-es/commands/DescribeDBClustersCommand.js +1 -3
- package/dist-es/commands/DescribeDBEngineVersionsCommand.js +1 -3
- package/dist-es/commands/DescribeDBInstancesCommand.js +1 -3
- package/dist-es/commands/DescribeDBParameterGroupsCommand.js +1 -3
- package/dist-es/commands/DescribeDBParametersCommand.js +1 -3
- package/dist-es/commands/DescribeDBSubnetGroupsCommand.js +1 -3
- package/dist-es/commands/DescribeEngineDefaultClusterParametersCommand.js +1 -3
- package/dist-es/commands/DescribeEngineDefaultParametersCommand.js +1 -3
- package/dist-es/commands/DescribeEventCategoriesCommand.js +1 -3
- package/dist-es/commands/DescribeEventSubscriptionsCommand.js +1 -3
- package/dist-es/commands/DescribeEventsCommand.js +1 -3
- package/dist-es/commands/DescribeGlobalClustersCommand.js +1 -3
- package/dist-es/commands/DescribeOrderableDBInstanceOptionsCommand.js +1 -3
- package/dist-es/commands/DescribePendingMaintenanceActionsCommand.js +1 -3
- package/dist-es/commands/DescribeValidDBInstanceModificationsCommand.js +1 -3
- package/dist-es/commands/FailoverDBClusterCommand.js +1 -3
- package/dist-es/commands/FailoverGlobalClusterCommand.js +1 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
- package/dist-es/commands/ModifyDBClusterCommand.js +1 -3
- package/dist-es/commands/ModifyDBClusterEndpointCommand.js +1 -3
- package/dist-es/commands/ModifyDBClusterParameterGroupCommand.js +1 -3
- package/dist-es/commands/ModifyDBClusterSnapshotAttributeCommand.js +1 -3
- package/dist-es/commands/ModifyDBInstanceCommand.js +1 -3
- package/dist-es/commands/ModifyDBParameterGroupCommand.js +1 -3
- package/dist-es/commands/ModifyDBSubnetGroupCommand.js +1 -3
- package/dist-es/commands/ModifyEventSubscriptionCommand.js +1 -3
- package/dist-es/commands/ModifyGlobalClusterCommand.js +1 -3
- package/dist-es/commands/PromoteReadReplicaDBClusterCommand.js +1 -3
- package/dist-es/commands/RebootDBInstanceCommand.js +1 -3
- package/dist-es/commands/RemoveFromGlobalClusterCommand.js +1 -3
- package/dist-es/commands/RemoveRoleFromDBClusterCommand.js +1 -3
- package/dist-es/commands/RemoveSourceIdentifierFromSubscriptionCommand.js +1 -3
- package/dist-es/commands/RemoveTagsFromResourceCommand.js +1 -3
- package/dist-es/commands/ResetDBClusterParameterGroupCommand.js +1 -3
- package/dist-es/commands/ResetDBParameterGroupCommand.js +1 -3
- package/dist-es/commands/RestoreDBClusterFromSnapshotCommand.js +1 -3
- package/dist-es/commands/RestoreDBClusterToPointInTimeCommand.js +1 -3
- package/dist-es/commands/StartDBClusterCommand.js +1 -3
- package/dist-es/commands/StopDBClusterCommand.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 +37 -37
|
@@ -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;
|