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

interface KinesisPutRecordActionProps ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.IoT.Actions.Alpha.KinesisPutRecordActionProps
Gogithub.com/aws/aws-cdk-go/awscdkiotactionsalpha/v2#KinesisPutRecordActionProps
Javasoftware.amazon.awscdk.services.iot.actions.alpha.KinesisPutRecordActionProps
Pythonaws_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

NameTypeDescription
partitionKey๐Ÿ”นstringThe partition key used to determine to which shard the data is written.
role?๐Ÿ”นIRoleThe 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()}).

See also: https://docs.aws.amazon.com/kinesis/latest/APIReference/API_PutRecord.html#API_PutRecord_RequestParameters


role?๐Ÿ”น

Type: IRole (optional, default: a new role will be created)

The IAM role that allows access to AWS service.