Amazon STS regional instead of global endpoint Medium
Use setRegion and setEndpoint methods to make calls to Regional Amazon STS endpoints instead of using the global endpoint to reduce latency, build in redundancy, and increase session token validity.