Resolves the name used by the directly invoked sample Lambda.
Extracts and validates the name from the event, falling back to "world"
if not provided or if the provided value is empty after trimming.
Returns
Normalized input with resolved name and source tracking
Example
// With provided name constinput = resolveDirectHelloInput({ name:'Bayu' }); // { name: 'Bayu', source: 'event' }
Example
// Empty string falls back to default constinput = resolveDirectHelloInput({ name:' ' }); // { name: 'world', source: 'default' }
Example
// Undefined/missing event falls back to default constinput = resolveDirectHelloInput(); // { name: 'world', source: 'default' }
Function
resolveDirectHelloInput
Resolves the name used by the directly invoked sample Lambda. Extracts and validates the name from the event, falling back to "world" if not provided or if the provided value is empty after trimming.
Returns
Normalized input with resolved name and source tracking
Example
Example
Example
Author
Bayu Dwiyan Satria
Since
1.0.0
See
directHelloHandler