Example usage for com.amazonaws.services.ec2.model DescribeRegionsRequest getRegionNames

List of usage examples for com.amazonaws.services.ec2.model DescribeRegionsRequest getRegionNames

Introduction

In this page you can find the example usage for com.amazonaws.services.ec2.model DescribeRegionsRequest getRegionNames.

Prototype


public java.util.List<String> getRegionNames() 

Source Link

Document

The names of the Regions.

Usage

From source file:jp.primecloud.auto.aws.typica.EucaEc2Client.java

License:Open Source License

@Override
public DescribeRegionsResult describeRegions(DescribeRegionsRequest describeRegionsRequest) {
    try {/*from  www  .  jav a  2s  .c o m*/
        List<RegionInfo> infos = jec2.describeRegions(describeRegionsRequest.getRegionNames());
        List<Region> regions = new RegionConverter().convert(infos);
        return new DescribeRegionsResult().withRegions(regions);
    } catch (EC2Exception e) {
        throw new AmazonClientException(e);
    }
}