BedrockAgentClient.update_retrieval_instruction
rboto-bedrock-agent==0.4.0 · Service index · Types
Model summary (excerpt): Updates the content of a retrieval instruction. The update is processed asynchronously; the stored content is a candidate until content review passes, and the served content does not change while the update is in flight. The service rejects the request with ConflictException while lastTransitionStatus is CREATING or UPDATING.
Install and imports
from rboto import BedrockAgentClient
from rboto_bedrock_agent.types import (
RetrievalInstructionContent,
UpdateRetrievalInstructionOutput,
)
Signature
async def update_retrieval_instruction(
*,
retrieval_instruction_id: str,
instruction: RetrievalInstructionContent,
description: str | None = None,
) -> UpdateRetrievalInstructionOutput: ...
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 update. |
instruction |
Yes | The replacement instruction content. This is a full replacement of all four fields, not a patch. During UPDATING, Get continues to return the previously-served content until the update review passes. |
description |
No | A replacement description; applied together with the content when the review passes. Omit to clear. |
Output
UpdateRetrievalInstructionOutput.
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 |
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.
Related types
RetrievalInstructionContent, UpdateRetrievalInstructionOutput
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, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.