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.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
Eq CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Read CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Show CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Generic CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Associated Types

type Rep CreateContact :: Type -> Type #

NFData CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Methods

rnf :: CreateContact -> () #

Hashable CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

ToJSON CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

AWSRequest CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Associated Types

type AWSResponse 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

type Rep CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

type Rep CreateContact = D1 ('MetaData "CreateContact" "Amazonka.SESV2.CreateContact" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "CreateContact'" '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 CreateContact Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

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:unsubscribeAll:CreateContact', createContact_unsubscribeAll - A boolean value status noting if the contact is unsubscribed from all contact list topics.

$sel:attributesData:CreateContact', createContact_attributesData - The attribute data attached to a contact.

$sel:topicPreferences:CreateContact', createContact_topicPreferences - The contact's preferences for being opted-in to or opted-out of topics.

$sel:contactListName:CreateContact', createContact_contactListName - The name of the contact list to which the contact should be added.

$sel:emailAddress:CreateContact', createContact_emailAddress - The contact's email address.

Request Lenses

createContact_unsubscribeAll :: Lens' CreateContact (Maybe Bool) Source #

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

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_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
Eq CreateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Read CreateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Show CreateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Generic CreateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Associated Types

type Rep CreateContactResponse :: Type -> Type #

NFData CreateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

Methods

rnf :: CreateContactResponse -> () #

type Rep CreateContactResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateContact

type Rep CreateContactResponse = D1 ('MetaData "CreateContactResponse" "Amazonka.SESV2.CreateContact" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" '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