Examples of describeRegions()


Examples of com.amazon.ec2.AmazonEC2SkeletonInterface.describeRegions()

        return ec2Service.describeKeyPairs(describeKeyPairs);
    }

    public DescribeRegionsResponse describeRegions(DescribeRegions describeRegions) {
        AmazonEC2SkeletonInterface ec2Service = ServiceProvider.getInstance().getServiceImpl(AmazonEC2SkeletonInterface.class);
        return ec2Service.describeRegions(describeRegions);
    }

    public DescribeReservedInstancesResponse describeReservedInstances(DescribeReservedInstances describeReservedInstances) {
        AmazonEC2SkeletonInterface ec2Service = ServiceProvider.getInstance().getServiceImpl(AmazonEC2SkeletonInterface.class);
        return ec2Service.describeReservedInstances(describeReservedInstances);
View Full Code Here

Examples of com.amazonaws.services.ec2.AmazonEC2.describeRegions()

            } else {
                LOG.info(">> Searching endpoint for region {}", region);
                DescribeRegionsRequest request = new DescribeRegionsRequest().withRegionNames(region);

                DescribeRegionsResult result = client.describeRegions(request);
                checkArgument(result.getRegions().size() == 1, "Invalid region name %s. Expected one result found %s",
                    region, result.getRegions());

                LOG.info("<< Using endpoint {} for region {}", result.getRegions().get(0).getEndpoint(), region);
                client.setEndpoint(result.getRegions().get(0).getEndpoint());
View Full Code Here

Examples of com.amazonaws.services.ec2.AmazonEC2.describeRegions()

            } else {
                LOG.info(">> Searching endpoint for region {}", region);
                DescribeRegionsRequest request = new DescribeRegionsRequest().withRegionNames(region);

                DescribeRegionsResult result = client.describeRegions(request);
                checkArgument(result.getRegions().size() == 1, "Invalid region name %s. Expected one result found %s",
                    region, result.getRegions());

                LOG.info("<< Using endpoint {} for region {}", result.getRegions().get(0).getEndpoint(), region);
                client.setEndpoint(result.getRegions().get(0).getEndpoint());
View Full Code Here

Examples of com.amazonaws.services.ec2.AmazonEC2Client.describeRegions()

            } else {
                LOG.info(">> Searching endpoint for region {}", region);
                DescribeRegionsRequest request = new DescribeRegionsRequest().withRegionNames(region);

                DescribeRegionsResult result = client.describeRegions(request);
                checkArgument(result.getRegions().size() == 1, "Invalid region name %s. Expected one result found %s",
                    region, result.getRegions());

                LOG.info("<< Using endpoint {} for region {}", result.getRegions().get(0).getEndpoint(), region);
                client.setEndpoint(result.getRegions().get(0).getEndpoint());
View Full Code Here

Examples of com.amazonaws.services.ec2.AmazonEC2Client.describeRegions()

            } else {
                LOG.info(">> Searching endpoint for region {}", region);
                DescribeRegionsRequest request = new DescribeRegionsRequest().withRegionNames(region);

                DescribeRegionsResult result = client.describeRegions(request);
                checkArgument(result.getRegions().size() == 1, "Invalid region name %s. Expected one result found %s",
                    region, result.getRegions());

                LOG.info("<< Using endpoint {} for region {}", result.getRegions().get(0).getEndpoint(), region);
                client.setEndpoint(result.getRegions().get(0).getEndpoint());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.