@aws-sdk/client-lex-models-v2 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 +104 -306
- package/dist-es/commands/BatchCreateCustomVocabularyItemCommand.js +1 -3
- package/dist-es/commands/BatchDeleteCustomVocabularyItemCommand.js +1 -3
- package/dist-es/commands/BatchUpdateCustomVocabularyItemCommand.js +1 -3
- package/dist-es/commands/BuildBotLocaleCommand.js +1 -3
- package/dist-es/commands/CreateBotAliasCommand.js +1 -3
- package/dist-es/commands/CreateBotCommand.js +1 -3
- package/dist-es/commands/CreateBotLocaleCommand.js +1 -3
- package/dist-es/commands/CreateBotReplicaCommand.js +1 -3
- package/dist-es/commands/CreateBotVersionCommand.js +1 -3
- package/dist-es/commands/CreateExportCommand.js +1 -3
- package/dist-es/commands/CreateIntentCommand.js +1 -3
- package/dist-es/commands/CreateResourcePolicyCommand.js +1 -3
- package/dist-es/commands/CreateResourcePolicyStatementCommand.js +1 -3
- package/dist-es/commands/CreateSlotCommand.js +1 -3
- package/dist-es/commands/CreateSlotTypeCommand.js +1 -3
- package/dist-es/commands/CreateTestSetDiscrepancyReportCommand.js +1 -3
- package/dist-es/commands/CreateUploadUrlCommand.js +1 -3
- package/dist-es/commands/DeleteBotAliasCommand.js +1 -3
- package/dist-es/commands/DeleteBotCommand.js +1 -3
- package/dist-es/commands/DeleteBotLocaleCommand.js +1 -3
- package/dist-es/commands/DeleteBotReplicaCommand.js +1 -3
- package/dist-es/commands/DeleteBotVersionCommand.js +1 -3
- package/dist-es/commands/DeleteCustomVocabularyCommand.js +1 -3
- package/dist-es/commands/DeleteExportCommand.js +1 -3
- package/dist-es/commands/DeleteImportCommand.js +1 -3
- package/dist-es/commands/DeleteIntentCommand.js +1 -3
- package/dist-es/commands/DeleteResourcePolicyCommand.js +1 -3
- package/dist-es/commands/DeleteResourcePolicyStatementCommand.js +1 -3
- package/dist-es/commands/DeleteSlotCommand.js +1 -3
- package/dist-es/commands/DeleteSlotTypeCommand.js +1 -3
- package/dist-es/commands/DeleteTestSetCommand.js +1 -3
- package/dist-es/commands/DeleteUtterancesCommand.js +1 -3
- package/dist-es/commands/DescribeBotAliasCommand.js +1 -3
- package/dist-es/commands/DescribeBotCommand.js +1 -3
- package/dist-es/commands/DescribeBotLocaleCommand.js +1 -3
- package/dist-es/commands/DescribeBotRecommendationCommand.js +1 -3
- package/dist-es/commands/DescribeBotReplicaCommand.js +1 -3
- package/dist-es/commands/DescribeBotResourceGenerationCommand.js +1 -3
- package/dist-es/commands/DescribeBotVersionCommand.js +1 -3
- package/dist-es/commands/DescribeCustomVocabularyMetadataCommand.js +1 -3
- package/dist-es/commands/DescribeExportCommand.js +1 -3
- package/dist-es/commands/DescribeImportCommand.js +1 -3
- package/dist-es/commands/DescribeIntentCommand.js +1 -3
- package/dist-es/commands/DescribeResourcePolicyCommand.js +1 -3
- package/dist-es/commands/DescribeSlotCommand.js +1 -3
- package/dist-es/commands/DescribeSlotTypeCommand.js +1 -3
- package/dist-es/commands/DescribeTestExecutionCommand.js +1 -3
- package/dist-es/commands/DescribeTestSetCommand.js +1 -3
- package/dist-es/commands/DescribeTestSetDiscrepancyReportCommand.js +1 -3
- package/dist-es/commands/DescribeTestSetGenerationCommand.js +1 -3
- package/dist-es/commands/GenerateBotElementCommand.js +1 -3
- package/dist-es/commands/GetTestExecutionArtifactsUrlCommand.js +1 -3
- package/dist-es/commands/ListAggregatedUtterancesCommand.js +1 -3
- package/dist-es/commands/ListBotAliasReplicasCommand.js +1 -3
- package/dist-es/commands/ListBotAliasesCommand.js +1 -3
- package/dist-es/commands/ListBotLocalesCommand.js +1 -3
- package/dist-es/commands/ListBotRecommendationsCommand.js +1 -3
- package/dist-es/commands/ListBotReplicasCommand.js +1 -3
- package/dist-es/commands/ListBotResourceGenerationsCommand.js +1 -3
- package/dist-es/commands/ListBotVersionReplicasCommand.js +1 -3
- package/dist-es/commands/ListBotVersionsCommand.js +1 -3
- package/dist-es/commands/ListBotsCommand.js +1 -3
- package/dist-es/commands/ListBuiltInIntentsCommand.js +1 -3
- package/dist-es/commands/ListBuiltInSlotTypesCommand.js +1 -3
- package/dist-es/commands/ListCustomVocabularyItemsCommand.js +1 -3
- package/dist-es/commands/ListExportsCommand.js +1 -3
- package/dist-es/commands/ListImportsCommand.js +1 -3
- package/dist-es/commands/ListIntentMetricsCommand.js +1 -3
- package/dist-es/commands/ListIntentPathsCommand.js +1 -3
- package/dist-es/commands/ListIntentStageMetricsCommand.js +1 -3
- package/dist-es/commands/ListIntentsCommand.js +1 -3
- package/dist-es/commands/ListRecommendedIntentsCommand.js +1 -3
- package/dist-es/commands/ListSessionAnalyticsDataCommand.js +1 -3
- package/dist-es/commands/ListSessionMetricsCommand.js +1 -3
- package/dist-es/commands/ListSlotTypesCommand.js +1 -3
- package/dist-es/commands/ListSlotsCommand.js +1 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
- package/dist-es/commands/ListTestExecutionResultItemsCommand.js +1 -3
- package/dist-es/commands/ListTestExecutionsCommand.js +1 -3
- package/dist-es/commands/ListTestSetRecordsCommand.js +1 -3
- package/dist-es/commands/ListTestSetsCommand.js +1 -3
- package/dist-es/commands/ListUtteranceAnalyticsDataCommand.js +1 -3
- package/dist-es/commands/ListUtteranceMetricsCommand.js +1 -3
- package/dist-es/commands/SearchAssociatedTranscriptsCommand.js +1 -3
- package/dist-es/commands/StartBotRecommendationCommand.js +1 -3
- package/dist-es/commands/StartBotResourceGenerationCommand.js +1 -3
- package/dist-es/commands/StartImportCommand.js +1 -3
- package/dist-es/commands/StartTestExecutionCommand.js +1 -3
- package/dist-es/commands/StartTestSetGenerationCommand.js +1 -3
- package/dist-es/commands/StopBotRecommendationCommand.js +1 -3
- package/dist-es/commands/TagResourceCommand.js +1 -3
- package/dist-es/commands/UntagResourceCommand.js +1 -3
- package/dist-es/commands/UpdateBotAliasCommand.js +1 -3
- package/dist-es/commands/UpdateBotCommand.js +1 -3
- package/dist-es/commands/UpdateBotLocaleCommand.js +1 -3
- package/dist-es/commands/UpdateBotRecommendationCommand.js +1 -3
- package/dist-es/commands/UpdateExportCommand.js +1 -3
- package/dist-es/commands/UpdateIntentCommand.js +1 -3
- package/dist-es/commands/UpdateResourcePolicyCommand.js +1 -3
- package/dist-es/commands/UpdateSlotCommand.js +1 -3
- package/dist-es/commands/UpdateSlotTypeCommand.js +1 -3
- package/dist-es/commands/UpdateTestSetCommand.js +1 -3
- package/dist-es/endpoint/endpointResolver.js +7 -3
- package/dist-es/models/models_0.js +2 -0
- package/dist-types/commands/CreateBotLocaleCommand.d.ts +2 -2
- package/dist-types/commands/DescribeBotLocaleCommand.d.ts +1 -1
- package/dist-types/commands/DescribeImportCommand.d.ts +1 -1
- package/dist-types/commands/StartImportCommand.d.ts +2 -2
- package/dist-types/commands/UpdateBotLocaleCommand.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +48 -0
- 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/models/models_0.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;
|