Policy
Represents a complete policy resource within the AgentCore Policy system. Policies are ARN-able resources that contain Cedar policy statements and associated metadata for controlling agent behavior and access decisions. Each policy belongs to a policy engine and defines fine-grained authorization rules that are evaluated in real-time as agents interact with tools through Gateway. Policies use the Cedar policy language to specify who (principals based on OAuth claims like username, role, or scope) can perform what actions (tool calls) on which resources (Gateways), with optional conditions for attribute-based access control. Multiple policies can apply to a single request, with Cedar's forbid-wins semantics ensuring that security restrictions are never accidentally overridden.
Types
Properties
The Cedar policy statement that defines the access control rules. This contains the actual policy logic used for agent behavior control and access decisions.
A human-readable description of the policy's purpose and functionality. Limited to 4,096 characters, this helps administrators understand and manage the policy.
The identifier of the policy engine that manages this policy. This establishes the policy engine context for policy evaluation and management.
The current status of the policy.
Additional information about the policy status. This provides details about any failures or the current state of the policy lifecycle.