list_documents
¶
list_documents(
application_id: ApplicationId,
index_id: IndexId,
*,
config_overrides: Optional[QBusinessClientConfig] = 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/q_business.py
2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 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 | |