public class RegionUtils
extends java.lang.Object
Constructor and Description |
---|
RegionUtils() |
Modifier and Type | Method and Description |
---|---|
static Region |
getRegion(java.lang.String regionName) |
static Region |
getRegionByEndpoint(java.lang.String endpoint)
Searches through all known regions to find one with any service at the
specified endpoint.
|
static java.util.List<Region> |
getRegions() |
static java.util.List<Region> |
getRegionsForService(java.lang.String serviceAbbreviation) |
static void |
init()
There is no need to call this method, it is public only for
Compatibility.
|
public static java.util.List<Region> getRegions()
public static java.util.List<Region> getRegionsForService(java.lang.String serviceAbbreviation)
serviceAbbreviation
- the service abbreviation.ServiceAbbreviations
public static Region getRegion(java.lang.String regionName)
regionName
- the region name.public static Region getRegionByEndpoint(java.lang.String endpoint)
endpoint
- The endpoint for any service residing in the desired
region.java.net.MalformedURLException
- If the given URL is malformed, or if the
one of the service URLs on record is malformed.public static void init()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.