code: func (c *Client) CreateWAF(i *CreateWAFInput) (*WAF, error) {
  	if i.Service == "" {
  		return nil, ErrMissingService
  	}
  
  	if i.Version == 0 {
  		return nil, ErrMissingVersion
  	}
  
  	path := fmt.Sprintf("/service/%s/version/%d/wafs", i.Service, i.Version)
  	resp, err := c.PostJSONAPI(path, i, nil)
  	if err != nil {
  		return nil, err
  	}
  
  	var waf WAF
  	if err := jsonapi.UnmarshalPayload(resp.Body, &waf); err != nil {
  		return nil, err
  	}
  	return &waf, nil
  }
docs: // CreateWAF creates a new Fastly WAF.