

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 建立 ID 映射工作流程 （規則型）
<a name="create-id-mapping-workflow-procedure"></a>

完成[先決條件](create-idmw-two-accounts-prerequisite.md)之後，您可以建立一或多個 ID 映射工作流程，以使用相符的規則將第一方資料從來源轉譯到目標。

**跨兩個建立規則型 ID 映射工作流程 AWS 帳戶**

1. 登入 AWS 管理主控台 ，並在 https：//[https://console.aws.amazon.com/entityresolution/](https://console.aws.amazon.com/entityresolution/) 開啟 AWS Entity Resolution 主控台。

1. 在左側導覽窗格中的**工作流程下**，選擇 **ID 映射**。

1. 在 **ID 映射工作流程**頁面上的右上角，選擇**建立 ID 映射工作流程**。

1. 針對**步驟 1：指定 ID 映射工作流程詳細資訊**，執行下列動作。

   1. 輸入 **ID 映射工作流程名稱**和選用**的描述**。

      ![\[The Name and Description fields on the Specify ID mapping workflow details page\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/images/specify-ID-mapping-details-name.png)

   1. 針對 **ID 映射方法**，選擇**規則型**。

   1. （選用） 若要在工作流程中僅處理新的、更新或刪除的記錄，請選取**啟用增量處理**。

      ![\[The ID mapping section of the Specify ID mapping workflow page with the Enable incremental process checkbox selected.\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/images/id-mapping-method-enable-inc-proc.png)

      AWS Entity Resolution 只會處理來源或目標 ID 命名空間中的新記錄、更新記錄或刪除記錄，而不是重新建立整個 ID 映射表。

      當您選擇增量處理且資料表具有 DELETE 資料欄時， 會根據 DELETE 資料欄值以不同的方式 AWS Entity Resolution 處理記錄。
      + DELETE `true` 欄中標記為 的記錄會從 ID 映射資料表中移除。
      + `false` DELETE 欄中標記為 的記錄會擷取至 Amazon S3。

      如果您未選取此選項， AWS Entity Resolution 會在 ID 映射表上執行預設批次處理 ID 映射工作流程。

   1. （選用） 若要為資源啟用**標籤**，請選擇**新增標籤**，然後輸入**金鑰**和**值**對。

   1. 選擇**下一步**。

1. 針對**步驟 2：指定來源和目標**，執行下列動作。

   1. 開啟**進階選項**。

   1. 針對**來源**，選擇**相符工作流程**，然後從下拉式清單中選取現有的**相符工作流程**。

   1. 針對**目標**，選擇**相符工作流程**，然後從下拉式清單中選取現有的**相符工作流程**。

   1. 針對**規則參數**，選擇**來源**或**目標**是否可以在 ID 映射工作流程中提供規則，以指定**規則控制項**。

      規則控制必須在來源與目標之間相容，才能用於 ID 映射工作流程。例如，如果來源 ID 命名空間將規則限制為目標，但目標 ID 命名空間將規則限制為來源，則會導致錯誤。

   1. 針對**比較和比對參數**，請執行下列動作。

      1. 根據您的目標選擇選項來指定**比較類型**。    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/create-id-mapping-workflow-procedure.html)

      1. 根據您的目標選擇選項來指定**記錄比對類型**。    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/create-id-mapping-workflow-procedure.html)
**注意**  
您必須指定來源和目標 ID 命名空間的相容限制。

   1. 若要指定**服務存取**許可，請選擇 選項並採取建議的動作。

      ![\[The Service access options on the Specify source and target page\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/images/specify-source-target-service-access.PNG)    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/entityresolution/latest/userguide/create-id-mapping-workflow-procedure.html)

1. 選擇**下一步**。

1. 針對**步驟 3：指定資料輸出位置 – *選用***，請執行下列動作。

   1. 對於**資料輸出目的地**，請執行下列動作。

      1. 選擇資料輸出的 **Amazon S3 位置**。

      1. 對於**加密**，如果您選擇**自訂加密設定**，請輸入**AWS KMS 金鑰** ARN 或選擇**建立 AWS KMS 金鑰**。

   1. 檢視 **LiveRamp 產生的輸出**。

   1. 選擇**下一步**。

1. 針對**步驟 4：檢閱和建立**，執行下列動作。

   1. 檢閱您針對先前步驟所做的選擇，並視需要加以編輯。

   1. 選擇**建立**。

      訊息隨即出現，指出 ID 映射工作流程已建立。

建立 ID 映射工作流程之後，您就可以[執行 ID 映射工作流程](run-id-mapping-workflow.md)。