aws-cdk-lib.aws_iotevents.CfnDetectorModel.AssetPropertyValueProperty

interface AssetPropertyValueProperty

LanguageType name
.NETAmazon.CDK.AWS.IoTEvents.CfnDetectorModel.AssetPropertyValueProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiotevents#CfnDetectorModel_AssetPropertyValueProperty
Javasoftware.amazon.awscdk.services.iotevents.CfnDetectorModel.AssetPropertyValueProperty
Pythonaws_cdk.aws_iotevents.CfnDetectorModel.AssetPropertyValueProperty
TypeScript aws-cdk-lib » aws_iotevents » CfnDetectorModel » AssetPropertyValueProperty

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 .

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotevents as iotevents } from 'aws-cdk-lib';
const assetPropertyValueProperty: iotevents.CfnDetectorModel.AssetPropertyValueProperty = {
  value: {
    booleanValue: 'booleanValue',
    doubleValue: 'doubleValue',
    integerValue: 'integerValue',
    stringValue: 'stringValue',
  },

  // the properties below are optional
  quality: 'quality',
  timestamp: {
    timeInSeconds: 'timeInSeconds',

    // the properties below are optional
    offsetInNanos: 'offsetInNanos',
  },
};

Properties

NameTypeDescription
valueIResolvable | AssetPropertyVariantPropertyThe value to send to an asset property.
quality?stringThe quality of the asset property value.
timestamp?IResolvable | AssetPropertyTimestampPropertyThe timestamp associated with the asset property value.

value

Type: IResolvable | AssetPropertyVariantProperty

The value to send to an asset property.


quality?

Type: string (optional)

The quality of the asset property value.

The value must be 'GOOD' , 'BAD' , or 'UNCERTAIN' .


timestamp?

Type: IResolvable | AssetPropertyTimestampProperty (optional)

The timestamp associated with the asset property value.

The default is the current event time.