Example usage for com.amazonaws.regions RegionUtils getRegionsForService

List of usage examples for com.amazonaws.regions RegionUtils getRegionsForService

Introduction

In this page you can find the example usage for com.amazonaws.regions RegionUtils getRegionsForService.

Prototype

public static List<Region> getRegionsForService(String serviceAbbreviation) 

Source Link

Document

Returns a list of the regions that support the service given.

Usage

From source file:com.hangum.tadpole.aws.rds.commons.core.utils.AmazonRDSUtsils.java

License:Open Source License

/**
 * list region name//from  www. j  a v  a2  s  .  c  o  m
 * 
 * @return
 */
public static List<String> getRDSRegionList() {
    List<String> listRegion = new ArrayList<String>();

    for (Region region : RegionUtils.getRegionsForService(ServiceAbbreviations.RDS)) {
        listRegion.add(region.getName());
    }

    return listRegion;
}