You may implement DelegationTokenProvider interface to securely obtain delegation token when using instance principal. DelegationTokenProvider may be set as delegationTokenProvider of IAMConfig. Instead of a class implementing this interface, you may also set delegationTokenProvider to a function with the signature of loadDelegationToken.
Asynchronously load delegation token.
Promise resolved with a string delegation token or rejected with an error
Generated using TypeDoc
You may implement DelegationTokenProvider interface to securely obtain delegation token when using instance principal. DelegationTokenProvider may be set as delegationTokenProvider of IAMConfig. Instead of a class implementing this interface, you may also set delegationTokenProvider to a function with the signature of loadDelegationToken.
See