code: def config_name_from_full_name(full_name):
      
      projects, _, configs, result = full_name.split("/")
      if projects != "projects" or configs != "configs":
          raise ValueError(
              "Unexpected format of resource",
              full_name,
              'Expected "projects/{proj}/configs/{cfg}"',
          )
      return result
docs: Extract the config name from a full resource name.
  
        >>> config_name_from_full_name('projects/my-proj/configs/my-config')
        "my-config"
  
      :type full_name: str
      :param full_name:
          The full resource name of a config. The full resource name looks like
          ``projects/project-name/configs/config-name`` and is returned as the
          ``name`` field of a config resource.  See
          https://cloud.google.com/deployment-manager/runtime-configurator/reference/rest/v1beta1/projects.configs
  
      :rtype: str
      :returns: The config's short name, given its full resource name.
      :raises: :class:`ValueError` if ``full_name`` is not the expected format