// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.mjs` to generate the docs examples

[source, js]
----
const response = await client.ccr.pauseFollow({
  index: "follower_index",
});
console.log(response);

const response1 = await client.indices.close({
  index: "follower_index",
});
console.log(response1);

const response2 = await client.ccr.follow({
  index: "follower_index",
  wait_for_active_shards: 1,
  remote_cluster: "remote_cluster",
  leader_index: "leader_index",
});
console.log(response2);
----
