SchemaMapping
Source:
src/AWS/EntityResolution/SchemaMapping.ts
An AWS Entity Resolution schema mapping — the schema of an input customer
records table. It tells Entity Resolution the attribute type of each column
(name, email, phone, unique id, …) and which columns rule-based matching
compares via matchKey.
Creating Schema Mappings
Section titled “Creating Schema Mappings”import * as AWS from "alchemy/AWS";
const schema = yield* AWS.EntityResolution.SchemaMapping("Customers", { mappedInputFields: [ { fieldName: "id", type: "UNIQUE_ID" }, { fieldName: "email", type: "EMAIL_ADDRESS", matchKey: "email" }, { fieldName: "name", type: "NAME", matchKey: "name" }, ],});Matching Workflows
Section titled “Matching Workflows”const workflow = yield* AWS.EntityResolution.MatchingWorkflow("Dedupe", { inputSourceConfig: [ { inputSourceARN: table.tableArn, schemaName: schema.schemaName }, ], // ...});