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
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 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 | |