update_contact
¶
update_contact(
contact_list_name: ContactListName,
email_address: EmailAddress,
*,
config_overrides: Optional[SESv2ClientConfig] = None,
topic_preferences: Optional[TopicPreferenceList] = None,
unsubscribe_all: Optional[UnsubscribeAll] = None,
attributes_data: Optional[AttributesData] = None,
) -> UpdateContactResponse
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.
Parameters:
-
contact_list_name(ContactListName) –The name of the contact list.
-
email_address(EmailAddress) –The contact's email address.
-
topic_preferences(Optional[TopicPreferenceList], default:None) –The contact's preference for being opted-in to or opted-out of a topic.
-
unsubscribe_all(Optional[UnsubscribeAll], default:None) –A boolean value status noting if the contact is unsubscribed from all contact list topics.
-
attributes_data(Optional[AttributesData], default:None) –The attribute data attached to a contact.
Raises:
-
BadRequestException–The input you provided is invalid.
-
ConcurrentModificationException–The resource is being modified by another operation or thread.
-
NotFoundException–The resource you attempted to access doesn't exist.
-
TooManyRequestsException–Too many requests have been made to the operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sesv2/_services/se_sv2.py
6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 | |