list_documents
async
¶
list_documents(
application_id: ApplicationId,
index_id: IndexId,
*,
config_overrides: Optional[AsyncQBusinessClientConfig] = None,
data_source_ids: Optional[DataSourceIds] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResultsIntegerForListDocuments] = None,
) -> ListDocumentsResponse
A list of documents attached to an index.
Parameters:
-
application_id(ApplicationId) –The identifier of the application id the documents are attached to.
-
index_id(IndexId) –The identifier of the index the documents are attached to.
-
data_source_ids(Optional[DataSourceIds], default:None) –The identifier of the data sources the documents are attached to.
-
next_token(Optional[NextToken], default:None) –If the
maxResultsresponse was incomplete because there is more data to retrieve, Amazon Q Business returns a pagination token in the response. You can use this pagination token to retrieve the next set of documents. -
max_results(Optional[MaxResultsIntegerForListDocuments], default:None) –The maximum number of documents 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.
-
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
2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 | |