You will have to... fly to make it (sorry for the horrible pun; I had to make it).
I assume the two flights are on the same ticket? 45 min seem very short, but if AZ claims you can do it, it means *in theory* you can, or they will have to reprotect you to another flight.
A dummy booking shows at least 3 direct flights during the day and several 1-stop flights.