I think I found it here - <https://github.com/pulumi/automation-api-examples/tree/main/python/pulumi...
a