Sample AWS Lambda handler for API Gateway HTTP API (v2) events.
Accepts HTTP GET requests with optional path or query parameters to customize
the greeting recipient. Returns a JSON response with greeting, request metadata,
and input resolution details.
Supported invocation patterns:
GET /hello — greeting with default name "world"
GET /hello/{name} — greeting with path parameter
GET /hello?name=value — greeting with query parameter
Function
helloHandler
Sample AWS Lambda handler for API Gateway HTTP API (v2) events. Accepts HTTP GET requests with optional path or query parameters to customize the greeting recipient. Returns a JSON response with greeting, request metadata, and input resolution details.
Supported invocation patterns:
GET /hello— greeting with default name "world"GET /hello/{name}— greeting with path parameterGET /hello?name=value— greeting with query parameterReturns
HTTP response with 200 status and JSON body
Example
Author
Bayu Dwiyan Satria
Since
1.0.0
See