Skip to content

BedrockClient.create_automated_reasoning_policy

rboto-bedrock==0.4.0 · Service index · Types

Model summary (excerpt): Creates an Automated Reasoning policy for Amazon Bedrock Guardrails. Automated Reasoning policies use mathematical techniques to detect hallucinations, suggest corrections, and highlight unstated assumptions in the responses of your GenAI application. To create a policy, you upload a source document that describes the rules that you're encoding. Automated Reasoning extracts important concepts...

Install and imports

python -m pip install "rboto[bedrock]==0.4.0"
from rboto import BedrockClient
from collections.abc import Sequence
from rboto_bedrock.types import (
    AutomatedReasoningPolicyDefinition,
    CreateAutomatedReasoningPolicyOutput,
    Tag,
)

Signature

async def create_automated_reasoning_policy(
    *,
    name: str,
    description: str | None = None,
    client_request_token: str | None = None,
    policy_definition: AutomatedReasoningPolicyDefinition | None = None,
    kms_key_id: str | None = None,
    tags: Sequence[Tag] | None = None,
) -> CreateAutomatedReasoningPolicyOutput: ...

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 A unique name for the Automated Reasoning policy. The name must be between 1 and 63 characters and can contain letters, numbers, hyphens, and underscores.
description No A description of the Automated Reasoning policy. Use this to provide context about the policy's purpose and the types of validations it performs.
client_request_token No A unique, case-sensitive identifier to ensure that the operation completes no more than once. If this token matches a previous request, Amazon Bedrock ignores the request but doesn't return an error.
policy_definition No The policy definition that contains the formal logic rules, variables, and custom variable types used to validate foundation model responses in your application.
kms_key_id No The identifier of the KMS key to use for encrypting the automated reasoning policy and its associated artifacts. If you don't specify a KMS key, Amazon Bedrock uses an KMS managed key for encryption. For enhanced security and control, you can specify a customer managed KMS key.
tags No A list of tags to associate with the Automated Reasoning policy. Tags help you organize and manage your policies.

Output

CreateAutomatedReasoningPolicyOutput.

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_arn str Always present —
version str Always present —
name str Always present —
description str | None Always present —
definition_hash str | None Always present —
created_at str Always present —
updated_at 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.

AutomatedReasoningPolicyDefinition, CreateAutomatedReasoningPolicyOutput, Tag

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.exceptions:

AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, TooManyTagsError, ValidationError.

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

Service guide · Pinned model