Package com.amazonaws.services.elasticbeanstalk.model

Examples of com.amazonaws.services.elasticbeanstalk.model.DescribeEnvironmentsRequest


  @Inject
  public EnvironmentDescription getEnvironmentDescription(@Named("beanstalk.env.id") String envId,
                                                          AWSElasticBeanstalk eb) {
    DescribeEnvironmentsResult
        environments =
        eb.describeEnvironments(new DescribeEnvironmentsRequest().withEnvironmentIds(envId));

    List<EnvironmentDescription> envs = environments.getEnvironments();

    if (envs.isEmpty()) {
      return null;
View Full Code Here


  @Singleton
  @Named("beanstalk.app.name")
  public String getAppName(@Named("beanstalk.env.id") String envId, AWSElasticBeanstalk eb) {
    DescribeEnvironmentsResult
        environments =
        eb.describeEnvironments(new DescribeEnvironmentsRequest().withEnvironmentIds(envId));

    List<EnvironmentDescription> envs = environments.getEnvironments();

    if (envs.isEmpty()) {
      return "n/a";
View Full Code Here

  protected EnvironmentDescription lookupEnvironment(String applicationName, String environmentCNamePrefix, String environmentName) throws MojoExecutionException {
    if (isBlank(environmentCNamePrefix) && isBlank(environmentName))
      throw new MojoExecutionException("You must declare either cnamePrefix or environmentName");

    DescribeEnvironmentsRequest req = new DescribeEnvironmentsRequest()
        .withApplicationName(applicationName);
    DescribeEnvironmentsResult result = null;

    result = getService().describeEnvironments(req);
View Full Code Here

  File outputFile;

  @Override
  protected Object executeInternal() throws MojoExecutionException,
      MojoFailureException {
    DescribeEnvironmentsRequest req = new DescribeEnvironmentsRequest();

    req.setApplicationName(applicationName);
    req.setIncludeDeleted(includeDeleted);

    // TODO add environmentNames / environmentIds / includeDeletedBackTo

    DescribeEnvironmentsResult result = getService().describeEnvironments(req);
   
View Full Code Here

  protected Collection<EnvironmentDescription> getEnvironmentsFor(
      String applicationName) {
    /*
     * Requests
     */
    DescribeEnvironmentsRequest req = new DescribeEnvironmentsRequest()
        .withApplicationName(applicationName).withIncludeDeleted(false);

    return getService().describeEnvironments(req).getEnvironments();
  }
View Full Code Here

    do {
      if (timedOutP(expiresAt))
        throw new MojoExecutionException("Timed out");

      DescribeEnvironmentsRequest req = new DescribeEnvironmentsRequest()
          .withApplicationName(applicationName).withEnvironmentIds(
              environmentId);
     
      if (statusToWaitFor.startsWith("Terminat"))
        req.withIncludeDeleted(true);

      DescribeEnvironmentsResult result = service.describeEnvironments(req);
     
      boolean covered = false;
View Full Code Here

  protected EnvironmentDescription lookupEnvironment(String applicationName, String environmentCNamePrefix) throws MojoExecutionException {
    if (isBlank(environmentCNamePrefix))
      throw new MojoExecutionException("You must declare cnamePrefix");

    DescribeEnvironmentsRequest req = new DescribeEnvironmentsRequest()
        .withApplicationName(applicationName);
    DescribeEnvironmentsResult result = null;

    result = getService().describeEnvironments(req);
View Full Code Here

  protected Collection<EnvironmentDescription> getEnvironmentsFor(
      String applicationName) {
    /*
     * Requests
     */
    DescribeEnvironmentsRequest req = new DescribeEnvironmentsRequest()
        .withApplicationName(applicationName).withIncludeDeleted(false);

    return getService().describeEnvironments(req).getEnvironments();
  }
View Full Code Here

    do {
      if (timedOutP(expiresAt))
        throw new MojoExecutionException("Timed out");

      DescribeEnvironmentsRequest req = new DescribeEnvironmentsRequest()
          .withApplicationName(applicationName).withEnvironmentIds(
              environmentId);
     
      if (statusToWaitFor.startsWith("Terminat"))
        req.withIncludeDeleted(true);

      DescribeEnvironmentsResult result = service.describeEnvironments(req);
     
      boolean covered = false;
View Full Code Here

    do {
      if (timedOutP(expiresAt))
        throw new MojoExecutionException("Timed out");

      DescribeEnvironmentsRequest req = new DescribeEnvironmentsRequest()
          .withEnvironmentNames(this.environmentName);

      DescribeEnvironmentsResult result = service.describeEnvironments(req);

      for (EnvironmentDescription d : result.getEnvironments()) {
View Full Code Here

TOP

Related Classes of com.amazonaws.services.elasticbeanstalk.model.DescribeEnvironmentsRequest

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.