generate_match_id
async
¶
generate_match_id(
workflow_name: EntityName,
records: RecordList,
*,
config_overrides: Optional[AsyncEntityResolutionClientConfig] = None,
processing_type: Optional[ProcessingType] = None,
) -> GenerateMatchIdOutput
Generates or retrieves Match IDs for records using a rule-based matching workflow. When you call this operation, it processes your records against the workflow's matching rules to identify potential matches. For existing records, it retrieves their Match IDs and associated rules. For records without matches, it generates new Match IDs. The operation saves results to Amazon S3.
The processing type (processingType) you choose affects both the accuracy and response time of the operation. Additional charges apply for each API call, whether made through the Entity Resolution console or directly via the API. The rule-based matching workflow must exist and be active before calling this operation.
Parameters:
-
workflow_name(EntityName) –The name of the rule-based matching workflow.
-
records(RecordList) –The records to match.
-
processing_type(Optional[ProcessingType], default:None) –The processing mode that determines how Match IDs are generated and results are saved. Each mode provides different levels of accuracy, response time, and completeness of results.
If not specified, defaults to
CONSISTENT.CONSISTENT: Performs immediate lookup and matching against all existing records, with results saved synchronously. Provides highest accuracy but slower response time.EVENTUAL(shown as Background in the console): Performs initial match ID lookup or generation immediately, with record updates processed asynchronously in the background. Offers faster initial response time, with complete matching results available later in S3.EVENTUAL_NO_LOOKUP(shown as Quick ID generation in the console): Generates new match IDs without checking existing matches, with updates processed asynchronously. Provides fastest response time but should only be used for records known to be unique.Advanced matching workflows don't support the
processingTypefield.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–This exception occurs when there is an internal failure in the Entity Resolution service.
-
ResourceNotFoundException–The resource couldn't be found.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by Entity Resolution.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_entityresolution/_services/async_entity_resolution.py
968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 | |