amazonka-iotevents-2.0: Amazon IoT Events 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.IoTEvents.Types.AssetPropertyValue

Description

 
Synopsis

Documentation

data AssetPropertyValue Source #

A structure that contains value information. For more information, see AssetPropertyValue in the AWS IoT SiteWise API Reference.

You must use expressions for all parameters in AssetPropertyValue. The expressions accept literals, operators, functions, references, and substitution templates.

Examples

  • For literal values, the expressions must contain single quotes. For example, the value for the quality parameter can be 'GOOD'.
  • For references, you must specify either variables or input values. For example, the value for the quality parameter can be $input.TemperatureInput.sensorData.quality.

For more information, see Expressions in the AWS IoT Events Developer Guide.

See: newAssetPropertyValue smart constructor.

Constructors

AssetPropertyValue' 

Fields

Instances

Instances details
FromJSON AssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.AssetPropertyValue

ToJSON AssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.AssetPropertyValue

Generic AssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.AssetPropertyValue

Associated Types

type Rep AssetPropertyValue :: Type -> Type #

Read AssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.AssetPropertyValue

Show AssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.AssetPropertyValue

NFData AssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.AssetPropertyValue

Methods

rnf :: AssetPropertyValue -> () #

Eq AssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.AssetPropertyValue

Hashable AssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.AssetPropertyValue

type Rep AssetPropertyValue Source # 
Instance details

Defined in Amazonka.IoTEvents.Types.AssetPropertyValue

type Rep AssetPropertyValue = D1 ('MetaData "AssetPropertyValue" "Amazonka.IoTEvents.Types.AssetPropertyValue" "amazonka-iotevents-2.0-6xKaLx5KciSK3LEs0FyRYn" 'False) (C1 ('MetaCons "AssetPropertyValue'" 'PrefixI 'True) (S1 ('MetaSel ('Just "quality") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AssetPropertyTimestamp)) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AssetPropertyVariant)))))

newAssetPropertyValue :: AssetPropertyValue Source #

Create a value of AssetPropertyValue 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:quality:AssetPropertyValue', assetPropertyValue_quality - The quality of the asset property value. The value must be 'GOOD', 'BAD', or 'UNCERTAIN'.

$sel:timestamp:AssetPropertyValue', assetPropertyValue_timestamp - The timestamp associated with the asset property value. The default is the current event time.

$sel:value:AssetPropertyValue', assetPropertyValue_value - The value to send to an asset property.

assetPropertyValue_quality :: Lens' AssetPropertyValue (Maybe Text) Source #

The quality of the asset property value. The value must be 'GOOD', 'BAD', or 'UNCERTAIN'.

assetPropertyValue_timestamp :: Lens' AssetPropertyValue (Maybe AssetPropertyTimestamp) Source #

The timestamp associated with the asset property value. The default is the current event time.