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

[source, js]
----
const response = await client.snapshot.createRepository({
  name: "my-repo",
  repository: {
    type: "s3",
    settings: {
      bucket: "repo-bucket",
      client: "elastic-internal-71bcd3",
      base_path: "myrepo",
      readonly: true,
    },
  },
});
console.log(response);
----
