Examples of describeReservedInstancesOfferings()


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

        return ec2Service.describeReservedInstances(describeReservedInstances);
    }

    public DescribeReservedInstancesOfferingsResponse describeReservedInstancesOfferings(DescribeReservedInstancesOfferings describeReservedInstancesOfferings) {
        AmazonEC2SkeletonInterface ec2Service = ServiceProvider.getInstance().getServiceImpl(AmazonEC2SkeletonInterface.class);
        return ec2Service.describeReservedInstancesOfferings(describeReservedInstancesOfferings);
    }

    public DescribeSecurityGroupsResponse describeSecurityGroups(DescribeSecurityGroups describeSecurityGroups) {
        AmazonEC2SkeletonInterface ec2Service = ServiceProvider.getInstance().getServiceImpl(AmazonEC2SkeletonInterface.class);
        return ec2Service.describeSecurityGroups(describeSecurityGroups);
View Full Code Here

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

        for (Region region: Region.getAllRegions()) {
            ec2Client.setEndpoint("ec2." + region.name + ".amazonaws.com");
            do {
                if (!StringUtils.isEmpty(token))
                    req.setNextToken(token);
                DescribeReservedInstancesOfferingsResult offers = ec2Client.describeReservedInstancesOfferings(req);
                token = offers.getNextToken();

                for (ReservedInstancesOffering offer: offers.getReservedInstancesOfferings()) {
                    if (offer.getProductDescription().indexOf("Amazon VPC") >= 0)
                        continue;
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.