Class AwsHostNameUtils
- java.lang.Object
-
- software.amazon.awssdk.awscore.util.AwsHostNameUtils
-
public final class AwsHostNameUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<Region>
parseSigningRegion(String host, String serviceHint)
Attempts to parse the region name from an endpoint based on conventions about the endpoint format.
-
-
-
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 parseserviceHint
- 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.
-
-