A function that, when invoked, returns a promise that will be fulfilled with a value of type T.

Example

A function that reads credentials from shared SDK configuration
files, assuming roles and collecting MFA tokens as necessary.
interface Provider<T> (() => Promise<T>)

Type Parameters

  • T

  • Returns Promise<T>