@flow-state-dev/node/aws-lambda
Interfaces
LambdaHandlerOptions
Lambda hosting options.
Extends
Properties
allowUnauthenticated?
allowUnauthenticated?: boolean;
Explicitly permit flows that trust a caller-supplied userId.
basePath?
basePath?: string;
API mount prefix. Default "/api/flows". Interpolated raw into a Hono route
pattern, so avoid : and * (Hono pattern syntax) in a custom value.
Inherited from
healthPath?
healthPath?: string;
Health endpoint path. Default "/healthz". 200 once ready, 503 before.
Inherited from
servesPush?
servesPush?: boolean;
Whether the host running this app serves the push socket. Default
false: the app reports push: null in GET /capabilities and answers
the push mint 404, even over a router another host serves push for, so a
client reads on its timer instead of minting for a socket this host
doesn't open. serve() sets it when it serves push.
Inherited from
Functions
createLambdaHandler()
function createLambdaHandler(app, options?): Handler;
Build an AWS Lambda streaming handler for app (a FlowState or a raw
FlowApiRouter). The returned handler is the Lambda export; configure the
function's Function URL with invokeMode: RESPONSE_STREAM so SSE streams.
Parameters
app
FlowState<FlowStateSettings> | FlowApiRouter
options?
Returns
Handler