UNPKG

647 BTypeScriptView Raw
1import { Provider } from "./util";
2/**
3 * An object representing temporary or permanent AWS credentials.
4 */
5export interface Credentials {
6 /**
7 * AWS access key ID
8 */
9 readonly accessKeyId: string;
10 /**
11 * AWS secret access key
12 */
13 readonly secretAccessKey: string;
14 /**
15 * A security or session token to use with these credentials. Usually
16 * present for temporary credentials.
17 */
18 readonly sessionToken?: string;
19 /**
20 * A {Date} when these credentials will no longer be accepted.
21 */
22 readonly expiration?: Date;
23}
24export declare type CredentialProvider = Provider<Credentials>;