@aws-sdk/client-lambda
Version:
AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native
62 lines (61 loc) • 2.35 kB
TypeScript
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
import { LambdaClientResolvedConfig } from "../LambdaClient";
/**
* @internal
*/
export interface LambdaHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
region?: string;
}
/**
* @internal
*/
export interface LambdaHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<LambdaClientResolvedConfig, HandlerExecutionContext, LambdaHttpAuthSchemeParameters, object> {
}
/**
* @internal
*/
export declare const defaultLambdaHttpAuthSchemeParametersProvider: (config: LambdaClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<LambdaHttpAuthSchemeParameters>;
/**
* @internal
*/
export interface LambdaHttpAuthSchemeProvider extends HttpAuthSchemeProvider<LambdaHttpAuthSchemeParameters> {
}
/**
* @internal
*/
export declare const defaultLambdaHttpAuthSchemeProvider: LambdaHttpAuthSchemeProvider;
/**
* @internal
*/
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
/**
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
* @internal
*/
httpAuthSchemes?: HttpAuthScheme[];
/**
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
* @internal
*/
httpAuthSchemeProvider?: LambdaHttpAuthSchemeProvider;
}
/**
* @internal
*/
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
/**
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
* @internal
*/
readonly httpAuthSchemes: HttpAuthScheme[];
/**
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
* @internal
*/
readonly httpAuthSchemeProvider: LambdaHttpAuthSchemeProvider;
}
/**
* @internal
*/
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;