libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoTSiteWise.Types.AssetModelPropertyDefinition

Description

 
Synopsis

Documentation

data AssetModelPropertyDefinition Source #

Contains an asset model property definition. This property definition is applied to all assets created from the asset model.

See: newAssetModelPropertyDefinition smart constructor.

Constructors

AssetModelPropertyDefinition' 

Fields

  • dataTypeSpec :: Maybe Text

    The data type of the structure for this property. This parameter is required on properties that have the STRUCT data type.

    The options for this parameter depend on the type of the composite model in which you define this property. Use AWS/ALARM_STATE for alarm state in alarm composite models.

  • unit :: Maybe Text

    The unit of the property definition, such as Newtons or RPM.

  • name :: Text

    The name of the property definition.

  • dataType :: PropertyDataType

    The data type of the property definition.

    If you specify STRUCT, you must also specify dataTypeSpec to identify the type of the structure for this property.

  • type' :: PropertyType

    The property definition type (see PropertyType). You can only specify one type in a property definition.

Instances

Instances details
Eq AssetModelPropertyDefinition Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.AssetModelPropertyDefinition

Read AssetModelPropertyDefinition Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.AssetModelPropertyDefinition

Show AssetModelPropertyDefinition Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.AssetModelPropertyDefinition

Generic AssetModelPropertyDefinition Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.AssetModelPropertyDefinition

Associated Types

type Rep AssetModelPropertyDefinition :: Type -> Type #

NFData AssetModelPropertyDefinition Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.AssetModelPropertyDefinition

Hashable AssetModelPropertyDefinition Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.AssetModelPropertyDefinition

ToJSON AssetModelPropertyDefinition Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.AssetModelPropertyDefinition

type Rep AssetModelPropertyDefinition Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.AssetModelPropertyDefinition

type Rep AssetModelPropertyDefinition = D1 ('MetaData "AssetModelPropertyDefinition" "Amazonka.IoTSiteWise.Types.AssetModelPropertyDefinition" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "AssetModelPropertyDefinition'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dataTypeSpec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "unit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "dataType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PropertyDataType) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PropertyType)))))

newAssetModelPropertyDefinition Source #

Create a value of AssetModelPropertyDefinition 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:dataTypeSpec:AssetModelPropertyDefinition', assetModelPropertyDefinition_dataTypeSpec - The data type of the structure for this property. This parameter is required on properties that have the STRUCT data type.

The options for this parameter depend on the type of the composite model in which you define this property. Use AWS/ALARM_STATE for alarm state in alarm composite models.

$sel:unit:AssetModelPropertyDefinition', assetModelPropertyDefinition_unit - The unit of the property definition, such as Newtons or RPM.

$sel:name:AssetModelPropertyDefinition', assetModelPropertyDefinition_name - The name of the property definition.

$sel:dataType:AssetModelPropertyDefinition', assetModelPropertyDefinition_dataType - The data type of the property definition.

If you specify STRUCT, you must also specify dataTypeSpec to identify the type of the structure for this property.

$sel:type':AssetModelPropertyDefinition', assetModelPropertyDefinition_type - The property definition type (see PropertyType). You can only specify one type in a property definition.

assetModelPropertyDefinition_dataTypeSpec :: Lens' AssetModelPropertyDefinition (Maybe Text) Source #

The data type of the structure for this property. This parameter is required on properties that have the STRUCT data type.

The options for this parameter depend on the type of the composite model in which you define this property. Use AWS/ALARM_STATE for alarm state in alarm composite models.

assetModelPropertyDefinition_unit :: Lens' AssetModelPropertyDefinition (Maybe Text) Source #

The unit of the property definition, such as Newtons or RPM.

assetModelPropertyDefinition_dataType :: Lens' AssetModelPropertyDefinition PropertyDataType Source #

The data type of the property definition.

If you specify STRUCT, you must also specify dataTypeSpec to identify the type of the structure for this property.

assetModelPropertyDefinition_type :: Lens' AssetModelPropertyDefinition PropertyType Source #

The property definition type (see PropertyType). You can only specify one type in a property definition.