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

Description

Creates a standard profile.

A standard profile represents the following attributes for a customer profile in a domain.

Synopsis

Creating a Request

data CreateProfile Source #

See: newCreateProfile smart constructor.

Constructors

CreateProfile' 

Fields

Instances

Instances details
ToJSON CreateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

ToHeaders CreateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

ToPath CreateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

ToQuery CreateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

AWSRequest CreateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

Associated Types

type AWSResponse CreateProfile #

Generic CreateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

Associated Types

type Rep CreateProfile :: Type -> Type #

Read CreateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

Show CreateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

NFData CreateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

Methods

rnf :: CreateProfile -> () #

Eq CreateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

Hashable CreateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

type AWSResponse CreateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

type Rep CreateProfile Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

type Rep CreateProfile = D1 ('MetaData "CreateProfile" "Amazonka.CustomerProfiles.CreateProfile" "amazonka-customer-profiles-2.0-7iC4NjyJEW8JuQGNtDiJ1f" 'False) (C1 ('MetaCons "CreateProfile'" '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 Address)))) :*: (S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "billingAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Address)) :*: 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 Address)) :*: (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 Address)) :*: S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))))

newCreateProfile Source #

Create a value of CreateProfile 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:

CreateProfile, createProfile_accountNumber - A unique account number that you have given to the customer.

CreateProfile, createProfile_additionalInformation - Any additional information relevant to the customer’s profile.

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

CreateProfile, createProfile_attributes - A key value pair of attributes of a customer profile.

CreateProfile, createProfile_billingAddress - The customer’s billing address.

CreateProfile, createProfile_birthDate - The customer’s birth date.

CreateProfile, createProfile_businessEmailAddress - The customer’s business email address.

CreateProfile, createProfile_businessName - The name of the customer’s business.

CreateProfile, createProfile_businessPhoneNumber - The customer’s business phone number.

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

CreateProfile, createProfile_firstName - The customer’s first name.

CreateProfile, createProfile_gender - The gender with which the customer identifies.

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

CreateProfile, createProfile_homePhoneNumber - The customer’s home phone number.

CreateProfile, createProfile_lastName - The customer’s last name.

CreateProfile, createProfile_mailingAddress - The customer’s mailing address.

CreateProfile, createProfile_middleName - The customer’s middle name.

CreateProfile, createProfile_mobilePhoneNumber - The customer’s mobile phone number.

CreateProfile, createProfile_partyType - The type of profile used to describe the customer.

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

CreateProfile, createProfile_personalEmailAddress - The customer’s personal email address.

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

CreateProfile, createProfile_shippingAddress - The customer’s shipping address.

CreateProfile, createProfile_domainName - The unique name of the domain.

Request Lenses

createProfile_accountNumber :: Lens' CreateProfile (Maybe Text) Source #

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

createProfile_additionalInformation :: Lens' CreateProfile (Maybe Text) Source #

Any additional information relevant to the customer’s profile.

createProfile_address :: Lens' CreateProfile (Maybe Address) Source #

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

createProfile_attributes :: Lens' CreateProfile (Maybe (HashMap Text Text)) Source #

A key value pair of attributes of a customer profile.

createProfile_billingAddress :: Lens' CreateProfile (Maybe Address) Source #

The customer’s billing address.

createProfile_birthDate :: Lens' CreateProfile (Maybe Text) Source #

The customer’s birth date.

createProfile_businessEmailAddress :: Lens' CreateProfile (Maybe Text) Source #

The customer’s business email address.

createProfile_businessName :: Lens' CreateProfile (Maybe Text) Source #

The name of the customer’s business.

createProfile_businessPhoneNumber :: Lens' CreateProfile (Maybe Text) Source #

The customer’s business phone number.

createProfile_emailAddress :: Lens' CreateProfile (Maybe Text) Source #

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

createProfile_firstName :: Lens' CreateProfile (Maybe Text) Source #

The customer’s first name.

createProfile_gender :: Lens' CreateProfile (Maybe Gender) Source #

The gender with which the customer identifies.

createProfile_genderString :: Lens' CreateProfile (Maybe Text) Source #

An alternative to Gender which accepts any string as input.

createProfile_homePhoneNumber :: Lens' CreateProfile (Maybe Text) Source #

The customer’s home phone number.

createProfile_lastName :: Lens' CreateProfile (Maybe Text) Source #

The customer’s last name.

createProfile_mailingAddress :: Lens' CreateProfile (Maybe Address) Source #

The customer’s mailing address.

createProfile_middleName :: Lens' CreateProfile (Maybe Text) Source #

The customer’s middle name.

createProfile_mobilePhoneNumber :: Lens' CreateProfile (Maybe Text) Source #

The customer’s mobile phone number.

createProfile_partyType :: Lens' CreateProfile (Maybe PartyType) Source #

The type of profile used to describe the customer.

createProfile_partyTypeString :: Lens' CreateProfile (Maybe Text) Source #

An alternative to PartyType which accepts any string as input.

createProfile_personalEmailAddress :: Lens' CreateProfile (Maybe Text) Source #

The customer’s personal email address.

createProfile_phoneNumber :: Lens' CreateProfile (Maybe Text) Source #

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

createProfile_shippingAddress :: Lens' CreateProfile (Maybe Address) Source #

The customer’s shipping address.

createProfile_domainName :: Lens' CreateProfile Text Source #

The unique name of the domain.

Destructuring the Response

data CreateProfileResponse Source #

See: newCreateProfileResponse smart constructor.

Constructors

CreateProfileResponse' 

Fields

Instances

Instances details
Generic CreateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

Associated Types

type Rep CreateProfileResponse :: Type -> Type #

Read CreateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

Show CreateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

NFData CreateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

Methods

rnf :: CreateProfileResponse -> () #

Eq CreateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

type Rep CreateProfileResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.CreateProfile

type Rep CreateProfileResponse = D1 ('MetaData "CreateProfileResponse" "Amazonka.CustomerProfiles.CreateProfile" "amazonka-customer-profiles-2.0-7iC4NjyJEW8JuQGNtDiJ1f" 'False) (C1 ('MetaCons "CreateProfileResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "profileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCreateProfileResponse Source #

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

CreateProfileResponse, createProfileResponse_profileId - The unique identifier of a customer profile.

Response Lenses

createProfileResponse_profileId :: Lens' CreateProfileResponse Text Source #

The unique identifier of a customer profile.