code: func (r *Resource) Validate(c *terraform.ResourceConfig) ([]string, []error) {
  	warns, errs := schemaMap(r.Schema).Validate(c)
  
  	if r.DeprecationMessage != "" {
  		warns = append(warns, r.DeprecationMessage)
  	}
  
  	return warns, errs
  }
docs: // Validate validates the resource configuration against the schema.