Class RegionMetadata
java.lang.Object
com.amazonaws.regions.RegionMetadata
A collection of metadata about a set of regions and the services they
contain.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRegionMetadata(RegionMetadataProvider provider) RegionMetadata(List<Region> regions) Creates a new RegionMetadata object from the given list of regions. -
Method Summary
Modifier and TypeMethodDescriptionReturns the region with the name given, if it exists.getRegionByEndpoint(String endpoint) Deprecated.sdk no longer holds the complete endpoint for every service in the region.Returns an immutable list of all regions known to this region metadata object, in no particular order.getRegionsForService(String service) Returns a list of the regions that support the service given.toString()
-
Constructor Details
-
RegionMetadata
-
RegionMetadata
-
-
Method Details
-
getRegions
-
getRegion
-
getRegionsForService
-
getRegionByEndpoint
Deprecated.sdk no longer holds the complete endpoint for every service in the region. It now uses the partition metadata to compute the endpoints dynamically for new regions and services.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.- Parameters:
endpoint- The endpoint for any service residing in the desired region.- Returns:
- 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.
- Throws:
IllegalArgumentException- If the given URL is malformed, or if the one of the service URLs on record is malformed.
-
toString
-