v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-141531,219979.8 KB

Creates a new policy engine within the AgentCore Policy system. A policy engine is a collection of policies that evaluates and authorizes agent tool calls. When associated with Gateways (each Gateway can be associated with at most one policy engine, but multiple Gateways can be associated with the same engine), the policy engine intercepts all agent requests and determines whether to allow or deny each action based on the defined policies. This is an asynchronous operation. Use the <a href="https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_GetPolicyEngine.html">GetPolicyEngine</a> operation to poll the <code>status</code> field to track completion.

post/policy-engines

Request body

namestring required

The customer-assigned immutable name for the policy engine. This name identifies the policy engine and cannot be changed after creation.

descriptionstring password

A human-readable description of the policy engine's purpose and scope (1-4,096 characters). This helps administrators understand the policy engine's role in the overall governance strategy. Document which Gateway this engine will be associated with, what types of tools or workflows it governs, and the team or service responsible for maintaining it. Clear descriptions are essential when managing multiple policy engines across different services or environments.

clientTokenstring

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request with the same client token, the service returns the same response without creating a duplicate policy engine.

encryptionKeyArnstring

The Amazon Resource Name (ARN) of the KMS key used to encrypt the policy engine data.

tagsobject

A map of tag keys and values to assign to an AgentCore Policy. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.

Response

Success

policyEngineIdstring required

The unique identifier for the created policy engine. This system-generated identifier consists of the user name plus a 10-character generated suffix and is used for all subsequent policy engine operations.

namestring required

The customer-assigned name of the created policy engine. This matches the name provided in the request and serves as the human-readable identifier.

createdAtstring date-time required

The timestamp when the policy engine was created. This is automatically set by the service and used for auditing and lifecycle management.

updatedAtstring date-time required

The timestamp when the policy engine was last updated. For newly created policy engines, this matches the <code>createdAt</code> timestamp.

policyEngineArnstring required

The Amazon Resource Name (ARN) of the created policy engine. This globally unique identifier can be used for cross-service references and IAM policy statements.

status'CREATING' | 'ACTIVE' | 'UPDATING' | 'DELETING' | 'CREATE_FAILED' | 'UPDATE_FAILED' | 'DELETE_FAILED' required

The current status of the policy engine. A status of <code>ACTIVE</code> indicates the policy engine is ready for use.

encryptionKeyArnstring

The Amazon Resource Name (ARN) of the KMS key used to encrypt the policy engine data.

descriptionstring password

A human-readable description of the policy engine's purpose.

statusReasonsString[] required

Additional information about the policy engine status. This provides details about any failures or the current state of the policy engine creation process.