

 Amazon Forecast 不再向新买家开放。Amazon Forecast 的现有客户可以继续照常使用该服务。[了解更多](https://aws.amazon.com/blogs/machine-learning/transition-your-amazon-forecast-usage-to-amazon-sagemaker-canvas/)

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

# SchemaAttribute
<a name="API_SchemaAttribute"></a>

定义数据集字段的架构属性 数据集中的每个字段都需要架构属性。[架构](https://docs.aws.amazon.com/forecast/latest/dg/API_Schema.html)对象包含`SchemaAttribute`对象数组。

## 内容
<a name="API_SchemaAttribute_Contents"></a>

 ** AttributeName **   <a name="forecast-Type-SchemaAttribute-AttributeName"></a>
数据集字段的名称。  
类型：字符串  
长度限制：最小长度为 1。最大长度为 63。  
模式：`^[a-zA-Z][a-zA-Z0-9_]*`  
必需：否

 ** AttributeType **   <a name="forecast-Type-SchemaAttribute-AttributeType"></a>
字段的数据类型。  
除日期、item\$1id 和预测维度属性外，相关事件序列数据集的所有属性均应为数值型（整数/浮点型）。  
类型：字符串  
有效值：`string | integer | float | timestamp | geolocation`  
必需：否

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

有关以特定语言之一使用此 API 的更多信息 AWS SDKs，请参阅以下内容：
+  [AWS 适用于 C\$1\$1 的 SDK](https://docs.aws.amazon.com/goto/SdkForCpp/forecast-2018-06-26/SchemaAttribute) 
+  [AWS 适用于 Java 的 SDK V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/forecast-2018-06-26/SchemaAttribute) 
+  [AWS 适用于 Ruby V3 的 SDK](https://docs.aws.amazon.com/goto/SdkForRubyV3/forecast-2018-06-26/SchemaAttribute) 