Свойство | Тип | Описание | |
---|---|---|---|
$apiVersion | string | AWS API Version | |
$awsAccessKeyId | string | AWS Access Key Id | |
$secretAccessKey | string | Secret Access Key | |
$url | string | Base url for API requests |
Метод | Описание | |
---|---|---|
__construct ( string $awsAccessKeyId, string $secretAccessKey, string $apiVersion, string $url = null ) | Constructor | |
call ( string $action, array $options, string $path = '/' ) : Scalr\Service\Aws\Client\ClientResponseInterface | Calls Amazon web service method. | |
createRequest ( ) : Scalr\System\Http\Client\Request | Creates a new http Request object. | |
getApiVersion ( ) : string | Gets API Version date | |
getType ( ) | ||
getUrl ( ) : string | Gets base url for API requests | |
setApiVersion ( string $apiVersion ) | Sets Api Version | |
setUrl ( string $url ) | Sets query url |
Метод | Описание | |
---|---|---|
getExpirationTime ( ) : string | Gets expiration time for Expires option. | |
signRequestV2 ( Scalr\System\Http\Client\Request $request ) | Signs request with signature version 2 | |
signRequestV4 ( Scalr\System\Http\Client\Request $request, string $region = null, string $file = null ) | Signs request with signature version 4 | |
tryCall ( Scalr\System\Http\Client\Request $httpRequest, integer $attempts = 3, integer $interval = 200 ) : Scalr\Service\Aws\Client\QueryClientResponse | Tries to send request on several attempts. |
public call ( string $action, array $options, string $path = '/' ) : Scalr\Service\Aws\Client\ClientResponseInterface | ||
$action | string | An Web service API action name. |
$options | array | An options array. It may contain "_host" option which overrides host. |
$path | string | optional A relative path. |
Результат | Scalr\Service\Aws\Client\ClientResponseInterface |
public createRequest ( ) : Scalr\System\Http\Client\Request | ||
Результат | Scalr\System\Http\Client\Request | Returns a new http Request object. |
public getApiVersion ( ) : string | ||
Результат | string | Returns API Version Date in YYYY-MM-DD format |
protected getExpirationTime ( ) : string | ||
Результат | string | Returns expiration time form Expires option that's used in AWS api requests. |
public setApiVersion ( string $apiVersion ) | ||
$apiVersion | string | YYYY-MM-DD representation of AWS API version |
protected signRequestV2 ( Scalr\System\Http\Client\Request $request ) | ||
$request | Scalr\System\Http\Client\Request | Http request object |
protected signRequestV4 ( Scalr\System\Http\Client\Request $request, string $region = null, string $file = null ) | ||
$request | Scalr\System\Http\Client\Request | Http Request |
$region | string | optional Overrides region as destination region for multi-regional operations |
$file | string | optional Path to the file transmitted in request for signature calculation |
protected tryCall ( Scalr\System\Http\Client\Request $httpRequest, integer $attempts = 3, integer $interval = 200 ) : Scalr\Service\Aws\Client\QueryClientResponse | ||
$httpRequest | Scalr\System\Http\Client\Request | |
$attempts | integer | Attempts count. |
$interval | integer | An sleep interval between an attempts in microseconds. |
Результат | Scalr\Service\Aws\Client\QueryClientResponse | Returns response on success |
protected string $awsAccessKeyId | ||
Результат | string |
protected string $secretAccessKey | ||
Результат | string |