Andrew Burton/Getty
New York Mayor Bill de Blasio criticized Amazon on a Meet the Press interview.

Days after New York Mayor Bill de Blasio turned his nose at a lawsuit from ride service Uber, he's raised his fists at retail and tech giant Amazon (AMZN) , shaming the company for pulling out of a plan to build another headquarters in Long Island City.

"This is an example of an abuse corporate power -- they had an agreement with the people of New York City," said de Blasio during an interview on NBC News' Meet the Press Sunday. "But Amazon just took their ball and went home, and what they did was they confirmed people's worst fears of corporate America: Here's the one percent dictating to everyone else, even though we gave them a fair deal."

In a Valentine's Day breakup message, Amazon wrote on its blog that it was splitting on plans for its long-awaited headquarters in Queens, blaming state and local politicians who "have made it clear that they oppose our presence and will not work with us to build the type of relationships that are required to go forward with the project we and many others envisioned in Long Island City."

The company said it would need "positive, collaborative" relationships with state and local elected officials who would support the company and its plan expected to bring 25,000 jobs to the area.

"While polls show that 70% of New Yorkers support our plans and investment, a number of state and local politicians have made it clear that they oppose our presence and will not work with us," the company wrote.

On Meet the Press, de Blasio acknowledged that most New Yorkers liked the idea of bringing in Amazon, saying "they wanted the jobs, they wanted the revenue that would help us to create more affordable housing, better mass transit. There was a consensus in New York City."

But, he ripped the company for bailing as soon as there was rough waters with local politicians. "I think it's going to frustrate people all over this country to see a company treat a neighborhood and a city like that."

New York politicians including including a city councilor and state senator had publicly criticized the Amazon HQ deal late last year. 

When host Chuck Todd asked how it would be from Amazon's perspective to have a deal and "now you want to change the deal," de Blasio doubled down.

"No, you have to be a good corporate neighbor. I think things are changing in this country, I think working people are rightfully demanding their fair share. They look at a situation where the wealth and power is concentrated at the hands of the one percent. They don't like what they see, and they're demanding more back."

The mayor also teased that Amazon couldn't take bad PR: "They said they wanted a partnership, but the minute there were criticisms, they walked away," he said, "They couldn't handle the heat in the kitchen, is what it looked like."

In Amazon's Feb. 14 note, it said it would not plan to reopen its headquarters search and that it would build on the presence in New York that already has some 5,000 Amazon employees in Brooklyn, Manhattan, and Staten Island.

It also thanked de Blasio and New York Gov. Andrew Cuomo, who "so enthusiastically and graciously invited us to build in New York City and supported us during the process"