interface IotAnalyticsActionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.IoT.CfnTopicRule.IotAnalyticsActionProperty |
Java | software.amazon.awscdk.services.iot.CfnTopicRule.IotAnalyticsActionProperty |
Python | aws_cdk.aws_iot.CfnTopicRule.IotAnalyticsActionProperty |
TypeScript | @aws-cdk/aws-iot » CfnTopicRule » IotAnalyticsActionProperty |
Sends message data to an AWS IoT Analytics channel.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as iot from '@aws-cdk/aws-iot';
const iotAnalyticsActionProperty: iot.CfnTopicRule.IotAnalyticsActionProperty = {
channelName: 'channelName',
roleArn: 'roleArn',
// the properties below are optional
batchMode: false,
};
Properties
| Name | Type | Description |
|---|---|---|
| channel | string | The name of the IoT Analytics channel to which message data will be sent. |
| role | string | The ARN of the role which has a policy that grants IoT Analytics permission to send message data via IoT Analytics (iotanalytics:BatchPutMessage). |
| batch | boolean | IResolvable | Whether to process the action as a batch. The default value is false . |
channelName
Type:
string
The name of the IoT Analytics channel to which message data will be sent.
roleArn
Type:
string
The ARN of the role which has a policy that grants IoT Analytics permission to send message data via IoT Analytics (iotanalytics:BatchPutMessage).
batchMode?
Type:
boolean | IResolvable
(optional)
Whether to process the action as a batch. The default value is false .
When batchMode is true and the rule SQL statement evaluates to an Array, each Array element is delivered as a separate message when passed by BatchPutMessage The resulting array can't have more than 100 messages.

.NET
Java
Python
TypeScript