

 Amazon Forecast is no longer available to new customers. Existing customers of Amazon Forecast can continue to use the service as normal. [Learn more"](https://aws.amazon.com/blogs/machine-learning/transition-your-amazon-forecast-usage-to-amazon-sagemaker-canvas/)

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

An attribute of a schema, which defines a dataset field. A schema attribute is required for every field in a dataset. The [Schema](https://docs.aws.amazon.com/forecast/latest/dg/API_Schema.html) object contains an array of `SchemaAttribute` objects.

## Contents
<a name="API_SchemaAttribute_Contents"></a>

 ** AttributeName **   <a name="forecast-Type-SchemaAttribute-AttributeName"></a>
The name of the dataset field.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 63.  
Pattern: `^[a-zA-Z][a-zA-Z0-9_]*`   
Required: No

 ** AttributeType **   <a name="forecast-Type-SchemaAttribute-AttributeType"></a>
The data type of the field.  
For a related time series dataset, other than date, item\$1id, and forecast dimensions attributes, all attributes should be of numerical type (integer/float).  
Type: String  
Valid Values: `string | integer | float | timestamp | geolocation`   
Required: No

## See Also
<a name="API_SchemaAttribute_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/forecast-2018-06-26/SchemaAttribute) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/forecast-2018-06-26/SchemaAttribute) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/forecast-2018-06-26/SchemaAttribute) 