2022/12/12 - Amazon Connect Customer Profiles - 2 updated api methods
Changes This release allows custom strings in PartyType and Gender through 2 new attributes in the CreateProfile and UpdateProfile APIs: PartyTypeString and GenderString.
{'GenderString': 'string', 'PartyTypeString': 'string'}
Creates a standard profile.
A standard profile represents the following attributes for a customer profile in a domain.
See also: AWS API Documentation
Request Syntax
client.create_profile( DomainName='string', AccountNumber='string', AdditionalInformation='string', PartyType='INDIVIDUAL'|'BUSINESS'|'OTHER', BusinessName='string', FirstName='string', MiddleName='string', LastName='string', BirthDate='string', Gender='MALE'|'FEMALE'|'UNSPECIFIED', PhoneNumber='string', MobilePhoneNumber='string', HomePhoneNumber='string', BusinessPhoneNumber='string', EmailAddress='string', PersonalEmailAddress='string', BusinessEmailAddress='string', Address={ 'Address1': 'string', 'Address2': 'string', 'Address3': 'string', 'Address4': 'string', 'City': 'string', 'County': 'string', 'State': 'string', 'Province': 'string', 'Country': 'string', 'PostalCode': 'string' }, ShippingAddress={ 'Address1': 'string', 'Address2': 'string', 'Address3': 'string', 'Address4': 'string', 'City': 'string', 'County': 'string', 'State': 'string', 'Province': 'string', 'Country': 'string', 'PostalCode': 'string' }, MailingAddress={ 'Address1': 'string', 'Address2': 'string', 'Address3': 'string', 'Address4': 'string', 'City': 'string', 'County': 'string', 'State': 'string', 'Province': 'string', 'Country': 'string', 'PostalCode': 'string' }, BillingAddress={ 'Address1': 'string', 'Address2': 'string', 'Address3': 'string', 'Address4': 'string', 'City': 'string', 'County': 'string', 'State': 'string', 'Province': 'string', 'Country': 'string', 'PostalCode': 'string' }, Attributes={ 'string': 'string' }, PartyTypeString='string', GenderString='string' )
string
[REQUIRED]
The unique name of the domain.
string
A unique account number that you have given to the customer.
string
Any additional information relevant to the customer’s profile.
string
The type of profile used to describe the customer.
string
The name of the customer’s business.
string
The customer’s first name.
string
The customer’s middle name.
string
The customer’s last name.
string
The customer’s birth date.
string
The gender with which the customer identifies.
string
The customer’s phone number, which has not been specified as a mobile, home, or business number.
string
The customer’s mobile phone number.
string
The customer’s home phone number.
string
The customer’s business phone number.
string
The customer’s email address, which has not been specified as a personal or business address.
string
The customer’s personal email address.
string
The customer’s business email address.
dict
A generic address associated with the customer that is not mailing, shipping, or billing.
Address1 (string) --
The first line of a customer address.
Address2 (string) --
The second line of a customer address.
Address3 (string) --
The third line of a customer address.
Address4 (string) --
The fourth line of a customer address.
City (string) --
The city in which a customer lives.
County (string) --
The county in which a customer lives.
State (string) --
The state in which a customer lives.
Province (string) --
The province in which a customer lives.
Country (string) --
The country in which a customer lives.
PostalCode (string) --
The postal code of a customer address.
dict
The customer’s shipping address.
Address1 (string) --
The first line of a customer address.
Address2 (string) --
The second line of a customer address.
Address3 (string) --
The third line of a customer address.
Address4 (string) --
The fourth line of a customer address.
City (string) --
The city in which a customer lives.
County (string) --
The county in which a customer lives.
State (string) --
The state in which a customer lives.
Province (string) --
The province in which a customer lives.
Country (string) --
The country in which a customer lives.
PostalCode (string) --
The postal code of a customer address.
dict
The customer’s mailing address.
Address1 (string) --
The first line of a customer address.
Address2 (string) --
The second line of a customer address.
Address3 (string) --
The third line of a customer address.
Address4 (string) --
The fourth line of a customer address.
City (string) --
The city in which a customer lives.
County (string) --
The county in which a customer lives.
State (string) --
The state in which a customer lives.
Province (string) --
The province in which a customer lives.
Country (string) --
The country in which a customer lives.
PostalCode (string) --
The postal code of a customer address.
dict
The customer’s billing address.
Address1 (string) --
The first line of a customer address.
Address2 (string) --
The second line of a customer address.
Address3 (string) --
The third line of a customer address.
Address4 (string) --
The fourth line of a customer address.
City (string) --
The city in which a customer lives.
County (string) --
The county in which a customer lives.
State (string) --
The state in which a customer lives.
Province (string) --
The province in which a customer lives.
Country (string) --
The country in which a customer lives.
PostalCode (string) --
The postal code of a customer address.
dict
A key value pair of attributes of a customer profile.
(string) --
(string) --
string
An alternative to PartyType which accepts any string as input.
string
An alternative to Gender which accepts any string as input.
dict
Response Syntax
{ 'ProfileId': 'string' }
Response Structure
(dict) --
ProfileId (string) --
The unique identifier of a customer profile.
{'GenderString': 'string', 'PartyTypeString': 'string'}
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.
See also: AWS API Documentation
Request Syntax
client.update_profile( DomainName='string', ProfileId='string', AdditionalInformation='string', AccountNumber='string', PartyType='INDIVIDUAL'|'BUSINESS'|'OTHER', BusinessName='string', FirstName='string', MiddleName='string', LastName='string', BirthDate='string', Gender='MALE'|'FEMALE'|'UNSPECIFIED', PhoneNumber='string', MobilePhoneNumber='string', HomePhoneNumber='string', BusinessPhoneNumber='string', EmailAddress='string', PersonalEmailAddress='string', BusinessEmailAddress='string', Address={ 'Address1': 'string', 'Address2': 'string', 'Address3': 'string', 'Address4': 'string', 'City': 'string', 'County': 'string', 'State': 'string', 'Province': 'string', 'Country': 'string', 'PostalCode': 'string' }, ShippingAddress={ 'Address1': 'string', 'Address2': 'string', 'Address3': 'string', 'Address4': 'string', 'City': 'string', 'County': 'string', 'State': 'string', 'Province': 'string', 'Country': 'string', 'PostalCode': 'string' }, MailingAddress={ 'Address1': 'string', 'Address2': 'string', 'Address3': 'string', 'Address4': 'string', 'City': 'string', 'County': 'string', 'State': 'string', 'Province': 'string', 'Country': 'string', 'PostalCode': 'string' }, BillingAddress={ 'Address1': 'string', 'Address2': 'string', 'Address3': 'string', 'Address4': 'string', 'City': 'string', 'County': 'string', 'State': 'string', 'Province': 'string', 'Country': 'string', 'PostalCode': 'string' }, Attributes={ 'string': 'string' }, PartyTypeString='string', GenderString='string' )
string
[REQUIRED]
The unique name of the domain.
string
[REQUIRED]
The unique identifier of a customer profile.
string
Any additional information relevant to the customer’s profile.
string
A unique account number that you have given to the customer.
string
The type of profile used to describe the customer.
string
The name of the customer’s business.
string
The customer’s first name.
string
The customer’s middle name.
string
The customer’s last name.
string
The customer’s birth date.
string
The gender with which the customer identifies.
string
The customer’s phone number, which has not been specified as a mobile, home, or business number.
string
The customer’s mobile phone number.
string
The customer’s home phone number.
string
The customer’s business phone number.
string
The customer’s email address, which has not been specified as a personal or business address.
string
The customer’s personal email address.
string
The customer’s business email address.
dict
A generic address associated with the customer that is not mailing, shipping, or billing.
Address1 (string) --
The first line of a customer address.
Address2 (string) --
The second line of a customer address.
Address3 (string) --
The third line of a customer address.
Address4 (string) --
The fourth line of a customer address.
City (string) --
The city in which a customer lives.
County (string) --
The county in which a customer lives.
State (string) --
The state in which a customer lives.
Province (string) --
The province in which a customer lives.
Country (string) --
The country in which a customer lives.
PostalCode (string) --
The postal code of a customer address.
dict
The customer’s shipping address.
Address1 (string) --
The first line of a customer address.
Address2 (string) --
The second line of a customer address.
Address3 (string) --
The third line of a customer address.
Address4 (string) --
The fourth line of a customer address.
City (string) --
The city in which a customer lives.
County (string) --
The county in which a customer lives.
State (string) --
The state in which a customer lives.
Province (string) --
The province in which a customer lives.
Country (string) --
The country in which a customer lives.
PostalCode (string) --
The postal code of a customer address.
dict
The customer’s mailing address.
Address1 (string) --
The first line of a customer address.
Address2 (string) --
The second line of a customer address.
Address3 (string) --
The third line of a customer address.
Address4 (string) --
The fourth line of a customer address.
City (string) --
The city in which a customer lives.
County (string) --
The county in which a customer lives.
State (string) --
The state in which a customer lives.
Province (string) --
The province in which a customer lives.
Country (string) --
The country in which a customer lives.
PostalCode (string) --
The postal code of a customer address.
dict
The customer’s billing address.
Address1 (string) --
The first line of a customer address.
Address2 (string) --
The second line of a customer address.
Address3 (string) --
The third line of a customer address.
Address4 (string) --
The fourth line of a customer address.
City (string) --
The city in which a customer lives.
County (string) --
The county in which a customer lives.
State (string) --
The state in which a customer lives.
Province (string) --
The province in which a customer lives.
Country (string) --
The country in which a customer lives.
PostalCode (string) --
The postal code of a customer address.
dict
A key value pair of attributes of a customer profile.
(string) --
(string) --
string
An alternative to PartyType which accepts any string as input.
string
An alternative to Gender which accepts any string as input.
dict
Response Syntax
{ 'ProfileId': 'string' }
Response Structure
(dict) --
ProfileId (string) --
The unique identifier of a customer profile.