The Alliance for Automotive Innovation on Friday filed a federal lawsuit over a recently enacted ballot measure in Massachusetts that updates an existing state law, expanding access to data related to vehicle maintenance and repair.

Starting with the 2022 model year, the updated “right to repair” law requires makers of vehicles sold in Massachusetts to equip vehicles that use telematics systems — which collect and wirelessly transmit mechanical data to a remote server — with a standardized, open-access data platform. It also gives vehicle owners and independent repair shops access to real-time information from the telematics such as crash notifications, remote diagnostics and navigation.

The law is scheduled to take effect Dec. 3. The alliance said automakers, which can begin selling 2022 model-year vehicles as early as Jan. 2, 2021, could face “impossible compliance obstacles.”

The alliance, which represents most major automakers in the U.S., also argues the new measure “makes personal driving data available to third parties with no safeguards to protect core vehicle functions and consumers’ private information or physical safety.”

In the complaint, filed in the U.S. District Court for the District of Massachusetts, the alliance is requesting the court find the law “unenforceable because it is unconstitutional and because it conflicts with federal laws.” It is also asking the court to “temporarily and permanently enjoin enforcement” of the law.

Voters in Massachusetts overwhelmingly approved the ballot measure in November, with 75 percent voting in its favor. The highly contested ballot question pitted independent repair shops and aftermarket parts retailers against most major automakers, with both sides spending millions to tilt voters.

Massachusetts’ right to repair law — enacted in 2013 and adopted a year later as a national standard by automakers and independent garages and retailers — mandates vehicle owners and independent repair shops have access to the same diagnostic and repair data that automakers make available to their franchised dealerships and certified repair facilities.

Supporters, such as the Auto Care Association and O’Reilly Auto Parts, said the ballot measure closes a loophole in the current law that exempts data transmitted wirelessly through telematics while giving vehicle owners more choice and control over the information.

Critics, including the alliance and most major automakers, said the measure is a “data grab” by independent repair shops and big-box aftermarket parts stores and poses cybersecurity, personal safety and privacy risks to vehicle owners.