/** * Modify Snapshot Attribute * Adds or remove permission settings for the specified snapshot. * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-ModifySnapshotAttribute.html * @param mixed $request array of parameters for Amazon_EC2_Model_ModifySnapshotAttributeRequest request * or Amazon_EC2_Model_ModifySnapshotAttributeRequest object itself * @see Amazon_EC2_Model_ModifySnapshotAttribute * @return Amazon_EC2_Model_ModifySnapshotAttributeResponse Amazon_EC2_Model_ModifySnapshotAttributeResponse * * @throws Amazon_EC2_Exception */ public function modifySnapshotAttribute($request) { if (!$request instanceof Amazon_EC2_Model_ModifySnapshotAttributeRequest) { require_once 'Amazon/EC2/Model/ModifySnapshotAttributeRequest.php'; $request = new Amazon_EC2_Model_ModifySnapshotAttributeRequest($request); } require_once 'Amazon/EC2/Model/ModifySnapshotAttributeResponse.php'; return Amazon_EC2_Model_ModifySnapshotAttributeResponse::fromXML($this->_invoke($this->_convertModifySnapshotAttribute($request))); }
/** * Modify Snapshot Attribute * Adds or remove permission settings for the specified snapshot. * @see http://docs.amazonwebservices.com/AWSEC2/2009-11-30/DeveloperGuide/ApiReference-Query-ModifySnapshotAttribute.html * @param mixed $request array of parameters for Amazon_EC2_Model_ModifySnapshotAttribute request or Amazon_EC2_Model_ModifySnapshotAttribute object itself * @see Amazon_EC2_Model_ModifySnapshotAttribute * @return Amazon_EC2_Model_ModifySnapshotAttributeResponse Amazon_EC2_Model_ModifySnapshotAttributeResponse * * @throws Amazon_EC2_Exception */ public function modifySnapshotAttribute($request) { require_once 'Amazon/EC2/Model/ModifySnapshotAttributeResponse.php'; return Amazon_EC2_Model_ModifySnapshotAttributeResponse::fromXML($this->_invoke('ModifySnapshotAttribute')); }