\AlibabaCloud\Client\CredentialsRamRoleArnCredential

Use the AssumeRole of the RAM account to complete the authentication.

Summary

Methods
Properties
Constants
__construct()
getAccessKeyId()
getAccessKeySecret()
getRoleArn()
getRoleSessionName()
getPolicy()
__toString()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$accessKeyId
$accessKeySecret
$roleArn
$roleSessionName
$policy
N/A

Properties

$accessKeyId

$accessKeyId : string

Type

string

$accessKeySecret

$accessKeySecret : string

Type

string

$roleArn

$roleArn : string

Type

string

$roleSessionName

$roleSessionName : string

Type

string

$policy

$policy : string

Type

string

Methods

__construct()

__construct(string  $accessKeyId, string  $accessKeySecret, string  $roleArn, string  $roleSessionName, string|array  $policy = '') 

Class constructor.

Parameters

string $accessKeyId
string $accessKeySecret
string $roleArn
string $roleSessionName
string|array $policy

Throws

\AlibabaCloud\Client\Exception\ClientException

getAccessKeyId()

getAccessKeyId() : string

Returns

string

getAccessKeySecret()

getAccessKeySecret() : string

Returns

string

getRoleArn()

getRoleArn() : string

Returns

string

getRoleSessionName()

getRoleSessionName() : string

Returns

string

getPolicy()

getPolicy() : string

Returns

string

__toString()

__toString() : string

Returns

string