code: func (s *SyncState) DeposeResourceInstanceObject(addr addrs.AbsResourceInstance) DeposedKey {
  	s.lock.Lock()
  	defer s.lock.Unlock()
  
  	ms := s.state.Module(addr.Module)
  	if ms == nil {
  		return NotDeposed
  	}
  
  	return ms.deposeResourceInstanceObject(addr.Resource, NotDeposed)
  }
docs: // DeposeResourceInstanceObject moves the current instance object for the
  // given resource instance address into the deposed set, leaving the instance
  // without a current object.
  //
  // The return value is the newly-allocated deposed key, or NotDeposed if the
  // given instance is already lacking a current object.
  //
  // If the containing module for this resource or the resource itself are not
  // already tracked in state then there cannot be a current object for the
  // given instance, and so NotDeposed will be returned without modifying the
  // state at all.