interface KinesisPutRecordActionProps
| Language | Type name | 
|---|---|
  .NET | Amazon.CDK.AWS.IoT.Actions.Alpha.KinesisPutRecordActionProps | 
  Go | github.com/aws/aws-cdk-go/awscdkiotactionsalpha/v2#KinesisPutRecordActionProps | 
  Java | software.amazon.awscdk.services.iot.actions.alpha.KinesisPutRecordActionProps | 
  Python | aws_cdk.aws_iot_actions_alpha.KinesisPutRecordActionProps | 
  TypeScript (source) | @aws-cdk/aws-iot-actions-alpha » KinesisPutRecordActionProps | 
Configuration properties of an action for 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()}',
    }),
  ],
});
Properties
| Name | Type | Description | 
|---|---|---|
| partition | string | The partition key used to determine to which shard the data is written. | 
| role? | IRole | The IAM role that allows access to AWS service. | 
partitionKey
Type:
string
The partition key used to determine to which shard the data is written.
The partition key is usually composed of an expression (for example, ${topic()} or ${timestamp()}).
role?
Type:
IRole
(optional, default: a new role will be created)
The IAM role that allows access to AWS service.

 .NET
 Go
 Java
 Python
 TypeScript (