| 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.GetContact
Description
Returns a contact from a contact list.
Synopsis
- data GetContact = GetContact' {}
- newGetContact :: Text -> Text -> GetContact
- getContact_contactListName :: Lens' GetContact Text
- getContact_emailAddress :: Lens' GetContact Text
- data GetContactResponse = GetContactResponse' {}
- newGetContactResponse :: Int -> GetContactResponse
- getContactResponse_attributesData :: Lens' GetContactResponse (Maybe Text)
- getContactResponse_contactListName :: Lens' GetContactResponse (Maybe Text)
- getContactResponse_createdTimestamp :: Lens' GetContactResponse (Maybe UTCTime)
- getContactResponse_emailAddress :: Lens' GetContactResponse (Maybe Text)
- getContactResponse_lastUpdatedTimestamp :: Lens' GetContactResponse (Maybe UTCTime)
- getContactResponse_topicDefaultPreferences :: Lens' GetContactResponse (Maybe [TopicPreference])
- getContactResponse_topicPreferences :: Lens' GetContactResponse (Maybe [TopicPreference])
- getContactResponse_unsubscribeAll :: Lens' GetContactResponse (Maybe Bool)
- getContactResponse_httpStatus :: Lens' GetContactResponse Int
Creating a Request
data GetContact Source #
See: newGetContact smart constructor.
Constructors
| GetContact' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> GetContact |
Create a value of GetContact 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:
GetContact, getContact_contactListName - The name of the contact list to which the contact belongs.
GetContact, getContact_emailAddress - The contact's email addres.
Request Lenses
getContact_contactListName :: Lens' GetContact Text Source #
The name of the contact list to which the contact belongs.
getContact_emailAddress :: Lens' GetContact Text Source #
The contact's email addres.
Destructuring the Response
data GetContactResponse Source #
See: newGetContactResponse smart constructor.
Constructors
| GetContactResponse' | |
Fields
| |
Instances
newGetContactResponse Source #
Arguments
| :: Int | |
| -> GetContactResponse |
Create a value of GetContactResponse 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:GetContactResponse', getContactResponse_attributesData - The attribute data attached to a contact.
GetContact, getContactResponse_contactListName - The name of the contact list to which the contact belongs.
GetContactResponse, getContactResponse_createdTimestamp - A timestamp noting when the contact was created.
GetContact, getContactResponse_emailAddress - The contact's email addres.
GetContactResponse, getContactResponse_lastUpdatedTimestamp - A timestamp noting the last time the contact's information was updated.
GetContactResponse, getContactResponse_topicDefaultPreferences - The default topic preferences applied to the contact.
GetContactResponse, getContactResponse_topicPreferences - The contact's preference for being opted-in to or opted-out of a
topic.>
GetContactResponse, getContactResponse_unsubscribeAll - A boolean value status noting if the contact is unsubscribed from all
contact list topics.
$sel:httpStatus:GetContactResponse', getContactResponse_httpStatus - The response's http status code.
Response Lenses
getContactResponse_attributesData :: Lens' GetContactResponse (Maybe Text) Source #
The attribute data attached to a contact.
getContactResponse_contactListName :: Lens' GetContactResponse (Maybe Text) Source #
The name of the contact list to which the contact belongs.
getContactResponse_createdTimestamp :: Lens' GetContactResponse (Maybe UTCTime) Source #
A timestamp noting when the contact was created.
getContactResponse_emailAddress :: Lens' GetContactResponse (Maybe Text) Source #
The contact's email addres.
getContactResponse_lastUpdatedTimestamp :: Lens' GetContactResponse (Maybe UTCTime) Source #
A timestamp noting the last time the contact's information was updated.
getContactResponse_topicDefaultPreferences :: Lens' GetContactResponse (Maybe [TopicPreference]) Source #
The default topic preferences applied to the contact.
getContactResponse_topicPreferences :: Lens' GetContactResponse (Maybe [TopicPreference]) Source #
The contact's preference for being opted-in to or opted-out of a topic.>
getContactResponse_unsubscribeAll :: Lens' GetContactResponse (Maybe Bool) Source #
A boolean value status noting if the contact is unsubscribed from all contact list topics.
getContactResponse_httpStatus :: Lens' GetContactResponse Int Source #
The response's http status code.