BedrockAgentCoreControlClient.create_policy_engine
rboto-bedrock-agentcore-control==0.4.0 · Service index · Types
Model summary (excerpt): 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...
Install and imports
from rboto import BedrockAgentCoreControlClient
from rboto_bedrock_agentcore_control.types import (
CreatePolicyEngineOutput,
)
Signature
async def create_policy_engine(
*,
name: str,
description: str | None = None,
client_token: str | None = None,
encryption_key_arn: str | None = None,
tags: dict[str, str] | None = None,
) -> CreatePolicyEngineOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
name |
Yes | The customer-assigned immutable name for the policy engine. This name identifies the policy engine and cannot be changed after creation. |
description |
No | 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... |
client_token |
No | 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. |
encryption_key_arn |
No | The Amazon Resource Name (ARN) of the KMS key used to encrypt the policy engine data. |
tags |
No | 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. |
Output
CreatePolicyEngineOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
policy_engine_id |
str |
Always present | — |
name |
str |
Always present | — |
created_at |
str |
Always present | — |
updated_at |
str |
Always present | — |
policy_engine_arn |
str |
Always present | — |
status |
PolicyEngineStatusOutput |
Always present | PolicyEngineStatusOutput |
encryption_key_arn |
str | None |
Always present | — |
description |
str | None |
Always present | — |
status_reasons |
list[str] |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_bedrock_agentcore_control.exceptions:
AccessDeniedError, ConflictError, InternalServerError, ServiceQuotaExceededError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.