interface KafkaActionHeaderProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.IoT.Mixins.CfnTopicRulePropsMixin.KafkaActionHeaderProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsiot/mixins#CfnTopicRulePropsMixin_KafkaActionHeaderProperty |
Java | software.amazon.awscdk.mixins.preview.services.iot.mixins.CfnTopicRulePropsMixin.KafkaActionHeaderProperty |
Python | aws_cdk.mixins_preview.aws_iot.mixins.CfnTopicRulePropsMixin.KafkaActionHeaderProperty |
TypeScript | @aws-cdk/mixins-preview » aws_iot » mixins » CfnTopicRulePropsMixin » 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 { mixins as iot_mixins } from '@aws-cdk/mixins-preview/aws-iot';
const kafkaActionHeaderProperty: iot_mixins.CfnTopicRulePropsMixin.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
(optional)
The key of the Kafka header.
value?
Type:
string
(optional)
The value of the Kafka header.

.NET
Go
Java
Python
TypeScript