10 lines
342 B
JavaScript
10 lines
342 B
JavaScript
export const resolveEndpointRequiredConfig = (input) => {
|
|
const { endpoint } = input;
|
|
if (endpoint === undefined) {
|
|
input.endpoint = async () => {
|
|
throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.");
|
|
};
|
|
}
|
|
return input;
|
|
};
|