create_retrieval_instruction_version
¶
create_retrieval_instruction_version(
retrieval_instruction_id: RetrievalInstructionId,
*,
config_overrides: Optional[BedrockAgentClientConfig] = None,
description: Optional[RetrievalInstructionDescription] = None,
client_token: Optional[ClientToken] = None,
) -> CreateRetrievalInstructionVersionResponse
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.
Parameters:
-
retrieval_instruction_id(RetrievalInstructionId) –The identifier of the retrieval instruction to version.
-
description(Optional[RetrievalInstructionDescription], default:None) –A description of this version. Independent of the retrieval instruction's own description.
-
client_token(Optional[ClientToken], default:None) –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.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
ConflictException–There was a conflict performing an operation.
-
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.
-
ServiceQuotaExceededException–The number of requests exceeds the service quota. Resubmit your request later.
-
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/bedrock_agent.py
6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 | |