Skip to content
v2.278.0

PutAssetPropertyValueEntryProperty Struct ​

An asset property value entry containing the following information.

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 putAssetPropertyValueEntryProperty: iot.CfnTopicRule.PutAssetPropertyValueEntryProperty = {
  propertyValues: [{
    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',
  }],

  // the properties below are optional
  assetId: 'assetId',
  entryId: 'entryId',
  propertyAlias: 'propertyAlias',
  propertyId: 'propertyId',
};
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

put_asset_property_value_entry_property = iot.CfnTopicRule.PutAssetPropertyValueEntryProperty(
    property_values=[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"
    )],

    # the properties below are optional
    asset_id="assetId",
    entry_id="entryId",
    property_alias="propertyAlias",
    property_id="propertyId"
)
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.*;

PutAssetPropertyValueEntryProperty putAssetPropertyValueEntryProperty = PutAssetPropertyValueEntryProperty.builder()
        .propertyValues(List.of(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()))

        // the properties below are optional
        .assetId("assetId")
        .entryId("entryId")
        .propertyAlias("propertyAlias")
        .propertyId("propertyId")
        .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 putAssetPropertyValueEntryProperty = new PutAssetPropertyValueEntryProperty {
    PropertyValues = new [] { 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"
    } },

    // the properties below are optional
    AssetId = "assetId",
    EntryId = "entryId",
    PropertyAlias = "propertyAlias",
    PropertyId = "propertyId"
};
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"

putAssetPropertyValueEntryProperty := &PutAssetPropertyValueEntryProperty{
	PropertyValues: []interface{}{
		&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"),
		},
	},

	// the properties below are optional
	AssetId: jsii.String("assetId"),
	EntryId: jsii.String("entryId"),
	PropertyAlias: jsii.String("propertyAlias"),
	PropertyId: jsii.String("propertyId"),
}

Properties ​

assetIdoptionalstringasset_idoptionalstrassetIdoptionalStringAssetIdoptionalstringAssetIdoptional*string #
The ID of the AWS IoT SiteWise asset.

You must specify either a propertyAlias or both an aliasId and a propertyId . Accepts substitution templates.

entryIdoptionalstringentry_idoptionalstrentryIdoptionalStringEntryIdoptionalstringEntryIdoptional*string #
Optional.

A unique identifier for this entry that you can define to better track which message caused an error in case of failure. Accepts substitution templates. Defaults to a new UUID.

propertyAliasoptionalstringproperty_aliasoptionalstrpropertyAliasoptionalStringPropertyAliasoptionalstringPropertyAliasoptional*string #
The name of the property alias associated with your asset property.

You must specify either a propertyAlias or both an aliasId and a propertyId . Accepts substitution templates.

propertyIdoptionalstringproperty_idoptionalstrpropertyIdoptionalStringPropertyIdoptionalstringPropertyIdoptional*string #
The ID of the asset's property.

You must specify either a propertyAlias or both an aliasId and a propertyId . Accepts substitution templates.

propertyValuesIResolvable | IResolvable | CfnTopicRule.AssetPropertyValueProperty[]property_valuestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AssetPropertyValueProperty]]]propertyValuesIResolvablePropertyValuesIResolvablePropertyValuesinterface{} required #
A list of property values to insert that each contain timestamp, quality, and value (TQV) information.