BedrockAgentCoreControlClient.get_policy_generation
rboto-bedrock-agentcore-control==0.4.0 · Service index · Types
Model summary (excerpt): Retrieves information about a policy generation request within the AgentCore Policy system. Policy generation converts natural language descriptions into Dogwood policy statements using AI-powered translation, enabling non-technical users to create policies.
Install and imports
from rboto import BedrockAgentCoreControlClient
from rboto_bedrock_agentcore_control.types import (
GetPolicyGenerationOutput,
)
Signature
async def get_policy_generation(
*,
policy_generation_id: str,
policy_engine_id: str,
) -> GetPolicyGenerationOutput: ...
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_generation_id |
Yes | The unique identifier of the policy generation request to be retrieved. This must be a valid generation ID from a previous StartPolicyGeneration call. |
policy_engine_id |
Yes | The identifier of the policy engine associated with the policy generation request. This provides the context for the generation operation and schema validation. |
Output
GetPolicyGenerationOutput.
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 | — |
policy_generation_id |
str |
Always present | — |
name |
str |
Always present | — |
policy_generation_arn |
str |
Always present | — |
resource |
ResourceOutput | None |
Always present | ResourceOutput |
created_at |
str |
Always present | — |
updated_at |
str |
Always present | — |
status |
PolicyGenerationStatusOutput |
Always present | PolicyGenerationStatusOutput |
findings |
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_generation_completed:
async def policy_generation_completed(
*,
policy_generation_id: str,
policy_engine_id: str,
waiter_config: WaiterConfig | None = None,
) -> GetPolicyGenerationOutput: ...
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 |
GENERATED |
| 1 | retry | stringEquals | status |
GENERATING |
| 2 | failure | stringEquals | status |
GENERATE_FAILED |
| 3 | 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.