aws-cdk-lib.aws_events.CfnRule.KinesisParametersProperty

interface KinesisParametersProperty

LanguageType name
.NETAmazon.CDK.AWS.Events.CfnRule.KinesisParametersProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsevents#CfnRule_KinesisParametersProperty
Javasoftware.amazon.awscdk.services.events.CfnRule.KinesisParametersProperty
Pythonaws_cdk.aws_events.CfnRule.KinesisParametersProperty
TypeScript aws-cdk-lib » aws_events » CfnRule » KinesisParametersProperty

This object enables you to specify a JSON path to extract from the event and use as the partition key for the Amazon Kinesis data stream, so that you can control the shard to which the event goes.

If you do not include this parameter, the default is to use the eventId as the partition key.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_events as events } from 'aws-cdk-lib';
const kinesisParametersProperty: events.CfnRule.KinesisParametersProperty = {
  partitionKeyPath: 'partitionKeyPath',
};

Properties

NameTypeDescription
partitionKeyPathstringThe JSON path to be extracted from the event and used as the partition key.

partitionKeyPath

Type: string

The JSON path to be extracted from the event and used as the partition key.

For more information, see Amazon Kinesis Streams Key Concepts in the Amazon Kinesis Streams Developer Guide .