View a markdown version of this page

Validate and test policies - Amazon Bedrock AgentCore

Validate and test policies

Before deploying policies to production, Policy in AgentCore provides validation capabilities to catch errors and identify potential issues. Validation works differently depending on whether you are generating policies from natural language or creating and updating policies directly.

Schema checks always run to verify that policies comply with the Cedar schema for your gateways. Semantic validation (automated reasoning) detects security and logic issues and can be controlled through the validationMode parameter. For more information about these capabilities and the validation modes, see Validation and analysis overview.