aws / aws/aws-pdk

[FEATURE] Add custom folder path option for Smithy-generated handlers

Open
#860 5 comments 1 reaction 0 assignees View on GitHub
backlog feature-request needs-triage
Dominant language
TypeScript
Stars
451
Forks
84
Avg merge
20h 3m
Merged PRs (30d)
1

Description

### Describe the feature

Add an option in the Smithy handler trait to define a custom folder path for the generated handers.

### Use Case

Current settings generate all handlers inside the `src` and `test` folders with a flat hierarchy. Need an option to customize the individual handler path.

### Proposed Solution

Add a new optional `subdir` option to the Smithy handler trait?

### Other Information

We may also need to add this option for async handlers.

### Acknowledgements

- [X] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### PDK version used

0.23.66

### What languages will this feature affect?

Typescript, Java, Python

### Environment details (OS name and version, etc.)

Linux, Windows etc

Contributor guide

Open the contributing guide

Research direction

Locate the Smithy handler trait and the generator paths for TypeScript, Java, and Python, then inspect how synchronous and asynchronous handlers choose their output folders. Confirm the intended optional subdir behavior across src and test outputs; done means each affected language can generate handlers under the requested custom path without changing the default layout.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, python, typescript
Domain
backend-api-design, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.