list_ai_prompt_versions
async
¶
list_ai_prompt_versions(
assistant_id: UuidOrArn,
ai_prompt_id: UuidOrArnOrEitherWithQualifier,
*,
config_overrides: Optional[AsyncQConnectClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
origin: Optional[Origin] = None,
) -> ListAIPromptVersionsResponse
Lists AI Prompt versions.
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.
-
ai_prompt_id(UuidOrArnOrEitherWithQualifier) –The identifier of the Amazon Q in Connect AI prompt for which versions are to be listed.
-
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 Prompt versions 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
3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 | |