Class AwsHostNameUtils

java.lang.Object
software.amazon.awssdk.awscore.util.AwsHostNameUtils

public final class AwsHostNameUtils extends Object
  • Method Details

    • parseSigningRegion

      public static Optional<Region> parseSigningRegion(String host, String serviceHint)
      Attempts to parse the region name from an endpoint based on conventions about the endpoint format.
      Parameters:
      host - the hostname to parse
      serviceHint - an optional hint about the service for the endpoint
      Returns:
      the region parsed from the hostname, or null if no region information could be found.