

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 创建 ID 命名空间源（基于规则）
<a name="create-id-namespace-source-rule-based"></a>

本主题介绍使用**基于规则**的方法创建 ID 命名空间源的过程。此方法使用匹配规则在 ID 映射工作流程中将第一方数据从源转换为目标。

**注意**  
如果输入数据是源，则它必须具有架构映射和关联 AWS Glue 的数据库。

**创建 ID 命名空间源（基于规则）**

1. 登录 AWS 管理控制台 并打开 AWS Entity Resolution 数据匹配服务 控制台，网址为[https://console.aws.amazon.com/entityresolution/](https://console.aws.amazon.com/entityresolution/)。

1. 在左侧导航窗格的**数据准备**下，选择 **ID 命名空间**。

1. 在 **ID 命名空间**页面的右上角，选择**创建 ID** 命名空间。

1. 有关**详细信息**，请执行以下操作：

   1. 在 **ID 命名空间名称**中，输入一个唯一的名称。

   1. （可选）在**描述**中，输入可选描述。

   1. 对于 **ID 命名空间类型**，请选择**来源**。

1. 对于 **ID 命名空间方法**，请选择基于**规则**。

1. 对于**数据输入**，请选择要使用的**输入类型**，然后采取建议的操作。    
[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/entityresolution/latest/userguide/create-id-namespace-source-rule-based.html)

1. 对于**规则参数**，请执行以下操作。

   1. 根据您的目标选择以下选项之一，指定**规则控件**。    
[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/entityresolution/latest/userguide/create-id-namespace-source-rule-based.html)

      **规则控件**必须在源和目标之间兼容，才能在 ID 映射工作流程中使用。例如，如果源 ID 命名空间将规则限制于目标，但目标 ID 命名空间将规则限制于源，则会导致错误。

   1. 根据您的数据输入类型选择以下选项之一，指定**匹配规则**。    
[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/entityresolution/latest/userguide/create-id-namespace-source-rule-based.html)

1. 对于**比较和匹配参数**，请执行以下操作。

   1. 根据您的目标选择以下选项之一，指定**比较类型**。    
[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/entityresolution/latest/userguide/create-id-namespace-source-rule-based.html)

   1. 根据您的目标选择以下选项之一，指定**记录匹配类型**。    
[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/entityresolution/latest/userguide/create-id-namespace-source-rule-based.html)
**注意**  
您必须为源 ID 和目标 ID 命名空间指定兼容限制。例如，如果源 ID 命名空间将规则限制于目标，但目标 ID 命名空间将规则限制于源，则会导致错误。

1. 通过从下拉列表中选择**现有服务角色名称**来指定服务**访问权限**。

1. （可选）要为资源启用**标签**，请选择**添加新标签**，然后输入**密钥**和**值**对。

1. 选择**创建 ID 命名空间**。

 ID 命名空间源已创建。现在，您可以[创建 ID 命名空间目标](create-id-namespace-target.md)了。