def METHOD_NAME(self, name, body, params=None):
    """
    `<https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-auto-follow-pattern.html>`_
    :arg name: The name of the auto follow pattern.
    :arg body: The specification of the auto follow pattern
    """
    for param in (name, body):
        if param in SKIP_IN_PATH:
            raise ValueError("Empty value passed for a required argument.")
    return self.transport.perform_request(
        "PUT", _make_path("_ccr", "auto_follow", name), params=params, body=body
    )