Class RegionUtils
java.lang.Object
software.amazon.msk.auth.iam.internals.utils.RegionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic software.amazon.awssdk.regions.RegionextractRegionFromHost(String host) Try to extract the region from the host.
-
Constructor Details
-
RegionUtils
public RegionUtils()
-
-
Method Details
-
extractRegionFromHost
Try to extract the region from the host. If the region is not found, return the default region from the DefaultAwsRegionProviderChain.- Parameters:
host- The host to extract the region from.- Returns:
- The region extracted from the host.
-