public class DefaultRegionFromEndpointResolver extends Object implements RegionFromEndpointResolver
RegionFromEndpointResolver
that only considers what is available in the host
name itself.Constructor and Description |
---|
DefaultRegionFromEndpointResolver() |
Modifier and Type | Method and Description |
---|---|
String |
guessRegionFromEndpoint(String host,
String serviceHint)
Guess the region of a service, based on its endpoint/hostname.
|
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 © 2024. All rights reserved.