generate_result: Parse the content of an event and pass it through the handler...

View source: R/handle-event.R

generate_resultR Documentation

Parse the content of an event and pass it through the handler function

Description

Parse the content of an event and pass it through the handler function

Usage

generate_result(event, config = lambda_config(), deserialiser = NULL)

Arguments

event

the response received from querying the next invocation endpoint.

config

A list of configuration values as created by the lambda_config function.

Value

An object of class the same as event. The object contains a result value, and the result_calculated attribute is set to TRUE.


lambdr documentation built on Nov. 25, 2023, 5:08 p.m.