Interface PolicyAnalyzerService

    • Method Detail

      • analyze

        ScanResults analyze​(List<PolicyContext> policies)
                     throws Exception
        Using the supplied List of Policies, execute each Policy's Rules (SQL query) against the database credentials provided in MagpieConfig. Each query is expected to return at a minimum a field named 'arn' for each row matched. If no rows are matched then no violation occured for that Rule.
        Parameters:
        policies - The List of PolicyContexts to match against.
        Returns:
        A list of violations, or an empty list of none are found.
        Throws:
        IOException
        Exception