create_contact
(**kwargs)¶Creates a contact, which is an end-user who is receiving the email, and adds them to a contact list.
See also: AWS API Documentation
Request Syntax
response = client.create_contact(
ContactListName='string',
EmailAddress='string',
TopicPreferences=[
{
'TopicName': 'string',
'SubscriptionStatus': 'OPT_IN'|'OPT_OUT'
},
],
UnsubscribeAll=True|False,
AttributesData='string'
)
[REQUIRED]
The name of the contact list to which the contact should be added.
[REQUIRED]
The contact's email address.
The contact's preferences for being opted-in to or opted-out of topics.
The contact's preference for being opted-in to or opted-out of a topic.
The name of the topic.
The contact's subscription status to a topic which is either OPT_IN
or OPT_OUT
.
dict
Response Syntax
{}
Response Structure
Exceptions
SESV2.Client.exceptions.BadRequestException
SESV2.Client.exceptions.TooManyRequestsException
SESV2.Client.exceptions.NotFoundException
SESV2.Client.exceptions.AlreadyExistsException