1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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
});
});
répondu il y a un an
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 ans