Class AwsHostNameUtils


  • public final class AwsHostNameUtils
    extends Object
    • Method Detail

      • 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.