Package com.amazonaws.services.autoscaling.model

Examples of com.amazonaws.services.autoscaling.model.DescribeLaunchConfigurationsResult


    DescribeLaunchConfigurationsRequest request = new DescribeLaunchConfigurationsRequest();
    if (this.launchConfigurations.isPresent()) {
      request.withLaunchConfigurationNames(this.launchConfigurations
          .get());
    }
    DescribeLaunchConfigurationsResult result = getClient().getApi()
        .describeLaunchConfigurations(request);
    return result.getLaunchConfigurations();
  }
View Full Code Here


        List<LaunchConfiguration> lcs = new LinkedList<LaunchConfiguration>();

        AmazonAutoScalingClient asgClient = asgClient();
        DescribeLaunchConfigurationsRequest request = new DescribeLaunchConfigurationsRequest()
        .withLaunchConfigurationNames(names);
        DescribeLaunchConfigurationsResult result = asgClient.describeLaunchConfigurations(request);

        lcs.addAll(result.getLaunchConfigurations());
        while (result.getNextToken() != null) {
            request.setNextToken(result.getNextToken());
            result = asgClient.describeLaunchConfigurations(request);
            lcs.addAll(result.getLaunchConfigurations());
        }

        LOGGER.info(String.format("Got %d launch configurations in region %s.", lcs.size(), region));
        return lcs;
    }
View Full Code Here

TOP

Related Classes of com.amazonaws.services.autoscaling.model.DescribeLaunchConfigurationsResult

Copyright © 2018 www.massapicom. 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.