busy-toothbrush-90194
10/06/2023, 2:45 PMconst api = new apigateway.RestAPI("api", {
routes: [
{
path: "/",
method: "GET",
eventHandler: helloHandler,
},
],
});
iamAuthEnabled
is the key, got confused between apigateway.RestAPI
& apigateway.RestApi