code: func (s *State) Resource(addr addrs.AbsResource) *Resource {
  	ms := s.Module(addr.Module)
  	if ms == nil {
  		return nil
  	}
  	return ms.Resource(addr.Resource)
  }
docs: // Resource returns the state for the resource with the given address, or nil
  // if no such resource is tracked in the state.