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 |
Creates a contact, which is an end-user who is receiving the email, and adds them to a contact list.
Synopsis
- data CreateContact = CreateContact' {}
- newCreateContact :: Text -> Text -> CreateContact
- createContact_unsubscribeAll :: Lens' CreateContact (Maybe Bool)
- createContact_attributesData :: Lens' CreateContact (Maybe Text)
- createContact_topicPreferences :: Lens' CreateContact (Maybe [TopicPreference])
- createContact_contactListName :: Lens' CreateContact Text
- createContact_emailAddress :: Lens' CreateContact Text
- data CreateContactResponse = CreateContactResponse' {
- httpStatus :: Int
- newCreateContactResponse :: Int -> CreateContactResponse
- createContactResponse_httpStatus :: Lens' CreateContactResponse Int
Creating a Request
data CreateContact Source #
See: newCreateContact
smart constructor.
CreateContact' | |
|
Instances
Create a value of CreateContact
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:CreateContact'
, createContact_unsubscribeAll
- A boolean value status noting if the contact is unsubscribed from all
contact list topics.
$sel:attributesData:CreateContact'
, createContact_attributesData
- The attribute data attached to a contact.
$sel:topicPreferences:CreateContact'
, createContact_topicPreferences
- The contact's preferences for being opted-in to or opted-out of topics.
$sel:contactListName:CreateContact'
, createContact_contactListName
- The name of the contact list to which the contact should be added.
$sel:emailAddress:CreateContact'
, createContact_emailAddress
- The contact's email address.
Request Lenses
createContact_unsubscribeAll :: Lens' CreateContact (Maybe Bool) Source #
A boolean value status noting if the contact is unsubscribed from all contact list topics.
createContact_attributesData :: Lens' CreateContact (Maybe Text) Source #
The attribute data attached to a contact.
createContact_topicPreferences :: Lens' CreateContact (Maybe [TopicPreference]) Source #
The contact's preferences for being opted-in to or opted-out of topics.
createContact_contactListName :: Lens' CreateContact Text Source #
The name of the contact list to which the contact should be added.
createContact_emailAddress :: Lens' CreateContact Text Source #
The contact's email address.
Destructuring the Response
data CreateContactResponse Source #
See: newCreateContactResponse
smart constructor.
CreateContactResponse' | |
|
Instances
newCreateContactResponse Source #
Create a value of CreateContactResponse
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:CreateContactResponse'
, createContactResponse_httpStatus
- The response's http status code.
Response Lenses
createContactResponse_httpStatus :: Lens' CreateContactResponse Int Source #
The response's http status code.