Electronic cigarettes, the popular vapor substitute to traditional tobacco cigarettes, will soon be banned from public indoor spaces in New York State — just like the real thing.

Gov. Andrew M. Cuomo on Monday signed a bill to ban vaping anywhere cigarettes are already prohibited, like workplaces, restaurants and bars. The ban goes into effect in 30 days.

E-cigs, as the products that vaporize a variety of oils into an inhalant are generally known, were added to the state’s Clean Indoor Air Act this summer by the State Assembly, and the measure was approved by the Senate. The original act has been around since 2003, when smoking tobacco products in public indoor areas was first banned in the state, one of the country’s first such measures.

New York has come down fiercely on e-cigs, even as their popularity grows: they now represent a $2.5-billion industry, according to the Centers for Disease Control and Prevention, which says that while the health consequences of the product are little understood, there are still reasons for concern, including nicotine addiction.