list_attachments
async
¶
list_attachments(
application_id: ApplicationId,
*,
config_overrides: Optional[AsyncQBusinessClientConfig] = None,
conversation_id: Optional[ConversationId] = None,
user_id: Optional[UserId] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResultsIntegerForListAttachments] = None,
) -> ListAttachmentsResponse
Gets a list of attachments associated with an Amazon Q Business web experience or a list of attachements associated with a specific Amazon Q Business conversation.
Parameters:
-
application_id(ApplicationId) –The unique identifier for the Amazon Q Business application.
-
conversation_id(Optional[ConversationId], default:None) –The unique identifier of the Amazon Q Business web experience conversation.
-
user_id(Optional[UserId], default:None) –The unique identifier of the user involved in the Amazon Q Business web experience conversation.
-
next_token(Optional[NextToken], default:None) –If the number of attachments returned exceeds
maxResults, Amazon Q Business returns a next token as a pagination token to retrieve the next set of attachments. -
max_results(Optional[MaxResultsIntegerForListAttachments], default:None) –The maximum number of attachements 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
2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 | |