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
.key("key")
.partition("partition")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTopicRule.KafkaActionPropertystatic final classAn implementation forCfnTopicRule.KafkaActionProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Properties of the Apache Kafka producer client.The ARN of Kafka action's VPCTopicRuleDestination.default StringgetKey()The Kafka message key.default StringThe Kafka message partition.getTopic()The Kafka topic for messages to be sent to the Kafka broker.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getClientProperties
Properties of the Apache Kafka producer client. -
getDestinationArn
The ARN of Kafka action's VPCTopicRuleDestination. -
getTopic
The Kafka topic for messages to be sent to the Kafka broker. -
getKey
The Kafka message key. -
getPartition
The Kafka message partition. -
builder
-