Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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_unsubscribeAll :: Lens' UpdateContact (Maybe Bool)
- updateContact_attributesData :: Lens' UpdateContact (Maybe Text)
- updateContact_topicPreferences :: Lens' UpdateContact (Maybe [TopicPreference])
- 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.
UpdateContact' | |
|
Instances
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:unsubscribeAll:UpdateContact'
, updateContact_unsubscribeAll
- A boolean value status noting if the contact is unsubscribed from all
contact list topics.
$sel:attributesData:UpdateContact'
, updateContact_attributesData
- The attribute data attached to a contact.
$sel:topicPreferences:UpdateContact'
, updateContact_topicPreferences
- The contact's preference for being opted-in to or opted-out of a topic.
$sel:contactListName:UpdateContact'
, updateContact_contactListName
- The name of the contact list.
$sel:emailAddress:UpdateContact'
, updateContact_emailAddress
- The contact's email addres.
Request Lenses
updateContact_unsubscribeAll :: Lens' UpdateContact (Maybe Bool) Source #
A boolean value status noting if the contact is unsubscribed from all contact list topics.
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_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.
UpdateContactResponse' | |
|
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.