List of usage examples for com.amazonaws.services.cloudformation.model ValidateTemplateRequest withTemplateBody
public ValidateTemplateRequest withTemplateBody(String templateBody)
Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes.
From source file:br.com.ingenieux.mojo.cloudformation.PushStackMojo.java
License:Apache License
private ValidateTemplateResult validateTemplate() throws Exception { final ValidateTemplateRequest req = new ValidateTemplateRequest(); if (null != destinationS3Uri) { req.withTemplateURL(generateExternalUrl(this.destinationS3Uri)); } else {/*w w w . j a v a 2 s . com*/ req.withTemplateBody(templateBody); } final ValidateTemplateResult result = getService().validateTemplate(req); getLog().info("Validation Result: " + result); return result; }