Skip to content

BedrockClient.get_guardrail

rboto-bedrock==0.4.0 · Service index · Types

Model summary (excerpt): Gets details about a guardrail. If you don't specify a version, the response returns details for the DRAFT version.

Install and imports

python -m pip install "rboto[bedrock]==0.4.0"
from rboto import BedrockClient
from rboto_bedrock.types import (
    GetGuardrailOutput,
)

Signature

async def get_guardrail(
    *,
    guardrail_identifier: str,
    guardrail_version: str | None = None,
) -> GetGuardrailOutput: ...

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)
guardrail_identifier Yes The unique identifier of the guardrail for which to get details. This can be an ID or the ARN.
guardrail_version No The version of the guardrail for which to get details. If you don't specify a version, the response returns details for the DRAFT version.

Output

GetGuardrailOutput.

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
name str Always present —
description str | None Always present —
guardrail_id str Always present —
guardrail_arn str Always present —
version str Always present —
status GuardrailStatusOutput Always present GuardrailStatusOutput
topic_policy GuardrailTopicPolicyOutput | None Always present GuardrailTopicPolicyOutput
content_policy GuardrailContentPolicyOutput | None Always present GuardrailContentPolicyOutput
word_policy GuardrailWordPolicyOutput | None Always present GuardrailWordPolicyOutput
sensitive_information_policy GuardrailSensitiveInformationPolicyOutput | None Always present GuardrailSensitiveInformationPolicyOutput
contextual_grounding_policy GuardrailContextualGroundingPolicyOutput | None Always present GuardrailContextualGroundingPolicyOutput
automated_reasoning_policy GuardrailAutomatedReasoningPolicyOutput | None Always present GuardrailAutomatedReasoningPolicyOutput
cross_region_details GuardrailCrossRegionDetailsOutput | None Always present GuardrailCrossRegionDetailsOutput
created_at str Always present —
updated_at str Always present —
status_reasons list[str] | None Always present —
failure_recommendations list[str] | None Always present —
blocked_input_messaging str Always present —
blocked_outputs_messaging str Always present —
kms_key_arn str | None 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.

GetGuardrailOutput

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, InternalServerError, ResourceNotFoundError, ThrottlingError, ValidationError.

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

Service guide · Pinned model