public class MetadataSupportedRegionFromEndpointProvider extends Object implements RegionFromEndpointResolver
RegionFromEndpointResolver
that is supported by region metadata files.Constructor and Description |
---|
MetadataSupportedRegionFromEndpointProvider() |
Modifier and Type | Method and Description |
---|---|
String |
guessRegionFromEndpoint(String host,
String serviceHint)
Guess the region of a service, based on its endpoint/hostname.
|
public MetadataSupportedRegionFromEndpointProvider()
public String guessRegionFromEndpoint(String host, String serviceHint)
RegionFromEndpointResolver
guessRegionFromEndpoint
in interface RegionFromEndpointResolver
host
- The hostname or endpoint of a service.serviceHint
- The endpoint prefix of the service, or null if it's not known.Copyright © 2021. All rights reserved.