/** * Revoke Security Group Ingress * The RevokeSecurityGroupIngress operation revokes permissions from a security * group. The permissions used to revoke must be specified using the same values * used to grant the permissions. * Permissions are specified by IP protocol (TCP, UDP, or ICMP), the source of the * request (by IP range or an Amazon EC2 user-group pair), the source and * destination port ranges (for TCP and UDP), and the ICMP codes and types (for * ICMP). * Permission changes are quickly propagated to instances within the security * group. However, depending on the number of instances in the group, a small * delay is might occur, . * When revoking a user/group pair permission, GroupName, SourceSecurityGroupName * and SourceSecurityGroupOwnerId must be specified. When authorizing a CIDR IP * permission, GroupName, IpProtocol, FromPort, ToPort and CidrIp must be * specified. Mixing these two types of parameters is not allowed. * * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-RevokeSecurityGroupIngress.html * @param mixed $request array of parameters for Amazon_EC2_Model_RevokeSecurityGroupIngressRequest request * or Amazon_EC2_Model_RevokeSecurityGroupIngressRequest object itself * @see Amazon_EC2_Model_RevokeSecurityGroupIngress * @return Amazon_EC2_Model_RevokeSecurityGroupIngressResponse Amazon_EC2_Model_RevokeSecurityGroupIngressResponse * * @throws Amazon_EC2_Exception */ public function revokeSecurityGroupIngress($request) { if (!$request instanceof Amazon_EC2_Model_RevokeSecurityGroupIngressRequest) { require_once 'Amazon/EC2/Model/RevokeSecurityGroupIngressRequest.php'; $request = new Amazon_EC2_Model_RevokeSecurityGroupIngressRequest($request); } require_once 'Amazon/EC2/Model/RevokeSecurityGroupIngressResponse.php'; return Amazon_EC2_Model_RevokeSecurityGroupIngressResponse::fromXML($this->_invoke($this->_convertRevokeSecurityGroupIngress($request))); }
/** * Revoke Security Group Ingress * The RevokeSecurityGroupIngress operation revokes permissions from a security * group. The permissions used to revoke must be specified using the same values * used to grant the permissions. * Permissions are specified by IP protocol (TCP, UDP, or ICMP), the source of the * request (by IP range or an Amazon EC2 user-group pair), the source and * destination port ranges (for TCP and UDP), and the ICMP codes and types (for * ICMP). * Permission changes are quickly propagated to instances within the security * group. However, depending on the number of instances in the group, a small * delay is might occur, . * When revoking a user/group pair permission, GroupName, SourceSecurityGroupName * and SourceSecurityGroupOwnerId must be specified. When authorizing a CIDR IP * permission, GroupName, IpProtocol, FromPort, ToPort and CidrIp must be * specified. Mixing these two types of parameters is not allowed. * * @see http://docs.amazonwebservices.com/AWSEC2/2008-12-01/DeveloperGuide/ApiReference-Query-RevokeSecurityGroupIngress.html * @param mixed $request array of parameters for Amazon_EC2_Model_RevokeSecurityGroupIngress request or Amazon_EC2_Model_RevokeSecurityGroupIngress object itself * @see Amazon_EC2_Model_RevokeSecurityGroupIngress * @return Amazon_EC2_Model_RevokeSecurityGroupIngressResponse Amazon_EC2_Model_RevokeSecurityGroupIngressResponse * * @throws Amazon_EC2_Exception */ public function revokeSecurityGroupIngress($request) { require_once 'Amazon/EC2/Model/RevokeSecurityGroupIngressResponse.php'; return Amazon_EC2_Model_RevokeSecurityGroupIngressResponse::fromXML($this->_invoke('RevokeSecurityGroupIngress')); }