List of usage examples for com.amazonaws.services.cloudformation.model UpdateStackSetRequest UpdateStackSetRequest
UpdateStackSetRequest
From source file:de.taimos.pipeline.aws.cloudformation.stacksets.CloudFormationStackSet.java
License:Apache License
public UpdateStackSetResult update(String templateBody, String templateUrl, Collection<Parameter> params, Collection<Tag> tags) { this.listener.getLogger().format("Updating CloudFormation stack set %s %n", this.stackSet); UpdateStackSetRequest req = new UpdateStackSetRequest().withStackSetName(this.stackSet) .withCapabilities(Capability.CAPABILITY_IAM, Capability.CAPABILITY_NAMED_IAM).withParameters(params) .withTags(tags);/*from ww w . ja v a 2s .c o m*/ if (templateBody != null && !templateBody.isEmpty()) { req.setTemplateBody(templateBody); } else if (templateUrl != null && !templateUrl.isEmpty()) { req.setTemplateURL(templateUrl); } else { req.setUsePreviousTemplate(true); } UpdateStackSetResult result = this.client.updateStackSet(req); this.listener.getLogger().format("Updated CloudFormation stack set %s %n", this.stackSet); return result; }