list_groups
async
¶
list_groups(
application_id: ApplicationId,
index_id: IndexId,
updated_earlier_than: Timestamp,
*,
config_overrides: Optional[AsyncQBusinessClientConfig] = None,
data_source_id: Optional[DataSourceId] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResultsIntegerForListGroupsRequest] = None,
) -> ListGroupsResponse
Provides a list of groups that are mapped to users.
Parameters:
-
application_id(ApplicationId) –The identifier of the application for getting a list of groups mapped to users.
-
index_id(IndexId) –The identifier of the index for getting a list of groups mapped to users.
-
updated_earlier_than(Timestamp) –The timestamp identifier used for the latest
PUTorDELETEaction for mapping users to their groups. -
data_source_id(Optional[DataSourceId], default:None) –The identifier of the data source for getting a list of groups mapped to users.
-
next_token(Optional[NextToken], default:None) –If the previous response 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 groups that are mapped to users.
-
max_results(Optional[MaxResultsIntegerForListGroupsRequest], default:None) –The maximum number of returned groups that are mapped to users.
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.
-
ConflictException–You are trying to perform an action that conflicts with the current status of your resource. Fix any inconsistencies with your resources 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
2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 | |