ConfigurationProvider
in package
implements
CredentialProvider
uses
DateFromResult
FinalYes
Provides Credentials from Configuration data.
Tags
Table of Contents
Interfaces
- CredentialProvider
- Interface for providing Credential.
Properties
Methods
- __construct() : mixed
- getCredentials() : Credentials|null
- Return a Credential when possible. Return null otherwise.
- getCredentialsFromRole() : Credentials|null
Properties
$httpClient
private
HttpClientInterface|null
$httpClient
$logger
private
LoggerInterface
$logger
Methods
__construct()
public
__construct([HttpClientInterface|null $httpClient = null ][, LoggerInterface|null $logger = null ]) : mixed
Parameters
- $httpClient : HttpClientInterface|null = null
- $logger : LoggerInterface|null = null
getCredentials()
Return a Credential when possible. Return null otherwise.
public
getCredentials(Configuration $configuration) : Credentials|null
Parameters
- $configuration : Configuration
Return values
Credentials|nullgetCredentialsFromRole()
private
getCredentialsFromRole(Credentials $credentials, string $region, string $roleArn[, string|null $roleSessionName = null ]) : Credentials|null
Parameters
- $credentials : Credentials
- $region : string
- $roleArn : string
- $roleSessionName : string|null = null