UNPKG

@aws-sdk/middleware-endpoint-discovery

Version:

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

29 lines (28 loc) 1.07 kB
import { EndpointCache } from "@aws-sdk/endpoint-cache"; import { AwsCredentialIdentity, MemoizedProvider, Provider, } from "@smithy/types"; export interface PreviouslyResolved { isCustomEndpoint?: boolean; credentials: MemoizedProvider<AwsCredentialIdentity>; endpointDiscoveryEnabledProvider: Provider<boolean | undefined>; } export interface EndpointDiscoveryInputConfig { endpointCacheSize?: number; endpointDiscoveryEnabled?: boolean | undefined; } export interface EndpointDiscoveryResolvedConfig { endpointCache: EndpointCache; endpointDiscoveryCommandCtor: new (comandConfig: any) => any; endpointDiscoveryEnabled: Provider<boolean | undefined>; isClientEndpointDiscoveryEnabled: boolean; } export interface EndpointDiscoveryConfigOptions { endpointDiscoveryCommandCtor: new (comandConfig: any) => any; } export declare const resolveEndpointDiscoveryConfig: <T>( input: T & PreviouslyResolved & EndpointDiscoveryInputConfig, { endpointDiscoveryCommandCtor }: EndpointDiscoveryConfigOptions ) => T & EndpointDiscoveryResolvedConfig;