President Trump warned North Korea of “severe” consequences after it launched an intercontinental ballistic missile capable of hitting Alaska, and took a shot at his White House predecessor by saying he doesn’t “draw red lines.”

The president said he has a range of options on how to deal with North Korean President Kim Jong Un but would rather not make them public.

“But I have some pretty severe things that we’re thinking about,” Trump said during a joint press conference Thursday with Polish President Andrzej Duda.

“That doesn’t mean we’re going to do them. I don’t draw red lines,” Trump said in a clear reference to former President Barack Obama, who told Syrian President Bashar al-Assad in 2012 that the use of chemical weapons would cross a “red line” and cause the US to use military force.

Obama never carried out that promise.

Trump, who heads to Germany for a G20 summit later Thursday, where he’s expected to have a sitdown with Russian President Vladimir Putin, a meeting that just became more complicated.

Russia on Thursday blocked a UN Security Council Resolution drafted by the US to take “further significant measures” against North Korea for its recent launch of an ICBM.

One diplomat told the Associated Press that Moscow disagreed with the resolution because it said the reclusive regime fired an ICBM, but Russia said that hasn’t been verified, claiming it could be a medium-range rocket.

In his remarks, Trump pledged his administration will “confront the threat” from North Korea.

“It’s a shame that they’re behaving this way but they are behaving in a very, very dangerous manner and something will have to be done about it,” the president said, adding, “And we will confront it very strongly.”

Kim’s regime successfully test-fired an ICBM that has the potential to strike Alaska, US officials said.

Trump later Thursday was to head to Germany for a G20 summit, where the matter of North Korea’s military provocations will be part of the discussion.

During a speech after his meeting with the Polish president, Trump voiced his support for NATO’s Article 5, which states that an attack on one member of the alliance is an attack on all members.

“To those who would criticize our tough stance, I would point out that the United States has demonstrated not merely with words but with its actions that we stand firmly behind ​A​rticle 5, the mutual defense commitment​,” he said during the address in ​Krasinski Square, ​which commemorates the 1944 Warsaw Uprising against the Nazis​. “Words are easy but actions are what matters. And for its own protection, Europe, and you know this, everybody knows this, but it has to happen — Europe must do more.​”​

​At a meeting ​of NATO allies in Brussels in May, Trump lectured the member nations that they needed to pay more of their fair share for defense.

​Trump said they have responded. ​

“My administration has demanded that all members of NATO finally meet their full and fair financial obligation. As a result of this insistence, billions of dollars more have begun to pour into NATO​,” he said. “​In fact, people are shocked. Billions and billions of dollars more coming in from countries who, in my opinion, would not have been paying so quickly.​”​

In the past few days, Trump has said he is losing patience with the reclusive regime’s nuclear ambitions and has asked China to use its economic leverage on North Korea to rein in its weapons program.

US Ambassador to the United Nations Nikki Haley said all options, including military force, are on the table.

“The US is prepared to use the full range of our capabilities to defend ourselves and our allies,” Haley said during a meeting of the UN Security Council on Wednesday.