Interface CfnTopicRule.KafkaActionProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnTopicRule.KafkaActionProperty.Jsii$Proxy
Enclosing class:
CfnTopicRule

@Stability(Stable) public static interface CfnTopicRule.KafkaActionProperty extends software.amazon.jsii.JsiiSerializable
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.

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.*;
 KafkaActionProperty kafkaActionProperty = KafkaActionProperty.builder()
         .clientProperties(Map.of(
                 "clientPropertiesKey", "clientProperties"))
         .destinationArn("destinationArn")
         .topic("topic")
         // the properties below are optional
         .headers(List.of(KafkaActionHeaderProperty.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .key("key")
         .partition("partition")
         .build();
 

See Also: