libZSservicesZSamazonka-customer-profilesZSamazonka-customer-profiles
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.CustomerProfiles.UpdateProfile

Description

Updates the properties of a profile. The ProfileId is required for updating a customer profile.

When calling the UpdateProfile API, specifying an empty string value means that any existing value will be removed. Not specifying a string value means that any value already there will be kept.

Synopsis

Creating a Request

data UpdateProfile Source #

See: newUpdateProfile smart constructor.

Constructors

UpdateProfile' 

Fields

Instances

Instances details
Eq UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Read UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Show UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Generic UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Associated Types

type Rep UpdateProfile :: Type -> Type #

NFData UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Methods

rnf :: UpdateProfile -> () #

Hashable UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

ToJSON UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

AWSRequest UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Associated Types

type AWSResponse UpdateProfile #

ToHeaders UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

ToPath UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

ToQuery UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

type Rep UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

type Rep UpdateProfile = D1 ('MetaData "UpdateProfile" "Amazonka.CustomerProfiles.UpdateProfile" "libZSservicesZSamazonka-customer-profilesZSamazonka-customer-profiles" 'False) (C1 ('MetaCons "UpdateProfile'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "shippingAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UpdateAddress)) :*: S1 ('MetaSel ('Just "mobilePhoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "mailingAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UpdateAddress)) :*: (S1 ('MetaSel ('Just "middleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "personalEmailAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "lastName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "additionalInformation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "homePhoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UpdateAddress)) :*: (S1 ('MetaSel ('Just "partyType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PartyType)) :*: S1 ('MetaSel ('Just "businessEmailAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))) :*: (((S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "gender") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Gender)) :*: S1 ('MetaSel ('Just "phoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "accountNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "emailAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "firstName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "billingAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UpdateAddress)) :*: (S1 ('MetaSel ('Just "businessPhoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "birthDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "businessName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "profileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))))
type AWSResponse UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

newUpdateProfile Source #

Create a value of UpdateProfile 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:shippingAddress:UpdateProfile', updateProfile_shippingAddress - The customer’s shipping address.

$sel:mobilePhoneNumber:UpdateProfile', updateProfile_mobilePhoneNumber - The customer’s mobile phone number.

$sel:mailingAddress:UpdateProfile', updateProfile_mailingAddress - The customer’s mailing address.

$sel:middleName:UpdateProfile', updateProfile_middleName - The customer’s middle name.

$sel:personalEmailAddress:UpdateProfile', updateProfile_personalEmailAddress - The customer’s personal email address.

$sel:lastName:UpdateProfile', updateProfile_lastName - The customer’s last name.

$sel:additionalInformation:UpdateProfile', updateProfile_additionalInformation - Any additional information relevant to the customer’s profile.

$sel:homePhoneNumber:UpdateProfile', updateProfile_homePhoneNumber - The customer’s home phone number.

$sel:address:UpdateProfile', updateProfile_address - A generic address associated with the customer that is not mailing, shipping, or billing.

$sel:partyType:UpdateProfile', updateProfile_partyType - The type of profile used to describe the customer.

$sel:businessEmailAddress:UpdateProfile', updateProfile_businessEmailAddress - The customer’s business email address.

$sel:attributes:UpdateProfile', updateProfile_attributes - A key value pair of attributes of a customer profile.

$sel:gender:UpdateProfile', updateProfile_gender - The gender with which the customer identifies.

$sel:phoneNumber:UpdateProfile', updateProfile_phoneNumber - The customer’s phone number, which has not been specified as a mobile, home, or business number.

$sel:accountNumber:UpdateProfile', updateProfile_accountNumber - A unique account number that you have given to the customer.

$sel:emailAddress:UpdateProfile', updateProfile_emailAddress - The customer’s email address, which has not been specified as a personal or business address.

$sel:firstName:UpdateProfile', updateProfile_firstName - The customer’s first name.

$sel:billingAddress:UpdateProfile', updateProfile_billingAddress - The customer’s billing address.

$sel:businessPhoneNumber:UpdateProfile', updateProfile_businessPhoneNumber - The customer’s business phone number.

$sel:birthDate:UpdateProfile', updateProfile_birthDate - The customer’s birth date.

$sel:businessName:UpdateProfile', updateProfile_businessName - The name of the customer’s business.

$sel:domainName:UpdateProfile', updateProfile_domainName - The unique name of the domain.

$sel:profileId:UpdateProfile', updateProfile_profileId - The unique identifier of a customer profile.

Request Lenses

updateProfile_mobilePhoneNumber :: Lens' UpdateProfile (Maybe Text) Source #

The customer’s mobile phone number.

updateProfile_middleName :: Lens' UpdateProfile (Maybe Text) Source #

The customer’s middle name.

updateProfile_personalEmailAddress :: Lens' UpdateProfile (Maybe Text) Source #

The customer’s personal email address.

updateProfile_lastName :: Lens' UpdateProfile (Maybe Text) Source #

The customer’s last name.

updateProfile_additionalInformation :: Lens' UpdateProfile (Maybe Text) Source #

Any additional information relevant to the customer’s profile.

updateProfile_homePhoneNumber :: Lens' UpdateProfile (Maybe Text) Source #

The customer’s home phone number.

updateProfile_address :: Lens' UpdateProfile (Maybe UpdateAddress) Source #

A generic address associated with the customer that is not mailing, shipping, or billing.

updateProfile_partyType :: Lens' UpdateProfile (Maybe PartyType) Source #

The type of profile used to describe the customer.

updateProfile_businessEmailAddress :: Lens' UpdateProfile (Maybe Text) Source #

The customer’s business email address.

updateProfile_attributes :: Lens' UpdateProfile (Maybe (HashMap Text Text)) Source #

A key value pair of attributes of a customer profile.

updateProfile_gender :: Lens' UpdateProfile (Maybe Gender) Source #

The gender with which the customer identifies.

updateProfile_phoneNumber :: Lens' UpdateProfile (Maybe Text) Source #

The customer’s phone number, which has not been specified as a mobile, home, or business number.

updateProfile_accountNumber :: Lens' UpdateProfile (Maybe Text) Source #

A unique account number that you have given to the customer.

updateProfile_emailAddress :: Lens' UpdateProfile (Maybe Text) Source #

The customer’s email address, which has not been specified as a personal or business address.

updateProfile_firstName :: Lens' UpdateProfile (Maybe Text) Source #

The customer’s first name.

updateProfile_businessPhoneNumber :: Lens' UpdateProfile (Maybe Text) Source #

The customer’s business phone number.

updateProfile_birthDate :: Lens' UpdateProfile (Maybe Text) Source #

The customer’s birth date.

updateProfile_businessName :: Lens' UpdateProfile (Maybe Text) Source #

The name of the customer’s business.

updateProfile_domainName :: Lens' UpdateProfile Text Source #

The unique name of the domain.

updateProfile_profileId :: Lens' UpdateProfile Text Source #

The unique identifier of a customer profile.

Destructuring the Response

data UpdateProfileResponse Source #

See: newUpdateProfileResponse smart constructor.

Constructors

UpdateProfileResponse' 

Fields

Instances

Instances details
Eq UpdateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Read UpdateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Show UpdateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Generic UpdateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Associated Types

type Rep UpdateProfileResponse :: Type -> Type #

NFData UpdateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Methods

rnf :: UpdateProfileResponse -> () #

type Rep UpdateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

type Rep UpdateProfileResponse = D1 ('MetaData "UpdateProfileResponse" "Amazonka.CustomerProfiles.UpdateProfile" "libZSservicesZSamazonka-customer-profilesZSamazonka-customer-profiles" 'False) (C1 ('MetaCons "UpdateProfileResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "profileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newUpdateProfileResponse Source #

Create a value of UpdateProfileResponse 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:UpdateProfileResponse', updateProfileResponse_httpStatus - The response's http status code.

$sel:profileId:UpdateProfile', updateProfileResponse_profileId - The unique identifier of a customer profile.

Response Lenses

updateProfileResponse_profileId :: Lens' UpdateProfileResponse Text Source #

The unique identifier of a customer profile.