// SetResourceProvider updates the resource-level metadata for the resource
// with the given address, creating the resource state for it if it doesn't
// already exist.
SetResourceProvider updates the resource-level metadata for the resource
with the given address, creating the resource state for it if it doesn't
already exist.
// SetResourceProvider updates the resource - level metadata for the resource // with the given address creating the resource state for it if it doesn ' t // already exist .
func (ms *Module) SetResourceProvider(addr addrs.Resource, provider addrs.AbsProviderConfig) {
	rs := ms.Resource(addr)
	if rs == nil {
		rs = &Resource{
			Addr:      addr.Absolute(ms.Addr),
			Instances: map[addrs.InstanceKey]*ResourceInstance{},
		}
		ms.Resources[addr.String()] = rs
	}
	rs.ProviderConfig = provider
}
func ( ms * Module ) SetResourceProvider ( addr addrs . Resource , provider addrs . AbsProviderConfig ) { rs := ms . Resource ( addr ) if rs == nil { rs = & Resource { Addr : addr . Absolute ( ms . Addr ) , Instances : map [ addrs . InstanceKey ] * ResourceInstance { } , } ms . Resources [ addr . String ( ) ] = rs } rs . ProviderConfig = provider }
SetResourceProvider updates the resource-level metadata for the resource
with the given address, creating the resource state for it if it doesn't
already exist.
SetResourceProvider updates the resource - level metadata for the resource with the given address creating the resource state for it if it doesn ' t already exist .