add support for user-specified AWS endpoint