SESV2Client.create_contact
rboto-sesv2==0.4.0 · Service index · Types
Model summary (excerpt): Creates a contact, which is an end-user who is receiving the email, and adds them to a contact list.
Install and imports
from rboto import SESV2Client
from collections.abc import Sequence
from rboto_sesv2.types import (
CreateContactOutput,
TopicPreference,
)
Signature
async def create_contact(
*,
contact_list_name: str,
email_address: str,
topic_preferences: Sequence[TopicPreference] | None = None,
unsubscribe_all: bool | None = None,
attributes_data: str | None = None,
) -> CreateContactOutput: ...
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 to which the contact should be added. |
email_address |
Yes | The contact's email address. |
topic_preferences |
No | The contact's preferences for being opted-in to or opted-out of topics. |
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
CreateContactOutput.
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.
Related types
CreateContactOutput, TopicPreference
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:
AlreadyExistsError, BadRequestError, NotFoundError, TooManyRequestsError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.