public function revokeSecurityGroupEgress(IpPermissionList $ipPermissions, $groupId)
{
$result = false;
$options = $ipPermissions->getQueryArrayBare('IpPermissions');
$options['GroupId'] = (string) $groupId;
$action = ucfirst(__FUNCTION__);
$response = $this->client->call($action, $options);
if ($response->getError() === false) {
$sxml = simplexml_load_string($response->getRawContent());
if ((string) $sxml->return != 'true') {
throw new Ec2Exception(sprintf('Amazon Ec2 could not %s GroupId:"%s". It returned "%s"', $action, $options['GroupId'], $sxml->return));
}
$result = true;
}
return $result;
}