Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
This API is in preview release for Amazon Connect and subject to change.
Runs an AWS Lambda job that does the following:
- All the profileKeys in the
ProfileToBeMerged
will be moved to the main profile. - All the objects in the
ProfileToBeMerged
will be moved to the main profile. - All the
ProfileToBeMerged
will be deleted at the end. - All the profileKeys in the
ProfileIdsToBeMerged
will be moved to the main profile. Standard fields are merged as follows:
- Fields are always "union"-ed if there are no conflicts in standard fields or attributeKeys.
When there are conflicting fields:
- If no
SourceProfileIds
entry is specified, the main Profile value is always taken. - If a
SourceProfileIds
entry is specified, the specified profileId is always taken, even if it is a NULL value.
- If no
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
- data MergeProfiles = MergeProfiles' {}
- newMergeProfiles :: Text -> Text -> NonEmpty Text -> MergeProfiles
- mergeProfiles_fieldSourceProfileIds :: Lens' MergeProfiles (Maybe FieldSourceProfileIds)
- mergeProfiles_domainName :: Lens' MergeProfiles Text
- mergeProfiles_mainProfileId :: Lens' MergeProfiles Text
- mergeProfiles_profileIdsToBeMerged :: Lens' MergeProfiles (NonEmpty Text)
- data MergeProfilesResponse = MergeProfilesResponse' {
- message :: Maybe Text
- httpStatus :: Int
- newMergeProfilesResponse :: Int -> MergeProfilesResponse
- mergeProfilesResponse_message :: Lens' MergeProfilesResponse (Maybe Text)
- mergeProfilesResponse_httpStatus :: Lens' MergeProfilesResponse Int
Creating a Request
data MergeProfiles Source #
See: newMergeProfiles
smart constructor.
MergeProfiles' | |
|
Instances
:: Text | |
-> Text | |
-> NonEmpty Text | |
-> MergeProfiles |
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.
MergeProfilesResponse' | |
|
Instances
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.
mergeProfilesResponse_httpStatus :: Lens' MergeProfilesResponse Int Source #
The response's http status code.