interface KafkaActionHeaderProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.IoT.CfnTopicRulePropsMixin.KafkaActionHeaderProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsiot#CfnTopicRulePropsMixin_KafkaActionHeaderProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.iot.CfnTopicRulePropsMixin.KafkaActionHeaderProperty |
Python | aws_cdk.cfn_property_mixins.aws_iot.CfnTopicRulePropsMixin.KafkaActionHeaderProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_iot » 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 { aws_iot as iot } from '@aws-cdk/cfn-property-mixins';
const kafkaActionHeaderProperty: iot.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