class KinesisPutRecordAction
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.IoT.Actions.Alpha.KinesisPutRecordAction |
Go | github.com/aws/aws-cdk-go/awscdkiotactionsalpha/v2#KinesisPutRecordAction |
Java | software.amazon.awscdk.services.iot.actions.alpha.KinesisPutRecordAction |
Python | aws_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
Kinesis
— Optional properties to not use default.Put Record Action Props