interface KafkaActionHeaderProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.IoT.CfnTopicRule.KafkaActionHeaderProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiot#CfnTopicRule_KafkaActionHeaderProperty |
Java | software.amazon.awscdk.services.iot.CfnTopicRule.KafkaActionHeaderProperty |
Python | aws_cdk.aws_iot.CfnTopicRule.KafkaActionHeaderProperty |
TypeScript | aws-cdk-lib » aws_iot » CfnTopicRule » KafkaActionHeaderProperty |
Specifies a Kafka header using key-value pairs when you create a Rule’s Kafka Action.
You can use these headers to route data from IoT clients to downstream Kafka clusters without modifying your message payload.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const kafkaActionHeaderProperty: iot.CfnTopicRule.KafkaActionHeaderProperty = {
key: 'key',
value: 'value',
};
Properties
| Name | Type | Description |
|---|---|---|
| key | string | The key of the Kafka header. |
| value | string | The value of the Kafka header. |
key
Type:
string
The key of the Kafka header.
value
Type:
string
The value of the Kafka header.

.NET
Go
Java
Python
TypeScript