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

15 lines (14 loc) 783 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. * @param isClientContextParam - whether this is a client context parameter. * * @returns async function that will resolve with the value. */ export declare const createConfigValueProvider: <Config extends Record<string, unknown>>(configKey: string, canonicalEndpointParamKey: string, config: Config, isClientContextParam?: boolean) => () => Promise<any>;