UNPKG

@aws-sdk/client-ssm

Version:

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

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