Search in sources :

Example 1 with DeleteConfigurationTemplateRequest

use of com.amazonaws.services.elasticbeanstalk.model.DeleteConfigurationTemplateRequest in project Synapse-Stack-Builder by Sage-Bionetworks.

the class ElasticBeanstalkSetup method deleteConfigurationTemplate.

public void deleteConfigurationTemplate(final String templateName) {
    DescribeConfigurationOptionsResult desc = describeConfigurationTemplate(templateName);
    if (desc != null) {
        DeleteConfigurationTemplateRequest req = new DeleteConfigurationTemplateRequest();
        req.setApplicationName(config.getElasticBeanstalkApplicationName());
        req.setTemplateName(templateName);
        beanstalkClient.deleteConfigurationTemplate(req);
    }
}
Also used : DeleteConfigurationTemplateRequest(com.amazonaws.services.elasticbeanstalk.model.DeleteConfigurationTemplateRequest) DescribeConfigurationOptionsResult(com.amazonaws.services.elasticbeanstalk.model.DescribeConfigurationOptionsResult)

Aggregations

DeleteConfigurationTemplateRequest (com.amazonaws.services.elasticbeanstalk.model.DeleteConfigurationTemplateRequest)1 DescribeConfigurationOptionsResult (com.amazonaws.services.elasticbeanstalk.model.DescribeConfigurationOptionsResult)1