code: func (r *Resource) Id() string {
  	switch r.Mode {
  	case ManagedResourceMode:
  		return fmt.Sprintf("%s.%s", r.Type, r.Name)
  	case DataResourceMode:
  		return fmt.Sprintf("data.%s.%s", r.Type, r.Name)
  	default:
  		panic(fmt.Errorf("unknown resource mode %s", r.Mode))
  	}
  }
docs: // A unique identifier for this resource.