diff --git a/packages/middleware-logger/src/configurations.ts b/packages/middleware-logger/src/configurations.ts deleted file mode 100644 index 672757add3816..0000000000000 --- a/packages/middleware-logger/src/configurations.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Logger } from "@aws-sdk/types"; - -export interface LoggerInputConfig { - logger?: Logger; -} - -interface PreviouslyResolved {} - -export interface LoggerResolvedConfig { - logger?: Logger; -} - -export const resolveLoggerConfig = (input: T & PreviouslyResolved & LoggerInputConfig): T & LoggerResolvedConfig => - input; diff --git a/packages/middleware-logger/src/index.ts b/packages/middleware-logger/src/index.ts index d7f2a5929d5f6..171e3bc54d5f8 100644 --- a/packages/middleware-logger/src/index.ts +++ b/packages/middleware-logger/src/index.ts @@ -1,2 +1 @@ -export * from "./configurations"; export * from "./loggerMiddleware"; diff --git a/packages/middleware-logger/src/loggerMiddleware.ts b/packages/middleware-logger/src/loggerMiddleware.ts index 8e5aa004b926d..d108dac0f6e48 100644 --- a/packages/middleware-logger/src/loggerMiddleware.ts +++ b/packages/middleware-logger/src/loggerMiddleware.ts @@ -9,8 +9,6 @@ import { Pluggable, } from "@aws-sdk/types"; -import { LoggerResolvedConfig } from "./configurations"; - export const loggerMiddleware = () => ( next: FinalizeHandler, context: HandlerExecutionContext @@ -56,7 +54,7 @@ export const loggerMiddlewareOptions: FinalizeRequestHandlerOptions & AbsoluteLo }; // eslint-disable-next-line @typescript-eslint/no-unused-vars -export const getLoggerPlugin = (options: LoggerResolvedConfig): Pluggable => ({ +export const getLoggerPlugin = (options: any): Pluggable => ({ applyToStack: (clientStack) => { clientStack.add(loggerMiddleware(), loggerMiddlewareOptions); },