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:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnTopicRule.KafkaActionProperty
static final class
An implementation forCfnTopicRule.KafkaActionProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Properties of the Apache Kafka producer client.The ARN of Kafka action's VPCTopicRuleDestination
.default Object
The list of Kafka headers that you specify.default String
getKey()
The Kafka message key.default String
The 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.- See Also:
-
getDestinationArn
The ARN of Kafka action's VPCTopicRuleDestination
.- See Also:
-
getTopic
The Kafka topic for messages to be sent to the Kafka broker.- See Also:
-
getHeaders
The list of Kafka headers that you specify.- See Also:
-
getKey
The Kafka message key.- See Also:
-
getPartition
The Kafka message partition.- See Also:
-
builder
-