1回答
- 新しい順
- 投票が多い順
- コメントが多い順
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
});
});
回答済み 1年前
関連するコンテンツ
- AWS公式更新しました 10ヶ月前