UI Path licensing on Public cloud like AWS and Azure


We are a financial institution currently evaluating from our on-prem to public cloud (evaluating AWS/Azure), and would like to know if we can continue using our on-prem licenses to the public cloud?

A general guidance on this would be helpful.

Irfan Kabli