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.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
ToJSON UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.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

AWSRequest UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Associated Types

type AWSResponse UpdateContact #

Generic UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Associated Types

type Rep UpdateContact :: Type -> Type #

Read UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Show UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

NFData UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Methods

rnf :: UpdateContact -> () #

Eq UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Hashable UpdateContact Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

type AWSResponse 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" "amazonka-sesv2-2.0-KPRo1S1CRfP4bs5VKSgHvB" 'False) (C1 ('MetaCons "UpdateContact'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "attributesData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "topicPreferences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TopicPreference]))) :*: (S1 ('MetaSel ('Just "unsubscribeAll") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "contactListName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "emailAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

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:attributesData:UpdateContact', updateContact_attributesData - The attribute data attached to a contact.

UpdateContact, updateContact_topicPreferences - The contact's preference for being opted-in to or opted-out of a topic.

UpdateContact, updateContact_unsubscribeAll - A boolean value status noting if the contact is unsubscribed from all contact list topics.

UpdateContact, updateContact_contactListName - The name of the contact list.

UpdateContact, updateContact_emailAddress - The contact's email addres.

Request Lenses

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.

updateContact_unsubscribeAll :: Lens' UpdateContact (Maybe Bool) Source #

A boolean value status noting if the contact is unsubscribed from all contact list topics.

Destructuring the Response

data UpdateContactResponse Source #

See: newUpdateContactResponse smart constructor.

Constructors

UpdateContactResponse' 

Fields

Instances

Instances details
Generic UpdateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Associated Types

type Rep UpdateContactResponse :: Type -> Type #

Read UpdateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Show UpdateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

NFData UpdateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

Methods

rnf :: UpdateContactResponse -> () #

Eq UpdateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

type Rep UpdateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateContact

type Rep UpdateContactResponse = D1 ('MetaData "UpdateContactResponse" "Amazonka.SESV2.UpdateContact" "amazonka-sesv2-2.0-KPRo1S1CRfP4bs5VKSgHvB" '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