code: func ProviderConfigName(t string, pcs []*ProviderConfig) string {
  	lk := ""
  	for _, v := range pcs {
  		k := v.Name
  		if strings.HasPrefix(t, k) && len(k) > len(lk) {
  			lk = k
  		}
  	}
  
  	return lk
  }
docs: // ProviderConfigName returns the name of the provider configuration in
  // the given mapping that maps to the proper provider configuration
  // for this resource.