1 Answer
- Newest
- Most votes
- Most comments
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.
answered 5 months ago
Relevant content
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- How do I use an interface VPC endpoint to access an API Gateway private REST API in another account?AWS OFFICIALUpdated 6 months ago