You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: Add Event handler for Amazon VPC Lattice #2577
With the general availability of Amazon VPC Lattice and considering that VPC Lattice supports Lambda as a target for VPC Target Group, then Powertools should add VPC Lattice as a new Event Handler to help customers easily manipulate routes, handle errors, custom response and so on.
This should have the same capabilities as other event handlers.
Solution/User Experience
importrequestsfromrequestsimportResponsefromaws_lambda_powertools.event_handlerimportVPCLatticeResolverfromaws_lambda_powertools.utilities.typingimportLambdaContextapp=VPCLatticeResolver()
@app.get("/todo")defget_todo():
todos: Response=requests.get("https://jsonplaceholder.typicode.com/todos")
todos.raise_for_status()
# for brevity, we'll limit to the first 10 onlyreturn {"todos": todos.json()[:10]}
deflambda_handler(event: dict, context: LambdaContext) ->dict:
returnapp.resolve(event, context)
Activity
rubenfonseca commentedon Jun 27, 2023
Super interesting @leandrodamascena, this seems bigger than the event parser though. But let me know if you want to work on it :)
rubenfonseca commentedon Jun 28, 2023
Removed
help wantedsince there's a PR alreadygithub-actions commentedon Jun 28, 2023
This issue is now closed. Please be mindful that future comments are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
github-actions commentedon Jun 30, 2023
This is now released under 2.19.0 version!