1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
0
Figured it out. You have to use HttpRoute to do this as described here. You don't addRoutes()
you just create it. The main difference is that you need to do this once for every method.
In my case, I pass in an array of methods, then add then one at a time:
methods.forEach( (method) => {
const routeId = id + "-" + method.toLowerCase();
new HttpRoute(this.stack, routeId, {
httpApi: this.api,
routeKey: HttpRouteKey.with(props.path, method),
integration: httpIntegration,
authorizer: this.authorizer
});
});
con risposta un anno fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 3 anni fa