@aws-sdk/client-lambda
Version:
AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native
33 lines (32 loc) • 1.15 kB
TypeScript
import {
AwsCredentialIdentity,
AwsCredentialIdentityProvider,
HttpAuthScheme,
} from "@smithy/types";
import { LambdaHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
export interface HttpAuthExtensionConfiguration {
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
httpAuthSchemes(): HttpAuthScheme[];
setHttpAuthSchemeProvider(
httpAuthSchemeProvider: LambdaHttpAuthSchemeProvider
): void;
httpAuthSchemeProvider(): LambdaHttpAuthSchemeProvider;
setCredentials(
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
): void;
credentials():
| AwsCredentialIdentity
| AwsCredentialIdentityProvider
| undefined;
}
export type HttpAuthRuntimeConfig = Partial<{
httpAuthSchemes: HttpAuthScheme[];
httpAuthSchemeProvider: LambdaHttpAuthSchemeProvider;
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
}>;
export declare const getHttpAuthExtensionConfiguration: (
runtimeConfig: HttpAuthRuntimeConfig
) => HttpAuthExtensionConfiguration;
export declare const resolveHttpAuthRuntimeConfig: (
config: HttpAuthExtensionConfiguration
) => HttpAuthRuntimeConfig;