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

Description

This API is in preview release for Amazon Connect and subject to change.

Runs an AWS Lambda job that does the following:

  1. All the profileKeys in the ProfileToBeMerged will be moved to the main profile.
  2. All the objects in the ProfileToBeMerged will be moved to the main profile.
  3. All the ProfileToBeMerged will be deleted at the end.
  4. All the profileKeys in the ProfileIdsToBeMerged will be moved to the main profile.
  5. Standard fields are merged as follows:

    1. Fields are always "union"-ed if there are no conflicts in standard fields or attributeKeys.
    2. When there are conflicting fields:

      1. If no SourceProfileIds entry is specified, the main Profile value is always taken.
      2. If a SourceProfileIds entry is specified, the specified profileId is always taken, even if it is a NULL value.

You can use MergeProfiles together with GetMatches, which returns potentially matching profiles, or use it with the results of another matching system. After profiles have been merged, they cannot be separated (unmerged).

Synopsis

Creating a Request

data MergeProfiles Source #

See: newMergeProfiles smart constructor.

Constructors

MergeProfiles' 

Fields

Instances

Instances details
Eq MergeProfiles Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

Read MergeProfiles Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

Show MergeProfiles Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

Generic MergeProfiles Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

Associated Types

type Rep MergeProfiles :: Type -> Type #

NFData MergeProfiles Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

Methods

rnf :: MergeProfiles -> () #

Hashable MergeProfiles Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

ToJSON MergeProfiles Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

AWSRequest MergeProfiles Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

Associated Types

type AWSResponse MergeProfiles #

ToHeaders MergeProfiles Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

ToPath MergeProfiles Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

ToQuery MergeProfiles Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

type Rep MergeProfiles Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

type Rep MergeProfiles = D1 ('MetaData "MergeProfiles" "Amazonka.CustomerProfiles.MergeProfiles" "libZSservicesZSamazonka-customer-profilesZSamazonka-customer-profiles" 'False) (C1 ('MetaCons "MergeProfiles'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fieldSourceProfileIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FieldSourceProfileIds)) :*: S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "mainProfileId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "profileIdsToBeMerged") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text)))))
type AWSResponse MergeProfiles Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

newMergeProfiles Source #

Create a value of MergeProfiles 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:fieldSourceProfileIds:MergeProfiles', mergeProfiles_fieldSourceProfileIds - The identifiers of the fields in the profile that has the information you want to apply to the merge. For example, say you want to merge EmailAddress from Profile1 into MainProfile. This would be the identifier of the EmailAddress field in Profile1.

$sel:domainName:MergeProfiles', mergeProfiles_domainName - The unique name of the domain.

$sel:mainProfileId:MergeProfiles', mergeProfiles_mainProfileId - The identifier of the profile to be taken.

$sel:profileIdsToBeMerged:MergeProfiles', mergeProfiles_profileIdsToBeMerged - The identifier of the profile to be merged into MainProfileId.

Request Lenses

mergeProfiles_fieldSourceProfileIds :: Lens' MergeProfiles (Maybe FieldSourceProfileIds) Source #

The identifiers of the fields in the profile that has the information you want to apply to the merge. For example, say you want to merge EmailAddress from Profile1 into MainProfile. This would be the identifier of the EmailAddress field in Profile1.

mergeProfiles_domainName :: Lens' MergeProfiles Text Source #

The unique name of the domain.

mergeProfiles_mainProfileId :: Lens' MergeProfiles Text Source #

The identifier of the profile to be taken.

mergeProfiles_profileIdsToBeMerged :: Lens' MergeProfiles (NonEmpty Text) Source #

The identifier of the profile to be merged into MainProfileId.

Destructuring the Response

data MergeProfilesResponse Source #

See: newMergeProfilesResponse smart constructor.

Constructors

MergeProfilesResponse' 

Fields

Instances

Instances details
Eq MergeProfilesResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

Read MergeProfilesResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

Show MergeProfilesResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

Generic MergeProfilesResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

Associated Types

type Rep MergeProfilesResponse :: Type -> Type #

NFData MergeProfilesResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

Methods

rnf :: MergeProfilesResponse -> () #

type Rep MergeProfilesResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.MergeProfiles

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

newMergeProfilesResponse Source #

Create a value of MergeProfilesResponse 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:message:MergeProfilesResponse', mergeProfilesResponse_message - A message that indicates the merge request is complete.

$sel:httpStatus:MergeProfilesResponse', mergeProfilesResponse_httpStatus - The response's http status code.

Response Lenses

mergeProfilesResponse_message :: Lens' MergeProfilesResponse (Maybe Text) Source #

A message that indicates the merge request is complete.