List of usage examples for com.amazonaws.services.elasticbeanstalk.model DescribeConfigurationSettingsRequest withEnvironmentName
public DescribeConfigurationSettingsRequest withEnvironmentName(String environmentName)
The name of the environment to describe.
From source file:br.com.ingenieux.mojo.beanstalk.config.DescribeConfigurationSettingsMojo.java
License:Apache License
protected Object executeInternal() throws MojoExecutionException, MojoFailureException { boolean bTemplateNameDefined = isNotBlank(templateName) && !GlobUtil.hasWildcards(templateName); DescribeConfigurationSettingsRequest req = new DescribeConfigurationSettingsRequest() .withApplicationName(applicationName); if (bTemplateNameDefined) { req.withTemplateName(templateName); } else if (null != curEnv) { req.withEnvironmentName(curEnv.getEnvironmentName()); } else {//from ww w .j a v a 2 s .c o m getLog().warn("You must supply a templateName or environmentName. Ignoring"); return null; } getLog().info("Request: " + req); return getService().describeConfigurationSettings(req); }