@aws-sdk/client-frauddetector 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 +73 -219
- package/dist-es/commands/BatchCreateVariableCommand.js +1 -3
- package/dist-es/commands/BatchGetVariableCommand.js +1 -3
- package/dist-es/commands/CancelBatchImportJobCommand.js +1 -3
- package/dist-es/commands/CancelBatchPredictionJobCommand.js +1 -3
- package/dist-es/commands/CreateBatchImportJobCommand.js +1 -3
- package/dist-es/commands/CreateBatchPredictionJobCommand.js +1 -3
- package/dist-es/commands/CreateDetectorVersionCommand.js +1 -3
- package/dist-es/commands/CreateListCommand.js +1 -3
- package/dist-es/commands/CreateModelCommand.js +1 -3
- package/dist-es/commands/CreateModelVersionCommand.js +1 -3
- package/dist-es/commands/CreateRuleCommand.js +1 -3
- package/dist-es/commands/CreateVariableCommand.js +1 -3
- package/dist-es/commands/DeleteBatchImportJobCommand.js +1 -3
- package/dist-es/commands/DeleteBatchPredictionJobCommand.js +1 -3
- package/dist-es/commands/DeleteDetectorCommand.js +1 -3
- package/dist-es/commands/DeleteDetectorVersionCommand.js +1 -3
- package/dist-es/commands/DeleteEntityTypeCommand.js +1 -3
- package/dist-es/commands/DeleteEventCommand.js +1 -3
- package/dist-es/commands/DeleteEventTypeCommand.js +1 -3
- package/dist-es/commands/DeleteEventsByEventTypeCommand.js +1 -3
- package/dist-es/commands/DeleteExternalModelCommand.js +1 -3
- package/dist-es/commands/DeleteLabelCommand.js +1 -3
- package/dist-es/commands/DeleteListCommand.js +1 -3
- package/dist-es/commands/DeleteModelCommand.js +1 -3
- package/dist-es/commands/DeleteModelVersionCommand.js +1 -3
- package/dist-es/commands/DeleteOutcomeCommand.js +1 -3
- package/dist-es/commands/DeleteRuleCommand.js +1 -3
- package/dist-es/commands/DeleteVariableCommand.js +1 -3
- package/dist-es/commands/DescribeDetectorCommand.js +1 -3
- package/dist-es/commands/DescribeModelVersionsCommand.js +1 -3
- package/dist-es/commands/GetBatchImportJobsCommand.js +1 -3
- package/dist-es/commands/GetBatchPredictionJobsCommand.js +1 -3
- package/dist-es/commands/GetDeleteEventsByEventTypeStatusCommand.js +1 -3
- package/dist-es/commands/GetDetectorVersionCommand.js +1 -3
- package/dist-es/commands/GetDetectorsCommand.js +1 -3
- package/dist-es/commands/GetEntityTypesCommand.js +1 -3
- package/dist-es/commands/GetEventCommand.js +1 -3
- package/dist-es/commands/GetEventPredictionCommand.js +1 -3
- package/dist-es/commands/GetEventPredictionMetadataCommand.js +1 -3
- package/dist-es/commands/GetEventTypesCommand.js +1 -3
- package/dist-es/commands/GetExternalModelsCommand.js +1 -3
- package/dist-es/commands/GetKMSEncryptionKeyCommand.js +1 -3
- package/dist-es/commands/GetLabelsCommand.js +1 -3
- package/dist-es/commands/GetListElementsCommand.js +1 -3
- package/dist-es/commands/GetListsMetadataCommand.js +1 -3
- package/dist-es/commands/GetModelVersionCommand.js +1 -3
- package/dist-es/commands/GetModelsCommand.js +1 -3
- package/dist-es/commands/GetOutcomesCommand.js +1 -3
- package/dist-es/commands/GetRulesCommand.js +1 -3
- package/dist-es/commands/GetVariablesCommand.js +1 -3
- package/dist-es/commands/ListEventPredictionsCommand.js +1 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +1 -3
- package/dist-es/commands/PutDetectorCommand.js +1 -3
- package/dist-es/commands/PutEntityTypeCommand.js +1 -3
- package/dist-es/commands/PutEventTypeCommand.js +1 -3
- package/dist-es/commands/PutExternalModelCommand.js +1 -3
- package/dist-es/commands/PutKMSEncryptionKeyCommand.js +1 -3
- package/dist-es/commands/PutLabelCommand.js +1 -3
- package/dist-es/commands/PutOutcomeCommand.js +1 -3
- package/dist-es/commands/SendEventCommand.js +1 -3
- package/dist-es/commands/TagResourceCommand.js +1 -3
- package/dist-es/commands/UntagResourceCommand.js +1 -3
- package/dist-es/commands/UpdateDetectorVersionCommand.js +1 -3
- package/dist-es/commands/UpdateDetectorVersionMetadataCommand.js +1 -3
- package/dist-es/commands/UpdateDetectorVersionStatusCommand.js +1 -3
- package/dist-es/commands/UpdateEventLabelCommand.js +1 -3
- package/dist-es/commands/UpdateListCommand.js +1 -3
- package/dist-es/commands/UpdateModelCommand.js +1 -3
- package/dist-es/commands/UpdateModelVersionCommand.js +1 -3
- package/dist-es/commands/UpdateModelVersionStatusCommand.js +1 -3
- package/dist-es/commands/UpdateRuleMetadataCommand.js +1 -3
- package/dist-es/commands/UpdateRuleVersionCommand.js +1 -3
- package/dist-es/commands/UpdateVariableCommand.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;
|