gl-store-s3.js/node_modules/aws-sdk/lib/rds/signer.d.ts

26 lines
777 B
TypeScript
Raw Normal View History

2019-05-08 11:19:12 +00:00
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;
}
}