1 回答
- 最新
- 投票最多
- 评论最多
0
In my case, the permissions are associated with the API Gateway method. So what I did to remove them was:
(TypeScript CDK)
const permissionsToRemove = method.node.children.filter(c => c instanceof CfnPermission);
permissionsToRemove.forEach(permission => method.node.tryRemoveChild(permission.node.id));
Where method
is a Method type from API Gateway.
已回答 5 个月前
相关内容
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前