Skip to content

SESV2Client.list_contacts

rboto-sesv2==0.4.0 · Service index · Types

Model summary (excerpt): Lists the contacts present in a specific contact list.

Install and imports

python -m pip install "rboto[sesv2]==0.4.0"
from rboto import SESV2Client
from rboto_sesv2.types import (
    ListContactsFilter,
    ListContactsOutput,
)

Signature

async def list_contacts(
    *,
    contact_list_name: str,
    filter: ListContactsFilter | None = None,
    page_size: int | None = None,
    next_token: str | None = None,
) -> ListContactsOutput: ...

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)
contact_list_name Yes The name of the contact list.
filter No A filter that can be applied to a list of contacts.
page_size No The number of contacts that may be returned at once, which is dependent on if there are more or less contacts than the value of the PageSize. Use this parameter to paginate results. If additional contacts exist beyond the specified limit, the NextToken element is sent in the response. Use the NextToken value in subsequent requests to retrieve additional contacts.
next_token No A string token indicating that there might be additional contacts available to be listed. Use the token provided in the Response to use in the subsequent call to ListContacts with the same parameters to retrieve the next page of contacts.

Output

ListContactsOutput.

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
contacts list[ContactOutput] | None Always present ContactOutput
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.

ListContactsFilter, ListContactsOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

client.paginators.list_contacts(...) accepts the same arguments and returns AsyncIterator[ListContactsOutput]. 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, NotFoundError, TooManyRequestsError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model