Backend half
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
import {Credentials, CredentialsOptions} from '../credentials';
|
||||
import {AWSError} from '../error';
|
||||
export class Signer {
|
||||
/**
|
||||
* A signer object can be used to generate an auth token to a database.
|
||||
*/
|
||||
constructor(options?:Signer.SignerOptions);
|
||||
/**
|
||||
* Generate an auth token to a database.
|
||||
*/
|
||||
getAuthToken(options: Signer.SignerOptions, callback: (err: AWSError, token: string) => void): void;
|
||||
/**
|
||||
* Generate an auth token to a database.
|
||||
*/
|
||||
getAuthToken(options: Signer.SignerOptions): string;
|
||||
}
|
||||
|
||||
declare namespace Signer {
|
||||
export interface SignerOptions {
|
||||
credentials?: Credentials | CredentialsOptions;
|
||||
region?: string;
|
||||
hostname?: string;
|
||||
port?: number;
|
||||
username?: string;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user