rittenhop-ghost/versions/5.94.2/node_modules/@aws-sdk/middleware-endpoint/dist-es/getEndpointPlugin.js

19 lines
642 B
JavaScript
Raw Normal View History

import { serializerMiddlewareOption } from "@aws-sdk/middleware-serde";
import { endpointMiddleware } from "./endpointMiddleware";
export const endpointMiddlewareOptions = {
step: "serialize",
tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"],
name: "endpointV2Middleware",
override: true,
relation: "before",
toMiddleware: serializerMiddlewareOption.name,
};
export const getEndpointPlugin = (config, instructions) => ({
applyToStack: (clientStack) => {
clientStack.addRelativeTo(endpointMiddleware({
config,
instructions,
}), endpointMiddlewareOptions);
},
});