@aws-sdk/client-sagemaker 3.646.0 → 3.649.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 +17322 -17292
- package/dist-es/endpoint/endpointResolver.js +7 -3
- package/dist-es/models/models_0.js +9 -13
- package/dist-es/models/models_1.js +15 -1
- package/dist-es/models/models_2.js +0 -23
- package/dist-es/models/models_3.js +23 -4
- package/dist-es/models/models_4.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +23 -1
- package/dist-types/commands/CreateAppImageConfigCommand.d.ts +1 -1
- package/dist-types/commands/CreateArtifactCommand.d.ts +1 -2
- package/dist-types/commands/CreateClusterCommand.d.ts +9 -0
- package/dist-types/commands/CreatePresignedMlflowTrackingServerUrlCommand.d.ts +2 -1
- package/dist-types/commands/CreatePresignedNotebookInstanceUrlCommand.d.ts +1 -1
- package/dist-types/commands/DescribeClusterCommand.d.ts +9 -0
- package/dist-types/commands/DescribeClusterNodeCommand.d.ts +1 -1
- package/dist-types/commands/DescribeMlflowTrackingServerCommand.d.ts +1 -1
- package/dist-types/commands/ListClusterNodesCommand.d.ts +1 -1
- package/dist-types/commands/ListModelCardExportJobsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateClusterCommand.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +57 -93
- package/dist-types/models/models_1.d.ts +110 -83
- package/dist-types/models/models_2.d.ts +93 -135
- package/dist-types/models/models_3.d.ts +135 -128
- package/dist-types/models/models_4.d.ts +135 -4
- 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/commands/CreateAppImageConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateArtifactCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/CreatePresignedMlflowTrackingServerUrlCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/CreatePresignedNotebookInstanceUrlCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeMlflowTrackingServerCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListModelCardExportJobsCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +21 -24
- package/dist-types/ts3.4/models/models_1.d.ts +37 -17
- package/dist-types/ts3.4/models/models_2.d.ts +20 -49
- package/dist-types/ts3.4/models/models_3.d.ts +49 -34
- package/dist-types/ts3.4/models/models_4.d.ts +37 -2
- 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;
|