code: def revoke_security_group_ingress(self, security_group_id, ingress_rules):
          
          log = logging.getLogger(self.cls_logger + '.revoke_security_group_ingress')
          log.info('Revoking ingress rules from security group: {g}'.format(g=security_group_id))
          try:
              self.client.revoke_security_group_ingress(
                  DryRun=False,
                  GroupId=security_group_id,
                  IpPermissions=ingress_rules)
          except ClientError:
              _, ex, trace = sys.exc_info()
              msg = 'Unable to remove existing Security Group rules for port from Security Group: {g}\n{e}'.format(
                  g=security_group_id, e=str(ex))
              raise AWSAPIError, msg, trace
docs: Revokes all ingress rules for a security group bu ID
  
          :param security_group_id: (str) Security Group ID
          :param port: (str) TCP Port number
          :param ingress_rules: (list) List of IP permissions (see AWS API docs re: IpPermissions)
          :return: None
          :raises: AWSAPIError, EC2UtilError