list_messages
async
¶
list_messages(
conversation_id: ConversationId,
application_id: ApplicationId,
*,
config_overrides: Optional[AsyncQBusinessClientConfig] = None,
user_id: Optional[UserId] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResultsIntegerForListMessages] = None,
) -> ListMessagesResponse
Gets a list of messages associated with an Amazon Q Business web experience.
Parameters:
-
conversation_id(ConversationId) –The identifier of the Amazon Q Business web experience conversation.
-
application_id(ApplicationId) –The identifier for the Amazon Q Business application.
-
user_id(Optional[UserId], default:None) –The identifier of the user involved in the Amazon Q Business web experience conversation.
-
next_token(Optional[NextToken], default:None) –If the number of messages returned exceeds
maxResults, Amazon Q Business returns a next token as a pagination token to retrieve the next set of messages. -
max_results(Optional[MaxResultsIntegerForListMessages], default:None) –The maximum number of messages to return.
Raises:
-
AccessDeniedException–You don't have access to perform this action. Make sure you have the required permission policies and user accounts and try again.
-
InternalServerException–An issue occurred with the internal server used for your Amazon Q Business service. Wait some minutes and try again, or contact Support for help.
-
LicenseNotFoundException–You don't have permissions to perform the action because your license is inactive. Ask your admin to activate your license and try again after your licence is active.
-
ResourceNotFoundException–The application or plugin resource you want to use doesn’t exist. Make sure you have provided the correct resource and try again.
-
ThrottlingException–The request was denied due to throttling. Reduce the number of requests and try again.
-
ValidationException–The input doesn't meet the constraints set by the Amazon Q Business service. Provide the correct input and try again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_qbusiness/_services/async_q_business.py
2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 | |