list_ai_prompts
async
¶
list_ai_prompts(
assistant_id: UuidOrArn,
*,
config_overrides: Optional[AsyncQConnectClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
origin: Optional[Origin] = None,
) -> ListAIPromptsResponse
Lists the AI Prompts available on the Amazon Q in Connect assistant.
Parameters:
-
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.
-
next_token(Optional[NextToken], default:None) –The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return per page.
-
origin(Optional[Origin], default:None) –The origin of the AI Prompts to be listed.
SYSTEMfor a default AI Agent created by Q in Connect orCUSTOMERfor an AI Agent created by calling AI Agent creation APIs.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
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/async_q_connect.py
3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 | |