pulumi / pulumi-ai

226 stars 16 forks source link

Pulumi AI doesn't use typed properties all the time #36

Closed jaxxstorm closed 5 months ago

jaxxstorm commented 1 year ago

What happened?

Pulumi AI most often uses untyped dicts in Python, however sometimes if you push it, it will use the typed properties

Expected Behavior

Pulumi AI in python should use typed properties

Steps to reproduce

If I ask Pulumi AI to create something in datadog, say:

Create datadog custom pipeline with an attribute processor.

It will use an untyped dict.

If I explicitly ask it to use properties, say:

Create a Datadog attribute processor and then add it to a custom pipeline

Sometimes it creates the resource with the properties, sometimes it doesn't

Output of pulumi about

n/a

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

lukehoban commented 5 months ago

It now consistently uses classes. E.g.