Adding options to specify `region` and `endpoint`