Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide concrete example of building custom events #640

Open
heeki opened this issue Sep 20, 2023 · 1 comment
Open

Provide concrete example of building custom events #640

heeki opened this issue Sep 20, 2023 · 1 comment

Comments

@heeki
Copy link

heeki commented Sep 20, 2023

To help us debug your issue fill in the basic information below using the options provided

Serverless Java Container version: eg. 1.5
v1 (Spring Boot 2) and v2 (Spring Boot 3.x)

Implementations: Jersey / Spring / Spring Boot / Spring Boot 2 / Spark
Spring Boot

Framework version: eg SpringBoot 2.2.6.RELEASE
Spring Boot 2.x and Spring Boot 3.x

Frontend service: REST API / HTTP API / ALB
VPC Lattice

Deployment method: eg SAM, Serverless Framework, Console
N/A

Scenario

Describe what you are trying to accomplish
This is a more general ask related to this issue. The documentation provided here indicates that just four classes need to be implemented to build the custom class. However, pursuant of trying to implement the VPC Lattice event, I discovered that in addition to creating the POJOs for the event model itself, I needed to also implement ExceptionHandler, SecurityContext, SecurityContextWriter. It would helpful to include a practical example of how to create the custom event, outline the minimum and optional attributes for the servlet request, and how to set fields for the response payload.

Expected behavior

Describe how you would expect the application to behave
Ability to simply or at least clear extend the framework with custom event payloads

Actual behavior

Describe what you are seeing instead
Difficulty following the documentation

@mbfreder
Copy link
Contributor

Thanks for raising this. I'll discuss this internally with the team and get back to you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants