UNPKG

@smithy/middleware-endpoint

Version:

[![NPM version](https://img.shields.io/npm/v/@smithy/middleware-endpoint/latest.svg)](https://www.npmjs.com/package/@smithy/middleware-endpoint) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/middleware-endpoint.svg)](https://www.npmjs.com/packag

14 lines (13 loc) 674 B
/** * Normalize some key of the client config to an async provider. * @internal * * @param configKey - the key to look up in config. * @param canonicalEndpointParamKey - this is the name the EndpointRuleSet uses. * it will most likely not contain the config * value, but we use it as a fallback. * @param config - container of the config values. * * @returns async function that will resolve with the value. */ export declare const createConfigValueProvider: <Config extends Record<string, unknown>>(configKey: string, canonicalEndpointParamKey: string, config: Config) => () => Promise<any>;