code: func (p *Provider) ValidateResource(
  	t string, c *terraform.ResourceConfig) ([]string, []error) {
  	r, ok := p.ResourcesMap[t]
  	if !ok {
  		return nil, []error{fmt.Errorf(
  			"Provider doesn't support resource: %s", t)}
  	}
  
  	return r.Validate(c)
  }
docs: // ValidateResource implementation of terraform.ResourceProvider interface.