BedrockAgentClient.create_retrieval_instruction
rboto-bedrock-agent==0.4.0 · Service index · Types
Model summary (excerpt): Creates a new retrieval instruction. The retrieval instruction is usable once its status becomes ACTIVE. Use GetRetrievalInstruction to check whether it is ready.
Install and imports
from rboto import BedrockAgentClient
from rboto_bedrock_agent.types import (
CreateRetrievalInstructionOutput,
RetrievalInstructionContent,
)
Signature
async def create_retrieval_instruction(
*,
name: str,
instruction: RetrievalInstructionContent,
client_token: str | None = None,
description: str | None = None,
customer_encryption_key_arn: str | None = None,
tags: dict[str, str] | None = None,
) -> CreateRetrievalInstructionOutput: ...
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 | Specifies the name of the retrieval instruction. |
instruction |
Yes | The instruction content, as a set of named fields. Get does not return this field until the create review passes. |
client_token |
No | A caller-supplied token that makes a retried create return the existing resource rather than a second one. The window is 8 hours. |
description |
No | Specifies a description of the retrieval instruction. |
customer_encryption_key_arn |
No | The Amazon Resource Name (ARN) of a customer managed AWS Key Management Service (AWS KMS) key used to encrypt the instruction content at rest. If you omit it, the service uses an AWS owned key. You fix the key at create and cannot change it later. |
tags |
No | Tags for the retrieval instruction. |
Output
CreateRetrievalInstructionOutput.
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
CreateRetrievalInstructionOutput, RetrievalInstructionContent
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, ServiceQuotaExceededError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.