UNPKG

@aws-sdk/client-dynamodb

Version:

AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native

33 lines (32 loc) 1.16 kB
import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme, } from "@smithy/types"; import { DynamoDBHttpAuthSchemeProvider } from "./httpAuthSchemeProvider"; export interface HttpAuthExtensionConfiguration { setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void; httpAuthSchemes(): HttpAuthScheme[]; setHttpAuthSchemeProvider( httpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider ): void; httpAuthSchemeProvider(): DynamoDBHttpAuthSchemeProvider; setCredentials( credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider ): void; credentials(): | AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined; } export type HttpAuthRuntimeConfig = Partial<{ httpAuthSchemes: HttpAuthScheme[]; httpAuthSchemeProvider: DynamoDBHttpAuthSchemeProvider; credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider; }>; export declare const getHttpAuthExtensionConfiguration: ( runtimeConfig: HttpAuthRuntimeConfig ) => HttpAuthExtensionConfiguration; export declare const resolveHttpAuthRuntimeConfig: ( config: HttpAuthExtensionConfiguration ) => HttpAuthRuntimeConfig;