amazonka-sesv2-2.0: Amazon Simple Email Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SESV2.GetContact

Description

Returns a contact from a contact list.

Synopsis

Creating a Request

data GetContact Source #

See: newGetContact smart constructor.

Constructors

GetContact' 

Fields

Instances

Instances details
ToHeaders GetContact Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

Methods

toHeaders :: GetContact -> [Header] #

ToPath GetContact Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

ToQuery GetContact Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

AWSRequest GetContact Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

Associated Types

type AWSResponse GetContact #

Generic GetContact Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

Associated Types

type Rep GetContact :: Type -> Type #

Read GetContact Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

Show GetContact Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

NFData GetContact Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

Methods

rnf :: GetContact -> () #

Eq GetContact Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

Hashable GetContact Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

type AWSResponse GetContact Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

type Rep GetContact Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

type Rep GetContact = D1 ('MetaData "GetContact" "Amazonka.SESV2.GetContact" "amazonka-sesv2-2.0-KPRo1S1CRfP4bs5VKSgHvB" 'False) (C1 ('MetaCons "GetContact'" 'PrefixI 'True) (S1 ('MetaSel ('Just "contactListName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "emailAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetContact Source #

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

Instances details
Generic GetContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

Associated Types

type Rep GetContactResponse :: Type -> Type #

Read GetContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

Show GetContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

NFData GetContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

Methods

rnf :: GetContactResponse -> () #

Eq GetContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

type Rep GetContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.GetContact

type Rep GetContactResponse = D1 ('MetaData "GetContactResponse" "Amazonka.SESV2.GetContact" "amazonka-sesv2-2.0-KPRo1S1CRfP4bs5VKSgHvB" 'False) (C1 ('MetaCons "GetContactResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "attributesData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "contactListName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "createdTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "emailAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "lastUpdatedTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "topicDefaultPreferences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TopicPreference]))) :*: (S1 ('MetaSel ('Just "topicPreferences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TopicPreference])) :*: (S1 ('MetaSel ('Just "unsubscribeAll") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

newGetContactResponse Source #

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_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.