Examples of DescribeLaunchConfigurationsRequest


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

    }
  }

  @Override
  public List<LaunchConfiguration> call() {
    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

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

        }

        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));
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.