If your software is valuable enough, Amazon will just reimplement it from scratch. Often Amazon entering the market for your software will grow the size of the market, taking most of the growth for themselves, but also increasing the amount of customers you get.