AWS CDK policy validation at synthesis time - AWS Cloud Development Kit (AWS CDK) v2
By using the Validations class, you can add validation plugins, custom warnings and errors, and acknowledgments to your AWS CDK application. Validation runs immediately after synthesis.