code: public static String maskAWSSecret(String sql)
    {
      List<SecretDetector.SecretRange> secretRanges =
          SecretDetector.getAWSSecretPos(sql);
      for (SecretDetector.SecretRange secretRange : secretRanges)
      {
        sql = maskText(sql, secretRange.beginPos, secretRange.endPos);
      }
      return sql;
    }
docs: mask AWS secret in the input string
  
  @param sql
  @return masked string