Sample AWS Lambda handler for direct invocation through AWS Lambda APIs or console.
No API Gateway or EventBridge trigger; invoked directly via aws lambda invoke or
through the Serverless Framework. Accepts a JSON event with optional name field
and returns a greeting response with metadata.
Function
directHelloHandler
Sample AWS Lambda handler for direct invocation through AWS Lambda APIs or console. No API Gateway or EventBridge trigger; invoked directly via
aws lambda invokeor through the Serverless Framework. Accepts a JSON event with optional name field and returns a greeting response with metadata.Returns
Greeting response with message and metadata
Example
// AWS CLI direct invocation
Example
// Invocation without name (uses default)
Author
Bayu Dwiyan Satria
Since
1.0.0
See