| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.SESV2.UpdateContact
Description
Updates a contact's preferences for a list. It is not necessary to specify all existing topic preferences in the TopicPreferences object, just the ones that need updating.
Synopsis
- data UpdateContact = UpdateContact' {}
- newUpdateContact :: Text -> Text -> UpdateContact
- updateContact_attributesData :: Lens' UpdateContact (Maybe Text)
- updateContact_topicPreferences :: Lens' UpdateContact (Maybe [TopicPreference])
- updateContact_unsubscribeAll :: Lens' UpdateContact (Maybe Bool)
- updateContact_contactListName :: Lens' UpdateContact Text
- updateContact_emailAddress :: Lens' UpdateContact Text
- data UpdateContactResponse = UpdateContactResponse' {
- httpStatus :: Int
- newUpdateContactResponse :: Int -> UpdateContactResponse
- updateContactResponse_httpStatus :: Lens' UpdateContactResponse Int
Creating a Request
data UpdateContact Source #
See: newUpdateContact smart constructor.
Constructors
| UpdateContact' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateContact |
Create a value of UpdateContact with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:attributesData:UpdateContact', updateContact_attributesData - The attribute data attached to a contact.
UpdateContact, updateContact_topicPreferences - The contact's preference for being opted-in to or opted-out of a topic.
UpdateContact, updateContact_unsubscribeAll - A boolean value status noting if the contact is unsubscribed from all
contact list topics.
UpdateContact, updateContact_contactListName - The name of the contact list.
UpdateContact, updateContact_emailAddress - The contact's email addres.
Request Lenses
updateContact_attributesData :: Lens' UpdateContact (Maybe Text) Source #
The attribute data attached to a contact.
updateContact_topicPreferences :: Lens' UpdateContact (Maybe [TopicPreference]) Source #
The contact's preference for being opted-in to or opted-out of a topic.
updateContact_unsubscribeAll :: Lens' UpdateContact (Maybe Bool) Source #
A boolean value status noting if the contact is unsubscribed from all contact list topics.
updateContact_contactListName :: Lens' UpdateContact Text Source #
The name of the contact list.
updateContact_emailAddress :: Lens' UpdateContact Text Source #
The contact's email addres.
Destructuring the Response
data UpdateContactResponse Source #
See: newUpdateContactResponse smart constructor.
Constructors
| UpdateContactResponse' | |
Fields
| |
Instances
newUpdateContactResponse Source #
Create a value of UpdateContactResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:UpdateContactResponse', updateContactResponse_httpStatus - The response's http status code.
Response Lenses
updateContactResponse_httpStatus :: Lens' UpdateContactResponse Int Source #
The response's http status code.