java.lang.Object
software.amazon.msk.auth.iam.internals.utils.RegionUtils

public class RegionUtils extends Object
  • Constructor Details

    • RegionUtils

      public RegionUtils()
  • Method Details

    • extractRegionFromHost

      public static software.amazon.awssdk.regions.Region extractRegionFromHost(String host)
      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.