1import * as AWS from "alchemy/AWS";
2import * as Effect from "effect/Effect";
3import * as HttpServerResponse from "effect/http/HttpServerResponse";
4
5const main = import.meta.url;
6
7/**
8 * Minimal Lambda for API Gateway `AWS_PROXY` — returns plain text.
9 */
10export default class JobFunction extends AWS.Lambda.Function<AWS.Lambda.Function>()(
11 "JobFunction",
12 {
13 main,
14 },
15 Effect.gen(function* () {
16 return {
17 fetch: Effect.gen(function* () {
18 return HttpServerResponse.text("Hello from REST API + Lambda");
19 }),
20 };
21 }),
22) {}