code: def put_lifecycle(self, policy=None, body=None, params=None):
          
          return self.transport.perform_request(
              "PUT", _make_path("_ilm", "policy", policy), params=params, body=body
          )
docs: `<https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-put-lifecycle.html>`_
  
          :arg policy: The name of the index lifecycle policy
          :arg body: The lifecycle policy definition to register