amazonka-customer-profiles-2.0: Amazon Connect Customer Profiles 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.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
ToJSON UpdateProfile Source # 
Instance details

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

AWSRequest UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Associated Types

type AWSResponse UpdateProfile #

Generic UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Associated Types

type Rep UpdateProfile :: Type -> Type #

Read UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Show UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

NFData UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Methods

rnf :: UpdateProfile -> () #

Eq UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Hashable UpdateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

type AWSResponse 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" "amazonka-customer-profiles-2.0-7iC4NjyJEW8JuQGNtDiJ1f" 'False) (C1 ('MetaCons "UpdateProfile'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "accountNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "additionalInformation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UpdateAddress)))) :*: (S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "billingAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UpdateAddress)) :*: S1 ('MetaSel ('Just "birthDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "businessEmailAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "businessName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "businessPhoneNumber") '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 "gender") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Gender)))))) :*: (((S1 ('MetaSel ('Just "genderString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "homePhoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastName") '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 "mobilePhoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "partyType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PartyType)) :*: (S1 ('MetaSel ('Just "partyTypeString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "personalEmailAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "phoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "shippingAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UpdateAddress))) :*: (S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "profileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))))

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:

UpdateProfile, updateProfile_accountNumber - A unique account number that you have given to the customer.

UpdateProfile, updateProfile_additionalInformation - Any additional information relevant to the customer’s profile.

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

UpdateProfile, updateProfile_attributes - A key value pair of attributes of a customer profile.

UpdateProfile, updateProfile_billingAddress - The customer’s billing address.

UpdateProfile, updateProfile_birthDate - The customer’s birth date.

UpdateProfile, updateProfile_businessEmailAddress - The customer’s business email address.

UpdateProfile, updateProfile_businessName - The name of the customer’s business.

UpdateProfile, updateProfile_businessPhoneNumber - The customer’s business phone number.

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

UpdateProfile, updateProfile_firstName - The customer’s first name.

UpdateProfile, updateProfile_gender - The gender with which the customer identifies.

$sel:genderString:UpdateProfile', updateProfile_genderString - An alternative to Gender which accepts any string as input.

UpdateProfile, updateProfile_homePhoneNumber - The customer’s home phone number.

UpdateProfile, updateProfile_lastName - The customer’s last name.

UpdateProfile, updateProfile_mailingAddress - The customer’s mailing address.

UpdateProfile, updateProfile_middleName - The customer’s middle name.

UpdateProfile, updateProfile_mobilePhoneNumber - The customer’s mobile phone number.

UpdateProfile, updateProfile_partyType - The type of profile used to describe the customer.

$sel:partyTypeString:UpdateProfile', updateProfile_partyTypeString - An alternative to PartyType which accepts any string as input.

UpdateProfile, updateProfile_personalEmailAddress - The customer’s personal email address.

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

UpdateProfile, updateProfile_shippingAddress - The customer’s shipping address.

UpdateProfile, updateProfile_domainName - The unique name of the domain.

UpdateProfile, updateProfile_profileId - The unique identifier of a customer profile.

Request Lenses

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

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

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

Any additional information relevant to the customer’s profile.

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

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

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

A key value pair of attributes of a customer profile.

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

The customer’s birth date.

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

The customer’s business email address.

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

The name of the customer’s business.

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

The customer’s business phone number.

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_gender :: Lens' UpdateProfile (Maybe Gender) Source #

The gender with which the customer identifies.

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

An alternative to Gender which accepts any string as input.

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

The customer’s home phone number.

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

The customer’s last name.

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

The customer’s middle name.

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

The customer’s mobile phone number.

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

The type of profile used to describe the customer.

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

An alternative to PartyType which accepts any string as input.

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

The customer’s personal email address.

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_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
Generic UpdateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Associated Types

type Rep UpdateProfileResponse :: Type -> Type #

Read UpdateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Show UpdateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

NFData UpdateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

Methods

rnf :: UpdateProfileResponse -> () #

Eq UpdateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

type Rep UpdateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.UpdateProfile

type Rep UpdateProfileResponse = D1 ('MetaData "UpdateProfileResponse" "Amazonka.CustomerProfiles.UpdateProfile" "amazonka-customer-profiles-2.0-7iC4NjyJEW8JuQGNtDiJ1f" '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.

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.