update_ai_prompt
¶
update_ai_prompt(
assistant_id: UuidOrArn,
ai_prompt_id: UuidOrArnOrEitherWithQualifier,
visibility_status: VisibilityStatus,
*,
config_overrides: Optional[QConnectClientConfig] = None,
client_token: Optional[ClientToken] = None,
template_configuration: Optional[AIPromptTemplateConfiguration] = None,
description: Optional[Description] = None,
model_id: Optional[AIPromptModelIdentifier] = None,
inference_configuration: Optional[AIPromptInferenceConfiguration] = None,
) -> UpdateAIPromptResponse
Updates an AI Prompt.
Parameters:
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs..
-
assistant_id(UuidOrArn) –The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
-
ai_prompt_id(UuidOrArnOrEitherWithQualifier) –The identifier of the Amazon Q in Connect AI Prompt.
-
visibility_status(VisibilityStatus) –The visibility status of the Amazon Q in Connect AI prompt.
-
template_configuration(Optional[AIPromptTemplateConfiguration], default:None) –The configuration of the prompt template for this AI Prompt.
-
description(Optional[Description], default:None) –The description of the Amazon Q in Connect AI Prompt.
-
model_id(Optional[AIPromptModelIdentifier], default:None) –The identifier of the model used for this AI Prompt.
For information about which models are supported in each Amazon Web Services Region, see Supported models for system/custom prompts.
-
inference_configuration(Optional[AIPromptInferenceConfiguration], default:None) –The updated inference configuration for the AI Prompt.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request could not be processed because of conflict in the current state of the resource. For example, if you're using a
CreateAPI (such asCreateAssistant) that accepts name, a conflicting resource (usually with the same name) is being created or mutated. -
ResourceNotFoundException–The specified resource does not exist.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnauthorizedException–You do not have permission to perform this action.
-
ValidationException–The input fails to satisfy the constraints specified by a service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_qconnect/_services/q_connect.py
3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 | |