

 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>

如需在其中一種語言特定 AWS SDKs中使用此 API 的詳細資訊，請參閱下列內容：
+  [AWS 適用於 C\$1\$1 的 SDK](https://docs.aws.amazon.com/goto/SdkForCpp/forecast-2018-06-26/SchemaAttribute) 
+  [AWS 適用於 Java V2 的 SDK](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) 