Skip to content
Documentation
@notation/aws
API Gateway

API Gateway

@notation/aws/api-gateway provides a set of modules to build an API gateway that calls lambda functions.

Example

infra/api.ts
import { api, router } from "@notation/aws/api-gateway";
import { greet, setGreeting } from "runtime/greeting.fn";
 
const myApi = api({ name: "myApiName" });
const myApiRouter = router(myApi);
 
myApiRouter.get("/greeting", greet);

Modules