list_messages
¶
list_messages(
conversation_id: ConversationId,
application_id: ApplicationId,
*,
config_overrides: Optional[QBusinessClientConfig] = 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/q_business.py
2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 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 | |