QBusinessClient.list_groups
rboto-qbusiness==0.4.0 · Service index · Types
Model summary (excerpt): Provides a list of groups that are mapped to users.
Install and imports
Signature
async def list_groups(
*,
application_id: str,
index_id: str,
updated_earlier_than: str,
data_source_id: str | None = None,
next_token: str | None = None,
max_results: int | None = None,
) -> ListGroupsOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
application_id |
Yes | The identifier of the application for getting a list of groups mapped to users. |
index_id |
Yes | The identifier of the index for getting a list of groups mapped to users. |
updated_earlier_than |
Yes | The timestamp identifier used for the latest PUT or DELETE action for mapping users to their groups. |
data_source_id |
No | The identifier of the data source for getting a list of groups mapped to users. |
next_token |
No | 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 |
No | The maximum number of returned groups that are mapped to users. |
Output
ListGroupsOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
next_token |
str | None |
Always present | — |
items |
list[GroupSummaryOutput] | None |
Always present | GroupSummaryOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.list_groups(...) accepts the same arguments and returns AsyncIterator[ListGroupsOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: max_results.
No output stream.
Errors
Import from rboto_qbusiness.exceptions:
AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.