/** * <p> * This is an alternative to specifying a template name. If specified, AWS Elastic Beanstalk sets the configuration * values to the default values associated with the specified solution stack. * </p> * <p> * For a list of current solution stacks, see <a * href="http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html">Elastic Beanstalk Supported * Platforms</a>. * </p> * * @param solutionStackName * This is an alternative to specifying a template name. If specified, AWS Elastic Beanstalk sets the * configuration values to the default values associated with the specified solution stack.</p> * <p> * For a list of current solution stacks, see <a * href="http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html">Elastic Beanstalk * Supported Platforms</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withSolutionStackName(String solutionStackName) { setSolutionStackName(solutionStackName); return this; }
/** * <p> * This is an alternative to specifying a template name. If specified, AWS Elastic Beanstalk sets the configuration * values to the default values associated with the specified solution stack. * </p> * <p> * For a list of current solution stacks, see <a * href="http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html">Elastic Beanstalk Supported * Platforms</a>. * </p> * * @param solutionStackName * This is an alternative to specifying a template name. If specified, AWS Elastic Beanstalk sets the * configuration values to the default values associated with the specified solution stack.</p> * <p> * For a list of current solution stacks, see <a * href="http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html">Elastic Beanstalk * Supported Platforms</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEnvironmentRequest withSolutionStackName(String solutionStackName) { setSolutionStackName(solutionStackName); return this; }
public void createEnvironment(String applicationName, String domainName, String envName, String stackName) { CreateEnvironmentRequest cr = new CreateEnvironmentRequest(); cr.setApplicationName(applicationName); cr.setEnvironmentName(envName); String stack = findSolutionStack(stackName); if (!stack.equals("")) { cr.setSolutionStackName(stack); CheckDNSAvailabilityResult r = checkDNS(domainName); if (r.isAvailable()) { cr.setCNAMEPrefix(domainName); CreateEnvironmentResult res = beanstalkClient.createEnvironment(cr); journal.log(Level.INFO, ">> Status of the environment creation: " + res.toString()); } else { journal.log(Level.INFO, ">> Status of the environment creation: Domain Name already existing"); } } else { journal.log(Level.INFO, ">> Status of the environment creation: This type of stack does not exist!"); } }
public String createEnvironmentWithWar(String applicationName, String domainName, String envName, String stackName, int minRam, String warFile, String versionLabel) { String endPoint=""; prepareWar(new File(warFile), versionLabel, applicationName); CreateEnvironmentRequest cr = new CreateEnvironmentRequest(); cr.setApplicationName(applicationName); cr.setEnvironmentName(envName); cr.setVersionLabel(versionLabel); String stack = findSolutionStack(stackName); if (!stack.equals("")) { cr.setSolutionStackName(stack); CheckDNSAvailabilityResult r = checkDNS(domainName); if (r.isAvailable()) { cr.setCNAMEPrefix(domainName); CreateEnvironmentResult res = beanstalkClient.createEnvironment(cr); endPoint=res.getEndpointURL(); journal.log(Level.INFO, ">> Status of the environment creation: " + res.toString()); } else { journal.log(Level.INFO, ">> Status of the environment creation: Domain Name already existing"); } } else { journal.log(Level.INFO, ">> Status of the environment creation: This type of stack does not exist!"); } return endPoint; }
request.setTemplateName(parentMojo.lookupTemplateName(context.getApplicationName(), context.getTemplateName())); } else if (StringUtils.isNotBlank(context.getSolutionStack())) { request.setSolutionStackName(context.getSolutionStack());