libZSservicesZSamazonka-sesv2ZSamazonka-sesv2
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SESV2.UpdateContact

Description

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

Creating a Request

data UpdateContact Source #

See: newUpdateContact smart constructor.

Constructors

UpdateContact' 

Fields

Instances

Instances details
Eq UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Read UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Show UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Generic UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Associated Types

type Rep UpdateContact :: Type -> Type #

NFData UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Methods

rnf :: UpdateContact -> () #

Hashable UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

ToJSON UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

AWSRequest UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Associated Types

type AWSResponse UpdateContact #

ToHeaders UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

ToPath UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

ToQuery UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

type Rep UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

type Rep UpdateContact = D1 ('MetaData "UpdateContact" "Amazonka.SESV2.UpdateContact" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "UpdateContact'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "unsubscribeAll") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "attributesData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "topicPreferences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TopicPreference])) :*: (S1 ('MetaSel ('Just "contactListName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "emailAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

newUpdateContact Source #

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.

Destructuring the Response

data UpdateContactResponse Source #

See: newUpdateContactResponse smart constructor.

Constructors

UpdateContactResponse' 

Fields

Instances

Instances details
Eq UpdateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Read UpdateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Show UpdateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Generic UpdateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Associated Types

type Rep UpdateContactResponse :: Type -> Type #

NFData UpdateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Methods

rnf :: UpdateContactResponse -> () #

type Rep UpdateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

type Rep UpdateContactResponse = D1 ('MetaData "UpdateContactResponse" "Amazonka.SESV2.UpdateContact" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "UpdateContactResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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