// This file is autogenerated, DO NOT EDIT
// modules/cluster/allocation_awareness.asciidoc:62

[source, python]
----
resp = client.cluster.put_settings(
    persistent={
        "cluster.routing.allocation.awareness.attributes": "rack_id"
    },
)
print(resp)
----
