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
5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 | |