Blame view

vendor/alibabacloud/client/src/Clients/EcsRamRoleClient.php 625 Bytes
f0d6cde5   xu   vendor
1
2
3
4
<?php

namespace AlibabaCloud\Client\Clients;

f0d6cde5   xu   vendor
5
6
use AlibabaCloud\Client\Credentials\EcsRamRoleCredential;
use AlibabaCloud\Client\Exception\ClientException;
0c34aba8   xu   更新阿里云短信接口
7
use AlibabaCloud\Client\Signature\ShaHmac1Signature;
f0d6cde5   xu   vendor
8
9
10
11

/**
 * Use the RAM role of an ECS instance to complete the authentication.
 */
0c34aba8   xu   更新阿里云短信接口
12
class EcsRamRoleClient extends \AlibabaCloud\Client\Clients\Client
f0d6cde5   xu   vendor
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
    /**
     * @param string $roleName
     *
     * @throws ClientException
     */
    public function __construct($roleName)
    {
        parent::__construct(
            new EcsRamRoleCredential($roleName),
            new ShaHmac1Signature()
        );
    }
}