

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

# CreateProfileJob
<a name="API_CreateProfileJob"></a>

创建一个新作业以分析数据集并创建其数据配置文件。

## 请求语法
<a name="API_CreateProfileJob_RequestSyntax"></a>

```
POST /profileJobs HTTP/1.1
Content-type: application/json

{
   "Configuration": { 
      "ColumnStatisticsConfigurations": [ 
         { 
            "Selectors": [ 
               { 
                  "Name": "string",
                  "Regex": "string"
               }
            ],
            "Statistics": { 
               "IncludedStatistics": [ "string" ],
               "Overrides": [ 
                  { 
                     "Parameters": { 
                        "string" : "string" 
                     },
                     "Statistic": "string"
                  }
               ]
            }
         }
      ],
      "DatasetStatisticsConfiguration": { 
         "IncludedStatistics": [ "string" ],
         "Overrides": [ 
            { 
               "Parameters": { 
                  "string" : "string" 
               },
               "Statistic": "string"
            }
         ]
      },
      "EntityDetectorConfiguration": { 
         "AllowedStatistics": [ 
            { 
               "Statistics": [ "string" ]
            }
         ],
         "EntityTypes": [ "string" ]
      },
      "ProfileColumns": [ 
         { 
            "Name": "string",
            "Regex": "string"
         }
      ]
   },
   "DatasetName": "string",
   "EncryptionKeyArn": "string",
   "EncryptionMode": "string",
   "JobSample": { 
      "Mode": "string",
      "Size": number
   },
   "LogSubscription": "string",
   "MaxCapacity": number,
   "MaxRetries": number,
   "Name": "string",
   "OutputLocation": { 
      "Bucket": "string",
      "BucketOwner": "string",
      "Key": "string"
   },
   "RoleArn": "string",
   "Tags": { 
      "string" : "string" 
   },
   "Timeout": number,
   "ValidationConfigurations": [ 
      { 
         "RulesetArn": "string",
         "ValidationMode": "string"
      }
   ]
}
```

## URI 请求参数
<a name="API_CreateProfileJob_RequestParameters"></a>

该请求不使用任何 URI 参数。

## 请求正文
<a name="API_CreateProfileJob_RequestBody"></a>

