-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(aws_cdk): Allow Python Path objects into functions that need paths #4717
Comments
@InvincibleRMC Good afternoon. If I understand your use case properly, you want to support for overloaded version of Thanks, |
That correctly summarizes my use case. If it is not possible I understand, it would just be more convenient. |
This could be JSII-related. Reaching out to core team for further inputs here. |
It's exactly as you said @ashishdhingra. We have to be multi-language compatible, and not all languages have a We could do the language-specific conversion in the Python runtime over in the jsii repository: https://github.com/aws/jsii. This issue makes for a good feature request over there. But again, unlikely to be done by us soon. I would accept someone submitting it if they can demonstrate a high degree of confidence that they understand how jsii works and why this change will not cause any unexpected problems. |
Describe the feature
Allow using Path object in python for when a path to something is needed.
Use Case
For example to use a Code.from_asset() function I need to turn my Path object into str. It would be nice to not have to do this cast.
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.154.1 (build febce9d)
Environment details (OS name and version, etc.)
Ubuntu 24.04
The text was updated successfully, but these errors were encountered: