aws-cdk-lib.aws_iot.CfnTopicRule.IotSiteWiseActionProperty

interface IotSiteWiseActionProperty

LanguageType name
.NETAmazon.CDK.AWS.IoT.CfnTopicRule.IotSiteWiseActionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiot#CfnTopicRule_IotSiteWiseActionProperty
Javasoftware.amazon.awscdk.services.iot.CfnTopicRule.IotSiteWiseActionProperty
Pythonaws_cdk.aws_iot.CfnTopicRule.IotSiteWiseActionProperty
TypeScript aws-cdk-lib » aws_iot » CfnTopicRule » IotSiteWiseActionProperty

Describes an action to send data from an MQTT message that triggered the rule to AWS IoT SiteWise asset properties.

Example

// 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 iotSiteWiseActionProperty: iot.CfnTopicRule.IotSiteWiseActionProperty = {
  putAssetPropertyValueEntries: [{
    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',
  }],
  roleArn: 'roleArn',
};

Properties

NameTypeDescription
putAssetPropertyValueEntriesIResolvable | IResolvable | PutAssetPropertyValueEntryProperty[]A list of asset property value entries.
roleArnstringThe ARN of the role that grants AWS IoT permission to send an asset property value to AWS IoT SiteWise.

putAssetPropertyValueEntries

Type: IResolvable | IResolvable | PutAssetPropertyValueEntryProperty[]

A list of asset property value entries.


roleArn

Type: string

The ARN of the role that grants AWS IoT permission to send an asset property value to AWS IoT SiteWise.

( "Action": "iotsitewise:BatchPutAssetPropertyValue" ). The trust policy can restrict access to specific asset hierarchy paths.