Unfortunately I am not aware of a way to do this current. Though I can’t think of any reason why we wouldn’t support that. Please feel free to open a new issue at
https://github.com/pulumi/pulumi/issues/new, and we can look into adding that in a future SDK release.