BedrockAgentCoreControlClient.start_policy_generation
rboto-bedrock-agentcore-control==0.4.0 · Service index · Types
Model summary (excerpt): Initiates the AI-powered generation of Dogwood policies from natural language descriptions within the AgentCore Policy system. This feature enables both technical and non-technical users to create policies by describing their authorization requirements in plain English, which is then automatically translated into formal Dogwood policy statements. The generation process analyzes the natural...
Install and imports
from rboto import BedrockAgentCoreControlClient
from rboto_bedrock_agentcore_control.types import (
Content,
Resource,
StartPolicyGenerationOutput,
)
Signature
async def start_policy_generation(
*,
policy_engine_id: str,
resource: Resource,
content: Content,
name: str,
client_token: str | None = None,
) -> StartPolicyGenerationOutput: ...
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 provides the context for policy generation. This engine's schema and tool context are used to ensure generated policies are valid and applicable. |
resource |
Yes | The resource information that provides context for policy generation. This helps the AI understand the target resources and generate appropriate access control rules. |
content |
Yes | The natural language description of the desired policy behavior. This content is processed by AI to generate corresponding Dogwood policy statements that match the described intent. |
name |
Yes | A customer-assigned name for the policy generation request. This helps track and identify generation operations, especially when running multiple generations simultaneously. |
client_token |
No | A unique, case-sensitive identifier to ensure the idempotency of the request. The Amazon Web Services SDK automatically generates this token, so you don't need to provide it in most cases. If you retry a request with the same client token, the service returns the same response without starting a duplicate generation. |
Output
StartPolicyGenerationOutput.
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
Content, Resource, StartPolicyGenerationOutput
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, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.