Allows you to interface with the reserved instances on Amazon Ec2
category | Zend |
---|---|
package | Zend_Service_Amazon |
subpackage | Ec2 |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Service_Amazon_Ec2_Abstract |
__construct($accessKey= null
, $secretKey= null
) : void
describeInstances(string|array $instanceId) : array
string
array
IDs of the Reserved Instance to describe.
array
describeOfferings() : array
With Amazon EC2 Reserved Instances, you purchase the right to launch Amazon EC2 instances for a period of time (without getting insufficient capacity errors) and pay a lower usage rate for the actual time used.
array
getHttpClient() : \Zend_Http_Client
\Zend_Http_Client
purchaseOffering(string $offeringId, integer $intanceCount = 1
) : string
string
The offering ID of the Reserved Instance to purchase
integer
The number of Reserved Instances to purchase.
string
The ID of the purchased Reserved Instances.setHttpClient(\Zend_Http_Client $httpClient)
\Zend_Http_Client
setKeys($accessKey, $secretKey) : void
setRegion(string $region)
string
_getAccessKey() : string
string
_getRegion() : string
string
_getSecretKey() : string
string
addRequiredParameters(array $parameters) : array
The required parameters are:
If a required parameter is already set in the $parameters array, it is overwritten.
array
the array to which to add the required parameters.
array
sendRequest(array $params = array()
) : \Zend_Service_Amazon_Ec2_Response
array
List of parameters to send with the request
\Zend_Service_Amazon_Ec2_Exception |
---|
\Zend_Service_Amazon_Ec2_Response
signParameters(array $paramaters) : string
This implements the Amazon Web Services signature, as per the following specification:
Sort all request parameters (including SignatureVersion and excluding Signature, the value of which is being created), ignoring case.
string
the signed data.checkForErrors(\Zend_Service_Amazon_Ec2_Response $response) : void
\Zend_Service_Amazon_Ec2_Response
the response object to check.
\Zend_Service_Amazon_Ec2_Exception |
if one or more errors are returned from Amazon. |
---|
$_accessKey : string
$_defaultAccessKey : string
null
$_defaultRegion : string
null
$_defaultSecretKey : string
null
$_ec2ApiVersion
'2009-04-04'
$_ec2Endpoint
'ec2.amazonaws.com'
$_ec2SignatureMethod
'HmacSHA256'
$_ec2SignatureVersion
'2'
$_httpClient : \Zend_Http_Client
null
$_httpTimeout
10
$_region : string
$_secretKey : string
$_validEc2Regions : array
array('eu-west-1', 'us-east-1')