Class AssumeRoleWithWebIdentityCredentialProvider
Credential provider that provides credentials via assuming a role with a web identity More Information, see: https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-sts-2011-06-15.html#assumerolewithwebidentity
Methods Summary
-
__construct ( array $config = [] )
The constructor attempts to load config from environment variables. If not set, the following config options are used: - WebIdentityTokenFile: full path of token filename - RoleArn: arn of role to be assumed - SessionName: (optional) set by SDK if not provided
-
__invoke ( )
Loads assume role with web identity credentials.
Methods Details
__construct ( array $config = [] )
The constructor attempts to load config from environment variables. If not set, the following config options are used: - WebIdentityTokenFile: full path of token filename - RoleArn: arn of role to be assumed - SessionName: (optional) set by SDK if not provided
Parameters
array | $config = [] | Configuration options |
Exceptions
InvalidArgumentException |
GuzzleHttp\Promise\PromiseInterface
__invoke (
)
Constants summary
string |
ERROR_MSG
|
#
"Missing required 'AssumeRoleWithWebIdentityCredentialProvider' configuration option: "
|
string |
ENV_RETRIES
|
#
'AWS_METADATA_SERVICE_NUM_ATTEMPTS'
|