code: func (c *CloudFormation) ValidateTemplate(input *ValidateTemplateInput) (*ValidateTemplateOutput, error) {
  	req, out := c.ValidateTemplateRequest(input)
  	return out, req.Send()
  }
docs: // ValidateTemplate API operation for AWS CloudFormation.
  //
  // Validates a specified template. AWS CloudFormation first checks if the template
  // is valid JSON. If it isn't, AWS CloudFormation checks if the template is
  // valid YAML. If both these checks fail, AWS CloudFormation returns a template
  // validation error.
  //
  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  // with awserr.Error's Code and Message methods to get detailed information about
  // the error.
  //
  // See the AWS API reference guide for AWS CloudFormation's
  // API operation ValidateTemplate for usage and error information.
  // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/ValidateTemplate