Skip to content

SESV2Client.update_contact

rboto-sesv2==0.4.0 · Service index · Types

Model summary (excerpt): Updates a contact's preferences for a list. You must specify all existing topic preferences in the TopicPreferences object, not just the ones that need updating; otherwise, all your existing preferences will be removed.

Install and imports

python -m pip install "rboto[sesv2]==0.4.0"
from rboto import SESV2Client
from collections.abc import Sequence
from rboto_sesv2.types import (
    TopicPreference,
    UpdateContactOutput,
)

Signature

async def update_contact(
    *,
    contact_list_name: str,
    email_address: str,
    topic_preferences: Sequence[TopicPreference] | None = None,
    unsubscribe_all: bool | None = None,
    attributes_data: str | None = None,
) -> UpdateContactOutput: ...

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.
email_address Yes The contact's email address.
topic_preferences No The contact's preference for being opted-in to or opted-out of a topic.
unsubscribe_all No A boolean value status noting if the contact is unsubscribed from all contact list topics.
attributes_data No The attribute data attached to a contact.

Output

UpdateContactOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

No fields.

| 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.

TopicPreference, UpdateContactOutput

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

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_sesv2.exceptions:

BadRequestError, ConcurrentModificationError, NotFoundError, TooManyRequestsError.

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

Service guide · Pinned model