Package | Description |
---|---|
com.amazonaws | |
com.amazonaws.regions |
Modifier and Type | Method and Description |
---|---|
void |
AmazonWebServiceClient.setRegion(Region region)
An alternative to
AmazonWebServiceClient.setEndpoint(String) , sets the
regional endpoint for this client's service calls. |
<T extends AmazonWebServiceClient> |
AmazonWebServiceClient.withRegion(Region region)
Fluent method for
AmazonWebServiceClient.setRegion(Region) . |
Modifier and Type | Method and Description |
---|---|
static Region |
Regions.getCurrentRegion()
Returns a Region object representing the region the application is
running in, when running in EC2.
|
static Region |
Region.getRegion(Regions region)
Returns the region with the id given, or null if it cannot be found in
the current regions.xml file.
|
static Region |
RegionUtils.getRegion(String regionName)
Returns the region with the id given, if it exists.
|
Region |
RegionMetadata.getRegion(String name)
Returns the region with the name given, if it exists.
|
static Region |
RegionUtils.getRegionByEndpoint(String endpoint)
Searches through all known regions to find one with any service at the
specified endpoint.
|
Region |
RegionMetadata.getRegionByEndpoint(String endpoint)
Searches through all known regions to find one with any service at the
specified endpoint.
|
Modifier and Type | Method and Description |
---|---|
static List<Region> |
RegionUtils.getRegions()
Returns a list of the available AWS regions.
|
List<Region> |
RegionMetadata.getRegions()
Returns an immutable list of all regions known to this region metadata
object, in no particular order.
|
static List<Region> |
RegionUtils.getRegionsForService(String serviceAbbreviation)
Returns a list of the regions that support the service given.
|
List<Region> |
RegionMetadata.getRegionsForService(String service)
Returns a list of the regions that support the service given.
|
List<Region> |
RegionMetadataParser.parseRegionMetadata(InputStream input)
Deprecated.
in favor of
RegionMetadataParser.parse(InputStream) |
List<Region> |
RegionMetadataParser.parseRegionMetadata(InputStream input,
boolean endpointVerification)
Deprecated.
in favor of
RegionMetadataParser.parse(InputStream) |
Constructor and Description |
---|
RegionMetadata(List<Region> regions)
Creates a new RegionMetadata object from the given list of regions.
|
Copyright © 2015. All rights reserved.