Skip to content

BedrockAgentClient.create_retrieval_instruction_version

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

Model summary (excerpt): Creates an immutable numbered version from the retrieval instruction's current reviewed content. The service creates the version synchronously. The service numbers versions from 1 and assigns them in order, never reusing a number.

Install and imports

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

Signature

async def create_retrieval_instruction_version(
    *,
    retrieval_instruction_id: str,
    description: str | None = None,
    client_token: str | None = None,
) -> CreateRetrievalInstructionVersionOutput: ...

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 version.
description No A description of this version. Independent of the retrieval instruction's own description.
client_token No A caller-supplied token that makes a retried call return the version created by the first call rather than a second version. The window is 8 hours.

Output

CreateRetrievalInstructionVersionOutput.

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 —
version str Always present —
created_at str Always present —
description 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.

CreateRetrievalInstructionVersionOutput

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

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

Service guide · Pinned model