com.amazonaws.services.elasticbeanstalk.model.CreateApplicationRequest Java Examples
The following examples show how to use
com.amazonaws.services.elasticbeanstalk.model.CreateApplicationRequest.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CreateBeanstalkApplicationTask.java From aws-ant-tasks with Apache License 2.0 | 5 votes |
public void execute() { checkParams(); AWSElasticBeanstalkClient client = getOrCreateClient(AWSElasticBeanstalkClient.class); CreateApplicationRequest request = new CreateApplicationRequest( applicationName).withDescription(applicationDescription); System.out.println("Creating application " + applicationName + "..."); try { client.createApplication(request); } catch (Exception e) { throw new BuildException( "Exception while attempting to create application: " + e.getMessage(), e); } System.out.println("Application created successfully"); }
Example #2
Source File: BeanstalkConnector.java From cloudml with GNU Lesser General Public License v3.0 | 5 votes |
public void createApplication(String name) { CreateApplicationRequest cr = new CreateApplicationRequest(); cr.setApplicationName(name); cr.setDescription("Generated by CloudML"); CreateApplicationResult res = beanstalkClient.createApplication(cr); journal.log(Level.INFO, ">> Status of the application creation: " + res.toString()); }