AssetPropertyValueProperty Struct
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
qualityparameter can be$input.TemperatureInput.sensorData.quality.
For more information, see Expressions in the AWS IoT Events Developer Guide .
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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.CfnAlarmModel.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',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iotevents as iotevents
asset_property_value_property = iotevents.CfnAlarmModel.AssetPropertyValueProperty(
value=iotevents.CfnAlarmModel.AssetPropertyVariantProperty(
boolean_value="booleanValue",
double_value="doubleValue",
integer_value="integerValue",
string_value="stringValue"
),
# the properties below are optional
quality="quality",
timestamp=iotevents.CfnAlarmModel.AssetPropertyTimestampProperty(
time_in_seconds="timeInSeconds",
# the properties below are optional
offset_in_nanos="offsetInNanos"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotevents.*;
AssetPropertyValueProperty assetPropertyValueProperty = AssetPropertyValueProperty.builder()
.value(AssetPropertyVariantProperty.builder()
.booleanValue("booleanValue")
.doubleValue("doubleValue")
.integerValue("integerValue")
.stringValue("stringValue")
.build())
// the properties below are optional
.quality("quality")
.timestamp(AssetPropertyTimestampProperty.builder()
.timeInSeconds("timeInSeconds")
// the properties below are optional
.offsetInNanos("offsetInNanos")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTEvents;
var assetPropertyValueProperty = new AssetPropertyValueProperty {
Value = new AssetPropertyVariantProperty {
BooleanValue = "booleanValue",
DoubleValue = "doubleValue",
IntegerValue = "integerValue",
StringValue = "stringValue"
},
// the properties below are optional
Quality = "quality",
Timestamp = new AssetPropertyTimestampProperty {
TimeInSeconds = "timeInSeconds",
// the properties below are optional
OffsetInNanos = "offsetInNanos"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
assetPropertyValueProperty := &AssetPropertyValueProperty{
Value: &AssetPropertyVariantProperty{
BooleanValue: jsii.String("booleanValue"),
DoubleValue: jsii.String("doubleValue"),
IntegerValue: jsii.String("integerValue"),
StringValue: jsii.String("stringValue"),
},
// the properties below are optional
Quality: jsii.String("quality"),
Timestamp: &AssetPropertyTimestampProperty{
TimeInSeconds: jsii.String("timeInSeconds"),
// the properties below are optional
OffsetInNanos: jsii.String("offsetInNanos"),
},
}
Properties
qualityoptionalstringqualityoptionalstrqualityoptionalStringQualityoptionalstringQualityoptional*string #The quality of the asset property value.
The value must be 'GOOD' , 'BAD' , or 'UNCERTAIN' .
timestampoptionalIResolvable | CfnAlarmModel.timestampoptionaltyping.Union[IResolvable, AssetPropertyTimestampProperty]timestampoptionalIResolvableTimestampoptionalIResolvableTimestampoptionalinterface{} #The timestamp associated with the asset property value.
The default is the current event time.
valueIResolvable | CfnAlarmModel.valuetyping.Union[IResolvable, AssetPropertyVariantProperty]valueIResolvableValueIResolvableValueinterface{} required #The value to send to an asset property.