translateEventAndContext
Stentor API Reference / stentor-runtime/src / translateEventAndContext
Function: translateEventAndContext()
translateEventAndContext(
event,context):object
Defined in: packages/stentor-runtime/src/translateEventAndContext.ts:9
Pick out the data we need to run stentor depending on the environment we run in. Currently we support AWS default lambda proxy, virtual bst and bst proxy (local debugging).
Parametersβ
eventβ
any
contextβ
any
Returnsβ
object
eventβ
event:
object
contextβ
context:
RuntimeContext