BedrockAgentCoreControlClient.get_policy
rboto-bedrock-agentcore-control==0.4.0 · Service index · Types
Model summary (excerpt): Retrieves detailed information about a specific policy within the AgentCore Policy system. This operation returns the complete policy definition, metadata, and current status, allowing administrators to review and manage policy configurations.
Install and imports
from rboto import BedrockAgentCoreControlClient
from rboto_bedrock_agentcore_control.types import (
GetPolicyOutput,
)
Signature
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 identifier of the policy engine that manages the policy to be retrieved. |
policy_id |
Yes | The unique identifier of the policy to be retrieved. This must be a valid policy ID that exists within the specified policy engine. |
Output
GetPolicyOutput.
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_id |
str |
Always present | — |
name |
str |
Always present | — |
policy_engine_id |
str |
Always present | — |
created_at |
str |
Always present | — |
updated_at |
str |
Always present | — |
policy_arn |
str |
Always present | — |
status |
PolicyStatusOutput |
Always present | PolicyStatusOutput |
enforcement_mode |
EnforcementModeOutput |
Always present | EnforcementModeOutput |
definition |
PolicyDefinitionOutput | None |
Always present | PolicyDefinitionOutput |
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.
Waiters
from rboto import WaiterConfig. Calls use this public operation, including configured middleware and native retries. Polling, deadlines and errors.
client.waiters.policy_active:
async def policy_active(
*,
policy_engine_id: str,
policy_id: str,
waiter_config: WaiterConfig | None = None,
) -> GetPolicyOutput: ...
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_deleted:
async def policy_deleted(
*,
policy_engine_id: str,
policy_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.