Class PartitionMetadataProvider

java.lang.Object
com.amazonaws.regions.AbstractRegionMetadataProvider
com.amazonaws.partitions.PartitionMetadataProvider
All Implemented Interfaces:
RegionMetadataProvider

public class PartitionMetadataProvider extends AbstractRegionMetadataProvider
Region metadata provider based on partitions.
  • Constructor Details

    • PartitionMetadataProvider

      public PartitionMetadataProvider(List<Partition> partitions)
  • Method Details

    • getRegions

      public List<Region> 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

      public Region getRegion(String regionName)
      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

      public List<Region> getRegionsForService(String serviceName)
      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: