Interface CfnTopicRule.KafkaActionHeaderProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTopicRule.KafkaActionHeaderProperty.Jsii$Proxy
- Enclosing class:
CfnTopicRule
@Stability(Stable)
public static interface CfnTopicRule.KafkaActionHeaderProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.iot.*;
KafkaActionHeaderProperty kafkaActionHeaderProperty = KafkaActionHeaderProperty.builder()
.key("key")
.value("value")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTopicRule.KafkaActionHeaderPropertystatic final classAn implementation forCfnTopicRule.KafkaActionHeaderProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getKey
The key of the Kafka header.- See Also:
-
getValue
The value of the Kafka header.- See Also:
-
builder
-