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

Description

Creates a contact, which is an end-user who is receiving the email, and adds them to a contact list.

Synopsis

Creating a Request

data CreateContact Source #

See: newCreateContact smart constructor.

Constructors

CreateContact' 

Fields

Instances

Instances details
ToJSON CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

ToHeaders CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

ToPath CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

ToQuery CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

AWSRequest CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Associated Types

type AWSResponse CreateContact #

Generic CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Associated Types

type Rep CreateContact :: Type -> Type #

Read CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Show CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

NFData CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Methods

rnf :: CreateContact -> () #

Eq CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Hashable CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

type AWSResponse CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

type Rep CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

type Rep CreateContact = D1 ('MetaData "CreateContact" "Amazonka.SESV2.CreateContact" "amazonka-sesv2-2.0-KPRo1S1CRfP4bs5VKSgHvB" 'False) (C1 ('MetaCons "CreateContact'" '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)))))

newCreateContact Source #

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.

Destructuring the Response

data CreateContactResponse Source #

See: newCreateContactResponse smart constructor.

Constructors

CreateContactResponse' 

Fields

Instances

Instances details
Generic CreateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Associated Types

type Rep CreateContactResponse :: Type -> Type #

Read CreateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Show CreateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

NFData CreateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Methods

rnf :: CreateContactResponse -> () #

Eq CreateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

type Rep CreateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

type Rep CreateContactResponse = D1 ('MetaData "CreateContactResponse" "Amazonka.SESV2.CreateContact" "amazonka-sesv2-2.0-KPRo1S1CRfP4bs5VKSgHvB" 'False) (C1 ('MetaCons "CreateContactResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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