ContainerProvider
in package
implements
CredentialProvider
FinalYes
Provides Credentials from the running ECS.
Tags
Table of Contents
Interfaces
- CredentialProvider
- Interface for providing Credential.
Constants
- ENDPOINT = 'http://169.254.170.2'
Properties
- $httpClient : HttpClientInterface
- $logger : LoggerInterface
- $timeout : float
Methods
- __construct() : mixed
- getCredentials() : Credentials|null
- Return a Credential when possible. Return null otherwise.
Constants
ENDPOINT
private
mixed
ENDPOINT
= 'http://169.254.170.2'
Properties
$httpClient
private
HttpClientInterface
$httpClient
$logger
private
LoggerInterface
$logger
$timeout
private
float
$timeout
Methods
__construct()
public
__construct([HttpClientInterface|null $httpClient = null ][, LoggerInterface|null $logger = null ][, float $timeout = 1.0 ]) : mixed
Parameters
- $httpClient : HttpClientInterface|null = null
- $logger : LoggerInterface|null = null
- $timeout : float = 1.0
getCredentials()
Return a Credential when possible. Return null otherwise.
public
getCredentials(Configuration $configuration) : Credentials|null
Parameters
- $configuration : Configuration