ilm.putLifecycle

edit
client.ilm.putLifecycle({
  policy: string,
  body: object
})

Reference

policy

string - The name of the index lifecycle policy

body

object - The lifecycle policy definition to register