Exemplo n.º 1
0
 /**
  * Create Security Group 
  * The CreateSecurityGroup operation creates a new security group.
  * Every instance is launched in a security group. If no security group is
  * specified during launch, the instances are launched in the default security
  * group. Instances within the same security group have unrestricted network
  * access to each other. Instances will reject network access attempts from other
  * instances in a different security group. As the owner of instances you can
  * grant or revoke specific permissions using the AuthorizeSecurityGroupIngress
  * and RevokeSecurityGroupIngress operations.
  * 
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-CreateSecurityGroup.html
  * @param mixed $request array of parameters for Amazon_EC2_Model_CreateSecurityGroupRequest request
  * or Amazon_EC2_Model_CreateSecurityGroupRequest object itself
  * @see Amazon_EC2_Model_CreateSecurityGroup
  * @return Amazon_EC2_Model_CreateSecurityGroupResponse Amazon_EC2_Model_CreateSecurityGroupResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function createSecurityGroup($request)
 {
     if (!$request instanceof Amazon_EC2_Model_CreateSecurityGroupRequest) {
         require_once 'Amazon/EC2/Model/CreateSecurityGroupRequest.php';
         $request = new Amazon_EC2_Model_CreateSecurityGroupRequest($request);
     }
     require_once 'Amazon/EC2/Model/CreateSecurityGroupResponse.php';
     return Amazon_EC2_Model_CreateSecurityGroupResponse::fromXML($this->_invoke($this->_convertCreateSecurityGroup($request)));
 }
Exemplo n.º 2
0
 /**
  * Create Security Group 
  * The CreateSecurityGroup operation creates a new security group.
  * Every instance is launched in a security group. If no security group is
  * specified during launch, the instances are launched in the default security
  * group. Instances within the same security group have unrestricted network
  * access to each other. Instances will reject network access attempts from other
  * instances in a different security group. As the owner of instances you can
  * grant or revoke specific permissions using the AuthorizeSecurityGroupIngress
  * and RevokeSecurityGroupIngress operations.
  *   
  * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-CreateSecurityGroup.html      
  * @param mixed $request array of parameters for Amazon_EC2_Model_CreateSecurityGroup request or Amazon_EC2_Model_CreateSecurityGroup object itself
  * @see Amazon_EC2_Model_CreateSecurityGroup
  * @return Amazon_EC2_Model_CreateSecurityGroupResponse Amazon_EC2_Model_CreateSecurityGroupResponse
  *
  * @throws Amazon_EC2_Exception
  */
 public function createSecurityGroup($request)
 {
     require_once 'Amazon/EC2/Model/CreateSecurityGroupResponse.php';
     return Amazon_EC2_Model_CreateSecurityGroupResponse::fromXML($this->_invoke('CreateSecurityGroup'));
 }