15 lines
646 B
JavaScript
15 lines
646 B
JavaScript
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
exports.defaultEndpointResolver = void 0;
|
||
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
||
|
const util_endpoints_2 = require("@smithy/util-endpoints");
|
||
|
const ruleset_1 = require("./ruleset");
|
||
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
||
|
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
||
|
endpointParams: endpointParams,
|
||
|
logger: context.logger,
|
||
|
});
|
||
|
};
|
||
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
||
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|