SESV2Client.list_contact_lists
rboto-sesv2==0.4.0 · Service index · Types
Model summary (excerpt): Lists all of the contact lists available. If your output includes a "NextToken" field with a string value, this indicates there may be additional contacts on the filtered list - regardless of the number of contacts returned.
Install and imports
Signature
async def list_contact_lists(
*,
page_size: int | None = None,
next_token: str | None = None,
) -> ListContactListsOutput: ...
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) |
|---|---|---|
page_size |
No | Maximum number of contact lists to return at once. Use this parameter to paginate results. If additional contact lists exist beyond the specified limit, the NextToken element is sent in the response. Use the NextToken value in subsequent requests to retrieve additional lists. |
next_token |
No | A string token indicating that there might be additional contact lists available to be listed. Use the token provided in the Response to use in the subsequent call to ListContactLists with the same parameters to retrieve the next page of contact lists. |
Output
ListContactListsOutput.
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 |
|---|---|---|---|
contact_lists |
list[ContactListOutput] | None |
Always present | ContactListOutput |
next_token |
str | None |
Always present | — |
| 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_contact_lists(...) accepts the same arguments and returns AsyncIterator[ListContactListsOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: page_size.
No output stream.
Errors
Import from rboto_sesv2.exceptions:
BadRequestError, TooManyRequestsError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.