Apple Music is a streaming service you can't move anything to it. Amazon Music is also a streaming service. You only have access to that music as long as you are paying for the subscription and through either the Amazon Music app on your iOS device or the web portal on your computer.
If you purchased music from Amazon, you should be able to move it to iTunes on your computer.