Skip to content

BedrockAgentClient.get_retrieval_instruction

rboto-bedrock-agent==0.4.0 · Service index · Types

Model summary (excerpt): Gets a retrieval instruction. Also used to poll the terminal reporting of an asynchronous create or update.

Install and imports

python -m pip install "rboto[bedrock-agent]==0.4.0"
from rboto import BedrockAgentClient
from rboto_bedrock_agent.types import (
    GetRetrievalInstructionOutput,
)

Signature

async def get_retrieval_instruction(
    *,
    retrieval_instruction_id: str,
    retrieval_instruction_version: str | None = None,
) -> GetRetrievalInstructionOutput: ...

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)
retrieval_instruction_id Yes The identifier of the retrieval instruction to get.
retrieval_instruction_version No The version to return: a version number, or DRAFT for the retrieval instruction's current reviewed content. When omitted, DRAFT is used. This default is permanent: omitting retrievalInstructionVersion will never resolve to a numbered version.

Output

GetRetrievalInstructionOutput.

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
retrieval_instruction_id str Always present —
retrieval_instruction_arn str Always present —
name str Always present —
status RetrievalInstructionStatusOutput Always present RetrievalInstructionStatusOutput
last_transition_status RetrievalInstructionLastTransitionStatusOutput Always present RetrievalInstructionLastTransitionStatusOutput
instruction RetrievalInstructionContentOutput | None Always present RetrievalInstructionContentOutput
created_at str Always present —
updated_at str Always present —
description str | None Always present —
customer_encryption_key_arn str | None Always present —
last_transition_status_reasons list[RetrievalInstructionFailureReasonOutput] | None Always present RetrievalInstructionFailureReasonOutput
version str | None Always present —
latest_version 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.

GetRetrievalInstructionOutput

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_agent.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