code: func ProcessYAML(input []byte, options *ProcessorOptions) ([]byte, error) {
  
  	// Convert short form intrinsic functions (e.g. !Sub) to long form
  	registerTagMarshallers()
  
  	data, err := yamlwrapper.YAMLToJSON(input)
  	if err != nil {
  		return nil, fmt.Errorf("invalid YAML template: %s", err)
  	}
  
  	return ProcessJSON(data, options)
  
  }
docs: // ProcessYAML recursively searches through a byte array of JSON data for all
  // AWS CloudFormation intrinsic functions, resolves them, and then returns
  // the resulting  interface{} object.