get_prompt
async
¶
get_prompt(
prompt_identifier: PromptIdentifier,
*,
config_overrides: Optional[AsyncBedrockAgentClientConfig] = None,
prompt_version: Optional[Version] = None,
included_data: Optional[IncludedData] = None,
) -> GetPromptResponse
Retrieves information about the working draft (DRAFT version) of a prompt or a version of it, depending on whether you include the promptVersion field or not. For more information, see View information about prompts using Prompt management and View information about a version of your prompt in the Amazon Bedrock User Guide.
Parameters:
-
prompt_identifier(PromptIdentifier) –The unique identifier of the prompt.
-
prompt_version(Optional[Version], default:None) –The version of the prompt about which you want to retrieve information. Omit this field to return information about the working draft of the prompt.
-
included_data(Optional[IncludedData], default:None) –Controls the scope of data returned. Set to
METADATA_ONLYto return only resource metadata. Set toALL_DATAor omit this field to return the full response.
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
5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 | |