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