Aws\Credentials\CredentialProvider::instanceProfile PHP Method

instanceProfile() public static method

Credential provider that creates credentials using instance profile credentials.
See also: Aws\Credentials\InstanceProfileProvider for $config details.
public static instanceProfile ( array $config = [] ) : Aws\Credentials\InstanceProfileProvider
$config array Array of configuration data.
return Aws\Credentials\InstanceProfileProvider
    public static function instanceProfile(array $config = [])
    {
        return new InstanceProfileProvider($config);
    }