code: def _try_resolve_sam_resource_refs(self, input, supported_resource_refs):
          
          if not self._is_intrinsic_dict(input):
              return input
  
          function_type = list(input.keys())[0]
          return self.supported_intrinsics[function_type].resolve_resource_refs(input, supported_resource_refs)
docs: Try to resolve SAM resource references on the given template. If the given object looks like one of the
          supported intrinsics, it calls the appropriate resolution on it. If not, this method returns the original input
          unmodified.
  
          :param dict input: Dictionary that may represent an intrinsic function
          :param SupportedResourceReferences supported_resource_refs: Object containing information about available
              resource references and the values they resolve to.
          :return: Modified input dictionary with references resolved