// This file is autogenerated, DO NOT EDIT
// indices/aliases.asciidoc:16

[source, python]
----
resp = client.indices.update_aliases(
    actions=[
        {
            "add": {
                "index": "my-data-stream",
                "alias": "my-alias"
            }
        }
    ],
)
print(resp)
----
