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 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 ObjectThe list of Kafka headers that you specify.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.Returns union: either Mapinvalid input: '<'String,
String> orIResolvable- 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.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTopicRule.KafkaActionHeaderProperty>- See Also:
-
getKey
The Kafka message key.- See Also:
-
getPartition
The Kafka message partition.- See Also:
-
builder
-