AWS SDK for C++AWS SDK for C++ Version 1.11.622 |
#include <AWSCredentialsProvider.h>
Process credentials provider that loads credentials by running another command (or program) configured in config file The configuration format is as following: credential_process = command_path <arguments_list> Each time the credentials needs to be refreshed, this command will be executed with configured arguments. The default profile name to look up this configuration is "default", same as normal aws credentials configuration and other configurations. The expected valid output of the command is a Json doc output to stdout: {"Version": 1, "AccessKeyId": "AccessKey123", "SecretAccessKey": "SecretKey321", "SessionToken": "Token123", "Expiration": "1970-01-01T00:00:01Z"} The Version key specifies the version of the JSON payload and must be set to 1 for now (as an integer type). If the Version key is bumped to 2, SDKs would support both versions of the returned payload. Value of Expiration field should be an valid ISO8601 formatted date string as above example. The expected error message of the command is a string to output to stderr.
Definition at line 253 of file AWSCredentialsProvider.h.
Initializes the provider by checking default profile
Initializes the provider by checking specified profile
| profile | which profile in config file to use. |
Retrieves the credentials if found, otherwise returns empty credential set.
Implements Aws::Auth::AWSCredentialsProvider.
Reimplemented from Aws::Auth::AWSCredentialsProvider.