| 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.CreateContact
Description
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_attributesData :: Lens' CreateContact (Maybe Text)
- createContact_topicPreferences :: Lens' CreateContact (Maybe [TopicPreference])
- createContact_unsubscribeAll :: Lens' CreateContact (Maybe Bool)
- 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.
Constructors
| CreateContact' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> CreateContact |
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:attributesData:CreateContact', createContact_attributesData - The attribute data attached to a contact.
CreateContact, createContact_topicPreferences - The contact's preferences for being opted-in to or opted-out of topics.
CreateContact, createContact_unsubscribeAll - A boolean value status noting if the contact is unsubscribed from all
contact list topics.
CreateContact, createContact_contactListName - The name of the contact list to which the contact should be added.
CreateContact, createContact_emailAddress - The contact's email address.
Request Lenses
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_unsubscribeAll :: Lens' CreateContact (Maybe Bool) Source #
A boolean value status noting if the contact is unsubscribed from all contact list 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.
Constructors
| CreateContactResponse' | |
Fields
| |
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.