Skip to content
Documentation
@notation/aws
API

api

api(ApiConfig) => Api

Creates an API Gateway.

Parameters

type ApiConfig = {
  name: string; // the name of the API Gateway
};

Example

infra/api.ts
import { api } from "@notation/aws/api-gateway";
 
const myApi = api({ name: "my-api" });