| 1 | import type * as entityresolution from "@distilled.cloud/aws/entityresolution"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { MatchingWorkflow } from "./MatchingWorkflow.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for `entityresolution:BatchDeleteUniqueId`. |
| 8 | * |
| 9 | * Deletes unique IDs (and their match associations) from the bound matching |
| 10 | * workflow's internal match store. Provide the implementation with |
| 11 | * `Effect.provide(AWS.EntityResolution.BatchDeleteUniqueIdHttp)`. |
| 12 | * ### Real-Time Matching |
| 13 | * **Example:** Delete Records from the Match Store |
| 14 | * ```typescript |
| 15 | * // init — bind the operation to the workflow |
| 16 | * const batchDeleteUniqueId = yield* AWS.EntityResolution.BatchDeleteUniqueId(workflow); |
| 17 | * |
| 18 | * // runtime |
| 19 | * const { deleted, errors } = yield* batchDeleteUniqueId({ |
| 20 | * uniqueIds: ["1", "2"], |
| 21 | * }); |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface BatchDeleteUniqueId extends Binding.Service< |
| 27 | BatchDeleteUniqueId, |
| 28 | "AWS.EntityResolution.BatchDeleteUniqueId", |
| 29 | ( |
| 30 | workflow: MatchingWorkflow, |
| 31 | ) => Effect.Effect< |
| 32 | ( |
| 33 | request: Omit<entityresolution.BatchDeleteUniqueIdInput, "workflowName">, |
| 34 | ) => Effect.Effect< |
| 35 | entityresolution.BatchDeleteUniqueIdOutput, |
| 36 | entityresolution.BatchDeleteUniqueIdError |
| 37 | > |
| 38 | > |
| 39 | > {} |
| 40 | |
| 41 | export const BatchDeleteUniqueId = Binding.Service<BatchDeleteUniqueId>( |
| 42 | "AWS.EntityResolution.BatchDeleteUniqueId", |
| 43 | ); |