private Region getCurrentRegion()

in src/main/java/software/amazon/msk/auth/iam/IAMOAuthBearerLoginCallbackHandler.java [179:185]


    private Region getCurrentRegion() throws IOException {
        try {
            return awsRegionProvider.getRegion();
        } catch (SdkClientException exception) {
            throw new IOException("AWS region could not be resolved.");
        }
    }