Environment
yaml arg type hints don't indicate all accepted inputs
#448
Labels
kind/enhancement
Improvements or new features
Milestone
What happened?
The docs and type hints state that the Environment resource expects pulumi.Asset which cannot handle outputs.
This means you can't have outputs in the yaml.
If you ignore the type hints, you can input an output (see example below) and it works fine but breaks type checking. Could you please check and update the type hints?
Example
Additional context
Here's a version that works and gets type checked successfully:
Nevertheless it seems to accept
Input[str]
for the yaml arg as well, but the type hints don't indicate that. Therefore I'd expect the wrapping intopulumi.StringAsset
would be unnecessary if the type hints were extended.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).
The text was updated successfully, but these errors were encountered: