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

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

Introduction

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

Prototype


public DescribeConfigurationSettingsRequest withTemplateName(String templateName) 

Source Link

Document

The name of the configuration template 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 {// ww w.  j  av  a2 s.c om
        getLog().warn("You must supply a templateName or environmentName. Ignoring");

        return null;
    }

    getLog().info("Request: " + req);

    return getService().describeConfigurationSettings(req);
}