Skip to content

BedrockAgentCoreControlClient.get_policy_engine

rboto-bedrock-agentcore-control==0.4.0 · Service index · Types

Model summary (excerpt): Retrieves detailed information about a specific policy engine within the AgentCore Policy system. This operation returns the complete policy engine configuration, metadata, and current status, allowing administrators to review and manage policy engine settings.

Install and imports

python -m pip install "rboto[bedrock-agentcore-control]==0.4.0"
from rboto import BedrockAgentCoreControlClient
from rboto_bedrock_agentcore_control.types import (
    GetPolicyEngineOutput,
)

Signature

async def get_policy_engine(
    *,
    policy_engine_id: str,
) -> GetPolicyEngineOutput: ...

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)
policy_engine_id Yes The unique identifier of the policy engine to be retrieved. This must be a valid policy engine ID that exists within the account.

Output

GetPolicyEngineOutput.

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.

GetPolicyEngineOutput

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.

Waiters

from rboto import WaiterConfig. Calls use this public operation, including configured middleware and native retries. Polling, deadlines and errors.

client.waiters.policy_engine_active:

async def policy_engine_active(
    *,
    policy_engine_id: str,
    waiter_config: WaiterConfig | None = None,
) -> GetPolicyEngineOutput: ...

Default fixed delay: 5 seconds. Default maximum: 40 polls. No overall timeout unless configured.

Returns the successful polling Output.

Acceptor index State Matcher Model path Expected
0 success stringEquals status ACTIVE
1 failure stringEquals status CREATE_FAILED
2 failure stringEquals status UPDATE_FAILED
3 failure stringEquals status DELETE_FAILED

Acceptors are checked in order. Missing fields or unmatched successful responses continue polling. Unmatched service errors propagate.

client.waiters.policy_engine_deleted:

async def policy_engine_deleted(
    *,
    policy_engine_id: str,
    waiter_config: WaiterConfig | None = None,
) -> None: ...

Default fixed delay: 2 seconds. Default maximum: 40 polls. No overall timeout unless configured.

Returns None when the modeled error confirms success.

Acceptor index State Matcher Model path Expected
0 success errorType — ResourceNotFoundException
1 retry stringEquals status DELETING
2 failure stringEquals status DELETE_FAILED

Acceptors are checked in order. Missing fields or unmatched successful responses continue polling. Unmatched service errors propagate.

Errors

Import from rboto_bedrock_agentcore_control.exceptions:

AccessDeniedError, InternalServerError, ResourceNotFoundError, ThrottlingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model