@aws-sdk/client-forecast 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 +63 -189
- package/dist-es/commands/CreateAutoPredictorCommand.js +1 -3
- package/dist-es/commands/CreateDatasetCommand.js +1 -3
- package/dist-es/commands/CreateDatasetGroupCommand.js +1 -3
- package/dist-es/commands/CreateDatasetImportJobCommand.js +1 -3
- package/dist-es/commands/CreateExplainabilityCommand.js +1 -3
- package/dist-es/commands/CreateExplainabilityExportCommand.js +1 -3
- package/dist-es/commands/CreateForecastCommand.js +1 -3
- package/dist-es/commands/CreateForecastExportJobCommand.js +1 -3
- package/dist-es/commands/CreateMonitorCommand.js +1 -3
- package/dist-es/commands/CreatePredictorBacktestExportJobCommand.js +1 -3
- package/dist-es/commands/CreatePredictorCommand.js +1 -3
- package/dist-es/commands/CreateWhatIfAnalysisCommand.js +1 -3
- package/dist-es/commands/CreateWhatIfForecastCommand.js +1 -3
- package/dist-es/commands/CreateWhatIfForecastExportCommand.js +1 -3
- package/dist-es/commands/DeleteDatasetCommand.js +1 -3
- package/dist-es/commands/DeleteDatasetGroupCommand.js +1 -3
- package/dist-es/commands/DeleteDatasetImportJobCommand.js +1 -3
- package/dist-es/commands/DeleteExplainabilityCommand.js +1 -3
- package/dist-es/commands/DeleteExplainabilityExportCommand.js +1 -3
- package/dist-es/commands/DeleteForecastCommand.js +1 -3
- package/dist-es/commands/DeleteForecastExportJobCommand.js +1 -3
- package/dist-es/commands/DeleteMonitorCommand.js +1 -3
- package/dist-es/commands/DeletePredictorBacktestExportJobCommand.js +1 -3
- package/dist-es/commands/DeletePredictorCommand.js +1 -3
- package/dist-es/commands/DeleteResourceTreeCommand.js +1 -3
- package/dist-es/commands/DeleteWhatIfAnalysisCommand.js +1 -3
- package/dist-es/commands/DeleteWhatIfForecastCommand.js +1 -3
- package/dist-es/commands/DeleteWhatIfForecastExportCommand.js +1 -3
- package/dist-es/commands/DescribeAutoPredictorCommand.js +1 -3
- package/dist-es/commands/DescribeDatasetCommand.js +1 -3
- package/dist-es/commands/DescribeDatasetGroupCommand.js +1 -3
- package/dist-es/commands/DescribeDatasetImportJobCommand.js +1 -3
- package/dist-es/commands/DescribeExplainabilityCommand.js +1 -3
- package/dist-es/commands/DescribeExplainabilityExportCommand.js +1 -3
- package/dist-es/commands/DescribeForecastCommand.js +1 -3
- package/dist-es/commands/DescribeForecastExportJobCommand.js +1 -3
- package/dist-es/commands/DescribeMonitorCommand.js +1 -3
- package/dist-es/commands/DescribePredictorBacktestExportJobCommand.js +1 -3
- package/dist-es/commands/DescribePredictorCommand.js +1 -3
- package/dist-es/commands/DescribeWhatIfAnalysisCommand.js +1 -3
- package/dist-es/commands/DescribeWhatIfForecastCommand.js +1 -3
- package/dist-es/commands/DescribeWhatIfForecastExportCommand.js +1 -3
- package/dist-es/commands/GetAccuracyMetricsCommand.js +1 -3
- package/dist-es/commands/ListDatasetGroupsCommand.js +1 -3
- package/dist-es/commands/ListDatasetImportJobsCommand.js +1 -3
- package/dist-es/commands/ListDatasetsCommand.js +1 -3
- package/dist-es/commands/ListExplainabilitiesCommand.js +1 -3
- package/dist-es/commands/ListExplainabilityExportsCommand.js +1 -3
- package/dist-es/commands/ListForecastExportJobsCommand.js +1 -3
- package/dist-es/commands/ListForecastsCommand.js +1 -3
- package/dist-es/commands/ListMonitorEvaluationsCommand.js +1 -3
- package/dist-es/commands/ListMonitorsCommand.js +1 -3
- package/dist-es/commands/ListPredictorBacktestExportJobsCommand.js +1 -3
- package/dist-es/commands/ListPredictorsCommand.js +1 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
- package/dist-es/commands/ListWhatIfAnalysesCommand.js +1 -3
- package/dist-es/commands/ListWhatIfForecastExportsCommand.js +1 -3
- package/dist-es/commands/ListWhatIfForecastsCommand.js +1 -3
- package/dist-es/commands/ResumeResourceCommand.js +1 -3
- package/dist-es/commands/StopResourceCommand.js +1 -3
- package/dist-es/commands/TagResourceCommand.js +1 -3
- package/dist-es/commands/UntagResourceCommand.js +1 -3
- package/dist-es/commands/UpdateDatasetGroupCommand.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;
|