-
Notifications
You must be signed in to change notification settings - Fork 472
Tech debt: Simplify resolver subclasses #8122
Copy link
Copy link
Open
Labels
tech-debtTechnical Debt tasksTechnical Debt tasks
Description
Why is this needed?
LambdaFunctionUrlResolver, VPCLatticeResolver, VPCLatticeV2Resolver, ALBResolver are thin wrappers that only pass a different ProxyEventType to ApiGatewayResolver.__init__. The internal implementation can use a factory while keeping the public classes unchanged.
Steps:
- Extract common init logic
- Each resolver class becomes a thin shell that sets its proxy type
- No changes to public imports or class names
Which area does this relate to?
Event Handler - REST API
Suggestion
No response
Acknowledgment
- This request meets Powertools for AWS Lambda (Python) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Java, TypeScript, and .NET
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
tech-debtTechnical Debt tasksTechnical Debt tasks
Type
Projects
Status
Triage