get_retrieval_instruction
async
¶
get_retrieval_instruction(
retrieval_instruction_id: RetrievalInstructionId,
*,
config_overrides: Optional[AsyncBedrockAgentClientConfig] = None,
retrieval_instruction_version: Optional[RetrievalInstructionVersionSelector] = None,
) -> GetRetrievalInstructionResponse
Gets a retrieval instruction. Also used to poll the terminal reporting of an asynchronous create or update.
Parameters:
-
retrieval_instruction_id(RetrievalInstructionId) –The identifier of the retrieval instruction to get.
-
retrieval_instruction_version(Optional[RetrievalInstructionVersionSelector], default:None) –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.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agent/_services/async_bedrock_agent.py
6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 | |