A collection of metadata about a set of regions and the services they
Creates a new RegionMetadata object from the given list of regions.
regions the list of regions
Returns an immutable list of all regions known to this region metadata
object, in no particular order.
- an immutable list of all regions
Returns the region with the name given, if it exists. Otherwise, returns
name the name of the region to search for
- the corresponding region, if it exists
Returns a list of the regions that support the service given.
service the service abbreviation to search for
- the list of regions with support for the given service
- See also:
Searches through all known regions to find one with any service at the
specified endpoint. If no region is found with a service at that
endpoint, an exception is thrown.
The endpoint for any service residing in the desired region.
- The region containing any service running at the specified
endpoint, otherwise an exception is thrown if no region is found
with a service at the specified endpoint.
If the given URL is malformed, or if the one of the service
URLs on record is malformed.
"No region found with any service for endpoint " + endpoint);
Parse the host portion out of an endpoint (which may or may not
contain a scheme).
endpoint the endpoint to parse
- the host portion of the endpoint