@smithy/types
Version:
[](https://www.npmjs.com/package/@smithy/types) [](https://www.npmjs.com/package/@smithy/types)
16 lines (15 loc) • 326 B
TypeScript
/**
* @public
*/
export interface Identity {
/**
* A `Date` when the identity or credential will no longer be accepted.
*/
readonly expiration?: Date;
}
/**
* @public
*/
export interface IdentityProvider<IdentityT extends Identity> {
(identityProperties?: Record<string, any>): Promise<IdentityT>;
}