Package com.amazonaws.services.elasticbeanstalk.model

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


    ListIterator<ConfigurationOptionSetting> listIterator = newOptionSettings
        .listIterator();

    while (listIterator.hasNext()) {
      ConfigurationOptionSetting curOptionSetting = listIterator.next();

      /*
       * Filters out harmful options
       *
       * I really mean harmful - If you mention a terminated environment
       * settings, Elastic Beanstalk will accept, but this might lead to
       * inconsistent states, specially when creating / listing environments.
       *
       * Trust me on this one.
       */
      boolean bInvalid = isBlank(curOptionSetting.getValue());

      if (!bInvalid)
        bInvalid |= (curOptionSetting.getNamespace().equals(
            "aws:cloudformation:template:parameter") && curOptionSetting
            .getOptionName().equals("AppSource"));

      if (!bInvalid)
        bInvalid |= (curOptionSetting.getValue().contains(curEnv
            .getEnvironmentId()));

      if (bInvalid)
        listIterator.remove();
    }
View Full Code Here

TOP

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

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.