@aws-cdk_aws-iot-actions-alpha.KinesisPutRecordAction

class KinesisPutRecordAction 🔹

LanguageType name
.NETAmazon.CDK.AWS.IoT.Actions.Alpha.KinesisPutRecordAction
Gogithub.com/aws/aws-cdk-go/awscdkiotactionsalpha/v2#KinesisPutRecordAction
Javasoftware.amazon.awscdk.services.iot.actions.alpha.KinesisPutRecordAction
Pythonaws_cdk.aws_iot_actions_alpha.KinesisPutRecordAction
TypeScript (source)@aws-cdk/aws-iot-actions-alpha » KinesisPutRecordAction

Implements IAction

The action to put the record from an MQTT message to the Kinesis Data stream.

Example

import * as kinesis from 'aws-cdk-lib/aws-kinesis';

const stream = new kinesis.Stream(this, 'MyStream');

const topicRule = new iot.TopicRule(this, 'TopicRule', {
  sql: iot.IotSql.fromStringAsVer20160323("SELECT * FROM 'device/+/data'"),
  actions: [
    new actions.KinesisPutRecordAction(stream, {
      partitionKey: '${newuuid()}',
    }),
  ],
});

Initializer

new KinesisPutRecordAction(stream: IStream, props: KinesisPutRecordActionProps)

Parameters

  • stream IStream — The Kinesis Data stream to which to put records.
  • props KinesisPutRecordActionProps — Optional properties to not use default.