@aws-sdk/client-comprehend 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 +85 -255
- package/dist-es/commands/BatchDetectDominantLanguageCommand.js +1 -3
- package/dist-es/commands/BatchDetectEntitiesCommand.js +1 -3
- package/dist-es/commands/BatchDetectKeyPhrasesCommand.js +1 -3
- package/dist-es/commands/BatchDetectSentimentCommand.js +1 -3
- package/dist-es/commands/BatchDetectSyntaxCommand.js +1 -3
- package/dist-es/commands/BatchDetectTargetedSentimentCommand.js +1 -3
- package/dist-es/commands/ClassifyDocumentCommand.js +1 -3
- package/dist-es/commands/ContainsPiiEntitiesCommand.js +1 -3
- package/dist-es/commands/CreateDatasetCommand.js +1 -3
- package/dist-es/commands/CreateDocumentClassifierCommand.js +1 -3
- package/dist-es/commands/CreateEndpointCommand.js +1 -3
- package/dist-es/commands/CreateEntityRecognizerCommand.js +1 -3
- package/dist-es/commands/CreateFlywheelCommand.js +1 -3
- package/dist-es/commands/DeleteDocumentClassifierCommand.js +1 -3
- package/dist-es/commands/DeleteEndpointCommand.js +1 -3
- package/dist-es/commands/DeleteEntityRecognizerCommand.js +1 -3
- package/dist-es/commands/DeleteFlywheelCommand.js +1 -3
- package/dist-es/commands/DeleteResourcePolicyCommand.js +1 -3
- package/dist-es/commands/DescribeDatasetCommand.js +1 -3
- package/dist-es/commands/DescribeDocumentClassificationJobCommand.js +1 -3
- package/dist-es/commands/DescribeDocumentClassifierCommand.js +1 -3
- package/dist-es/commands/DescribeDominantLanguageDetectionJobCommand.js +1 -3
- package/dist-es/commands/DescribeEndpointCommand.js +1 -3
- package/dist-es/commands/DescribeEntitiesDetectionJobCommand.js +1 -3
- package/dist-es/commands/DescribeEntityRecognizerCommand.js +1 -3
- package/dist-es/commands/DescribeEventsDetectionJobCommand.js +1 -3
- package/dist-es/commands/DescribeFlywheelCommand.js +1 -3
- package/dist-es/commands/DescribeFlywheelIterationCommand.js +1 -3
- package/dist-es/commands/DescribeKeyPhrasesDetectionJobCommand.js +1 -3
- package/dist-es/commands/DescribePiiEntitiesDetectionJobCommand.js +1 -3
- package/dist-es/commands/DescribeResourcePolicyCommand.js +1 -3
- package/dist-es/commands/DescribeSentimentDetectionJobCommand.js +1 -3
- package/dist-es/commands/DescribeTargetedSentimentDetectionJobCommand.js +1 -3
- package/dist-es/commands/DescribeTopicsDetectionJobCommand.js +1 -3
- package/dist-es/commands/DetectDominantLanguageCommand.js +1 -3
- package/dist-es/commands/DetectEntitiesCommand.js +1 -3
- package/dist-es/commands/DetectKeyPhrasesCommand.js +1 -3
- package/dist-es/commands/DetectPiiEntitiesCommand.js +1 -3
- package/dist-es/commands/DetectSentimentCommand.js +1 -3
- package/dist-es/commands/DetectSyntaxCommand.js +1 -3
- package/dist-es/commands/DetectTargetedSentimentCommand.js +1 -3
- package/dist-es/commands/DetectToxicContentCommand.js +1 -3
- package/dist-es/commands/ImportModelCommand.js +1 -3
- package/dist-es/commands/ListDatasetsCommand.js +1 -3
- package/dist-es/commands/ListDocumentClassificationJobsCommand.js +1 -3
- package/dist-es/commands/ListDocumentClassifierSummariesCommand.js +1 -3
- package/dist-es/commands/ListDocumentClassifiersCommand.js +1 -3
- package/dist-es/commands/ListDominantLanguageDetectionJobsCommand.js +1 -3
- package/dist-es/commands/ListEndpointsCommand.js +1 -3
- package/dist-es/commands/ListEntitiesDetectionJobsCommand.js +1 -3
- package/dist-es/commands/ListEntityRecognizerSummariesCommand.js +1 -3
- package/dist-es/commands/ListEntityRecognizersCommand.js +1 -3
- package/dist-es/commands/ListEventsDetectionJobsCommand.js +1 -3
- package/dist-es/commands/ListFlywheelIterationHistoryCommand.js +1 -3
- package/dist-es/commands/ListFlywheelsCommand.js +1 -3
- package/dist-es/commands/ListKeyPhrasesDetectionJobsCommand.js +1 -3
- package/dist-es/commands/ListPiiEntitiesDetectionJobsCommand.js +1 -3
- package/dist-es/commands/ListSentimentDetectionJobsCommand.js +1 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
- package/dist-es/commands/ListTargetedSentimentDetectionJobsCommand.js +1 -3
- package/dist-es/commands/ListTopicsDetectionJobsCommand.js +1 -3
- package/dist-es/commands/PutResourcePolicyCommand.js +1 -3
- package/dist-es/commands/StartDocumentClassificationJobCommand.js +1 -3
- package/dist-es/commands/StartDominantLanguageDetectionJobCommand.js +1 -3
- package/dist-es/commands/StartEntitiesDetectionJobCommand.js +1 -3
- package/dist-es/commands/StartEventsDetectionJobCommand.js +1 -3
- package/dist-es/commands/StartFlywheelIterationCommand.js +1 -3
- package/dist-es/commands/StartKeyPhrasesDetectionJobCommand.js +1 -3
- package/dist-es/commands/StartPiiEntitiesDetectionJobCommand.js +1 -3
- package/dist-es/commands/StartSentimentDetectionJobCommand.js +1 -3
- package/dist-es/commands/StartTargetedSentimentDetectionJobCommand.js +1 -3
- package/dist-es/commands/StartTopicsDetectionJobCommand.js +1 -3
- package/dist-es/commands/StopDominantLanguageDetectionJobCommand.js +1 -3
- package/dist-es/commands/StopEntitiesDetectionJobCommand.js +1 -3
- package/dist-es/commands/StopEventsDetectionJobCommand.js +1 -3
- package/dist-es/commands/StopKeyPhrasesDetectionJobCommand.js +1 -3
- package/dist-es/commands/StopPiiEntitiesDetectionJobCommand.js +1 -3
- package/dist-es/commands/StopSentimentDetectionJobCommand.js +1 -3
- package/dist-es/commands/StopTargetedSentimentDetectionJobCommand.js +1 -3
- package/dist-es/commands/StopTrainingDocumentClassifierCommand.js +1 -3
- package/dist-es/commands/StopTrainingEntityRecognizerCommand.js +1 -3
- package/dist-es/commands/TagResourceCommand.js +1 -3
- package/dist-es/commands/UntagResourceCommand.js +1 -3
- package/dist-es/commands/UpdateEndpointCommand.js +1 -3
- package/dist-es/commands/UpdateFlywheelCommand.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;
|