AWS CDK policy validation at synthesis time - AWS Cloud Development Kit (AWS CDK) v2
By using the appropriate policy validation plugin, you can make the AWS CDK application check the generated AWS CloudFormation template against your policies immediately after synthesis.