Example usage for com.amazonaws.services.elasticbeanstalk.model DescribeConfigurationSettingsRequest withEnvironmentName

List of usage examples for com.amazonaws.services.elasticbeanstalk.model DescribeConfigurationSettingsRequest withEnvironmentName

Introduction

In this page you can find the example usage for com.amazonaws.services.elasticbeanstalk.model DescribeConfigurationSettingsRequest withEnvironmentName.

Prototype


public DescribeConfigurationSettingsRequest withEnvironmentName(String environmentName) 

Source Link

Document

The name of the environment to describe.

Usage

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);
}