Skip to main content

translateEventAndContext

Stentor API Reference


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