mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
// Type definitions for vault-auth-aws 0.1
|
|
// Project: https://github.com/abdullahshahin/vault-auth-aws
|
|
// Definitions by: Nathan McGinn <https://github.com/nmcginn>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 3.7
|
|
/// <reference types="node" />
|
|
|
|
declare class vaultAuthAws {
|
|
constructor(config?: vaultAuthAws.Config);
|
|
authenticate(): Promise<any>;
|
|
getOptions(creds: vaultAuthAws.Creds): vaultAuthAws.Options;
|
|
}
|
|
|
|
declare namespace vaultAuthAws {
|
|
interface Config {
|
|
ssl?: boolean;
|
|
host?: string;
|
|
port?: number;
|
|
apiVersion?: string;
|
|
vaultLoginUrl?: string;
|
|
vaultAppName?: string;
|
|
followAllRedirects?: boolean;
|
|
certFilePath?: string;
|
|
sslRejectUnAuthorized?: boolean;
|
|
}
|
|
|
|
interface Creds {
|
|
accessKeyId?: string;
|
|
secretAccessKey?: string;
|
|
sessionToken?: string;
|
|
}
|
|
|
|
interface Options {
|
|
url: string;
|
|
followAllRedirects: boolean;
|
|
body: string;
|
|
cert?: Buffer;
|
|
}
|
|
}
|
|
|
|
export = vaultAuthAws;
|