interface KinesisPutRecordActionProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.IoT.Actions.KinesisPutRecordActionProps |
Java | software.amazon.awscdk.services.iot.actions.KinesisPutRecordActionProps |
Python | aws_cdk.aws_iot_actions.KinesisPutRecordActionProps |
TypeScript (source) | @aws-cdk/aws-iot-actions » KinesisPutRecordActionProps |
Configuration properties of an action for the Kinesis Data stream.
Example
import * as kinesis from '@aws-cdk/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.