请求接受采用 JSON 格式的以下数据。

 ** [DatasetName](#API_CreateProfileJob_RequestSyntax) **   <a name="databrew-CreateProfileJob-request-DatasetName"></a>
此作业要执行操作的数据集的名称。  
类型：字符串  
长度限制：最小长度为 1。最大长度为 255。  
是否必需：是

 ** [Name](#API_CreateProfileJob_RequestSyntax) **   <a name="databrew-CreateProfileJob-request-Name"></a>
要创建的作业的名称。有效字符包括字母数字（A-Z、a-z、0-9）、连字符（-）、句点（.）和空格。  
类型：字符串  
长度限制：最小长度为 1。最大长度为 240。  
是否必需：是

 ** [OutputLocation](#API_CreateProfileJob_RequestSyntax) **   <a name="databrew-CreateProfileJob-request-OutputLocation"></a>
表示 Amazon S3 位置（存储桶名称、存储桶拥有者和对象密钥）， DataBrew 可以在其中读取输入数据或写入任务的输出。  
类型：[S3Location](API_S3Location.md) 对象  
是否必需：是

 ** [RoleArn](#API_CreateProfileJob_RequestSyntax) **   <a name="databrew-CreateProfileJob-request-RoleArn"></a>
 DataBrew 运行任务时要假设的 AWS Identity and Access Management (IAM) 角色的亚马逊资源名称 (ARN)。  
类型：字符串  
长度约束：最小长度为 20。最大长度为 2048。  
是否必需：是

 ** [Configuration](#API_CreateProfileJob_RequestSyntax) **   <a name="databrew-CreateProfileJob-request-Configuration"></a>
配置文件作业的配置。用于选择列、进行评估并覆盖评估的默认参数。配置为 null 时，配置文件作业将使用默认设置运行。  
类型：[ProfileConfiguration](API_ProfileConfiguration.md) 对象  
必需：否

 ** [EncryptionKeyArn](#API_CreateProfileJob_RequestSyntax) **   <a name="databrew-CreateProfileJob-request-EncryptionKeyArn"></a>
用于保护作业的加密密钥的 Amazon 资源名称（ARN）。  
类型：字符串  
长度约束：最小长度为 20。最大长度为 2048。  
必需：否

 ** [EncryptionMode](#API_CreateProfileJob_RequestSyntax) **   <a name="databrew-CreateProfileJob-request-EncryptionMode"></a>
作业的加密模式包括以下几种：  
+  `SSE-KMS` - `SSE-KMS`：使用 AWS KMS托管密钥的服务器端加密。
+  `SSE-S3` - 使用 Amazon S3 托管密钥进行服务器端加密。
类型：字符串  
有效值：`SSE-KMS | SSE-S3`  
必需：否

 ** [JobSample](#API_CreateProfileJob_RequestSyntax) **   <a name="databrew-CreateProfileJob-request-JobSample"></a>
仅配置文件作业的样本配置。确定要执行配置文件作业的行数。如果未提供 JobSample 值，则将使用默认值。模式参数的默认值为 CUSTOM\$1ROWS，大小参数的默认值为 20000。  
类型：[JobSample](API_JobSample.md) 对象  
必需：否

 ** [LogSubscription](#API_CreateProfileJob_RequestSyntax) **   <a name="databrew-CreateProfileJob-request-LogSubscription"></a>
为任务启用或禁用 Amazon CloudWatch 日志记录。如果启用了日志记录，则为每个作业运行 CloudWatch 写入一个日志流。  
类型：字符串  
有效值：`ENABLE | DISABLE`  
必需：否

 ** [MaxCapacity](#API_CreateProfileJob_RequestSyntax) **   <a name="databrew-CreateProfileJob-request-MaxCapacity"></a>
作业处理数据时 DataBrew 可使用的最大节点数。  
类型：整数  
必需：否

 ** [MaxRetries](#API_CreateProfileJob_RequestSyntax) **   <a name="databrew-CreateProfileJob-request-MaxRetries"></a>
作业运行失败后重试此作业的最大次数。  
类型：整数  
有效范围：最小值为 0。  
必需：否

 ** [Tags](#API_CreateProfileJob_RequestSyntax) **   <a name="databrew-CreateProfileJob-request-Tags"></a>
要应用于此作业的元数据标签。  
类型：字符串到字符串映射  
地图条目：最大数量为 200 个项目。  
密钥长度限制：最小长度为 1。最大长度为 128。  
值长度限制：最大长度为 256。  
必需：否

 ** [Timeout](#API_CreateProfileJob_RequestSyntax) **   <a name="databrew-CreateProfileJob-request-Timeout"></a>
作业的超时（以分钟为单位）。如果作业的运行时间超出此超时时间，作业将以 `TIMEOUT` 状态结束。  
类型：整数  
有效范围：最小值为 0。  
必需：否

 ** [ValidationConfigurations](#API_CreateProfileJob_RequestSyntax) **   <a name="databrew-CreateProfileJob-request-ValidationConfigurations"></a>
应用于配置文件作业的验证配置列表。  
类型：[ValidationConfiguration](API_ValidationConfiguration.md) 对象数组  
数组成员：最少 1 个物品。  
必需：否

## 响应语法
<a name="API_CreateProfileJob_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "Name": "string"
}
```

## 响应元素
<a name="API_CreateProfileJob_ResponseElements"></a>

如果此操作成功，则该服务将会发送回 HTTP 200 响应。

服务以 JSON 格式返回以下数据。

 ** [Name](#API_CreateProfileJob_ResponseSyntax) **   <a name="databrew-CreateProfileJob-response-Name"></a>
已创建的作业的名称。  
类型：字符串  
长度限制：最小长度为 1。最大长度为 240。

## 错误
<a name="API_CreateProfileJob_Errors"></a>

有关所有操作的常见错误的信息，请参阅[常见错误](CommonErrors.md)。

 ** AccessDeniedException **   
对指定资源的访问被拒绝。  
HTTP 状态代码：403

 ** ConflictException **   
更新或删除资源可能会导致状态不一致。  
HTTP 状态代码：409

 ** ResourceNotFoundException **   
无法找到一个或多个资源。  
HTTP 状态代码：404

 ** ServiceQuotaExceededException **   
超出服务配额。  
HTTP 状态代码：402

 ** ValidationException **   
此请求的输入参数验证失败。  
HTTP 状态代码：400

## 另请参阅
<a name="API_CreateProfileJob_SeeAlso"></a>

有关以特定语言之一使用此 API 的更多信息 AWS SDKs，请参阅以下内容：
+  [AWS 命令行界面 V2](https://docs.aws.amazon.com/goto/cli2/databrew-2017-07-25/CreateProfileJob) 
+  [AWS 适用于.NET 的 SDK V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/databrew-2017-07-25/CreateProfileJob) 
+  [AWS 适用于 C\$1\$1 的 SDK](https://docs.aws.amazon.com/goto/SdkForCpp/databrew-2017-07-25/CreateProfileJob) 
+  [AWS 适用于 Go v2 的 SDK](https://docs.aws.amazon.com/goto/SdkForGoV2/databrew-2017-07-25/CreateProfileJob) 
+  [AWS 适用于 Java 的 SDK V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/databrew-2017-07-25/CreateProfileJob) 
+  [AWS JavaScript V3 版软件开发工具包](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/databrew-2017-07-25/CreateProfileJob) 
+  [AWS 适用于 Kotlin 的 SDK](https://docs.aws.amazon.com/goto/SdkForKotlin/databrew-2017-07-25/CreateProfileJob) 
+  [AWS 适用于 PHP 的 SDK V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/databrew-2017-07-25/CreateProfileJob) 
+  [AWS Python 软件开发工具包](https://docs.aws.amazon.com/goto/boto3/databrew-2017-07-25/CreateProfileJob) 
+  [AWS 适用于 Ruby V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForRubyV3/databrew-2017-07-25/CreateProfileJob) 