Zend Framework
1.12
|
Public Member Functions | |
__construct ($accessKey=null, $secretKey=null, $region=null) | |
Create Amazon client. | |
![]() | |
__construct ($accessKey=null, $secretKey=null) | |
Create Amazon client. | |
Static Public Member Functions | |
static | setRegion ($region) |
Set which region you are working in. | |
![]() | |
static | setKeys ($accessKey, $secretKey) |
Set the keys to use when accessing SQS. | |
![]() | |
static | setHttpClient (Zend_Http_Client $httpClient) |
Sets the HTTP client object to use for retrieving the feeds. | |
static | getHttpClient () |
Gets the HTTP client object. | |
Protected Member Functions | |
_getRegion () | |
Method to fetch the AWS Region. | |
sendRequest (array $params=array()) | |
Sends a HTTP request to the queue service using Zend_Http_Client. | |
addRequiredParameters (array $parameters) | |
Adds required authentication and version parameters to an array of parameters. | |
signParameters (array $paramaters) | |
Computes the RFC 2104-compliant HMAC signature for request parameters. | |
![]() | |
_getAccessKey () | |
Method to fetch the Access Key. | |
_getSecretKey () | |
Method to fetch the Secret AWS Key. | |
Protected Attributes | |
$_ec2Endpoint = 'ec2.amazonaws.com' | |
The HTTP query server. | |
$_ec2ApiVersion = '2009-04-04' | |
The API version to use. | |
$_ec2SignatureVersion = '2' | |
Signature Version. | |
$_ec2SignatureMethod = 'HmacSHA256' | |
Signature Encoding Method. | |
$_httpTimeout = 10 | |
Period after which HTTP request will timeout in seconds. | |
$_region | |
![]() | |
$_secretKey | |
$_accessKey | |
Static Protected Attributes | |
static | $_defaultRegion = null |
static | $_validEc2Regions = array('eu-west-1', 'us-east-1') |
![]() | |
static | $_defaultAccessKey = null |
static | $_defaultSecretKey = null |
![]() | |
static | $_httpClient = null |
__construct | ( | $accessKey = null , |
|
$secretKey = null , |
|||
$region = null |
|||
) |
Create Amazon client.
string | $access_key | Override the default Access Key |
string | $secret_key | Override the default Secret Key |
string | $region | Sets the AWS Region |
|
protected |
Method to fetch the AWS Region.
|
protected |
Adds required authentication and version parameters to an array of parameters.
The required parameters are:
If a required parameter is already set in the $parameters
array, it is overwritten.
array | $parameters | the array to which to add the required parameters. |
|
protected |
Sends a HTTP request to the queue service using Zend_Http_Client.
array | $params | List of parameters to send with the request |
Zend_Service_Amazon_Ec2_Exception |
|
static |
Set which region you are working in.
It will append the end point automaticly
string | $region |
|
protected |
Computes the RFC 2104-compliant HMAC signature for request parameters.
This implements the Amazon Web Services signature, as per the following specification:
1. Sort all request parameters (including SignatureVersion
and excluding Signature
, the value of which is being created), ignoring case.
2. Iterate over the sorted list and append the parameter name (in its original case) and then its value. Do not URL-encode the parameter values before constructing this string. Do not use any separator characters when appending strings.
array | $parameters | the parameters for which to get the signature. |
string | $secretKey | the secret key to use to sign the parameters. |
|
staticprotected |
|
protected |
The API version to use.
|
protected |
The HTTP query server.
|
protected |
Signature Encoding Method.
|
protected |
Signature Version.
|
protected |
Period after which HTTP request will timeout in seconds.
|
protected |
|
staticprotected |