DefinitelyTyped/types/vault-auth-aws/index.d.ts
2019-11-19 15:53:55 -08:00

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;