Skip to content

Tech debt: Simplify resolver subclasses #8122

@leandrodamascena

Description

@leandrodamascena

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:

  1. Extract common init logic
  2. Each resolver class becomes a thin shell that sets its proxy type
  3. No changes to public imports or class names

Which area does this relate to?

Event Handler - REST API

Suggestion

No response

Acknowledgment

Metadata

Metadata

Labels

tech-debtTechnical Debt tasks

Projects

Status

Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions