After reviewing your suggestion I reconfirmed the AWS region the mendix app was pointing to...I thought it was US East but it was some other region probably to which I did not have access or enabled. I pointed it to US East and the authentication started to work. This resolved the issue. Thanks for your feedback.
what region you used then because I'm facing the same issue now?
"AnalyzeDocument: Received an UnknownHostException when attempting to interact with a service. See cause for the exact endpoint that is failing to resolve. If this is happening on an endpoint that previously worked, there may be a network connectivity issue or your DNS cache could be storing endpoints for too long.:[Ljava.lang.StackTraceElement;@120f18b2"
This is the error I'm getting How did You resolved this?