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
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 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 | |