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

Description

Before calling this API, use CreateDomain or UpdateDomain to enable identity resolution: set Matching to true.

GetMatches returns potentially matching profiles, based on the results of the latest run of a machine learning process.

The process of matching duplicate profiles. If Matching = true, Amazon Connect Customer Profiles starts a weekly batch process called Identity Resolution Job. If you do not specify a date and time for Identity Resolution Job to run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles in your domains.

After the Identity Resolution Job completes, use the GetMatches API to return and review the results. Or, if you have configured ExportingConfig in the MatchingRequest, you can download the results from S3.

Amazon Connect uses the following profile attributes to identify matches:

  • PhoneNumber
  • HomePhoneNumber
  • BusinessPhoneNumber
  • MobilePhoneNumber
  • EmailAddress
  • PersonalEmailAddress
  • BusinessEmailAddress
  • FullName

For example, two or more profiles—with spelling mistakes such as __John Doe and Jhn Doe__, or different casing email addresses such as JOHN_DOE@ANYCOMPANY.COM and johndoe@anycompany.com, or different phone number formats such as 555-010-0000 and +1-555-010-0000—can be detected as belonging to the same customer John Doe and merged into a unified profile.

Synopsis

Creating a Request

data GetMatches Source #

See: newGetMatches smart constructor.

Constructors

GetMatches' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of results to return per page.

  • nextToken :: Maybe Text

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

  • domainName :: Text

    The unique name of the domain.

Instances

Instances details
ToHeaders GetMatches Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

Methods

toHeaders :: GetMatches -> [Header] #

ToPath GetMatches Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

ToQuery GetMatches Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

AWSRequest GetMatches Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

Associated Types

type AWSResponse GetMatches #

Generic GetMatches Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

Associated Types

type Rep GetMatches :: Type -> Type #

Read GetMatches Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

Show GetMatches Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

NFData GetMatches Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

Methods

rnf :: GetMatches -> () #

Eq GetMatches Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

Hashable GetMatches Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

type AWSResponse GetMatches Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

type Rep GetMatches Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

type Rep GetMatches = D1 ('MetaData "GetMatches" "Amazonka.CustomerProfiles.GetMatches" "amazonka-customer-profiles-2.0-7iC4NjyJEW8JuQGNtDiJ1f" 'False) (C1 ('MetaCons "GetMatches'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newGetMatches Source #

Arguments

:: Text

GetMatches

-> GetMatches 

Create a value of GetMatches 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:maxResults:GetMatches', getMatches_maxResults - The maximum number of results to return per page.

GetMatches, getMatches_nextToken - The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

GetMatches, getMatches_domainName - The unique name of the domain.

Request Lenses

getMatches_maxResults :: Lens' GetMatches (Maybe Natural) Source #

The maximum number of results to return per page.

getMatches_nextToken :: Lens' GetMatches (Maybe Text) Source #

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

getMatches_domainName :: Lens' GetMatches Text Source #

The unique name of the domain.

Destructuring the Response

data GetMatchesResponse Source #

See: newGetMatchesResponse smart constructor.

Constructors

GetMatchesResponse' 

Fields

Instances

Instances details
Generic GetMatchesResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

Associated Types

type Rep GetMatchesResponse :: Type -> Type #

Read GetMatchesResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

Show GetMatchesResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

NFData GetMatchesResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

Methods

rnf :: GetMatchesResponse -> () #

Eq GetMatchesResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

type Rep GetMatchesResponse Source # 
Instance details

Defined in Amazonka.CustomerProfiles.GetMatches

type Rep GetMatchesResponse = D1 ('MetaData "GetMatchesResponse" "Amazonka.CustomerProfiles.GetMatches" "amazonka-customer-profiles-2.0-7iC4NjyJEW8JuQGNtDiJ1f" 'False) (C1 ('MetaCons "GetMatchesResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "matchGenerationDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "matches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [MatchItem]))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "potentialMatches") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newGetMatchesResponse Source #

Create a value of GetMatchesResponse 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:matchGenerationDate:GetMatchesResponse', getMatchesResponse_matchGenerationDate - The timestamp this version of Match Result generated.

$sel:matches:GetMatchesResponse', getMatchesResponse_matches - The list of matched profiles for this instance.

GetMatches, getMatchesResponse_nextToken - If there are additional results, this is the token for the next set of results.

$sel:potentialMatches:GetMatchesResponse', getMatchesResponse_potentialMatches - The number of potential matches found.

$sel:httpStatus:GetMatchesResponse', getMatchesResponse_httpStatus - The response's http status code.

Response Lenses

getMatchesResponse_matchGenerationDate :: Lens' GetMatchesResponse (Maybe UTCTime) Source #

The timestamp this version of Match Result generated.

getMatchesResponse_matches :: Lens' GetMatchesResponse (Maybe [MatchItem]) Source #

The list of matched profiles for this instance.

getMatchesResponse_nextToken :: Lens' GetMatchesResponse (Maybe Text) Source #

If there are additional results, this is the token for the next set of results.