get_prompt
¶
get_prompt(
prompt_identifier: PromptIdentifier,
*,
config_overrides: Optional[BedrockAgentClientConfig] = 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/bedrock_agent.py
5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 | |