amazonka-forecast-2.0: Amazon Forecast Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Forecast.Types.SchemaAttribute

Description

 
Synopsis

Documentation

data SchemaAttribute Source #

An attribute of a schema, which defines a dataset field. A schema attribute is required for every field in a dataset. The Schema object contains an array of SchemaAttribute objects.

See: newSchemaAttribute smart constructor.

Constructors

SchemaAttribute' 

Fields

  • attributeName :: Maybe Text

    The name of the dataset field.

  • attributeType :: Maybe AttributeType

    The data type of the field.

    For a related time series dataset, other than date, item_id, and forecast dimensions attributes, all attributes should be of numerical type (integer/float).

Instances

Instances details
FromJSON SchemaAttribute Source # 
Instance details

Defined in Amazonka.Forecast.Types.SchemaAttribute

ToJSON SchemaAttribute Source # 
Instance details

Defined in Amazonka.Forecast.Types.SchemaAttribute

Generic SchemaAttribute Source # 
Instance details

Defined in Amazonka.Forecast.Types.SchemaAttribute

Associated Types

type Rep SchemaAttribute :: Type -> Type #

Read SchemaAttribute Source # 
Instance details

Defined in Amazonka.Forecast.Types.SchemaAttribute

Show SchemaAttribute Source # 
Instance details

Defined in Amazonka.Forecast.Types.SchemaAttribute

NFData SchemaAttribute Source # 
Instance details

Defined in Amazonka.Forecast.Types.SchemaAttribute

Methods

rnf :: SchemaAttribute -> () #

Eq SchemaAttribute Source # 
Instance details

Defined in Amazonka.Forecast.Types.SchemaAttribute

Hashable SchemaAttribute Source # 
Instance details

Defined in Amazonka.Forecast.Types.SchemaAttribute

type Rep SchemaAttribute Source # 
Instance details

Defined in Amazonka.Forecast.Types.SchemaAttribute

type Rep SchemaAttribute = D1 ('MetaData "SchemaAttribute" "Amazonka.Forecast.Types.SchemaAttribute" "amazonka-forecast-2.0-HHvJwvxGrDPBJtUcnmLBqf" 'False) (C1 ('MetaCons "SchemaAttribute'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "attributeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AttributeType))))

newSchemaAttribute :: SchemaAttribute Source #

Create a value of SchemaAttribute with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:attributeName:SchemaAttribute', schemaAttribute_attributeName - The name of the dataset field.

$sel:attributeType:SchemaAttribute', schemaAttribute_attributeType - The data type of the field.

For a related time series dataset, other than date, item_id, and forecast dimensions attributes, all attributes should be of numerical type (integer/float).

schemaAttribute_attributeType :: Lens' SchemaAttribute (Maybe AttributeType) Source #

The data type of the field.

For a related time series dataset, other than date, item_id, and forecast dimensions attributes, all attributes should be of numerical type (integer/float).