private Region cacheRegion(PartitionRegionImpl regionImpl) {
        final Region region = new Region(regionImpl);

        regionCache.put(region.getName(), region);

        return region;
    }
Region metadata provider based on partitions.
aws-java-sdk-core/src/main/java/com/amazonaws/partitions/PartitionMetadataProvider.java