Package com.amazonaws.partitions
Class PartitionMetadataProvider
java.lang.Object
com.amazonaws.regions.AbstractRegionMetadataProvider
com.amazonaws.partitions.PartitionMetadataProvider
- All Implemented Interfaces:
RegionMetadataProvider
Region metadata provider based on partitions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the region with the name given, if it exists in the metadata or if it can be derived from the metadata.Returns an immutable list of all regions known to this region metadata object, in no particular order.getRegionsForService
(String serviceName) Returns a list of the regions that support the service given.Methods inherited from class com.amazonaws.regions.AbstractRegionMetadataProvider
getRegionByEndpoint
-
Constructor Details
-
PartitionMetadataProvider
-
-
Method Details
-
getRegions
Description copied from interface:RegionMetadataProvider
Returns an immutable list of all regions known to this region metadata object, in no particular order.- Returns:
- an immutable list of all regions
-
getRegion
Description copied from interface:RegionMetadataProvider
Returns the region with the name given, if it exists in the metadata or if it can be derived from the metadata. Otherwise, returns null.- Parameters:
regionName
- the name of the region to search for- Returns:
- the corresponding region, if it exists or derived.
-
getRegionsForService
Description copied from interface:RegionMetadataProvider
Returns a list of the regions that support the service given.- Parameters:
serviceName
- the service abbreviation to search for- Returns:
- the list of regions with support for the given service
- See Also:
-