Create a policy engine
A policy engine is a collection of policies that evaluates and authorizes agent tool calls. When associated with a gateway, the policy engine intercepts all agent requests and determines whether to allow or deny each action based on the defined policies.
Prerequisites
Before creating a policy engine, ensure you have a gateway setup. For more information, see Building a gateway.
Create a policy engine
The following shows how to create a policy engine.
Using the policy engine ARN
The policyEngineArn returned when creating a policy engine is used for two main
purposes:
-
Creating policies - Use the ARN when adding policies to the engine
-
Associating with gateways - Use the ARN to enable policy enforcement on gateways
For more information about creating policies, see Create a policy.