Skip to content

(aws_cdk): Allow Python Path objects into functions that need paths #4717

Open
@InvincibleRMC

Description

@InvincibleRMC

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.

Code.from_asset(str(Path().cwd() / 'aws_infrastructure' / 'lambda_functions')),

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.154.1 (build febce9d)

Environment details (OS name and version, etc.)

Ubuntu 24.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumMedium work item – a couple days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions