Abstract Amazon class that handles the credentials for any of the Web Services that Amazon offers
category | Zend |
---|---|
package | Zend_Service_Amazon |
subpackage | SimpleDb |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Service_Amazon_Abstract |
__construct(string $accessKey, string $secretKey)
inherited_from | \Zend_Service_Amazon_Abstract::__construct() |
---|
string
Override the default Access Key
string
Override the default Secret Key
__construct($accessKey= null
, $secretKey= null
) : void
batchPutAttributes(array $items, string $domainName, array $replace = array()
) : void
array
string
array
createDomain(string $domainName) : boolean
string
Valid domain name of the domain to create
boolean
True if successful, false if notdeleteAttributes(string $domainName, string $itemName, array $attributes = array()
) : void
string
string
array
deleteDomain(string $domainName) : boolean
string
Valid domain name of the domain to delete
boolean
True if successful, false if notdomainMetadata(string $domainName) : array
string
Name of the domain for which metadata will be requested
array
Key/value array of metadatum names and values.getAttributes(string $domainName, string $itemName, string|null $attributeName = null
) : array
string
Domain name within database
string
string
null
\Zend_Service_Amazon_SimpleDb_Exception |
---|
array
getEndpoint() : \Zend_Uri_Http
\Zend_Uri_Http
getHttpClient() : \Zend_Http_Client
\Zend_Http_Client
listDomains(integer $maxNumberOfDomains= 100
, integer $nextToken= null
) : array
integer
integer
array
0 or more domain namesputAttributes(string $domainName, string $itemName, array|\Traversable $attributes, array $replace = array()
) : void
string
string
array
\Traversable
array
quote(string $value) : string
Wraps it in ''
string
string
quoteName(string $name) : string
Wraps it in ``
string
\Zend_Service_Amazon_SimpleDb_Exception |
---|
string
select(string $selectExpression, null|string $nextToken = null
) : \Zend_Service_Amazon_SimpleDb_Page
string
null
string
\Zend_Service_Amazon_SimpleDb_Page
setEndpoint(string|\Zend_Uri_Http $endpoint) : \Zend_Service_Amazon_SimpleDb
string
\Zend_Uri_Http
\Zend_Service_Amazon_SimpleDb_Exception |
|
---|---|
\Zend_Uri_Exception |
\Zend_Service_Amazon_SimpleDb
setHttpClient(\Zend_Http_Client $httpClient)
\Zend_Http_Client
setKeys($accessKey, $secretKey) : void
_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
_getAccessKey() : string
string
_getSecretKey() : string
string
_sendRequest(array $params = array()
) : \Zend_Service_Amazon_SimpleDb_Response
array
List of parameters to send with the request
\Zend_Service_Amazon_SimpleDb_Exception |
---|
\Zend_Service_Amazon_SimpleDb_Response
_signParameters(array $parameters) : 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.
array
the parameters for which to get the signature.
string
the signed data._checkForErrors(\Zend_Service_Amazon_SimpleDb_Response $response)
\Zend_Service_Amazon_SimpleDb_Response
the response object to check.
\Zend_Service_Amazon_SimpleDb_Exception |
if one or more errors are returned from Amazon. |
---|
$_accessKey : string
$_defaultAccessKey : string
null
$_defaultSecretKey : string
null
$_httpClient : \Zend_Http_Client
null
$_httpTimeout
10
$_sdbApiVersion
'2009-04-15'
$_sdbEndpoint
'sdb.amazonaws.com/'
$_secretKey : string
$_signatureMethod
'HmacSHA256'
$_signatureVersion
'2'