1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
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
});
});
respondido há um ano
Conteúdo relevante
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 2 meses
- AWS OFICIALAtualizada há 2 anos