update_prompt
async
¶
update_prompt(
name: PromptName,
prompt_identifier: PromptIdentifier,
*,
config_overrides: Optional[AsyncBedrockAgentClientConfig] = None,
description: Optional[PromptDescription] = None,
customer_encryption_key_arn: Optional[KmsKeyArn] = None,
default_variant: Optional[PromptVariantName] = None,
variants: Optional[PromptVariantList] = None,
) -> UpdatePromptResponse
Modifies a prompt in your prompt library. Include both fields that you want to keep and fields that you want to replace. For more information, see Prompt management in Amazon Bedrock and Edit prompts in your prompt library in the Amazon Bedrock User Guide.
Parameters:
-
name(PromptName) –A name for the prompt.
-
description(Optional[PromptDescription], default:None) –A description for the prompt.
-
customer_encryption_key_arn(Optional[KmsKeyArn], default:None) –The Amazon Resource Name (ARN) of the KMS key to encrypt the prompt.
-
default_variant(Optional[PromptVariantName], default:None) –The name of the default variant for the prompt. This value must match the
namefield in the relevant PromptVariant object. -
variants(Optional[PromptVariantList], default:None) –A list of objects, each containing details about a variant of the prompt.
-
prompt_identifier(PromptIdentifier) –The unique identifier of the prompt.
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/async_bedrock_agent.py
5731 5732 5733 5734 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 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 | |