Upgrading Java driver from 2.x to 4.x

I’m trying to upgrade the java driver in a project from 2.12.4 to 4.5 and I’ve gone through the Migrate from the Legacy API doc. One thing I don’t see well documented is how nicely newer driver versions play with AWS DocumentDB (we have a shared client abstraction layer used for code talking to an on-prem MongoDB and a DocumentDB installation). Does anybody have experience with this scenario?