Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data AssetModelPropertyDefinition = AssetModelPropertyDefinition' {
- dataTypeSpec :: Maybe Text
- unit :: Maybe Text
- name :: Text
- dataType :: PropertyDataType
- type' :: PropertyType
- newAssetModelPropertyDefinition :: Text -> PropertyDataType -> PropertyType -> AssetModelPropertyDefinition
- assetModelPropertyDefinition_dataTypeSpec :: Lens' AssetModelPropertyDefinition (Maybe Text)
- assetModelPropertyDefinition_unit :: Lens' AssetModelPropertyDefinition (Maybe Text)
- assetModelPropertyDefinition_name :: Lens' AssetModelPropertyDefinition Text
- assetModelPropertyDefinition_dataType :: Lens' AssetModelPropertyDefinition PropertyDataType
- assetModelPropertyDefinition_type :: Lens' AssetModelPropertyDefinition PropertyType
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.
AssetModelPropertyDefinition' | |
|
Instances
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_name :: Lens' AssetModelPropertyDefinition Text Source #
The name of the property definition.
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.