AssetPropertyValueProperty Struct
An asset property value entry containing the following information.
| 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_iot as iot } from 'aws-cdk-lib';
const assetPropertyValueProperty: iot.CfnTopicRule.AssetPropertyValueProperty = {
timestamp: {
timeInSeconds: 'timeInSeconds',
// the properties below are optional
offsetInNanos: 'offsetInNanos',
},
value: {
booleanValue: 'booleanValue',
doubleValue: 'doubleValue',
integerValue: 'integerValue',
stringValue: 'stringValue',
},
// the properties below are optional
quality: 'quality',
};
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_iot as iot
asset_property_value_property = iot.CfnTopicRule.AssetPropertyValueProperty(
timestamp=iot.CfnTopicRule.AssetPropertyTimestampProperty(
time_in_seconds="timeInSeconds",
# the properties below are optional
offset_in_nanos="offsetInNanos"
),
value=iot.CfnTopicRule.AssetPropertyVariantProperty(
boolean_value="booleanValue",
double_value="doubleValue",
integer_value="integerValue",
string_value="stringValue"
),
# the properties below are optional
quality="quality"
)
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.iot.*;
AssetPropertyValueProperty assetPropertyValueProperty = AssetPropertyValueProperty.builder()
.timestamp(AssetPropertyTimestampProperty.builder()
.timeInSeconds("timeInSeconds")
// the properties below are optional
.offsetInNanos("offsetInNanos")
.build())
.value(AssetPropertyVariantProperty.builder()
.booleanValue("booleanValue")
.doubleValue("doubleValue")
.integerValue("integerValue")
.stringValue("stringValue")
.build())
// the properties below are optional
.quality("quality")
.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.IoT;
var assetPropertyValueProperty = new AssetPropertyValueProperty {
Timestamp = new AssetPropertyTimestampProperty {
TimeInSeconds = "timeInSeconds",
// the properties below are optional
OffsetInNanos = "offsetInNanos"
},
Value = new AssetPropertyVariantProperty {
BooleanValue = "booleanValue",
DoubleValue = "doubleValue",
IntegerValue = "integerValue",
StringValue = "stringValue"
},
// the properties below are optional
Quality = "quality"
};
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{
Timestamp: &AssetPropertyTimestampProperty{
TimeInSeconds: jsii.String("timeInSeconds"),
// the properties below are optional
OffsetInNanos: jsii.String("offsetInNanos"),
},
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"),
}
Properties
qualityoptionalstringqualityoptionalstrqualityoptionalStringQualityoptionalstringQualityoptional*string #Optional.
A string that describes the quality of the value. Accepts substitution templates. Must be GOOD , BAD , or UNCERTAIN .
timestampIResolvable | CfnTopicRule.timestamptyping.Union[IResolvable, AssetPropertyTimestampProperty]timestampIResolvableTimestampIResolvableTimestampinterface{} required #The asset property value timestamp.
valueIResolvable | CfnTopicRule.valuetyping.Union[IResolvable, AssetPropertyVariantProperty]valueIResolvableValueIResolvableValueinterface{} required #The value of the asset property.