// Apply implementation of terraform.ResourceProvider interface.
Apply implementation of terraform.ResourceProvider interface.
// Apply implementation of terraform . ResourceProvider interface .
func (p *Provider) Apply(
	info *terraform.InstanceInfo,
	s *terraform.InstanceState,
	d *terraform.InstanceDiff) (*terraform.InstanceState, error) {
	r, ok := p.ResourcesMap[info.Type]
	if !ok {
		return nil, fmt.Errorf("unknown resource type: %s", info.Type)
	}
	return r.Apply(s, d, p.meta)
}
func ( p * Provider ) Apply ( info * terraform . InstanceInfo , s * terraform . InstanceState , d * terraform . InstanceDiff ) ( * terraform . InstanceState , error ) { r , ok := p . ResourcesMap [ info . Type ] if ! ok { return nil , fmt . Errorf ( " " , info . Type ) } return r . Apply ( s , d , p . meta ) }
Apply implementation of terraform.ResourceProvider interface.
Apply implementation of terraform . ResourceProvider interface .