LoginCredentialProvider
in package
FinalYes
Credential provider for login using console credentials
Table of Contents
Methods
- __construct() : mixed
- __invoke() : PromiseInterface
- Returns a promise that resolves to AWS credentials
Methods
__construct()
public
__construct(string $profileName[, string|null $region = null ]) : mixed
Parameters
- $profileName : string
-
Profile containing your console login session information
- $region : string|null = null
-
Region used for refresh requests. If not provided, attempts will be made to resolve a region using
AWS_REGION, then the profile specified forlogin.
__invoke()
Returns a promise that resolves to AWS credentials
public
__invoke() : PromiseInterface
This method loads the cached token, refreshes it if necessary, and returns AWS credentials sourced from the access token.
Tags
Return values
PromiseInterface —A promise that resolves to a Credentials object